Class DLFileVersionPreviewUtil
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(DLFileVersionPreview dlFileVersionPreview) Caches the dl file version preview in the entity cache if it is enabled.static void
cacheResult
(List<DLFileVersionPreview> dlFileVersionPreviews) Caches the dl file version previews in the entity cache if it is enabled.static void
static void
clearCache
(DLFileVersionPreview dlFileVersionPreview) static int
countAll()
Returns the number of dl file version previews.static int
countByF_F
(long fileEntryId, long fileVersionId) Returns the number of dl file version previews where fileEntryId = ? and fileVersionId = ?.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 = ?.static int
countByFileEntryId
(long fileEntryId) Returns the number of dl file version previews where fileEntryId = ?.static int
countByFileVersionId
(long fileVersionId) Returns the number of dl file version previews where fileVersionId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static DLFileVersionPreview
create
(long dlFileVersionPreviewId) Creates a new dl file version preview with the primary key.static DLFileVersionPreview
fetchByF_F
(long fileEntryId, long fileVersionId) Returns the dl file version preview where fileEntryId = ? and fileVersionId = ? or returnsnull
if it could not be found.static DLFileVersionPreview
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.static DLFileVersionPreview
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.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 returnsnull
if it could not be found, optionally using the finder cache.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 = ?.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 = ?.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 = ?.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 = ?.static DLFileVersionPreview
fetchByPrimaryKey
(long dlFileVersionPreviewId) Returns the dl file version preview with the primary key or returnsnull
if it could not be found.static Map<Serializable,
DLFileVersionPreview> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static List<DLFileVersionPreview>
findAll()
Returns all the dl file version previews.static List<DLFileVersionPreview>
findAll
(int start, int end) Returns a range of all the dl file version previews.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.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.static DLFileVersionPreview
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.static DLFileVersionPreview
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.static List<DLFileVersionPreview>
findByFileEntryId
(long fileEntryId) Returns all the dl file version previews where fileEntryId = ?.static List<DLFileVersionPreview>
findByFileEntryId
(long fileEntryId, int start, int end) Returns a range of all the dl file version previews where fileEntryId = ?.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 = ?.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 = ?.static DLFileVersionPreview
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 = ?.static DLFileVersionPreview
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 = ?.static DLFileVersionPreview[]
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 = ?.static List<DLFileVersionPreview>
findByFileVersionId
(long fileVersionId) Returns all the dl file version previews where fileVersionId = ?.static List<DLFileVersionPreview>
findByFileVersionId
(long fileVersionId, int start, int end) Returns a range of all the dl file version previews where fileVersionId = ?.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 = ?.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 = ?.static DLFileVersionPreview
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 = ?.static DLFileVersionPreview
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 = ?.static DLFileVersionPreview[]
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 = ?.static DLFileVersionPreview
findByPrimaryKey
(long dlFileVersionPreviewId) Returns the dl file version preview with the primary key or throws aNoSuchFileVersionPreviewException
if it could not be found.static List<DLFileVersionPreview>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<DLFileVersionPreview>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<DLFileVersionPreview>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator) static DLFileVersionPreview
remove
(long dlFileVersionPreviewId) Removes the dl file version preview with the primary key from the database.static void
Removes all the dl file version previews from the database.static DLFileVersionPreview
removeByF_F
(long fileEntryId, long fileVersionId) Removes the dl file version preview where fileEntryId = ? and fileVersionId = ? from the database.static DLFileVersionPreview
removeByF_F_P
(long fileEntryId, long fileVersionId, int previewStatus) Removes the dl file version preview where fileEntryId = ? and fileVersionId = ? and previewStatus = ? from the database.static void
removeByFileEntryId
(long fileEntryId) Removes all the dl file version previews where fileEntryId = ? from the database.static void
removeByFileVersionId
(long fileVersionId) Removes all the dl file version previews where fileVersionId = ? from the database.static void
setPersistence
(DLFileVersionPreviewPersistence persistence) static DLFileVersionPreview
update
(DLFileVersionPreview dlFileVersionPreview) static DLFileVersionPreview
update
(DLFileVersionPreview dlFileVersionPreview, com.liferay.portal.kernel.service.ServiceContext serviceContext) static DLFileVersionPreview
updateImpl
(DLFileVersionPreview dlFileVersionPreview)
-
Constructor Details
-
DLFileVersionPreviewUtil
public DLFileVersionPreviewUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- 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
- 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
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
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
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
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
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
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 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 foundNoSuchFileVersionPreviewException
-
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 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
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 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 foundNoSuchFileVersionPreviewException
-
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 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
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 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 foundNoSuchFileVersionPreviewException
-
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
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
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
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
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
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
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
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 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 foundNoSuchFileVersionPreviewException
-
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 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
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 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 foundNoSuchFileVersionPreviewException
-
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 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
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 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 foundNoSuchFileVersionPreviewException
-
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 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 foundNoSuchFileVersionPreviewException
-
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
public static DLFileVersionPreview 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.- 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
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 IDfileVersionId
- 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 IDfileVersionId
- 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 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 foundNoSuchFileVersionPreviewException
-
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 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
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 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
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 IDfileVersionId
- the file version IDpreviewStatus
- 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 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
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 foundNoSuchFileVersionPreviewException
-
updateImpl
-
findByPrimaryKey
public static 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 foundNoSuchFileVersionPreviewException
-
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
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
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
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
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
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
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
-
setPersistence
-