--- /dev/null
+/**
+ * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.
+ *
+ * This library is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ */
+
+package com.pentila.entSavoie.cartable.service.persistence;
+
+import com.liferay.portal.service.persistence.BasePersistence;
+
+import com.pentila.entSavoie.cartable.model.FileVersion;
+
+/**
+ * The persistence interface for the file version service.
+ *
+ * <p>
+ * Caching information and settings can be found in <code>portal.properties</code>
+ * </p>
+ *
+ * @author Barma Igor - Amblard Mathieu
+ * @see FileVersionPersistenceImpl
+ * @see FileVersionUtil
+ * @generated
+ */
+public interface FileVersionPersistence extends BasePersistence<FileVersion> {
+ /*
+ * NOTE FOR DEVELOPERS:
+ *
+ * Never modify or reference this interface directly. Always use {@link FileVersionUtil} to access the file version persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
+ */
+
+ /**
+ * Caches the file version in the entity cache if it is enabled.
+ *
+ * @param fileVersion the file version
+ */
+ public void cacheResult(
+ com.pentila.entSavoie.cartable.model.FileVersion fileVersion);
+
+ /**
+ * Caches the file versions in the entity cache if it is enabled.
+ *
+ * @param fileVersions the file versions
+ */
+ public void cacheResult(
+ java.util.List<com.pentila.entSavoie.cartable.model.FileVersion> fileVersions);
+
+ /**
+ * Creates a new file version with the primary key. Does not add the file version to the database.
+ *
+ * @param fileVersionId the primary key for the new file version
+ * @return the new file version
+ */
+ public com.pentila.entSavoie.cartable.model.FileVersion create(
+ long fileVersionId);
+
+ /**
+ * Removes the file version with the primary key from the database. Also notifies the appropriate model listeners.
+ *
+ * @param fileVersionId the primary key of the file version
+ * @return the file version that was removed
+ * @throws com.pentila.entSavoie.cartable.NoSuchFileVersionException if a file version with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cartable.model.FileVersion remove(
+ long fileVersionId)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cartable.NoSuchFileVersionException;
+
+ public com.pentila.entSavoie.cartable.model.FileVersion updateImpl(
+ com.pentila.entSavoie.cartable.model.FileVersion fileVersion,
+ boolean merge)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the file version with the primary key or throws a {@link com.pentila.entSavoie.cartable.NoSuchFileVersionException} if it could not be found.
+ *
+ * @param fileVersionId the primary key of the file version
+ * @return the file version
+ * @throws com.pentila.entSavoie.cartable.NoSuchFileVersionException if a file version with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cartable.model.FileVersion findByPrimaryKey(
+ long fileVersionId)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cartable.NoSuchFileVersionException;
+
+ /**
+ * Returns the file version with the primary key or returns <code>null</code> if it could not be found.
+ *
+ * @param fileVersionId the primary key of the file version
+ * @return the file version, or <code>null</code> if a file version with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cartable.model.FileVersion fetchByPrimaryKey(
+ long fileVersionId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the file version where dlFileEntryId = ? and version = ? or throws a {@link com.pentila.entSavoie.cartable.NoSuchFileVersionException} if it could not be found.
+ *
+ * @param dlFileEntryId the dl file entry ID
+ * @param version the version
+ * @return the matching file version
+ * @throws com.pentila.entSavoie.cartable.NoSuchFileVersionException if a matching file version could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cartable.model.FileVersion findBydlFileEntryId_version(
+ long dlFileEntryId, double version)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cartable.NoSuchFileVersionException;
+
+ /**
+ * Returns the file version where dlFileEntryId = ? and version = ? or returns <code>null</code> if it could not be found. Uses the finder cache.
+ *
+ * @param dlFileEntryId the dl file entry ID
+ * @param version the version
+ * @return the matching file version, or <code>null</code> if a matching file version could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cartable.model.FileVersion fetchBydlFileEntryId_version(
+ long dlFileEntryId, double version)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the file version where dlFileEntryId = ? and version = ? or returns <code>null</code> if it could not be found, optionally using the finder cache.
+ *
+ * @param dlFileEntryId the dl file entry ID
+ * @param version the version
+ * @param retrieveFromCache whether to use the finder cache
+ * @return the matching file version, or <code>null</code> if a matching file version could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cartable.model.FileVersion fetchBydlFileEntryId_version(
+ long dlFileEntryId, double version, boolean retrieveFromCache)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns all the file versions where dlFileEntryId = ?.
+ *
+ * @param dlFileEntryId the dl file entry ID
+ * @return the matching file versions
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.cartable.model.FileVersion> findBydlFileEntryId(
+ long dlFileEntryId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns a range of all the file versions where dlFileEntryId = ?.
+ *
+ * <p>
+ * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
+ * </p>
+ *
+ * @param dlFileEntryId the dl file entry ID
+ * @param start the lower bound of the range of file versions
+ * @param end the upper bound of the range of file versions (not inclusive)
+ * @return the range of matching file versions
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.cartable.model.FileVersion> findBydlFileEntryId(
+ long dlFileEntryId, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns an ordered range of all the file versions where dlFileEntryId = ?.
+ *
+ * <p>
+ * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
+ * </p>
+ *
+ * @param dlFileEntryId the dl file entry ID
+ * @param start the lower bound of the range of file versions
+ * @param end the upper bound of the range of file versions (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching file versions
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.cartable.model.FileVersion> findBydlFileEntryId(
+ long dlFileEntryId, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the first file version in the ordered set where dlFileEntryId = ?.
+ *
+ * @param dlFileEntryId the dl file entry ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching file version
+ * @throws com.pentila.entSavoie.cartable.NoSuchFileVersionException if a matching file version could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cartable.model.FileVersion findBydlFileEntryId_First(
+ long dlFileEntryId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cartable.NoSuchFileVersionException;
+
+ /**
+ * Returns the first file version in the ordered set where dlFileEntryId = ?.
+ *
+ * @param dlFileEntryId the dl file entry ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching file version, or <code>null</code> if a matching file version could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cartable.model.FileVersion fetchBydlFileEntryId_First(
+ long dlFileEntryId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the last file version in the ordered set where dlFileEntryId = ?.
+ *
+ * @param dlFileEntryId the dl file entry ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching file version
+ * @throws com.pentila.entSavoie.cartable.NoSuchFileVersionException if a matching file version could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cartable.model.FileVersion findBydlFileEntryId_Last(
+ long dlFileEntryId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cartable.NoSuchFileVersionException;
+
+ /**
+ * Returns the last file version in the ordered set where dlFileEntryId = ?.
+ *
+ * @param dlFileEntryId the dl file entry ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching file version, or <code>null</code> if a matching file version could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cartable.model.FileVersion fetchBydlFileEntryId_Last(
+ long dlFileEntryId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the file versions before and after the current file version in the ordered set where dlFileEntryId = ?.
+ *
+ * @param fileVersionId the primary key of the current file version
+ * @param dlFileEntryId the dl file entry ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next file version
+ * @throws com.pentila.entSavoie.cartable.NoSuchFileVersionException if a file version with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cartable.model.FileVersion[] findBydlFileEntryId_PrevAndNext(
+ long fileVersionId, long dlFileEntryId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cartable.NoSuchFileVersionException;
+
+ /**
+ * Returns all the file versions.
+ *
+ * @return the file versions
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.cartable.model.FileVersion> findAll()
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns a range of all the file versions.
+ *
+ * <p>
+ * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
+ * </p>
+ *
+ * @param start the lower bound of the range of file versions
+ * @param end the upper bound of the range of file versions (not inclusive)
+ * @return the range of file versions
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.cartable.model.FileVersion> findAll(
+ int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns an ordered range of all the file versions.
+ *
+ * <p>
+ * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
+ * </p>
+ *
+ * @param start the lower bound of the range of file versions
+ * @param end the upper bound of the range of file versions (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of file versions
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.cartable.model.FileVersion> findAll(
+ int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Removes the file version where dlFileEntryId = ? and version = ? from the database.
+ *
+ * @param dlFileEntryId the dl file entry ID
+ * @param version the version
+ * @return the file version that was removed
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cartable.model.FileVersion removeBydlFileEntryId_version(
+ long dlFileEntryId, double version)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cartable.NoSuchFileVersionException;
+
+ /**
+ * Removes all the file versions where dlFileEntryId = ? from the database.
+ *
+ * @param dlFileEntryId the dl file entry ID
+ * @throws SystemException if a system exception occurred
+ */
+ public void removeBydlFileEntryId(long dlFileEntryId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Removes all the file versions from the database.
+ *
+ * @throws SystemException if a system exception occurred
+ */
+ public void removeAll()
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of file versions where dlFileEntryId = ? and version = ?.
+ *
+ * @param dlFileEntryId the dl file entry ID
+ * @param version the version
+ * @return the number of matching file versions
+ * @throws SystemException if a system exception occurred
+ */
+ public int countBydlFileEntryId_version(long dlFileEntryId, double version)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of file versions where dlFileEntryId = ?.
+ *
+ * @param dlFileEntryId the dl file entry ID
+ * @return the number of matching file versions
+ * @throws SystemException if a system exception occurred
+ */
+ public int countBydlFileEntryId(long dlFileEntryId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of file versions.
+ *
+ * @return the number of file versions
+ * @throws SystemException if a system exception occurred
+ */
+ public int countAll()
+ throws com.liferay.portal.kernel.exception.SystemException;
+}
\ No newline at end of file