public class FileVersionPreviewUtil
extends java.lang.Object
com.liferay.document.library.service.persistence.impl.FileVersionPreviewPersistenceImpl
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
FileVersionPreviewPersistence
,
com.liferay.document.library.service.persistence.impl.FileVersionPreviewPersistenceImpl
Constructor and Description |
---|
FileVersionPreviewUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(FileVersionPreview fileVersionPreview)
Caches the file version preview in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<FileVersionPreview> fileVersionPreviews)
Caches the file version previews in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(FileVersionPreview fileVersionPreview) |
static int |
countAll()
Returns the number of file version previews.
|
static int |
countByF_F_P(long fileEntryId,
long fileVersionId,
int previewStatus)
Returns the number of file version previews where fileEntryId = ? and fileVersionId = ? and previewStatus = ?.
|
static int |
countByF_F(long fileEntryId,
long fileVersionId)
Returns the number of file version previews where fileEntryId = ? and fileVersionId = ?.
|
static int |
countByFileEntryId(long fileEntryId)
Returns the number of file version previews where fileEntryId = ?.
|
static int |
countByFileVersionId(long fileVersionId)
Returns the number of file version previews where fileVersionId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static FileVersionPreview |
create(long fileVersionPreviewId)
Creates a new file version preview with the primary key.
|
static FileVersionPreview |
fetchByF_F_P(long fileEntryId,
long fileVersionId,
int previewStatus)
Returns the file version preview where fileEntryId = ? and fileVersionId = ? and previewStatus = ? or returns
null if it could not be found. |
static FileVersionPreview |
fetchByF_F_P(long fileEntryId,
long fileVersionId,
int previewStatus,
boolean retrieveFromCache)
Returns the file version preview where fileEntryId = ? and fileVersionId = ? and previewStatus = ? or returns
null if it could not be found, optionally using the finder cache. |
static FileVersionPreview |
fetchByF_F(long fileEntryId,
long fileVersionId)
Returns the file version preview where fileEntryId = ? and fileVersionId = ? or returns
null if it could not be found. |
static FileVersionPreview |
fetchByF_F(long fileEntryId,
long fileVersionId,
boolean retrieveFromCache)
Returns the file version preview where fileEntryId = ? and fileVersionId = ? or returns
null if it could not be found, optionally using the finder cache. |
static FileVersionPreview |
fetchByFileEntryId_First(long fileEntryId,
com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator)
Returns the first file version preview in the ordered set where fileEntryId = ?.
|
static FileVersionPreview |
fetchByFileEntryId_Last(long fileEntryId,
com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator)
Returns the last file version preview in the ordered set where fileEntryId = ?.
|
static FileVersionPreview |
fetchByFileVersionId_First(long fileVersionId,
com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator)
Returns the first file version preview in the ordered set where fileVersionId = ?.
|
static FileVersionPreview |
fetchByFileVersionId_Last(long fileVersionId,
com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator)
Returns the last file version preview in the ordered set where fileVersionId = ?.
|
static FileVersionPreview |
fetchByPrimaryKey(long fileVersionPreviewId)
Returns the file version preview with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,FileVersionPreview> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<FileVersionPreview> |
findAll()
Returns all the file version previews.
|
static java.util.List<FileVersionPreview> |
findAll(int start,
int end)
Returns a range of all the file version previews.
|
static java.util.List<FileVersionPreview> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator)
Returns an ordered range of all the file version previews.
|
static java.util.List<FileVersionPreview> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the file version previews.
|
static FileVersionPreview |
findByF_F_P(long fileEntryId,
long fileVersionId,
int previewStatus)
Returns the file version preview where fileEntryId = ? and fileVersionId = ? and previewStatus = ? or throws a
NoSuchFileVersionPreviewException if it could not be found. |
static FileVersionPreview |
findByF_F(long fileEntryId,
long fileVersionId)
Returns the file version preview where fileEntryId = ? and fileVersionId = ? or throws a
NoSuchFileVersionPreviewException if it could not be found. |
static FileVersionPreview |
findByFileEntryId_First(long fileEntryId,
com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator)
Returns the first file version preview in the ordered set where fileEntryId = ?.
|
static FileVersionPreview |
findByFileEntryId_Last(long fileEntryId,
com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator)
Returns the last file version preview in the ordered set where fileEntryId = ?.
|
static FileVersionPreview[] |
findByFileEntryId_PrevAndNext(long fileVersionPreviewId,
long fileEntryId,
com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator)
Returns the file version previews before and after the current file version preview in the ordered set where fileEntryId = ?.
|
static java.util.List<FileVersionPreview> |
findByFileEntryId(long fileEntryId)
Returns all the file version previews where fileEntryId = ?.
|
static java.util.List<FileVersionPreview> |
findByFileEntryId(long fileEntryId,
int start,
int end)
Returns a range of all the file version previews where fileEntryId = ?.
|
static java.util.List<FileVersionPreview> |
findByFileEntryId(long fileEntryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator)
Returns an ordered range of all the file version previews where fileEntryId = ?.
|
static java.util.List<FileVersionPreview> |
findByFileEntryId(long fileEntryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the file version previews where fileEntryId = ?.
|
static FileVersionPreview |
findByFileVersionId_First(long fileVersionId,
com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator)
Returns the first file version preview in the ordered set where fileVersionId = ?.
|
static FileVersionPreview |
findByFileVersionId_Last(long fileVersionId,
com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator)
Returns the last file version preview in the ordered set where fileVersionId = ?.
|
static FileVersionPreview[] |
findByFileVersionId_PrevAndNext(long fileVersionPreviewId,
long fileVersionId,
com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator)
Returns the file version previews before and after the current file version preview in the ordered set where fileVersionId = ?.
|
static java.util.List<FileVersionPreview> |
findByFileVersionId(long fileVersionId)
Returns all the file version previews where fileVersionId = ?.
|
static java.util.List<FileVersionPreview> |
findByFileVersionId(long fileVersionId,
int start,
int end)
Returns a range of all the file version previews where fileVersionId = ?.
|
static java.util.List<FileVersionPreview> |
findByFileVersionId(long fileVersionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator)
Returns an ordered range of all the file version previews where fileVersionId = ?.
|
static java.util.List<FileVersionPreview> |
findByFileVersionId(long fileVersionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the file version previews where fileVersionId = ?.
|
static FileVersionPreview |
findByPrimaryKey(long fileVersionPreviewId)
Returns the file version preview with the primary key or throws a
NoSuchFileVersionPreviewException if it could not be found. |
static java.util.List<FileVersionPreview> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<FileVersionPreview> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<FileVersionPreview> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator) |
static FileVersionPreviewPersistence |
getPersistence() |
static FileVersionPreview |
remove(long fileVersionPreviewId)
Removes the file version preview with the primary key from the database.
|
static void |
removeAll()
Removes all the file version previews from the database.
|
static FileVersionPreview |
removeByF_F_P(long fileEntryId,
long fileVersionId,
int previewStatus)
Removes the file version preview where fileEntryId = ? and fileVersionId = ? and previewStatus = ? from the database.
|
static FileVersionPreview |
removeByF_F(long fileEntryId,
long fileVersionId)
Removes the file version preview where fileEntryId = ? and fileVersionId = ? from the database.
|
static void |
removeByFileEntryId(long fileEntryId)
Removes all the file version previews where fileEntryId = ? from the database.
|
static void |
removeByFileVersionId(long fileVersionId)
Removes all the file version previews where fileVersionId = ? from the database.
|
static FileVersionPreview |
update(FileVersionPreview fileVersionPreview) |
static FileVersionPreview |
update(FileVersionPreview fileVersionPreview,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static FileVersionPreview |
updateImpl(FileVersionPreview fileVersionPreview) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(FileVersionPreview fileVersionPreview)
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,FileVersionPreview> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<FileVersionPreview> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<FileVersionPreview> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<FileVersionPreview> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static FileVersionPreview update(FileVersionPreview fileVersionPreview)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static FileVersionPreview update(FileVersionPreview fileVersionPreview, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<FileVersionPreview> findByFileEntryId(long fileEntryId)
fileEntryId
- the file entry IDpublic static java.util.List<FileVersionPreview> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from FileVersionPreviewModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
fileEntryId
- the file entry IDstart
- the lower bound of the range of file version previewsend
- the upper bound of the range of file version previews (not inclusive)public static java.util.List<FileVersionPreview> findByFileEntryId(long fileEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from FileVersionPreviewModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
fileEntryId
- the file entry IDstart
- the lower bound of the range of file version previewsend
- the upper bound of the range of file version previews (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<FileVersionPreview> findByFileEntryId(long fileEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from FileVersionPreviewModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
fileEntryId
- the file entry IDstart
- the lower bound of the range of file version previewsend
- the upper bound of the range of file version previews (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static FileVersionPreview findByFileEntryId_First(long fileEntryId, com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator) throws NoSuchFileVersionPreviewException
fileEntryId
- the file entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFileVersionPreviewException
- if a matching file version preview could not be foundpublic static FileVersionPreview fetchByFileEntryId_First(long fileEntryId, com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator)
fileEntryId
- the file entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching file version preview could not be foundpublic static FileVersionPreview findByFileEntryId_Last(long fileEntryId, com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator) throws NoSuchFileVersionPreviewException
fileEntryId
- the file entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFileVersionPreviewException
- if a matching file version preview could not be foundpublic static FileVersionPreview fetchByFileEntryId_Last(long fileEntryId, com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator)
fileEntryId
- the file entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching file version preview could not be foundpublic static FileVersionPreview[] findByFileEntryId_PrevAndNext(long fileVersionPreviewId, long fileEntryId, com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator) throws NoSuchFileVersionPreviewException
fileVersionPreviewId
- the primary key of the current file version previewfileEntryId
- the file entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFileVersionPreviewException
- if a 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<FileVersionPreview> findByFileVersionId(long fileVersionId)
fileVersionId
- the file version IDpublic static java.util.List<FileVersionPreview> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from FileVersionPreviewModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
fileVersionId
- the file version IDstart
- the lower bound of the range of file version previewsend
- the upper bound of the range of file version previews (not inclusive)public static java.util.List<FileVersionPreview> findByFileVersionId(long fileVersionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from FileVersionPreviewModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
fileVersionId
- the file version IDstart
- the lower bound of the range of file version previewsend
- the upper bound of the range of file version previews (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<FileVersionPreview> findByFileVersionId(long fileVersionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from FileVersionPreviewModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
fileVersionId
- the file version IDstart
- the lower bound of the range of file version previewsend
- the upper bound of the range of file version previews (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static FileVersionPreview findByFileVersionId_First(long fileVersionId, com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator) throws NoSuchFileVersionPreviewException
fileVersionId
- the file version IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFileVersionPreviewException
- if a matching file version preview could not be foundpublic static FileVersionPreview fetchByFileVersionId_First(long fileVersionId, com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator)
fileVersionId
- the file version IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching file version preview could not be foundpublic static FileVersionPreview findByFileVersionId_Last(long fileVersionId, com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator) throws NoSuchFileVersionPreviewException
fileVersionId
- the file version IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFileVersionPreviewException
- if a matching file version preview could not be foundpublic static FileVersionPreview fetchByFileVersionId_Last(long fileVersionId, com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator)
fileVersionId
- the file version IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching file version preview could not be foundpublic static FileVersionPreview[] findByFileVersionId_PrevAndNext(long fileVersionPreviewId, long fileVersionId, com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator) throws NoSuchFileVersionPreviewException
fileVersionPreviewId
- the primary key of the current file version previewfileVersionId
- the file version IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFileVersionPreviewException
- if a 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 FileVersionPreview 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 file version preview could not be foundpublic static FileVersionPreview 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 file version preview could not be foundpublic static FileVersionPreview fetchByF_F(long fileEntryId, long fileVersionId, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.fileEntryId
- the file entry IDfileVersionId
- the file version IDretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching file version preview could not be foundpublic static FileVersionPreview 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 FileVersionPreview 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 file version preview could not be foundpublic static FileVersionPreview 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 file version preview could not be foundpublic static FileVersionPreview fetchByF_F_P(long fileEntryId, long fileVersionId, int previewStatus, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.fileEntryId
- the file entry IDfileVersionId
- the file version IDpreviewStatus
- the preview statusretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching file version preview could not be foundpublic static FileVersionPreview 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(FileVersionPreview fileVersionPreview)
fileVersionPreview
- the file version previewpublic static void cacheResult(java.util.List<FileVersionPreview> fileVersionPreviews)
fileVersionPreviews
- the file version previewspublic static FileVersionPreview create(long fileVersionPreviewId)
fileVersionPreviewId
- the primary key for the new file version previewpublic static FileVersionPreview remove(long fileVersionPreviewId) throws NoSuchFileVersionPreviewException
fileVersionPreviewId
- the primary key of the file version previewNoSuchFileVersionPreviewException
- if a file version preview with the primary key could not be foundpublic static FileVersionPreview updateImpl(FileVersionPreview fileVersionPreview)
public static FileVersionPreview findByPrimaryKey(long fileVersionPreviewId) throws NoSuchFileVersionPreviewException
NoSuchFileVersionPreviewException
if it could not be found.fileVersionPreviewId
- the primary key of the file version previewNoSuchFileVersionPreviewException
- if a file version preview with the primary key could not be foundpublic static FileVersionPreview fetchByPrimaryKey(long fileVersionPreviewId)
null
if it could not be found.fileVersionPreviewId
- the primary key of the file version previewnull
if a file version preview with the primary key could not be foundpublic static java.util.List<FileVersionPreview> findAll()
public static java.util.List<FileVersionPreview> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from FileVersionPreviewModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of file version previewsend
- the upper bound of the range of file version previews (not inclusive)public static java.util.List<FileVersionPreview> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from FileVersionPreviewModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of file version previewsend
- the upper bound of the range of file version previews (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<FileVersionPreview> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<FileVersionPreview> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from FileVersionPreviewModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of file version previewsend
- the upper bound of the range of file version previews (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static FileVersionPreviewPersistence getPersistence()