Interface DLFileVersionPreviewPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<DLFileVersionPreview>
,com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DLFileVersionPreview>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
countAll()
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 returnsnull
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 returnsnull
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 returnsnull
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 returnsnull
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 returnsnull
if it could not be found.findAll()
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 aNoSuchFileVersionPreviewException
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 aNoSuchFileVersionPreviewException
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 aNoSuchFileVersionPreviewException
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
Returns all the dl file version previews where fileEntryId = ?.- Parameters:
fileEntryId
- the file entry ID- Returns:
- the matching dl file version previews
-
findByFileEntryId
Returns a range of all the dl file version previews where fileEntryId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDLFileVersionPreviewModelImpl
.- Parameters:
fileEntryId
- the file entry IDstart
- the lower bound of the range of dl file version previewsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDLFileVersionPreviewModelImpl
.- Parameters:
fileEntryId
- the file entry IDstart
- the lower bound of the range of dl file version previewsend
- the upper bound of the range of dl file version previews (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDLFileVersionPreviewModelImpl
.- Parameters:
fileEntryId
- the file entry IDstart
- the lower bound of the range of dl file version previewsend
- the upper bound of the range of dl file version previews (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 previewfileEntryId
- the file entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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
Returns all the dl file version previews where fileVersionId = ?.- Parameters:
fileVersionId
- the file version ID- Returns:
- the matching dl file version previews
-
findByFileVersionId
Returns a range of all the dl file version previews where fileVersionId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDLFileVersionPreviewModelImpl
.- Parameters:
fileVersionId
- the file version IDstart
- the lower bound of the range of dl file version previewsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDLFileVersionPreviewModelImpl
.- Parameters:
fileVersionId
- the file version IDstart
- the lower bound of the range of dl file version previewsend
- the upper bound of the range of dl file version previews (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDLFileVersionPreviewModelImpl
.- Parameters:
fileVersionId
- the file version IDstart
- the lower bound of the range of dl file version previewsend
- the upper bound of the range of dl file version previews (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 previewfileVersionId
- the file version IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 aNoSuchFileVersionPreviewException
if it could not be found.- Parameters:
fileEntryId
- the file entry IDfileVersionId
- 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
Returns the dl file version preview where fileEntryId = ? and fileVersionId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
fileEntryId
- the file entry IDfileVersionId
- 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
Returns the dl file version preview where fileEntryId = ? and fileVersionId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
fileEntryId
- the file entry IDfileVersionId
- the file version IDuseFinderCache
- 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 IDfileVersionId
- 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 IDfileVersionId
- 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 aNoSuchFileVersionPreviewException
if it could not be found.- Parameters:
fileEntryId
- the file entry IDfileVersionId
- the file version IDpreviewStatus
- 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
Returns the dl file version preview where fileEntryId = ? and fileVersionId = ? and previewStatus = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
fileEntryId
- the file entry IDfileVersionId
- the file version IDpreviewStatus
- 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 returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
fileEntryId
- the file entry IDfileVersionId
- the file version IDpreviewStatus
- the preview statususeFinderCache
- 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 IDfileVersionId
- the file version IDpreviewStatus
- 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 IDfileVersionId
- the file version IDpreviewStatus
- the preview status- Returns:
- the number of matching dl file version previews
-
cacheResult
Caches the dl file version preview in the entity cache if it is enabled.- Parameters:
dlFileVersionPreview
- the dl file version preview
-
cacheResult
Caches the dl file version previews in the entity cache if it is enabled.- Parameters:
dlFileVersionPreviews
- the dl file version previews
-
create
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
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
-
findByPrimaryKey
DLFileVersionPreview findByPrimaryKey(long dlFileVersionPreviewId) throws NoSuchFileVersionPreviewException Returns the dl file version preview with the primary key or throws aNoSuchFileVersionPreviewException
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
Returns the dl file version preview with the primary key or returnsnull
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
List<DLFileVersionPreview> findAll()Returns all the dl file version previews.- Returns:
- the dl file version previews
-
findAll
Returns a range of all the dl file version previews.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDLFileVersionPreviewModelImpl
.- Parameters:
start
- the lower bound of the range of dl file version previewsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDLFileVersionPreviewModelImpl
.- Parameters:
start
- the lower bound of the range of dl file version previewsend
- the upper bound of the range of dl file version previews (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDLFileVersionPreviewModelImpl
.- Parameters:
start
- the lower bound of the range of dl file version previewsend
- the upper bound of the range of dl file version previews (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)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
-