Interface DLFileVersionPreviewPersistence

All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<DLFileVersionPreview>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DLFileVersionPreview>

@ProviderType public interface DLFileVersionPreviewPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<DLFileVersionPreview>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DLFileVersionPreview>
The persistence interface for the dl file version preview service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cacheResult(DLFileVersionPreview dlFileVersionPreview)
    Caches the dl file version preview in the entity cache if it is enabled.
    void
    cacheResult(List<DLFileVersionPreview> dlFileVersionPreviews)
    Caches the dl file version previews in the entity cache if it is enabled.
    int
    Returns the number of dl file version previews.
    int
    countByF_F(long fileEntryId, long fileVersionId)
    Returns the number of dl file version previews where fileEntryId = ? and fileVersionId = ?.
    int
    countByF_F_P(long fileEntryId, long fileVersionId, int previewStatus)
    Returns the number of dl file version previews where fileEntryId = ? and fileVersionId = ? and previewStatus = ?.
    int
    countByFileEntryId(long fileEntryId)
    Returns the number of dl file version previews where fileEntryId = ?.
    int
    countByFileVersionId(long fileVersionId)
    Returns the number of dl file version previews where fileVersionId = ?.
    create(long dlFileVersionPreviewId)
    Creates a new dl file version preview with the primary key.
    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.
    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.
    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.
    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.
    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 = ?.
    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 = ?.
    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 = ?.
    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 = ?.
    fetchByPrimaryKey(long dlFileVersionPreviewId)
    Returns the dl file version preview with the primary key or returns null if it could not be found.
    Returns all the dl file version previews.
    findAll(int start, int end)
    Returns a range of all the dl file version previews.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator)
    Returns an ordered range of all the dl file version previews.
    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.
    findByF_F(long fileEntryId, long fileVersionId)
    Returns the dl file version preview where fileEntryId = ? and fileVersionId = ? or throws a NoSuchFileVersionPreviewException if it could not be found.
    findByF_F_P(long fileEntryId, long fileVersionId, int previewStatus)
    Returns the dl file version preview where fileEntryId = ? and fileVersionId = ? and previewStatus = ? or throws a NoSuchFileVersionPreviewException if it could not be found.
    findByFileEntryId(long fileEntryId)
    Returns all the dl file version previews where fileEntryId = ?.
    findByFileEntryId(long fileEntryId, int start, int end)
    Returns a range of all the dl file version previews where fileEntryId = ?.
    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 = ?.
    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 = ?.
    findByFileEntryId_First(long fileEntryId, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator)
    Returns the first dl file version preview in the ordered set where fileEntryId = ?.
    findByFileEntryId_Last(long fileEntryId, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator)
    Returns the last dl file version preview in the ordered set where fileEntryId = ?.
    findByFileEntryId_PrevAndNext(long dlFileVersionPreviewId, long fileEntryId, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator)
    Returns the dl file version previews before and after the current dl file version preview in the ordered set where fileEntryId = ?.
    findByFileVersionId(long fileVersionId)
    Returns all the dl file version previews where fileVersionId = ?.
    findByFileVersionId(long fileVersionId, int start, int end)
    Returns a range of all the dl file version previews where fileVersionId = ?.
    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 = ?.
    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 = ?.
    findByFileVersionId_First(long fileVersionId, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator)
    Returns the first dl file version preview in the ordered set where fileVersionId = ?.
    findByFileVersionId_Last(long fileVersionId, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator)
    Returns the last dl file version preview in the ordered set where fileVersionId = ?.
    findByFileVersionId_PrevAndNext(long dlFileVersionPreviewId, long fileVersionId, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator)
    Returns the dl file version previews before and after the current dl file version preview in the ordered set where fileVersionId = ?.
    findByPrimaryKey(long dlFileVersionPreviewId)
    Returns the dl file version preview with the primary key or throws a NoSuchFileVersionPreviewException if it could not be found.
    remove(long dlFileVersionPreviewId)
    Removes the dl file version preview with the primary key from the database.
    void
    Removes all the dl file version previews from the database.
    removeByF_F(long fileEntryId, long fileVersionId)
    Removes the dl file version preview where fileEntryId = ? and fileVersionId = ? from the database.
    removeByF_F_P(long fileEntryId, long fileVersionId, int previewStatus)
    Removes the dl file version preview where fileEntryId = ? and fileVersionId = ? and previewStatus = ? from the database.
    void
    removeByFileEntryId(long fileEntryId)
    Removes all the dl file version previews where fileEntryId = ? from the database.
    void
    removeByFileVersionId(long fileVersionId)
    Removes all the dl file version previews where fileVersionId = ? from the database.
    updateImpl(DLFileVersionPreview dlFileVersionPreview)
     

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence

    clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence

    getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
  • Method Details

    • findByFileEntryId

      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

      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

      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

      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

      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
    • fetchByFileEntryId_First

      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

      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
    • fetchByFileEntryId_Last

      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

      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
    • removeByFileEntryId

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

      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

      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

      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

      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

      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

      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
    • fetchByFileVersionId_First

      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

      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
    • fetchByFileVersionId_Last

      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

      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
    • removeByFileVersionId

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

      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

      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
    • fetchByF_F

      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

      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

      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

      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

      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
    • fetchByF_F_P

      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

      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

      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

      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

      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

      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

      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

      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
    • updateImpl

      DLFileVersionPreview updateImpl(DLFileVersionPreview dlFileVersionPreview)
    • findByPrimaryKey

      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
    • fetchByPrimaryKey

      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

      Returns all the dl file version previews.
      Returns:
      the dl file version previews
    • findAll

      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

      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

      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

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

      int countAll()
      Returns the number of dl file version previews.
      Returns:
      the number of dl file version previews