|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.persistence.impl.BasePersistenceImpl<DLFileVersion> com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistenceImpl
public class DLFileVersionPersistenceImpl
The persistence implementation for the document library file version service.
Caching information and settings can be found in portal.properties
DLFileVersionPersistence
,
DLFileVersionUtil
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
---|
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR |
Constructor Summary | |
---|---|
DLFileVersionPersistenceImpl()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Initializes the document library file version persistence. |
void |
cacheResult(DLFileVersion dlFileVersion)
Caches the document library file version in the entity cache if it is enabled. |
void |
cacheResult(List<DLFileVersion> dlFileVersions)
Caches the document library file versions in the entity cache if it is enabled. |
protected void |
cacheUniqueFindersCache(DLFileVersion dlFileVersion)
|
void |
clearCache()
Clears the cache for all document library file versions. |
void |
clearCache(DLFileVersion dlFileVersion)
Clears the cache for the document library file version. |
void |
clearCache(List<DLFileVersion> dlFileVersions)
Clears the cache for a List instances of this model. |
protected void |
clearUniqueFindersCache(DLFileVersion dlFileVersion)
|
int |
countAll()
Returns the number of document library file versions. |
int |
countByF_S(long fileEntryId,
int status)
Returns the number of document library file versions where fileEntryId = ? and status = ?. |
int |
countByF_V(long fileEntryId,
String version)
Returns the number of document library file versions where fileEntryId = ? and version = ?. |
int |
countByFileEntryId(long fileEntryId)
Returns the number of document library file versions where fileEntryId = ?. |
int |
countByG_F_S(long groupId,
long folderId,
int status)
Returns the number of document library file versions where groupId = ? and folderId = ? and status = ?. |
int |
countByG_F_T_V(long groupId,
long folderId,
String title,
String version)
Returns the number of document library file versions where groupId = ? and folderId = ? and title = ? and version = ?. |
int |
countByMimeType(String mimeType)
Returns the number of document library file versions where mimeType = ?. |
int |
countByUUID_G(String uuid,
long groupId)
Returns the number of document library file versions where uuid = ? and groupId = ?. |
int |
countByUuid(String uuid)
Returns the number of document library file versions where uuid = ?. |
DLFileVersion |
create(long fileVersionId)
Creates a new document library file version with the primary key. |
void |
destroy()
|
DLFileVersion |
fetchByF_S_First(long fileEntryId,
int status,
OrderByComparator orderByComparator)
Returns the first document library file version in the ordered set where fileEntryId = ? and status = ?. |
DLFileVersion |
fetchByF_S_Last(long fileEntryId,
int status,
OrderByComparator orderByComparator)
Returns the last document library file version in the ordered set where fileEntryId = ? and status = ?. |
DLFileVersion |
fetchByF_V(long fileEntryId,
String version)
Returns the document library file version where fileEntryId = ? and version = ? or returns null if it could not be found. |
DLFileVersion |
fetchByF_V(long fileEntryId,
String version,
boolean retrieveFromCache)
Returns the document library file version where fileEntryId = ? and version = ? or returns null if it could not be found, optionally using the finder cache. |
DLFileVersion |
fetchByFileEntryId_First(long fileEntryId,
OrderByComparator orderByComparator)
Returns the first document library file version in the ordered set where fileEntryId = ?. |
DLFileVersion |
fetchByFileEntryId_Last(long fileEntryId,
OrderByComparator orderByComparator)
Returns the last document library file version in the ordered set where fileEntryId = ?. |
DLFileVersion |
fetchByG_F_S_First(long groupId,
long folderId,
int status,
OrderByComparator orderByComparator)
Returns the first document library file version in the ordered set where groupId = ? and folderId = ? and status = ?. |
DLFileVersion |
fetchByG_F_S_Last(long groupId,
long folderId,
int status,
OrderByComparator orderByComparator)
Returns the last document library file version in the ordered set where groupId = ? and folderId = ? and status = ?. |
DLFileVersion |
fetchByG_F_T_V_First(long groupId,
long folderId,
String title,
String version,
OrderByComparator orderByComparator)
Returns the first document library file version in the ordered set where groupId = ? and folderId = ? and title = ? and version = ?. |
DLFileVersion |
fetchByG_F_T_V_Last(long groupId,
long folderId,
String title,
String version,
OrderByComparator orderByComparator)
Returns the last document library file version in the ordered set where groupId = ? and folderId = ? and title = ? and version = ?. |
DLFileVersion |
fetchByMimeType_First(String mimeType,
OrderByComparator orderByComparator)
Returns the first document library file version in the ordered set where mimeType = ?. |
DLFileVersion |
fetchByMimeType_Last(String mimeType,
OrderByComparator orderByComparator)
Returns the last document library file version in the ordered set where mimeType = ?. |
DLFileVersion |
fetchByPrimaryKey(long fileVersionId)
Returns the document library file version with the primary key or returns null if it could not be found. |
DLFileVersion |
fetchByPrimaryKey(Serializable primaryKey)
Returns the document library file version with the primary key or returns null if it could not be found. |
DLFileVersion |
fetchByUuid_First(String uuid,
OrderByComparator orderByComparator)
Returns the first document library file version in the ordered set where uuid = ?. |
DLFileVersion |
fetchByUUID_G(String uuid,
long groupId)
Returns the document library file version where uuid = ? and groupId = ? or returns null if it could not be found. |
DLFileVersion |
fetchByUUID_G(String uuid,
long groupId,
boolean retrieveFromCache)
Returns the document library file version where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache. |
DLFileVersion |
fetchByUuid_Last(String uuid,
OrderByComparator orderByComparator)
Returns the last document library file version in the ordered set where uuid = ?. |
List<DLFileVersion> |
findAll()
Returns all the document library file versions. |
List<DLFileVersion> |
findAll(int start,
int end)
Returns a range of all the document library file versions. |
List<DLFileVersion> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the document library file versions. |
DLFileVersion |
findByF_S_First(long fileEntryId,
int status,
OrderByComparator orderByComparator)
Returns the first document library file version in the ordered set where fileEntryId = ? and status = ?. |
DLFileVersion |
findByF_S_Last(long fileEntryId,
int status,
OrderByComparator orderByComparator)
Returns the last document library file version in the ordered set where fileEntryId = ? and status = ?. |
DLFileVersion[] |
findByF_S_PrevAndNext(long fileVersionId,
long fileEntryId,
int status,
OrderByComparator orderByComparator)
Returns the document library file versions before and after the current document library file version in the ordered set where fileEntryId = ? and status = ?. |
List<DLFileVersion> |
findByF_S(long fileEntryId,
int status)
Returns all the document library file versions where fileEntryId = ? and status = ?. |
List<DLFileVersion> |
findByF_S(long fileEntryId,
int status,
int start,
int end)
Returns a range of all the document library file versions where fileEntryId = ? and status = ?. |
List<DLFileVersion> |
findByF_S(long fileEntryId,
int status,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the document library file versions where fileEntryId = ? and status = ?. |
DLFileVersion |
findByF_V(long fileEntryId,
String version)
Returns the document library file version where fileEntryId = ? and version = ? or throws a NoSuchFileVersionException if it could not be found. |
DLFileVersion |
findByFileEntryId_First(long fileEntryId,
OrderByComparator orderByComparator)
Returns the first document library file version in the ordered set where fileEntryId = ?. |
DLFileVersion |
findByFileEntryId_Last(long fileEntryId,
OrderByComparator orderByComparator)
Returns the last document library file version in the ordered set where fileEntryId = ?. |
DLFileVersion[] |
findByFileEntryId_PrevAndNext(long fileVersionId,
long fileEntryId,
OrderByComparator orderByComparator)
Returns the document library file versions before and after the current document library file version in the ordered set where fileEntryId = ?. |
List<DLFileVersion> |
findByFileEntryId(long fileEntryId)
Returns all the document library file versions where fileEntryId = ?. |
List<DLFileVersion> |
findByFileEntryId(long fileEntryId,
int start,
int end)
Returns a range of all the document library file versions where fileEntryId = ?. |
List<DLFileVersion> |
findByFileEntryId(long fileEntryId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the document library file versions where fileEntryId = ?. |
DLFileVersion |
findByG_F_S_First(long groupId,
long folderId,
int status,
OrderByComparator orderByComparator)
Returns the first document library file version in the ordered set where groupId = ? and folderId = ? and status = ?. |
DLFileVersion |
findByG_F_S_Last(long groupId,
long folderId,
int status,
OrderByComparator orderByComparator)
Returns the last document library file version in the ordered set where groupId = ? and folderId = ? and status = ?. |
DLFileVersion[] |
findByG_F_S_PrevAndNext(long fileVersionId,
long groupId,
long folderId,
int status,
OrderByComparator orderByComparator)
Returns the document library file versions before and after the current document library file version in the ordered set where groupId = ? and folderId = ? and status = ?. |
List<DLFileVersion> |
findByG_F_S(long groupId,
long folderId,
int status)
Returns all the document library file versions where groupId = ? and folderId = ? and status = ?. |
List<DLFileVersion> |
findByG_F_S(long groupId,
long folderId,
int status,
int start,
int end)
Returns a range of all the document library file versions where groupId = ? and folderId = ? and status = ?. |
List<DLFileVersion> |
findByG_F_S(long groupId,
long folderId,
int status,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the document library file versions where groupId = ? and folderId = ? and status = ?. |
DLFileVersion |
findByG_F_T_V_First(long groupId,
long folderId,
String title,
String version,
OrderByComparator orderByComparator)
Returns the first document library file version in the ordered set where groupId = ? and folderId = ? and title = ? and version = ?. |
DLFileVersion |
findByG_F_T_V_Last(long groupId,
long folderId,
String title,
String version,
OrderByComparator orderByComparator)
Returns the last document library file version in the ordered set where groupId = ? and folderId = ? and title = ? and version = ?. |
DLFileVersion[] |
findByG_F_T_V_PrevAndNext(long fileVersionId,
long groupId,
long folderId,
String title,
String version,
OrderByComparator orderByComparator)
Returns the document library file versions before and after the current document library file version in the ordered set where groupId = ? and folderId = ? and title = ? and version = ?. |
List<DLFileVersion> |
findByG_F_T_V(long groupId,
long folderId,
String title,
String version)
Returns all the document library file versions where groupId = ? and folderId = ? and title = ? and version = ?. |
List<DLFileVersion> |
findByG_F_T_V(long groupId,
long folderId,
String title,
String version,
int start,
int end)
Returns a range of all the document library file versions where groupId = ? and folderId = ? and title = ? and version = ?. |
List<DLFileVersion> |
findByG_F_T_V(long groupId,
long folderId,
String title,
String version,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the document library file versions where groupId = ? and folderId = ? and title = ? and version = ?. |
DLFileVersion |
findByMimeType_First(String mimeType,
OrderByComparator orderByComparator)
Returns the first document library file version in the ordered set where mimeType = ?. |
DLFileVersion |
findByMimeType_Last(String mimeType,
OrderByComparator orderByComparator)
Returns the last document library file version in the ordered set where mimeType = ?. |
DLFileVersion[] |
findByMimeType_PrevAndNext(long fileVersionId,
String mimeType,
OrderByComparator orderByComparator)
Returns the document library file versions before and after the current document library file version in the ordered set where mimeType = ?. |
List<DLFileVersion> |
findByMimeType(String mimeType)
Returns all the document library file versions where mimeType = ?. |
List<DLFileVersion> |
findByMimeType(String mimeType,
int start,
int end)
Returns a range of all the document library file versions where mimeType = ?. |
List<DLFileVersion> |
findByMimeType(String mimeType,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the document library file versions where mimeType = ?. |
DLFileVersion |
findByPrimaryKey(long fileVersionId)
Returns the document library file version with the primary key or throws a NoSuchFileVersionException if it could not be found. |
DLFileVersion |
findByPrimaryKey(Serializable primaryKey)
Returns the document library file version with the primary key or throws a NoSuchModelException if it could not be found. |
DLFileVersion |
findByUuid_First(String uuid,
OrderByComparator orderByComparator)
Returns the first document library file version in the ordered set where uuid = ?. |
DLFileVersion |
findByUUID_G(String uuid,
long groupId)
Returns the document library file version where uuid = ? and groupId = ? or throws a NoSuchFileVersionException if it could not be found. |
DLFileVersion |
findByUuid_Last(String uuid,
OrderByComparator orderByComparator)
Returns the last document library file version in the ordered set where uuid = ?. |
DLFileVersion[] |
findByUuid_PrevAndNext(long fileVersionId,
String uuid,
OrderByComparator orderByComparator)
Returns the document library file versions before and after the current document library file version in the ordered set where uuid = ?. |
List<DLFileVersion> |
findByUuid(String uuid)
Returns all the document library file versions where uuid = ?. |
List<DLFileVersion> |
findByUuid(String uuid,
int start,
int end)
Returns a range of all the document library file versions where uuid = ?. |
List<DLFileVersion> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the document library file versions where uuid = ?. |
protected DLFileVersion |
getByF_S_PrevAndNext(Session session,
DLFileVersion dlFileVersion,
long fileEntryId,
int status,
OrderByComparator orderByComparator,
boolean previous)
|
protected DLFileVersion |
getByFileEntryId_PrevAndNext(Session session,
DLFileVersion dlFileVersion,
long fileEntryId,
OrderByComparator orderByComparator,
boolean previous)
|
protected DLFileVersion |
getByG_F_S_PrevAndNext(Session session,
DLFileVersion dlFileVersion,
long groupId,
long folderId,
int status,
OrderByComparator orderByComparator,
boolean previous)
|
protected DLFileVersion |
getByG_F_T_V_PrevAndNext(Session session,
DLFileVersion dlFileVersion,
long groupId,
long folderId,
String title,
String version,
OrderByComparator orderByComparator,
boolean previous)
|
protected DLFileVersion |
getByMimeType_PrevAndNext(Session session,
DLFileVersion dlFileVersion,
String mimeType,
OrderByComparator orderByComparator,
boolean previous)
|
protected DLFileVersion |
getByUuid_PrevAndNext(Session session,
DLFileVersion dlFileVersion,
String uuid,
OrderByComparator orderByComparator,
boolean previous)
|
DLFileVersion |
remove(long fileVersionId)
Removes the document library file version with the primary key from the database. |
DLFileVersion |
remove(Serializable primaryKey)
Removes the document library file version with the primary key from the database. |
void |
removeAll()
Removes all the document library file versions from the database. |
void |
removeByF_S(long fileEntryId,
int status)
Removes all the document library file versions where fileEntryId = ? and status = ? from the database. |
DLFileVersion |
removeByF_V(long fileEntryId,
String version)
Removes the document library file version where fileEntryId = ? and version = ? from the database. |
void |
removeByFileEntryId(long fileEntryId)
Removes all the document library file versions where fileEntryId = ? from the database. |
void |
removeByG_F_S(long groupId,
long folderId,
int status)
Removes all the document library file versions where groupId = ? and folderId = ? and status = ? from the database. |
void |
removeByG_F_T_V(long groupId,
long folderId,
String title,
String version)
Removes all the document library file versions where groupId = ? and folderId = ? and title = ? and version = ? from the database. |
void |
removeByMimeType(String mimeType)
Removes all the document library file versions where mimeType = ? from the database. |
DLFileVersion |
removeByUUID_G(String uuid,
long groupId)
Removes the document library file version where uuid = ? and groupId = ? from the database. |
void |
removeByUuid(String uuid)
Removes all the document library file versions where uuid = ? from the database. |
protected DLFileVersion |
removeImpl(DLFileVersion dlFileVersion)
Removes the model instance from the database. |
protected DLFileVersion |
toUnwrappedModel(DLFileVersion dlFileVersion)
|
DLFileVersion |
updateImpl(DLFileVersion dlFileVersion,
boolean merge)
Updates the model instance in the database or adds it if it does not yet exist. |
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
---|
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getClassLoader, getDataSource, getDB, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
---|
closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update |
Field Detail |
---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID
public static final FinderPath FINDER_PATH_COUNT_BY_UUID
public static final FinderPath FINDER_PATH_FETCH_BY_UUID_G
public static final FinderPath FINDER_PATH_COUNT_BY_UUID_G
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_FILEENTRYID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_FILEENTRYID
public static final FinderPath FINDER_PATH_COUNT_BY_FILEENTRYID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_MIMETYPE
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_MIMETYPE
public static final FinderPath FINDER_PATH_COUNT_BY_MIMETYPE
public static final FinderPath FINDER_PATH_FETCH_BY_F_V
public static final FinderPath FINDER_PATH_COUNT_BY_F_V
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_F_S
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_F_S
public static final FinderPath FINDER_PATH_COUNT_BY_F_S
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_F_S
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_F_S
public static final FinderPath FINDER_PATH_COUNT_BY_G_F_S
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_F_T_V
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_F_T_V
public static final FinderPath FINDER_PATH_COUNT_BY_G_F_T_V
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
@BeanReference(type=DLContentPersistence.class) protected DLContentPersistence dlContentPersistence
@BeanReference(type=DLFileEntryPersistence.class) protected DLFileEntryPersistence dlFileEntryPersistence
@BeanReference(type=DLFileEntryMetadataPersistence.class) protected DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence
@BeanReference(type=DLFileEntryTypePersistence.class) protected DLFileEntryTypePersistence dlFileEntryTypePersistence
@BeanReference(type=DLFileRankPersistence.class) protected DLFileRankPersistence dlFileRankPersistence
@BeanReference(type=DLFileShortcutPersistence.class) protected DLFileShortcutPersistence dlFileShortcutPersistence
@BeanReference(type=DLFileVersionPersistence.class) protected DLFileVersionPersistence dlFileVersionPersistence
@BeanReference(type=DLFolderPersistence.class) protected DLFolderPersistence dlFolderPersistence
@BeanReference(type=DLSyncPersistence.class) protected DLSyncPersistence dlSyncPersistence
@BeanReference(type=ResourcePersistence.class) protected ResourcePersistence resourcePersistence
@BeanReference(type=UserPersistence.class) protected UserPersistence userPersistence
Constructor Detail |
---|
public DLFileVersionPersistenceImpl()
Method Detail |
---|
public void cacheResult(DLFileVersion dlFileVersion)
cacheResult
in interface DLFileVersionPersistence
dlFileVersion
- the document library file versionpublic void cacheResult(List<DLFileVersion> dlFileVersions)
cacheResult
in interface DLFileVersionPersistence
dlFileVersions
- the document library file versionspublic void clearCache()
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<DLFileVersion>
clearCache
in class BasePersistenceImpl<DLFileVersion>
public void clearCache(DLFileVersion dlFileVersion)
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<DLFileVersion>
clearCache
in class BasePersistenceImpl<DLFileVersion>
dlFileVersion
- the instance of this model to clear the cache forpublic void clearCache(List<DLFileVersion> dlFileVersions)
BasePersistence
The EntityCache
and FinderCache
are both cleared by this
method.
clearCache
in interface BasePersistence<DLFileVersion>
clearCache
in class BasePersistenceImpl<DLFileVersion>
dlFileVersions
- the List instances of this model to clear the cache forprotected void cacheUniqueFindersCache(DLFileVersion dlFileVersion)
protected void clearUniqueFindersCache(DLFileVersion dlFileVersion)
public DLFileVersion create(long fileVersionId)
create
in interface DLFileVersionPersistence
fileVersionId
- the primary key for the new document library file version
public DLFileVersion remove(long fileVersionId) throws NoSuchFileVersionException, SystemException
remove
in interface DLFileVersionPersistence
fileVersionId
- the primary key of the document library file version
NoSuchFileVersionException
- if a document library file version with the primary key could not be found
SystemException
- if a system exception occurredpublic DLFileVersion remove(Serializable primaryKey) throws NoSuchFileVersionException, SystemException
remove
in interface BasePersistence<DLFileVersion>
remove
in class BasePersistenceImpl<DLFileVersion>
primaryKey
- the primary key of the document library file version
NoSuchFileVersionException
- if a document library file version with the primary key could not be found
SystemException
- if a system exception occurredprotected DLFileVersion removeImpl(DLFileVersion dlFileVersion) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.update(BaseModel,
boolean)
depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl
in class BasePersistenceImpl<DLFileVersion>
dlFileVersion
- the model instance to remove
SystemException
- if a system exception occurredpublic DLFileVersion updateImpl(DLFileVersion dlFileVersion, boolean merge) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.remove(BaseModel)
depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl
in interface DLFileVersionPersistence
updateImpl
in class BasePersistenceImpl<DLFileVersion>
dlFileVersion
- the model instance to updatemerge
- whether to merge the model instance with the current
session. See BatchSession.update(
com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean)
for an explanation.
SystemException
- if a system exception occurredprotected DLFileVersion toUnwrappedModel(DLFileVersion dlFileVersion)
public DLFileVersion findByPrimaryKey(Serializable primaryKey) throws NoSuchModelException, SystemException
NoSuchModelException
if it could not be found.
findByPrimaryKey
in interface BasePersistence<DLFileVersion>
findByPrimaryKey
in class BasePersistenceImpl<DLFileVersion>
primaryKey
- the primary key of the document library file version
NoSuchModelException
- if a document library file version with the primary key could not be found
SystemException
- if a system exception occurredpublic DLFileVersion findByPrimaryKey(long fileVersionId) throws NoSuchFileVersionException, SystemException
NoSuchFileVersionException
if it could not be found.
findByPrimaryKey
in interface DLFileVersionPersistence
fileVersionId
- the primary key of the document library file version
NoSuchFileVersionException
- if a document library file version with the primary key could not be found
SystemException
- if a system exception occurredpublic DLFileVersion fetchByPrimaryKey(Serializable primaryKey) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface BasePersistence<DLFileVersion>
fetchByPrimaryKey
in class BasePersistenceImpl<DLFileVersion>
primaryKey
- the primary key of the document library file version
null
if a document library file version with the primary key could not be found
SystemException
- if a system exception occurredpublic DLFileVersion fetchByPrimaryKey(long fileVersionId) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface DLFileVersionPersistence
fileVersionId
- the primary key of the document library file version
null
if a document library file version with the primary key could not be found
SystemException
- if a system exception occurredpublic List<DLFileVersion> findByUuid(String uuid) throws SystemException
findByUuid
in interface DLFileVersionPersistence
uuid
- the uuid
SystemException
- if a system exception occurredpublic List<DLFileVersion> findByUuid(String uuid, int start, int end) throws SystemException
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.
findByUuid
in interface DLFileVersionPersistence
uuid
- the uuidstart
- the lower bound of the range of document library file versionsend
- the upper bound of the range of document library file versions (not inclusive)
SystemException
- if a system exception occurredpublic List<DLFileVersion> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByUuid
in interface DLFileVersionPersistence
uuid
- the uuidstart
- the lower bound of the range of document library file versionsend
- the upper bound of the range of document library file versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic DLFileVersion findByUuid_First(String uuid, OrderByComparator orderByComparator) throws NoSuchFileVersionException, SystemException
findByUuid_First
in interface DLFileVersionPersistence
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileVersionException
- if a matching document library file version could not be found
SystemException
- if a system exception occurredpublic DLFileVersion fetchByUuid_First(String uuid, OrderByComparator orderByComparator) throws SystemException
fetchByUuid_First
in interface DLFileVersionPersistence
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library file version could not be found
SystemException
- if a system exception occurredpublic DLFileVersion findByUuid_Last(String uuid, OrderByComparator orderByComparator) throws NoSuchFileVersionException, SystemException
findByUuid_Last
in interface DLFileVersionPersistence
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileVersionException
- if a matching document library file version could not be found
SystemException
- if a system exception occurredpublic DLFileVersion fetchByUuid_Last(String uuid, OrderByComparator orderByComparator) throws SystemException
fetchByUuid_Last
in interface DLFileVersionPersistence
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library file version could not be found
SystemException
- if a system exception occurredpublic DLFileVersion[] findByUuid_PrevAndNext(long fileVersionId, String uuid, OrderByComparator orderByComparator) throws NoSuchFileVersionException, SystemException
findByUuid_PrevAndNext
in interface DLFileVersionPersistence
fileVersionId
- the primary key of the current document library file versionuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileVersionException
- if a document library file version with the primary key could not be found
SystemException
- if a system exception occurredprotected DLFileVersion getByUuid_PrevAndNext(Session session, DLFileVersion dlFileVersion, String uuid, OrderByComparator orderByComparator, boolean previous)
public DLFileVersion findByUUID_G(String uuid, long groupId) throws NoSuchFileVersionException, SystemException
NoSuchFileVersionException
if it could not be found.
findByUUID_G
in interface DLFileVersionPersistence
uuid
- the uuidgroupId
- the group ID
NoSuchFileVersionException
- if a matching document library file version could not be found
SystemException
- if a system exception occurredpublic DLFileVersion fetchByUUID_G(String uuid, long groupId) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByUUID_G
in interface DLFileVersionPersistence
uuid
- the uuidgroupId
- the group ID
null
if a matching document library file version could not be found
SystemException
- if a system exception occurredpublic DLFileVersion fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByUUID_G
in interface DLFileVersionPersistence
uuid
- the uuidgroupId
- the group IDretrieveFromCache
- whether to use the finder cache
null
if a matching document library file version could not be found
SystemException
- if a system exception occurredpublic List<DLFileVersion> findByFileEntryId(long fileEntryId) throws SystemException
findByFileEntryId
in interface DLFileVersionPersistence
fileEntryId
- the file entry ID
SystemException
- if a system exception occurredpublic List<DLFileVersion> findByFileEntryId(long fileEntryId, int start, int end) throws SystemException
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.
findByFileEntryId
in interface DLFileVersionPersistence
fileEntryId
- the file entry IDstart
- the lower bound of the range of document library file versionsend
- the upper bound of the range of document library file versions (not inclusive)
SystemException
- if a system exception occurredpublic List<DLFileVersion> findByFileEntryId(long fileEntryId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByFileEntryId
in interface DLFileVersionPersistence
fileEntryId
- the file entry IDstart
- the lower bound of the range of document library file versionsend
- the upper bound of the range of document library file versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic DLFileVersion findByFileEntryId_First(long fileEntryId, OrderByComparator orderByComparator) throws NoSuchFileVersionException, SystemException
findByFileEntryId_First
in interface DLFileVersionPersistence
fileEntryId
- the file entry IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileVersionException
- if a matching document library file version could not be found
SystemException
- if a system exception occurredpublic DLFileVersion fetchByFileEntryId_First(long fileEntryId, OrderByComparator orderByComparator) throws SystemException
fetchByFileEntryId_First
in interface DLFileVersionPersistence
fileEntryId
- the file entry IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library file version could not be found
SystemException
- if a system exception occurredpublic DLFileVersion findByFileEntryId_Last(long fileEntryId, OrderByComparator orderByComparator) throws NoSuchFileVersionException, SystemException
findByFileEntryId_Last
in interface DLFileVersionPersistence
fileEntryId
- the file entry IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileVersionException
- if a matching document library file version could not be found
SystemException
- if a system exception occurredpublic DLFileVersion fetchByFileEntryId_Last(long fileEntryId, OrderByComparator orderByComparator) throws SystemException
fetchByFileEntryId_Last
in interface DLFileVersionPersistence
fileEntryId
- the file entry IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library file version could not be found
SystemException
- if a system exception occurredpublic DLFileVersion[] findByFileEntryId_PrevAndNext(long fileVersionId, long fileEntryId, OrderByComparator orderByComparator) throws NoSuchFileVersionException, SystemException
findByFileEntryId_PrevAndNext
in interface DLFileVersionPersistence
fileVersionId
- the primary key of the current document library file versionfileEntryId
- the file entry IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileVersionException
- if a document library file version with the primary key could not be found
SystemException
- if a system exception occurredprotected DLFileVersion getByFileEntryId_PrevAndNext(Session session, DLFileVersion dlFileVersion, long fileEntryId, OrderByComparator orderByComparator, boolean previous)
public List<DLFileVersion> findByMimeType(String mimeType) throws SystemException
findByMimeType
in interface DLFileVersionPersistence
mimeType
- the mime type
SystemException
- if a system exception occurredpublic List<DLFileVersion> findByMimeType(String mimeType, int start, int end) throws SystemException
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.
findByMimeType
in interface DLFileVersionPersistence
mimeType
- the mime typestart
- the lower bound of the range of document library file versionsend
- the upper bound of the range of document library file versions (not inclusive)
SystemException
- if a system exception occurredpublic List<DLFileVersion> findByMimeType(String mimeType, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByMimeType
in interface DLFileVersionPersistence
mimeType
- the mime typestart
- the lower bound of the range of document library file versionsend
- the upper bound of the range of document library file versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic DLFileVersion findByMimeType_First(String mimeType, OrderByComparator orderByComparator) throws NoSuchFileVersionException, SystemException
findByMimeType_First
in interface DLFileVersionPersistence
mimeType
- the mime typeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileVersionException
- if a matching document library file version could not be found
SystemException
- if a system exception occurredpublic DLFileVersion fetchByMimeType_First(String mimeType, OrderByComparator orderByComparator) throws SystemException
fetchByMimeType_First
in interface DLFileVersionPersistence
mimeType
- the mime typeorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library file version could not be found
SystemException
- if a system exception occurredpublic DLFileVersion findByMimeType_Last(String mimeType, OrderByComparator orderByComparator) throws NoSuchFileVersionException, SystemException
findByMimeType_Last
in interface DLFileVersionPersistence
mimeType
- the mime typeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileVersionException
- if a matching document library file version could not be found
SystemException
- if a system exception occurredpublic DLFileVersion fetchByMimeType_Last(String mimeType, OrderByComparator orderByComparator) throws SystemException
fetchByMimeType_Last
in interface DLFileVersionPersistence
mimeType
- the mime typeorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library file version could not be found
SystemException
- if a system exception occurredpublic DLFileVersion[] findByMimeType_PrevAndNext(long fileVersionId, String mimeType, OrderByComparator orderByComparator) throws NoSuchFileVersionException, SystemException
findByMimeType_PrevAndNext
in interface DLFileVersionPersistence
fileVersionId
- the primary key of the current document library file versionmimeType
- the mime typeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileVersionException
- if a document library file version with the primary key could not be found
SystemException
- if a system exception occurredprotected DLFileVersion getByMimeType_PrevAndNext(Session session, DLFileVersion dlFileVersion, String mimeType, OrderByComparator orderByComparator, boolean previous)
public DLFileVersion findByF_V(long fileEntryId, String version) throws NoSuchFileVersionException, SystemException
NoSuchFileVersionException
if it could not be found.
findByF_V
in interface DLFileVersionPersistence
fileEntryId
- the file entry IDversion
- the version
NoSuchFileVersionException
- if a matching document library file version could not be found
SystemException
- if a system exception occurredpublic DLFileVersion fetchByF_V(long fileEntryId, String version) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByF_V
in interface DLFileVersionPersistence
fileEntryId
- the file entry IDversion
- the version
null
if a matching document library file version could not be found
SystemException
- if a system exception occurredpublic DLFileVersion fetchByF_V(long fileEntryId, String version, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByF_V
in interface DLFileVersionPersistence
fileEntryId
- the file entry IDversion
- the versionretrieveFromCache
- whether to use the finder cache
null
if a matching document library file version could not be found
SystemException
- if a system exception occurredpublic List<DLFileVersion> findByF_S(long fileEntryId, int status) throws SystemException
findByF_S
in interface DLFileVersionPersistence
fileEntryId
- the file entry IDstatus
- the status
SystemException
- if a system exception occurredpublic List<DLFileVersion> findByF_S(long fileEntryId, int status, int start, int end) throws SystemException
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.
findByF_S
in interface DLFileVersionPersistence
fileEntryId
- the file entry IDstatus
- the statusstart
- the lower bound of the range of document library file versionsend
- the upper bound of the range of document library file versions (not inclusive)
SystemException
- if a system exception occurredpublic List<DLFileVersion> findByF_S(long fileEntryId, int status, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByF_S
in interface DLFileVersionPersistence
fileEntryId
- the file entry IDstatus
- the statusstart
- the lower bound of the range of document library file versionsend
- the upper bound of the range of document library file versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic DLFileVersion findByF_S_First(long fileEntryId, int status, OrderByComparator orderByComparator) throws NoSuchFileVersionException, SystemException
findByF_S_First
in interface DLFileVersionPersistence
fileEntryId
- the file entry IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileVersionException
- if a matching document library file version could not be found
SystemException
- if a system exception occurredpublic DLFileVersion fetchByF_S_First(long fileEntryId, int status, OrderByComparator orderByComparator) throws SystemException
fetchByF_S_First
in interface DLFileVersionPersistence
fileEntryId
- the file entry IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library file version could not be found
SystemException
- if a system exception occurredpublic DLFileVersion findByF_S_Last(long fileEntryId, int status, OrderByComparator orderByComparator) throws NoSuchFileVersionException, SystemException
findByF_S_Last
in interface DLFileVersionPersistence
fileEntryId
- the file entry IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileVersionException
- if a matching document library file version could not be found
SystemException
- if a system exception occurredpublic DLFileVersion fetchByF_S_Last(long fileEntryId, int status, OrderByComparator orderByComparator) throws SystemException
fetchByF_S_Last
in interface DLFileVersionPersistence
fileEntryId
- the file entry IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library file version could not be found
SystemException
- if a system exception occurredpublic DLFileVersion[] findByF_S_PrevAndNext(long fileVersionId, long fileEntryId, int status, OrderByComparator orderByComparator) throws NoSuchFileVersionException, SystemException
findByF_S_PrevAndNext
in interface DLFileVersionPersistence
fileVersionId
- the primary key of the current document library file versionfileEntryId
- the file entry IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileVersionException
- if a document library file version with the primary key could not be found
SystemException
- if a system exception occurredprotected DLFileVersion getByF_S_PrevAndNext(Session session, DLFileVersion dlFileVersion, long fileEntryId, int status, OrderByComparator orderByComparator, boolean previous)
public List<DLFileVersion> findByG_F_S(long groupId, long folderId, int status) throws SystemException
findByG_F_S
in interface DLFileVersionPersistence
groupId
- the group IDfolderId
- the folder IDstatus
- the status
SystemException
- if a system exception occurredpublic List<DLFileVersion> findByG_F_S(long groupId, long folderId, int status, int start, int end) throws SystemException
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.
findByG_F_S
in interface DLFileVersionPersistence
groupId
- the group IDfolderId
- the folder IDstatus
- the statusstart
- the lower bound of the range of document library file versionsend
- the upper bound of the range of document library file versions (not inclusive)
SystemException
- if a system exception occurredpublic List<DLFileVersion> findByG_F_S(long groupId, long folderId, int status, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByG_F_S
in interface DLFileVersionPersistence
groupId
- the group IDfolderId
- the folder IDstatus
- the statusstart
- the lower bound of the range of document library file versionsend
- the upper bound of the range of document library file versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic DLFileVersion findByG_F_S_First(long groupId, long folderId, int status, OrderByComparator orderByComparator) throws NoSuchFileVersionException, SystemException
findByG_F_S_First
in interface DLFileVersionPersistence
groupId
- the group IDfolderId
- the folder IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileVersionException
- if a matching document library file version could not be found
SystemException
- if a system exception occurredpublic DLFileVersion fetchByG_F_S_First(long groupId, long folderId, int status, OrderByComparator orderByComparator) throws SystemException
fetchByG_F_S_First
in interface DLFileVersionPersistence
groupId
- the group IDfolderId
- the folder IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library file version could not be found
SystemException
- if a system exception occurredpublic DLFileVersion findByG_F_S_Last(long groupId, long folderId, int status, OrderByComparator orderByComparator) throws NoSuchFileVersionException, SystemException
findByG_F_S_Last
in interface DLFileVersionPersistence
groupId
- the group IDfolderId
- the folder IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileVersionException
- if a matching document library file version could not be found
SystemException
- if a system exception occurredpublic DLFileVersion fetchByG_F_S_Last(long groupId, long folderId, int status, OrderByComparator orderByComparator) throws SystemException
fetchByG_F_S_Last
in interface DLFileVersionPersistence
groupId
- the group IDfolderId
- the folder IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library file version could not be found
SystemException
- if a system exception occurredpublic DLFileVersion[] findByG_F_S_PrevAndNext(long fileVersionId, long groupId, long folderId, int status, OrderByComparator orderByComparator) throws NoSuchFileVersionException, SystemException
findByG_F_S_PrevAndNext
in interface DLFileVersionPersistence
fileVersionId
- the primary key of the current document library file versiongroupId
- the group IDfolderId
- the folder IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileVersionException
- if a document library file version with the primary key could not be found
SystemException
- if a system exception occurredprotected DLFileVersion getByG_F_S_PrevAndNext(Session session, DLFileVersion dlFileVersion, long groupId, long folderId, int status, OrderByComparator orderByComparator, boolean previous)
public List<DLFileVersion> findByG_F_T_V(long groupId, long folderId, String title, String version) throws SystemException
findByG_F_T_V
in interface DLFileVersionPersistence
groupId
- the group IDfolderId
- the folder IDtitle
- the titleversion
- the version
SystemException
- if a system exception occurredpublic List<DLFileVersion> findByG_F_T_V(long groupId, long folderId, String title, String version, int start, int end) throws SystemException
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.
findByG_F_T_V
in interface DLFileVersionPersistence
groupId
- the group IDfolderId
- the folder IDtitle
- the titleversion
- the versionstart
- the lower bound of the range of document library file versionsend
- the upper bound of the range of document library file versions (not inclusive)
SystemException
- if a system exception occurredpublic List<DLFileVersion> findByG_F_T_V(long groupId, long folderId, String title, String version, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByG_F_T_V
in interface DLFileVersionPersistence
groupId
- the group IDfolderId
- the folder IDtitle
- the titleversion
- the versionstart
- the lower bound of the range of document library file versionsend
- the upper bound of the range of document library file versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic DLFileVersion findByG_F_T_V_First(long groupId, long folderId, String title, String version, OrderByComparator orderByComparator) throws NoSuchFileVersionException, SystemException
findByG_F_T_V_First
in interface DLFileVersionPersistence
groupId
- the group IDfolderId
- the folder IDtitle
- the titleversion
- the versionorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileVersionException
- if a matching document library file version could not be found
SystemException
- if a system exception occurredpublic DLFileVersion fetchByG_F_T_V_First(long groupId, long folderId, String title, String version, OrderByComparator orderByComparator) throws SystemException
fetchByG_F_T_V_First
in interface DLFileVersionPersistence
groupId
- the group IDfolderId
- the folder IDtitle
- the titleversion
- the versionorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library file version could not be found
SystemException
- if a system exception occurredpublic DLFileVersion findByG_F_T_V_Last(long groupId, long folderId, String title, String version, OrderByComparator orderByComparator) throws NoSuchFileVersionException, SystemException
findByG_F_T_V_Last
in interface DLFileVersionPersistence
groupId
- the group IDfolderId
- the folder IDtitle
- the titleversion
- the versionorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileVersionException
- if a matching document library file version could not be found
SystemException
- if a system exception occurredpublic DLFileVersion fetchByG_F_T_V_Last(long groupId, long folderId, String title, String version, OrderByComparator orderByComparator) throws SystemException
fetchByG_F_T_V_Last
in interface DLFileVersionPersistence
groupId
- the group IDfolderId
- the folder IDtitle
- the titleversion
- the versionorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library file version could not be found
SystemException
- if a system exception occurredpublic DLFileVersion[] findByG_F_T_V_PrevAndNext(long fileVersionId, long groupId, long folderId, String title, String version, OrderByComparator orderByComparator) throws NoSuchFileVersionException, SystemException
findByG_F_T_V_PrevAndNext
in interface DLFileVersionPersistence
fileVersionId
- the primary key of the current document library file versiongroupId
- the group IDfolderId
- the folder IDtitle
- the titleversion
- the versionorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileVersionException
- if a document library file version with the primary key could not be found
SystemException
- if a system exception occurredprotected DLFileVersion getByG_F_T_V_PrevAndNext(Session session, DLFileVersion dlFileVersion, long groupId, long folderId, String title, String version, OrderByComparator orderByComparator, boolean previous)
public List<DLFileVersion> findAll() throws SystemException
findAll
in interface DLFileVersionPersistence
SystemException
- if a system exception occurredpublic List<DLFileVersion> findAll(int start, int end) throws SystemException
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.
findAll
in interface DLFileVersionPersistence
start
- the lower bound of the range of document library file versionsend
- the upper bound of the range of document library file versions (not inclusive)
SystemException
- if a system exception occurredpublic List<DLFileVersion> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findAll
in interface DLFileVersionPersistence
start
- the lower bound of the range of document library file versionsend
- the upper bound of the range of document library file versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic void removeByUuid(String uuid) throws SystemException
removeByUuid
in interface DLFileVersionPersistence
uuid
- the uuid
SystemException
- if a system exception occurredpublic DLFileVersion removeByUUID_G(String uuid, long groupId) throws NoSuchFileVersionException, SystemException
removeByUUID_G
in interface DLFileVersionPersistence
uuid
- the uuidgroupId
- the group ID
SystemException
- if a system exception occurred
NoSuchFileVersionException
public void removeByFileEntryId(long fileEntryId) throws SystemException
removeByFileEntryId
in interface DLFileVersionPersistence
fileEntryId
- the file entry ID
SystemException
- if a system exception occurredpublic void removeByMimeType(String mimeType) throws SystemException
removeByMimeType
in interface DLFileVersionPersistence
mimeType
- the mime type
SystemException
- if a system exception occurredpublic DLFileVersion removeByF_V(long fileEntryId, String version) throws NoSuchFileVersionException, SystemException
removeByF_V
in interface DLFileVersionPersistence
fileEntryId
- the file entry IDversion
- the version
SystemException
- if a system exception occurred
NoSuchFileVersionException
public void removeByF_S(long fileEntryId, int status) throws SystemException
removeByF_S
in interface DLFileVersionPersistence
fileEntryId
- the file entry IDstatus
- the status
SystemException
- if a system exception occurredpublic void removeByG_F_S(long groupId, long folderId, int status) throws SystemException
removeByG_F_S
in interface DLFileVersionPersistence
groupId
- the group IDfolderId
- the folder IDstatus
- the status
SystemException
- if a system exception occurredpublic void removeByG_F_T_V(long groupId, long folderId, String title, String version) throws SystemException
removeByG_F_T_V
in interface DLFileVersionPersistence
groupId
- the group IDfolderId
- the folder IDtitle
- the titleversion
- the version
SystemException
- if a system exception occurredpublic void removeAll() throws SystemException
removeAll
in interface DLFileVersionPersistence
SystemException
- if a system exception occurredpublic int countByUuid(String uuid) throws SystemException
countByUuid
in interface DLFileVersionPersistence
uuid
- the uuid
SystemException
- if a system exception occurredpublic int countByUUID_G(String uuid, long groupId) throws SystemException
countByUUID_G
in interface DLFileVersionPersistence
uuid
- the uuidgroupId
- the group ID
SystemException
- if a system exception occurredpublic int countByFileEntryId(long fileEntryId) throws SystemException
countByFileEntryId
in interface DLFileVersionPersistence
fileEntryId
- the file entry ID
SystemException
- if a system exception occurredpublic int countByMimeType(String mimeType) throws SystemException
countByMimeType
in interface DLFileVersionPersistence
mimeType
- the mime type
SystemException
- if a system exception occurredpublic int countByF_V(long fileEntryId, String version) throws SystemException
countByF_V
in interface DLFileVersionPersistence
fileEntryId
- the file entry IDversion
- the version
SystemException
- if a system exception occurredpublic int countByF_S(long fileEntryId, int status) throws SystemException
countByF_S
in interface DLFileVersionPersistence
fileEntryId
- the file entry IDstatus
- the status
SystemException
- if a system exception occurredpublic int countByG_F_S(long groupId, long folderId, int status) throws SystemException
countByG_F_S
in interface DLFileVersionPersistence
groupId
- the group IDfolderId
- the folder IDstatus
- the status
SystemException
- if a system exception occurredpublic int countByG_F_T_V(long groupId, long folderId, String title, String version) throws SystemException
countByG_F_T_V
in interface DLFileVersionPersistence
groupId
- the group IDfolderId
- the folder IDtitle
- the titleversion
- the version
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface DLFileVersionPersistence
SystemException
- if a system exception occurredpublic void afterPropertiesSet()
public void destroy()
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |