Class DLFileVersionPreviewUtil

java.lang.Object
com.liferay.document.library.service.persistence.DLFileVersionPreviewUtil

public class DLFileVersionPreviewUtil extends Object
The persistence utility for the dl file version preview service. This utility wraps com.liferay.document.library.service.persistence.impl.DLFileVersionPreviewPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Constructor Details

    • DLFileVersionPreviewUtil

      public DLFileVersionPreviewUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(DLFileVersionPreview dlFileVersionPreview)
      See Also:
      • BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
    • countWithDynamicQuery

      public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.countWithDynamicQuery(DynamicQuery)
    • fetchByPrimaryKeys

      public static Map<Serializable,DLFileVersionPreview> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<DLFileVersionPreview> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<DLFileVersionPreview> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<DLFileVersionPreview> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static DLFileVersionPreview update(DLFileVersionPreview dlFileVersionPreview)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static DLFileVersionPreview update(DLFileVersionPreview dlFileVersionPreview, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByFileEntryId

      public static List<DLFileVersionPreview> findByFileEntryId(long fileEntryId)
      Returns all the dl file version previews where fileEntryId = ?.
      Parameters:
      fileEntryId - the file entry ID
      Returns:
      the matching dl file version previews
    • findByFileEntryId

      public static List<DLFileVersionPreview> findByFileEntryId(long fileEntryId, int start, int end)
      Returns a range of all the dl file version previews where fileEntryId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DLFileVersionPreviewModelImpl.

      Parameters:
      fileEntryId - the file entry ID
      start - the lower bound of the range of dl file version previews
      end - the upper bound of the range of dl file version previews (not inclusive)
      Returns:
      the range of matching dl file version previews
    • findByFileEntryId

      public static List<DLFileVersionPreview> findByFileEntryId(long fileEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator)
      Returns an ordered range of all the dl file version previews where fileEntryId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DLFileVersionPreviewModelImpl.

      Parameters:
      fileEntryId - the file entry ID
      start - the lower bound of the range of dl file version previews
      end - the upper bound of the range of dl file version previews (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching dl file version previews
    • findByFileEntryId

      public static List<DLFileVersionPreview> findByFileEntryId(long fileEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the dl file version previews where fileEntryId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DLFileVersionPreviewModelImpl.

      Parameters:
      fileEntryId - the file entry ID
      start - the lower bound of the range of dl file version previews
      end - the upper bound of the range of dl file version previews (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching dl file version previews
    • findByFileEntryId_First

      public static DLFileVersionPreview findByFileEntryId_First(long fileEntryId, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator) throws NoSuchFileVersionPreviewException
      Returns the first dl file version preview in the ordered set where fileEntryId = ?.
      Parameters:
      fileEntryId - the file entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching dl file version preview
      Throws:
      NoSuchFileVersionPreviewException - if a matching dl file version preview could not be found
      NoSuchFileVersionPreviewException
    • fetchByFileEntryId_First

      public static DLFileVersionPreview fetchByFileEntryId_First(long fileEntryId, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator)
      Returns the first dl file version preview in the ordered set where fileEntryId = ?.
      Parameters:
      fileEntryId - the file entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching dl file version preview, or null if a matching dl file version preview could not be found
    • findByFileEntryId_Last

      public static DLFileVersionPreview findByFileEntryId_Last(long fileEntryId, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator) throws NoSuchFileVersionPreviewException
      Returns the last dl file version preview in the ordered set where fileEntryId = ?.
      Parameters:
      fileEntryId - the file entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching dl file version preview
      Throws:
      NoSuchFileVersionPreviewException - if a matching dl file version preview could not be found
      NoSuchFileVersionPreviewException
    • fetchByFileEntryId_Last

      public static DLFileVersionPreview fetchByFileEntryId_Last(long fileEntryId, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator)
      Returns the last dl file version preview in the ordered set where fileEntryId = ?.
      Parameters:
      fileEntryId - the file entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching dl file version preview, or null if a matching dl file version preview could not be found
    • findByFileEntryId_PrevAndNext

      public static DLFileVersionPreview[] findByFileEntryId_PrevAndNext(long dlFileVersionPreviewId, long fileEntryId, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator) throws NoSuchFileVersionPreviewException
      Returns the dl file version previews before and after the current dl file version preview in the ordered set where fileEntryId = ?.
      Parameters:
      dlFileVersionPreviewId - the primary key of the current dl file version preview
      fileEntryId - the file entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next dl file version preview
      Throws:
      NoSuchFileVersionPreviewException - if a dl file version preview with the primary key could not be found
      NoSuchFileVersionPreviewException
    • removeByFileEntryId

      public static void removeByFileEntryId(long fileEntryId)
      Removes all the dl file version previews where fileEntryId = ? from the database.
      Parameters:
      fileEntryId - the file entry ID
    • countByFileEntryId

      public static int countByFileEntryId(long fileEntryId)
      Returns the number of dl file version previews where fileEntryId = ?.
      Parameters:
      fileEntryId - the file entry ID
      Returns:
      the number of matching dl file version previews
    • findByFileVersionId

      public static List<DLFileVersionPreview> findByFileVersionId(long fileVersionId)
      Returns all the dl file version previews where fileVersionId = ?.
      Parameters:
      fileVersionId - the file version ID
      Returns:
      the matching dl file version previews
    • findByFileVersionId

      public static List<DLFileVersionPreview> findByFileVersionId(long fileVersionId, int start, int end)
      Returns a range of all the dl file version previews where fileVersionId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DLFileVersionPreviewModelImpl.

      Parameters:
      fileVersionId - the file version ID
      start - the lower bound of the range of dl file version previews
      end - the upper bound of the range of dl file version previews (not inclusive)
      Returns:
      the range of matching dl file version previews
    • findByFileVersionId

      public static List<DLFileVersionPreview> findByFileVersionId(long fileVersionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator)
      Returns an ordered range of all the dl file version previews where fileVersionId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DLFileVersionPreviewModelImpl.

      Parameters:
      fileVersionId - the file version ID
      start - the lower bound of the range of dl file version previews
      end - the upper bound of the range of dl file version previews (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching dl file version previews
    • findByFileVersionId

      public static List<DLFileVersionPreview> findByFileVersionId(long fileVersionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the dl file version previews where fileVersionId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DLFileVersionPreviewModelImpl.

      Parameters:
      fileVersionId - the file version ID
      start - the lower bound of the range of dl file version previews
      end - the upper bound of the range of dl file version previews (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching dl file version previews
    • findByFileVersionId_First

      public static DLFileVersionPreview findByFileVersionId_First(long fileVersionId, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator) throws NoSuchFileVersionPreviewException
      Returns the first dl file version preview in the ordered set where fileVersionId = ?.
      Parameters:
      fileVersionId - the file version ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching dl file version preview
      Throws:
      NoSuchFileVersionPreviewException - if a matching dl file version preview could not be found
      NoSuchFileVersionPreviewException
    • fetchByFileVersionId_First

      public static DLFileVersionPreview fetchByFileVersionId_First(long fileVersionId, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator)
      Returns the first dl file version preview in the ordered set where fileVersionId = ?.
      Parameters:
      fileVersionId - the file version ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching dl file version preview, or null if a matching dl file version preview could not be found
    • findByFileVersionId_Last

      public static DLFileVersionPreview findByFileVersionId_Last(long fileVersionId, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator) throws NoSuchFileVersionPreviewException
      Returns the last dl file version preview in the ordered set where fileVersionId = ?.
      Parameters:
      fileVersionId - the file version ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching dl file version preview
      Throws:
      NoSuchFileVersionPreviewException - if a matching dl file version preview could not be found
      NoSuchFileVersionPreviewException
    • fetchByFileVersionId_Last

      public static DLFileVersionPreview fetchByFileVersionId_Last(long fileVersionId, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator)
      Returns the last dl file version preview in the ordered set where fileVersionId = ?.
      Parameters:
      fileVersionId - the file version ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching dl file version preview, or null if a matching dl file version preview could not be found
    • findByFileVersionId_PrevAndNext

      public static DLFileVersionPreview[] findByFileVersionId_PrevAndNext(long dlFileVersionPreviewId, long fileVersionId, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator) throws NoSuchFileVersionPreviewException
      Returns the dl file version previews before and after the current dl file version preview in the ordered set where fileVersionId = ?.
      Parameters:
      dlFileVersionPreviewId - the primary key of the current dl file version preview
      fileVersionId - the file version ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next dl file version preview
      Throws:
      NoSuchFileVersionPreviewException - if a dl file version preview with the primary key could not be found
      NoSuchFileVersionPreviewException
    • removeByFileVersionId

      public static void removeByFileVersionId(long fileVersionId)
      Removes all the dl file version previews where fileVersionId = ? from the database.
      Parameters:
      fileVersionId - the file version ID
    • countByFileVersionId

      public static int countByFileVersionId(long fileVersionId)
      Returns the number of dl file version previews where fileVersionId = ?.
      Parameters:
      fileVersionId - the file version ID
      Returns:
      the number of matching dl file version previews
    • findByF_F

      public static DLFileVersionPreview findByF_F(long fileEntryId, long fileVersionId) throws NoSuchFileVersionPreviewException
      Returns the dl file version preview where fileEntryId = ? and fileVersionId = ? or throws a NoSuchFileVersionPreviewException if it could not be found.
      Parameters:
      fileEntryId - the file entry ID
      fileVersionId - the file version ID
      Returns:
      the matching dl file version preview
      Throws:
      NoSuchFileVersionPreviewException - if a matching dl file version preview could not be found
      NoSuchFileVersionPreviewException
    • fetchByF_F

      public static DLFileVersionPreview fetchByF_F(long fileEntryId, long fileVersionId)
      Returns the dl file version preview where fileEntryId = ? and fileVersionId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      fileEntryId - the file entry ID
      fileVersionId - the file version ID
      Returns:
      the matching dl file version preview, or null if a matching dl file version preview could not be found
    • fetchByF_F

      public static DLFileVersionPreview fetchByF_F(long fileEntryId, long fileVersionId, boolean useFinderCache)
      Returns the dl file version preview where fileEntryId = ? and fileVersionId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      fileEntryId - the file entry ID
      fileVersionId - the file version ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching dl file version preview, or null if a matching dl file version preview could not be found
    • removeByF_F

      public static DLFileVersionPreview removeByF_F(long fileEntryId, long fileVersionId) throws NoSuchFileVersionPreviewException
      Removes the dl file version preview where fileEntryId = ? and fileVersionId = ? from the database.
      Parameters:
      fileEntryId - the file entry ID
      fileVersionId - the file version ID
      Returns:
      the dl file version preview that was removed
      Throws:
      NoSuchFileVersionPreviewException
    • countByF_F

      public static int countByF_F(long fileEntryId, long fileVersionId)
      Returns the number of dl file version previews where fileEntryId = ? and fileVersionId = ?.
      Parameters:
      fileEntryId - the file entry ID
      fileVersionId - the file version ID
      Returns:
      the number of matching dl file version previews
    • findByF_F_P

      public static DLFileVersionPreview findByF_F_P(long fileEntryId, long fileVersionId, int previewStatus) throws NoSuchFileVersionPreviewException
      Returns the dl file version preview where fileEntryId = ? and fileVersionId = ? and previewStatus = ? or throws a NoSuchFileVersionPreviewException if it could not be found.
      Parameters:
      fileEntryId - the file entry ID
      fileVersionId - the file version ID
      previewStatus - the preview status
      Returns:
      the matching dl file version preview
      Throws:
      NoSuchFileVersionPreviewException - if a matching dl file version preview could not be found
      NoSuchFileVersionPreviewException
    • fetchByF_F_P

      public static DLFileVersionPreview fetchByF_F_P(long fileEntryId, long fileVersionId, int previewStatus)
      Returns the dl file version preview where fileEntryId = ? and fileVersionId = ? and previewStatus = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      fileEntryId - the file entry ID
      fileVersionId - the file version ID
      previewStatus - the preview status
      Returns:
      the matching dl file version preview, or null if a matching dl file version preview could not be found
    • fetchByF_F_P

      public static DLFileVersionPreview fetchByF_F_P(long fileEntryId, long fileVersionId, int previewStatus, boolean useFinderCache)
      Returns the dl file version preview where fileEntryId = ? and fileVersionId = ? and previewStatus = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      fileEntryId - the file entry ID
      fileVersionId - the file version ID
      previewStatus - the preview status
      useFinderCache - whether to use the finder cache
      Returns:
      the matching dl file version preview, or null if a matching dl file version preview could not be found
    • removeByF_F_P

      public static DLFileVersionPreview removeByF_F_P(long fileEntryId, long fileVersionId, int previewStatus) throws NoSuchFileVersionPreviewException
      Removes the dl file version preview where fileEntryId = ? and fileVersionId = ? and previewStatus = ? from the database.
      Parameters:
      fileEntryId - the file entry ID
      fileVersionId - the file version ID
      previewStatus - the preview status
      Returns:
      the dl file version preview that was removed
      Throws:
      NoSuchFileVersionPreviewException
    • countByF_F_P

      public static int countByF_F_P(long fileEntryId, long fileVersionId, int previewStatus)
      Returns the number of dl file version previews where fileEntryId = ? and fileVersionId = ? and previewStatus = ?.
      Parameters:
      fileEntryId - the file entry ID
      fileVersionId - the file version ID
      previewStatus - the preview status
      Returns:
      the number of matching dl file version previews
    • cacheResult

      public static void cacheResult(DLFileVersionPreview dlFileVersionPreview)
      Caches the dl file version preview in the entity cache if it is enabled.
      Parameters:
      dlFileVersionPreview - the dl file version preview
    • cacheResult

      public static void cacheResult(List<DLFileVersionPreview> dlFileVersionPreviews)
      Caches the dl file version previews in the entity cache if it is enabled.
      Parameters:
      dlFileVersionPreviews - the dl file version previews
    • create

      public static DLFileVersionPreview create(long dlFileVersionPreviewId)
      Creates a new dl file version preview with the primary key. Does not add the dl file version preview to the database.
      Parameters:
      dlFileVersionPreviewId - the primary key for the new dl file version preview
      Returns:
      the new dl file version preview
    • remove

      public static DLFileVersionPreview remove(long dlFileVersionPreviewId) throws NoSuchFileVersionPreviewException
      Removes the dl file version preview with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      dlFileVersionPreviewId - the primary key of the dl file version preview
      Returns:
      the dl file version preview that was removed
      Throws:
      NoSuchFileVersionPreviewException - if a dl file version preview with the primary key could not be found
      NoSuchFileVersionPreviewException
    • updateImpl

      public static DLFileVersionPreview updateImpl(DLFileVersionPreview dlFileVersionPreview)
    • findByPrimaryKey

      public static DLFileVersionPreview findByPrimaryKey(long dlFileVersionPreviewId) throws NoSuchFileVersionPreviewException
      Returns the dl file version preview with the primary key or throws a NoSuchFileVersionPreviewException if it could not be found.
      Parameters:
      dlFileVersionPreviewId - the primary key of the dl file version preview
      Returns:
      the dl file version preview
      Throws:
      NoSuchFileVersionPreviewException - if a dl file version preview with the primary key could not be found
      NoSuchFileVersionPreviewException
    • fetchByPrimaryKey

      public static DLFileVersionPreview fetchByPrimaryKey(long dlFileVersionPreviewId)
      Returns the dl file version preview with the primary key or returns null if it could not be found.
      Parameters:
      dlFileVersionPreviewId - the primary key of the dl file version preview
      Returns:
      the dl file version preview, or null if a dl file version preview with the primary key could not be found
    • findAll

      public static List<DLFileVersionPreview> findAll()
      Returns all the dl file version previews.
      Returns:
      the dl file version previews
    • findAll

      public static List<DLFileVersionPreview> findAll(int start, int end)
      Returns a range of all the dl file version previews.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DLFileVersionPreviewModelImpl.

      Parameters:
      start - the lower bound of the range of dl file version previews
      end - the upper bound of the range of dl file version previews (not inclusive)
      Returns:
      the range of dl file version previews
    • findAll

      public static List<DLFileVersionPreview> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator)
      Returns an ordered range of all the dl file version previews.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DLFileVersionPreviewModelImpl.

      Parameters:
      start - the lower bound of the range of dl file version previews
      end - the upper bound of the range of dl file version previews (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of dl file version previews
    • findAll

      public static List<DLFileVersionPreview> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the dl file version previews.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DLFileVersionPreviewModelImpl.

      Parameters:
      start - the lower bound of the range of dl file version previews
      end - the upper bound of the range of dl file version previews (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of dl file version previews
    • removeAll

      public static void removeAll()
      Removes all the dl file version previews from the database.
    • countAll

      public static int countAll()
      Returns the number of dl file version previews.
      Returns:
      the number of dl file version previews
    • getPersistence

      public static DLFileVersionPreviewPersistence getPersistence()
    • setPersistence

      public static void setPersistence(DLFileVersionPreviewPersistence persistence)