public class DLFileVersionPreviewUtil
extends java.lang.Object
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
DLFileVersionPreviewPersistence
Constructor and Description |
---|
DLFileVersionPreviewUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(DLFileVersionPreview dlFileVersionPreview)
Caches the dl file version preview in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<DLFileVersionPreview> dlFileVersionPreviews)
Caches the dl file version previews in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(DLFileVersionPreview dlFileVersionPreview) |
static int |
countAll()
Returns the number of dl file version previews.
|
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 |
countByF_F(long fileEntryId,
long fileVersionId)
Returns the number of dl file version previews where fileEntryId = ? and fileVersionId = ?.
|
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_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. |
static DLFileVersionPreview |
fetchByF_F_P(long fileEntryId,
long fileVersionId,
int previewStatus,
boolean useFinderCache)
Returns the dl file version preview where fileEntryId = ? and fileVersionId = ? and previewStatus = ? or returns
null if it could not be found, optionally using the finder cache. |
static DLFileVersionPreview |
fetchByF_F(long fileEntryId,
long fileVersionId)
Returns the dl file version preview where fileEntryId = ? and fileVersionId = ? or returns
null if it could not be found. |
static DLFileVersionPreview |
fetchByF_F(long fileEntryId,
long fileVersionId,
boolean useFinderCache)
Returns the dl file version preview where fileEntryId = ? and fileVersionId = ? or returns
null if it could not be found, optionally using the finder cache. |
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 returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,DLFileVersionPreview> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<DLFileVersionPreview> |
findAll()
Returns all the dl file version previews.
|
static java.util.List<DLFileVersionPreview> |
findAll(int start,
int end)
Returns a range of all the dl file version previews.
|
static java.util.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 java.util.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_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. |
static DLFileVersionPreview |
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. |
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 java.util.List<DLFileVersionPreview> |
findByFileEntryId(long fileEntryId)
Returns all the dl file version previews where fileEntryId = ?.
|
static java.util.List<DLFileVersionPreview> |
findByFileEntryId(long fileEntryId,
int start,
int end)
Returns a range of all the dl file version previews where fileEntryId = ?.
|
static java.util.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 java.util.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 |
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 java.util.List<DLFileVersionPreview> |
findByFileVersionId(long fileVersionId)
Returns all the dl file version previews where fileVersionId = ?.
|
static java.util.List<DLFileVersionPreview> |
findByFileVersionId(long fileVersionId,
int start,
int end)
Returns a range of all the dl file version previews where fileVersionId = ?.
|
static java.util.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 java.util.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 |
findByPrimaryKey(long dlFileVersionPreviewId)
Returns the dl file version preview with the primary key or throws a
NoSuchFileVersionPreviewException if it could not be found. |
static java.util.List<DLFileVersionPreview> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<DLFileVersionPreview> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<DLFileVersionPreview> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator) |
static DLFileVersionPreviewPersistence |
getPersistence() |
static DLFileVersionPreview |
remove(long dlFileVersionPreviewId)
Removes the dl file version preview with the primary key from the database.
|
static void |
removeAll()
Removes all the dl file version previews 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 DLFileVersionPreview |
removeByF_F(long fileEntryId,
long fileVersionId)
Removes the dl file version preview where fileEntryId = ? and fileVersionId = ? 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 DLFileVersionPreview |
update(DLFileVersionPreview dlFileVersionPreview) |
static DLFileVersionPreview |
update(DLFileVersionPreview dlFileVersionPreview,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static DLFileVersionPreview |
updateImpl(DLFileVersionPreview dlFileVersionPreview) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(DLFileVersionPreview dlFileVersionPreview)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,DLFileVersionPreview> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<DLFileVersionPreview> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<DLFileVersionPreview> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<DLFileVersionPreview> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static DLFileVersionPreview update(DLFileVersionPreview dlFileVersionPreview)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static DLFileVersionPreview update(DLFileVersionPreview dlFileVersionPreview, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<DLFileVersionPreview> findByFileEntryId(long fileEntryId)
fileEntryId
- the file entry IDpublic static java.util.List<DLFileVersionPreview> findByFileEntryId(long fileEntryId, int start, int end)
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
.
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)public static java.util.List<DLFileVersionPreview> findByFileEntryId(long fileEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator)
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
.
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 (optionally null
)public static java.util.List<DLFileVersionPreview> findByFileEntryId(long fileEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator, boolean useFinderCache)
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
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static DLFileVersionPreview findByFileEntryId_First(long fileEntryId, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator) throws NoSuchFileVersionPreviewException
fileEntryId
- the file entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFileVersionPreviewException
- if a matching dl file version preview could not be foundpublic static DLFileVersionPreview fetchByFileEntryId_First(long fileEntryId, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator)
fileEntryId
- the file entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching dl file version preview could not be foundpublic static DLFileVersionPreview findByFileEntryId_Last(long fileEntryId, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator) throws NoSuchFileVersionPreviewException
fileEntryId
- the file entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFileVersionPreviewException
- if a matching dl file version preview could not be foundpublic static DLFileVersionPreview fetchByFileEntryId_Last(long fileEntryId, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator)
fileEntryId
- the file entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching dl file version preview could not be foundpublic static DLFileVersionPreview[] findByFileEntryId_PrevAndNext(long dlFileVersionPreviewId, long fileEntryId, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator) throws NoSuchFileVersionPreviewException
dlFileVersionPreviewId
- the primary key of the current dl file version previewfileEntryId
- the file entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFileVersionPreviewException
- if a dl file version preview with the primary key could not be foundpublic static void removeByFileEntryId(long fileEntryId)
fileEntryId
- the file entry IDpublic static int countByFileEntryId(long fileEntryId)
fileEntryId
- the file entry IDpublic static java.util.List<DLFileVersionPreview> findByFileVersionId(long fileVersionId)
fileVersionId
- the file version IDpublic static java.util.List<DLFileVersionPreview> findByFileVersionId(long fileVersionId, int start, int end)
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
.
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)public static java.util.List<DLFileVersionPreview> findByFileVersionId(long fileVersionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator)
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
.
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 (optionally null
)public static java.util.List<DLFileVersionPreview> findByFileVersionId(long fileVersionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator, boolean useFinderCache)
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
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static DLFileVersionPreview findByFileVersionId_First(long fileVersionId, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator) throws NoSuchFileVersionPreviewException
fileVersionId
- the file version IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFileVersionPreviewException
- if a matching dl file version preview could not be foundpublic static DLFileVersionPreview fetchByFileVersionId_First(long fileVersionId, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator)
fileVersionId
- the file version IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching dl file version preview could not be foundpublic static DLFileVersionPreview findByFileVersionId_Last(long fileVersionId, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator) throws NoSuchFileVersionPreviewException
fileVersionId
- the file version IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFileVersionPreviewException
- if a matching dl file version preview could not be foundpublic static DLFileVersionPreview fetchByFileVersionId_Last(long fileVersionId, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator)
fileVersionId
- the file version IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching dl file version preview could not be foundpublic static DLFileVersionPreview[] findByFileVersionId_PrevAndNext(long dlFileVersionPreviewId, long fileVersionId, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator) throws NoSuchFileVersionPreviewException
dlFileVersionPreviewId
- the primary key of the current dl file version previewfileVersionId
- the file version IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFileVersionPreviewException
- if a dl file version preview with the primary key could not be foundpublic static void removeByFileVersionId(long fileVersionId)
fileVersionId
- the file version IDpublic static int countByFileVersionId(long fileVersionId)
fileVersionId
- the file version IDpublic static DLFileVersionPreview findByF_F(long fileEntryId, long fileVersionId) throws NoSuchFileVersionPreviewException
NoSuchFileVersionPreviewException
if it could not be found.fileEntryId
- the file entry IDfileVersionId
- the file version IDNoSuchFileVersionPreviewException
- if a matching dl file version preview could not be foundpublic static DLFileVersionPreview fetchByF_F(long fileEntryId, long fileVersionId)
null
if it could not be found. Uses the finder cache.fileEntryId
- the file entry IDfileVersionId
- the file version IDnull
if a matching dl file version preview could not be foundpublic static DLFileVersionPreview fetchByF_F(long fileEntryId, long fileVersionId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.fileEntryId
- the file entry IDfileVersionId
- the file version IDuseFinderCache
- whether to use the finder cachenull
if a matching dl file version preview could not be foundpublic static DLFileVersionPreview removeByF_F(long fileEntryId, long fileVersionId) throws NoSuchFileVersionPreviewException
fileEntryId
- the file entry IDfileVersionId
- the file version IDNoSuchFileVersionPreviewException
public static int countByF_F(long fileEntryId, long fileVersionId)
fileEntryId
- the file entry IDfileVersionId
- the file version IDpublic static DLFileVersionPreview findByF_F_P(long fileEntryId, long fileVersionId, int previewStatus) throws NoSuchFileVersionPreviewException
NoSuchFileVersionPreviewException
if it could not be found.fileEntryId
- the file entry IDfileVersionId
- the file version IDpreviewStatus
- the preview statusNoSuchFileVersionPreviewException
- if a matching dl file version preview could not be foundpublic static DLFileVersionPreview fetchByF_F_P(long fileEntryId, long fileVersionId, int previewStatus)
null
if it could not be found. Uses the finder cache.fileEntryId
- the file entry IDfileVersionId
- the file version IDpreviewStatus
- the preview statusnull
if a matching dl file version preview could not be foundpublic static DLFileVersionPreview fetchByF_F_P(long fileEntryId, long fileVersionId, int previewStatus, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.fileEntryId
- the file entry IDfileVersionId
- the file version IDpreviewStatus
- the preview statususeFinderCache
- whether to use the finder cachenull
if a matching dl file version preview could not be foundpublic static DLFileVersionPreview removeByF_F_P(long fileEntryId, long fileVersionId, int previewStatus) throws NoSuchFileVersionPreviewException
fileEntryId
- the file entry IDfileVersionId
- the file version IDpreviewStatus
- the preview statusNoSuchFileVersionPreviewException
public static int countByF_F_P(long fileEntryId, long fileVersionId, int previewStatus)
fileEntryId
- the file entry IDfileVersionId
- the file version IDpreviewStatus
- the preview statuspublic static void cacheResult(DLFileVersionPreview dlFileVersionPreview)
dlFileVersionPreview
- the dl file version previewpublic static void cacheResult(java.util.List<DLFileVersionPreview> dlFileVersionPreviews)
dlFileVersionPreviews
- the dl file version previewspublic static DLFileVersionPreview create(long dlFileVersionPreviewId)
dlFileVersionPreviewId
- the primary key for the new dl file version previewpublic static DLFileVersionPreview remove(long dlFileVersionPreviewId) throws NoSuchFileVersionPreviewException
dlFileVersionPreviewId
- the primary key of the dl file version previewNoSuchFileVersionPreviewException
- if a dl file version preview with the primary key could not be foundpublic static DLFileVersionPreview updateImpl(DLFileVersionPreview dlFileVersionPreview)
public static DLFileVersionPreview findByPrimaryKey(long dlFileVersionPreviewId) throws NoSuchFileVersionPreviewException
NoSuchFileVersionPreviewException
if it could not be found.dlFileVersionPreviewId
- the primary key of the dl file version previewNoSuchFileVersionPreviewException
- if a dl file version preview with the primary key could not be foundpublic static DLFileVersionPreview fetchByPrimaryKey(long dlFileVersionPreviewId)
null
if it could not be found.dlFileVersionPreviewId
- the primary key of the dl file version previewnull
if a dl file version preview with the primary key could not be foundpublic static java.util.List<DLFileVersionPreview> findAll()
public static java.util.List<DLFileVersionPreview> findAll(int start, int end)
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
.
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)public static java.util.List<DLFileVersionPreview> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator)
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
.
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 (optionally null
)public static java.util.List<DLFileVersionPreview> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLFileVersionPreview> orderByComparator, boolean useFinderCache)
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
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static DLFileVersionPreviewPersistence getPersistence()