|
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.portlet.documentlibrary.service.persistence.DLFileEntryMetadataUtil
public class DLFileEntryMetadataUtil
The persistence utility for the document library file entry metadata service. This utility wraps DLFileEntryMetadataPersistenceImpl
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
DLFileEntryMetadataPersistence
,
DLFileEntryMetadataPersistenceImpl
Constructor Summary | |
---|---|
DLFileEntryMetadataUtil()
|
Method Summary | |
---|---|
static void |
cacheResult(DLFileEntryMetadata dlFileEntryMetadata)
Caches the document library file entry metadata in the entity cache if it is enabled. |
static void |
cacheResult(List<DLFileEntryMetadata> dlFileEntryMetadatas)
Caches the document library file entry metadatas in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(DLFileEntryMetadata dlFileEntryMetadata)
|
static int |
countAll()
Returns the number of document library file entry metadatas. |
static int |
countByD_F(long DDMStructureId,
long fileVersionId)
Returns the number of document library file entry metadatas where DDMStructureId = ? and fileVersionId = ?. |
static int |
countByF_V(long fileEntryId,
long fileVersionId)
Returns the number of document library file entry metadatas where fileEntryId = ? and fileVersionId = ?. |
static int |
countByFileEntryId(long fileEntryId)
Returns the number of document library file entry metadatas where fileEntryId = ?. |
static int |
countByFileEntryTypeId(long fileEntryTypeId)
Returns the number of document library file entry metadatas where fileEntryTypeId = ?. |
static int |
countByFileVersionId(long fileVersionId)
Returns the number of document library file entry metadatas where fileVersionId = ?. |
static int |
countByUuid(String uuid)
Returns the number of document library file entry metadatas where uuid = ?. |
long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static DLFileEntryMetadata |
create(long fileEntryMetadataId)
Creates a new document library file entry metadata with the primary key. |
static DLFileEntryMetadata |
fetchByD_F(long DDMStructureId,
long fileVersionId)
Returns the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? or returns null if it could not be found. |
static DLFileEntryMetadata |
fetchByD_F(long DDMStructureId,
long fileVersionId,
boolean retrieveFromCache)
Returns the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? or returns null if it could not be found, optionally using the finder cache. |
static DLFileEntryMetadata |
fetchByF_V(long fileEntryId,
long fileVersionId)
Returns the document library file entry metadata where fileEntryId = ? and fileVersionId = ? or returns null if it could not be found. |
static DLFileEntryMetadata |
fetchByF_V(long fileEntryId,
long fileVersionId,
boolean retrieveFromCache)
Returns the document library file entry metadata where fileEntryId = ? and fileVersionId = ? or returns null if it could not be found, optionally using the finder cache. |
static DLFileEntryMetadata |
fetchByFileEntryId_First(long fileEntryId,
OrderByComparator orderByComparator)
Returns the first document library file entry metadata in the ordered set where fileEntryId = ?. |
static DLFileEntryMetadata |
fetchByFileEntryId_Last(long fileEntryId,
OrderByComparator orderByComparator)
Returns the last document library file entry metadata in the ordered set where fileEntryId = ?. |
static DLFileEntryMetadata |
fetchByFileEntryTypeId_First(long fileEntryTypeId,
OrderByComparator orderByComparator)
Returns the first document library file entry metadata in the ordered set where fileEntryTypeId = ?. |
static DLFileEntryMetadata |
fetchByFileEntryTypeId_Last(long fileEntryTypeId,
OrderByComparator orderByComparator)
Returns the last document library file entry metadata in the ordered set where fileEntryTypeId = ?. |
static DLFileEntryMetadata |
fetchByFileVersionId_First(long fileVersionId,
OrderByComparator orderByComparator)
Returns the first document library file entry metadata in the ordered set where fileVersionId = ?. |
static DLFileEntryMetadata |
fetchByFileVersionId_Last(long fileVersionId,
OrderByComparator orderByComparator)
Returns the last document library file entry metadata in the ordered set where fileVersionId = ?. |
static DLFileEntryMetadata |
fetchByPrimaryKey(long fileEntryMetadataId)
Returns the document library file entry metadata with the primary key or returns null if it could not be found. |
static DLFileEntryMetadata |
fetchByUuid_First(String uuid,
OrderByComparator orderByComparator)
Returns the first document library file entry metadata in the ordered set where uuid = ?. |
static DLFileEntryMetadata |
fetchByUuid_Last(String uuid,
OrderByComparator orderByComparator)
Returns the last document library file entry metadata in the ordered set where uuid = ?. |
static List<DLFileEntryMetadata> |
findAll()
Returns all the document library file entry metadatas. |
static List<DLFileEntryMetadata> |
findAll(int start,
int end)
Returns a range of all the document library file entry metadatas. |
static List<DLFileEntryMetadata> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the document library file entry metadatas. |
static DLFileEntryMetadata |
findByD_F(long DDMStructureId,
long fileVersionId)
Returns the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? or throws a NoSuchFileEntryMetadataException if it could not be found. |
static DLFileEntryMetadata |
findByF_V(long fileEntryId,
long fileVersionId)
Returns the document library file entry metadata where fileEntryId = ? and fileVersionId = ? or throws a NoSuchFileEntryMetadataException if it could not be found. |
static DLFileEntryMetadata |
findByFileEntryId_First(long fileEntryId,
OrderByComparator orderByComparator)
Returns the first document library file entry metadata in the ordered set where fileEntryId = ?. |
static DLFileEntryMetadata |
findByFileEntryId_Last(long fileEntryId,
OrderByComparator orderByComparator)
Returns the last document library file entry metadata in the ordered set where fileEntryId = ?. |
static DLFileEntryMetadata[] |
findByFileEntryId_PrevAndNext(long fileEntryMetadataId,
long fileEntryId,
OrderByComparator orderByComparator)
Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileEntryId = ?. |
static List<DLFileEntryMetadata> |
findByFileEntryId(long fileEntryId)
Returns all the document library file entry metadatas where fileEntryId = ?. |
static List<DLFileEntryMetadata> |
findByFileEntryId(long fileEntryId,
int start,
int end)
Returns a range of all the document library file entry metadatas where fileEntryId = ?. |
static List<DLFileEntryMetadata> |
findByFileEntryId(long fileEntryId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the document library file entry metadatas where fileEntryId = ?. |
static DLFileEntryMetadata |
findByFileEntryTypeId_First(long fileEntryTypeId,
OrderByComparator orderByComparator)
Returns the first document library file entry metadata in the ordered set where fileEntryTypeId = ?. |
static DLFileEntryMetadata |
findByFileEntryTypeId_Last(long fileEntryTypeId,
OrderByComparator orderByComparator)
Returns the last document library file entry metadata in the ordered set where fileEntryTypeId = ?. |
static DLFileEntryMetadata[] |
findByFileEntryTypeId_PrevAndNext(long fileEntryMetadataId,
long fileEntryTypeId,
OrderByComparator orderByComparator)
Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileEntryTypeId = ?. |
static List<DLFileEntryMetadata> |
findByFileEntryTypeId(long fileEntryTypeId)
Returns all the document library file entry metadatas where fileEntryTypeId = ?. |
static List<DLFileEntryMetadata> |
findByFileEntryTypeId(long fileEntryTypeId,
int start,
int end)
Returns a range of all the document library file entry metadatas where fileEntryTypeId = ?. |
static List<DLFileEntryMetadata> |
findByFileEntryTypeId(long fileEntryTypeId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the document library file entry metadatas where fileEntryTypeId = ?. |
static DLFileEntryMetadata |
findByFileVersionId_First(long fileVersionId,
OrderByComparator orderByComparator)
Returns the first document library file entry metadata in the ordered set where fileVersionId = ?. |
static DLFileEntryMetadata |
findByFileVersionId_Last(long fileVersionId,
OrderByComparator orderByComparator)
Returns the last document library file entry metadata in the ordered set where fileVersionId = ?. |
static DLFileEntryMetadata[] |
findByFileVersionId_PrevAndNext(long fileEntryMetadataId,
long fileVersionId,
OrderByComparator orderByComparator)
Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileVersionId = ?. |
static List<DLFileEntryMetadata> |
findByFileVersionId(long fileVersionId)
Returns all the document library file entry metadatas where fileVersionId = ?. |
static List<DLFileEntryMetadata> |
findByFileVersionId(long fileVersionId,
int start,
int end)
Returns a range of all the document library file entry metadatas where fileVersionId = ?. |
static List<DLFileEntryMetadata> |
findByFileVersionId(long fileVersionId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the document library file entry metadatas where fileVersionId = ?. |
static DLFileEntryMetadata |
findByPrimaryKey(long fileEntryMetadataId)
Returns the document library file entry metadata with the primary key or throws a NoSuchFileEntryMetadataException if it could not be found. |
static DLFileEntryMetadata |
findByUuid_First(String uuid,
OrderByComparator orderByComparator)
Returns the first document library file entry metadata in the ordered set where uuid = ?. |
static DLFileEntryMetadata |
findByUuid_Last(String uuid,
OrderByComparator orderByComparator)
Returns the last document library file entry metadata in the ordered set where uuid = ?. |
static DLFileEntryMetadata[] |
findByUuid_PrevAndNext(long fileEntryMetadataId,
String uuid,
OrderByComparator orderByComparator)
Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where uuid = ?. |
static List<DLFileEntryMetadata> |
findByUuid(String uuid)
Returns all the document library file entry metadatas where uuid = ?. |
static List<DLFileEntryMetadata> |
findByUuid(String uuid,
int start,
int end)
Returns a range of all the document library file entry metadatas where uuid = ?. |
static List<DLFileEntryMetadata> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the document library file entry metadatas where uuid = ?. |
static List<DLFileEntryMetadata> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<DLFileEntryMetadata> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<DLFileEntryMetadata> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static DLFileEntryMetadataPersistence |
getPersistence()
|
static DLFileEntryMetadata |
remove(long fileEntryMetadataId)
Removes the document library file entry metadata with the primary key from the database. |
static void |
removeAll()
Removes all the document library file entry metadatas from the database. |
static DLFileEntryMetadata |
removeByD_F(long DDMStructureId,
long fileVersionId)
Removes the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? from the database. |
static DLFileEntryMetadata |
removeByF_V(long fileEntryId,
long fileVersionId)
Removes the document library file entry metadata where fileEntryId = ? and fileVersionId = ? from the database. |
static void |
removeByFileEntryId(long fileEntryId)
Removes all the document library file entry metadatas where fileEntryId = ? from the database. |
static void |
removeByFileEntryTypeId(long fileEntryTypeId)
Removes all the document library file entry metadatas where fileEntryTypeId = ? from the database. |
static void |
removeByFileVersionId(long fileVersionId)
Removes all the document library file entry metadatas where fileVersionId = ? from the database. |
static void |
removeByUuid(String uuid)
Removes all the document library file entry metadatas where uuid = ? from the database. |
void |
setPersistence(DLFileEntryMetadataPersistence persistence)
Deprecated. |
static DLFileEntryMetadata |
update(DLFileEntryMetadata dlFileEntryMetadata,
boolean merge)
|
static DLFileEntryMetadata |
update(DLFileEntryMetadata dlFileEntryMetadata,
boolean merge,
ServiceContext serviceContext)
|
static DLFileEntryMetadata |
updateImpl(DLFileEntryMetadata dlFileEntryMetadata,
boolean merge)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DLFileEntryMetadataUtil()
Method Detail |
---|
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(DLFileEntryMetadata dlFileEntryMetadata)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<DLFileEntryMetadata> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<DLFileEntryMetadata> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<DLFileEntryMetadata> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static DLFileEntryMetadata update(DLFileEntryMetadata dlFileEntryMetadata, boolean merge) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static DLFileEntryMetadata update(DLFileEntryMetadata dlFileEntryMetadata, boolean merge, ServiceContext serviceContext) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
public static void cacheResult(DLFileEntryMetadata dlFileEntryMetadata)
dlFileEntryMetadata
- the document library file entry metadatapublic static void cacheResult(List<DLFileEntryMetadata> dlFileEntryMetadatas)
dlFileEntryMetadatas
- the document library file entry metadataspublic static DLFileEntryMetadata create(long fileEntryMetadataId)
fileEntryMetadataId
- the primary key for the new document library file entry metadata
public static DLFileEntryMetadata remove(long fileEntryMetadataId) throws SystemException, NoSuchFileEntryMetadataException
fileEntryMetadataId
- the primary key of the document library file entry metadata
NoSuchFileEntryMetadataException
- if a document library file entry metadata with the primary key could not be found
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata updateImpl(DLFileEntryMetadata dlFileEntryMetadata, boolean merge) throws SystemException
SystemException
public static DLFileEntryMetadata findByPrimaryKey(long fileEntryMetadataId) throws SystemException, NoSuchFileEntryMetadataException
NoSuchFileEntryMetadataException
if it could not be found.
fileEntryMetadataId
- the primary key of the document library file entry metadata
NoSuchFileEntryMetadataException
- if a document library file entry metadata with the primary key could not be found
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata fetchByPrimaryKey(long fileEntryMetadataId) throws SystemException
null
if it could not be found.
fileEntryMetadataId
- the primary key of the document library file entry metadata
null
if a document library file entry metadata with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<DLFileEntryMetadata> findByUuid(String uuid) throws SystemException
uuid
- the uuid
SystemException
- if a system exception occurredpublic static List<DLFileEntryMetadata> 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.
uuid
- the uuidstart
- the lower bound of the range of document library file entry metadatasend
- the upper bound of the range of document library file entry metadatas (not inclusive)
SystemException
- if a system exception occurredpublic static List<DLFileEntryMetadata> 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.
uuid
- the uuidstart
- the lower bound of the range of document library file entry metadatasend
- the upper bound of the range of document library file entry metadatas (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata findByUuid_First(String uuid, OrderByComparator orderByComparator) throws SystemException, NoSuchFileEntryMetadataException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileEntryMetadataException
- if a matching document library file entry metadata could not be found
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata fetchByUuid_First(String uuid, OrderByComparator orderByComparator) throws SystemException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library file entry metadata could not be found
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata findByUuid_Last(String uuid, OrderByComparator orderByComparator) throws SystemException, NoSuchFileEntryMetadataException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileEntryMetadataException
- if a matching document library file entry metadata could not be found
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata fetchByUuid_Last(String uuid, OrderByComparator orderByComparator) throws SystemException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library file entry metadata could not be found
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata[] findByUuid_PrevAndNext(long fileEntryMetadataId, String uuid, OrderByComparator orderByComparator) throws SystemException, NoSuchFileEntryMetadataException
fileEntryMetadataId
- the primary key of the current document library file entry metadatauuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileEntryMetadataException
- if a document library file entry metadata with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<DLFileEntryMetadata> findByFileEntryTypeId(long fileEntryTypeId) throws SystemException
fileEntryTypeId
- the file entry type ID
SystemException
- if a system exception occurredpublic static List<DLFileEntryMetadata> findByFileEntryTypeId(long fileEntryTypeId, 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.
fileEntryTypeId
- the file entry type IDstart
- the lower bound of the range of document library file entry metadatasend
- the upper bound of the range of document library file entry metadatas (not inclusive)
SystemException
- if a system exception occurredpublic static List<DLFileEntryMetadata> findByFileEntryTypeId(long fileEntryTypeId, 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.
fileEntryTypeId
- the file entry type IDstart
- the lower bound of the range of document library file entry metadatasend
- the upper bound of the range of document library file entry metadatas (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata findByFileEntryTypeId_First(long fileEntryTypeId, OrderByComparator orderByComparator) throws SystemException, NoSuchFileEntryMetadataException
fileEntryTypeId
- the file entry type IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileEntryMetadataException
- if a matching document library file entry metadata could not be found
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata fetchByFileEntryTypeId_First(long fileEntryTypeId, OrderByComparator orderByComparator) throws SystemException
fileEntryTypeId
- the file entry type IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library file entry metadata could not be found
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata findByFileEntryTypeId_Last(long fileEntryTypeId, OrderByComparator orderByComparator) throws SystemException, NoSuchFileEntryMetadataException
fileEntryTypeId
- the file entry type IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileEntryMetadataException
- if a matching document library file entry metadata could not be found
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata fetchByFileEntryTypeId_Last(long fileEntryTypeId, OrderByComparator orderByComparator) throws SystemException
fileEntryTypeId
- the file entry type IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library file entry metadata could not be found
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata[] findByFileEntryTypeId_PrevAndNext(long fileEntryMetadataId, long fileEntryTypeId, OrderByComparator orderByComparator) throws SystemException, NoSuchFileEntryMetadataException
fileEntryMetadataId
- the primary key of the current document library file entry metadatafileEntryTypeId
- the file entry type IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileEntryMetadataException
- if a document library file entry metadata with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<DLFileEntryMetadata> findByFileEntryId(long fileEntryId) throws SystemException
fileEntryId
- the file entry ID
SystemException
- if a system exception occurredpublic static List<DLFileEntryMetadata> 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.
fileEntryId
- the file entry IDstart
- the lower bound of the range of document library file entry metadatasend
- the upper bound of the range of document library file entry metadatas (not inclusive)
SystemException
- if a system exception occurredpublic static List<DLFileEntryMetadata> 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.
fileEntryId
- the file entry IDstart
- the lower bound of the range of document library file entry metadatasend
- the upper bound of the range of document library file entry metadatas (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata findByFileEntryId_First(long fileEntryId, OrderByComparator orderByComparator) throws SystemException, NoSuchFileEntryMetadataException
fileEntryId
- the file entry IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileEntryMetadataException
- if a matching document library file entry metadata could not be found
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata fetchByFileEntryId_First(long fileEntryId, OrderByComparator orderByComparator) throws SystemException
fileEntryId
- the file entry IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library file entry metadata could not be found
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata findByFileEntryId_Last(long fileEntryId, OrderByComparator orderByComparator) throws SystemException, NoSuchFileEntryMetadataException
fileEntryId
- the file entry IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileEntryMetadataException
- if a matching document library file entry metadata could not be found
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata fetchByFileEntryId_Last(long fileEntryId, OrderByComparator orderByComparator) throws SystemException
fileEntryId
- the file entry IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library file entry metadata could not be found
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata[] findByFileEntryId_PrevAndNext(long fileEntryMetadataId, long fileEntryId, OrderByComparator orderByComparator) throws SystemException, NoSuchFileEntryMetadataException
fileEntryMetadataId
- the primary key of the current document library file entry metadatafileEntryId
- the file entry IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileEntryMetadataException
- if a document library file entry metadata with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<DLFileEntryMetadata> findByFileVersionId(long fileVersionId) throws SystemException
fileVersionId
- the file version ID
SystemException
- if a system exception occurredpublic static List<DLFileEntryMetadata> findByFileVersionId(long fileVersionId, 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.
fileVersionId
- the file version IDstart
- the lower bound of the range of document library file entry metadatasend
- the upper bound of the range of document library file entry metadatas (not inclusive)
SystemException
- if a system exception occurredpublic static List<DLFileEntryMetadata> findByFileVersionId(long fileVersionId, 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.
fileVersionId
- the file version IDstart
- the lower bound of the range of document library file entry metadatasend
- the upper bound of the range of document library file entry metadatas (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata findByFileVersionId_First(long fileVersionId, OrderByComparator orderByComparator) throws SystemException, NoSuchFileEntryMetadataException
fileVersionId
- the file version IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileEntryMetadataException
- if a matching document library file entry metadata could not be found
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata fetchByFileVersionId_First(long fileVersionId, OrderByComparator orderByComparator) throws SystemException
fileVersionId
- the file version IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library file entry metadata could not be found
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata findByFileVersionId_Last(long fileVersionId, OrderByComparator orderByComparator) throws SystemException, NoSuchFileEntryMetadataException
fileVersionId
- the file version IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileEntryMetadataException
- if a matching document library file entry metadata could not be found
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata fetchByFileVersionId_Last(long fileVersionId, OrderByComparator orderByComparator) throws SystemException
fileVersionId
- the file version IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library file entry metadata could not be found
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata[] findByFileVersionId_PrevAndNext(long fileEntryMetadataId, long fileVersionId, OrderByComparator orderByComparator) throws SystemException, NoSuchFileEntryMetadataException
fileEntryMetadataId
- the primary key of the current document library file entry metadatafileVersionId
- the file version IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileEntryMetadataException
- if a document library file entry metadata with the primary key could not be found
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata findByD_F(long DDMStructureId, long fileVersionId) throws SystemException, NoSuchFileEntryMetadataException
NoSuchFileEntryMetadataException
if it could not be found.
DDMStructureId
- the d d m structure IDfileVersionId
- the file version ID
NoSuchFileEntryMetadataException
- if a matching document library file entry metadata could not be found
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata fetchByD_F(long DDMStructureId, long fileVersionId) throws SystemException
null
if it could not be found. Uses the finder cache.
DDMStructureId
- the d d m structure IDfileVersionId
- the file version ID
null
if a matching document library file entry metadata could not be found
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata fetchByD_F(long DDMStructureId, long fileVersionId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
DDMStructureId
- the d d m structure IDfileVersionId
- the file version IDretrieveFromCache
- whether to use the finder cache
null
if a matching document library file entry metadata could not be found
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata findByF_V(long fileEntryId, long fileVersionId) throws SystemException, NoSuchFileEntryMetadataException
NoSuchFileEntryMetadataException
if it could not be found.
fileEntryId
- the file entry IDfileVersionId
- the file version ID
NoSuchFileEntryMetadataException
- if a matching document library file entry metadata could not be found
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata fetchByF_V(long fileEntryId, long fileVersionId) throws SystemException
null
if it could not be found. Uses the finder cache.
fileEntryId
- the file entry IDfileVersionId
- the file version ID
null
if a matching document library file entry metadata could not be found
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata fetchByF_V(long fileEntryId, long fileVersionId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fileEntryId
- the file entry IDfileVersionId
- the file version IDretrieveFromCache
- whether to use the finder cache
null
if a matching document library file entry metadata could not be found
SystemException
- if a system exception occurredpublic static List<DLFileEntryMetadata> findAll() throws SystemException
SystemException
- if a system exception occurredpublic static List<DLFileEntryMetadata> 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.
start
- the lower bound of the range of document library file entry metadatasend
- the upper bound of the range of document library file entry metadatas (not inclusive)
SystemException
- if a system exception occurredpublic static List<DLFileEntryMetadata> 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.
start
- the lower bound of the range of document library file entry metadatasend
- the upper bound of the range of document library file entry metadatas (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static void removeByUuid(String uuid) throws SystemException
uuid
- the uuid
SystemException
- if a system exception occurredpublic static void removeByFileEntryTypeId(long fileEntryTypeId) throws SystemException
fileEntryTypeId
- the file entry type ID
SystemException
- if a system exception occurredpublic static void removeByFileEntryId(long fileEntryId) throws SystemException
fileEntryId
- the file entry ID
SystemException
- if a system exception occurredpublic static void removeByFileVersionId(long fileVersionId) throws SystemException
fileVersionId
- the file version ID
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata removeByD_F(long DDMStructureId, long fileVersionId) throws SystemException, NoSuchFileEntryMetadataException
DDMStructureId
- the d d m structure IDfileVersionId
- the file version ID
SystemException
- if a system exception occurred
NoSuchFileEntryMetadataException
public static DLFileEntryMetadata removeByF_V(long fileEntryId, long fileVersionId) throws SystemException, NoSuchFileEntryMetadataException
fileEntryId
- the file entry IDfileVersionId
- the file version ID
SystemException
- if a system exception occurred
NoSuchFileEntryMetadataException
public static void removeAll() throws SystemException
SystemException
- if a system exception occurredpublic static int countByUuid(String uuid) throws SystemException
uuid
- the uuid
SystemException
- if a system exception occurredpublic static int countByFileEntryTypeId(long fileEntryTypeId) throws SystemException
fileEntryTypeId
- the file entry type ID
SystemException
- if a system exception occurredpublic static int countByFileEntryId(long fileEntryId) throws SystemException
fileEntryId
- the file entry ID
SystemException
- if a system exception occurredpublic static int countByFileVersionId(long fileVersionId) throws SystemException
fileVersionId
- the file version ID
SystemException
- if a system exception occurredpublic static int countByD_F(long DDMStructureId, long fileVersionId) throws SystemException
DDMStructureId
- the d d m structure IDfileVersionId
- the file version ID
SystemException
- if a system exception occurredpublic static int countByF_V(long fileEntryId, long fileVersionId) throws SystemException
fileEntryId
- the file entry IDfileVersionId
- the file version ID
SystemException
- if a system exception occurredpublic static int countAll() throws SystemException
SystemException
- if a system exception occurredpublic static DLFileEntryMetadataPersistence getPersistence()
public void setPersistence(DLFileEntryMetadataPersistence persistence)
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |