|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<DLFileEntryMetadata>
com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryMetadataPersistenceImpl
public class DLFileEntryMetadataPersistenceImpl
The persistence implementation for the document library file entry metadata service.
Caching information and settings can be found in portal.properties
DLFileEntryMetadataPersistence
,
DLFileEntryMetadataUtil
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 | |
---|---|
DLFileEntryMetadataPersistenceImpl()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Initializes the document library file entry metadata persistence. |
void |
cacheResult(DLFileEntryMetadata dlFileEntryMetadata)
Caches the document library file entry metadata in the entity cache if it is enabled. |
void |
cacheResult(List<DLFileEntryMetadata> dlFileEntryMetadatas)
Caches the document library file entry metadatas in the entity cache if it is enabled. |
protected void |
cacheUniqueFindersCache(DLFileEntryMetadata dlFileEntryMetadata)
|
void |
clearCache()
Clears the cache for all document library file entry metadatas. |
void |
clearCache(DLFileEntryMetadata dlFileEntryMetadata)
Clears the cache for the document library file entry metadata. |
void |
clearCache(List<DLFileEntryMetadata> dlFileEntryMetadatas)
Clears the cache for a List instances of this model. |
protected void |
clearUniqueFindersCache(DLFileEntryMetadata dlFileEntryMetadata)
|
int |
countAll()
Returns the number of document library file entry metadatas. |
int |
countByD_F(long DDMStructureId,
long fileVersionId)
Returns the number of document library file entry metadatas where DDMStructureId = ? and fileVersionId = ?. |
int |
countByFileEntryId(long fileEntryId)
Returns the number of document library file entry metadatas where fileEntryId = ?. |
int |
countByFileEntryTypeId(long fileEntryTypeId)
Returns the number of document library file entry metadatas where fileEntryTypeId = ?. |
int |
countByFileVersionId(long fileVersionId)
Returns the number of document library file entry metadatas where fileVersionId = ?. |
int |
countByUuid(String uuid)
Returns the number of document library file entry metadatas where uuid = ?. |
DLFileEntryMetadata |
create(long fileEntryMetadataId)
Creates a new document library file entry metadata with the primary key. |
void |
destroy()
|
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. |
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. |
DLFileEntryMetadata |
fetchByFileEntryId_First(long fileEntryId,
OrderByComparator orderByComparator)
Returns the first document library file entry metadata in the ordered set where fileEntryId = ?. |
DLFileEntryMetadata |
fetchByFileEntryId_Last(long fileEntryId,
OrderByComparator orderByComparator)
Returns the last document library file entry metadata in the ordered set where fileEntryId = ?. |
DLFileEntryMetadata |
fetchByFileEntryTypeId_First(long fileEntryTypeId,
OrderByComparator orderByComparator)
Returns the first document library file entry metadata in the ordered set where fileEntryTypeId = ?. |
DLFileEntryMetadata |
fetchByFileEntryTypeId_Last(long fileEntryTypeId,
OrderByComparator orderByComparator)
Returns the last document library file entry metadata in the ordered set where fileEntryTypeId = ?. |
DLFileEntryMetadata |
fetchByFileVersionId_First(long fileVersionId,
OrderByComparator orderByComparator)
Returns the first document library file entry metadata in the ordered set where fileVersionId = ?. |
DLFileEntryMetadata |
fetchByFileVersionId_Last(long fileVersionId,
OrderByComparator orderByComparator)
Returns the last document library file entry metadata in the ordered set where fileVersionId = ?. |
DLFileEntryMetadata |
fetchByPrimaryKey(long fileEntryMetadataId)
Returns the document library file entry metadata with the primary key or returns null if it could not be found. |
DLFileEntryMetadata |
fetchByPrimaryKey(Serializable primaryKey)
Returns the document library file entry metadata with the primary key or returns null if it could not be found. |
DLFileEntryMetadata |
fetchByUuid_First(String uuid,
OrderByComparator orderByComparator)
Returns the first document library file entry metadata in the ordered set where uuid = ?. |
DLFileEntryMetadata |
fetchByUuid_Last(String uuid,
OrderByComparator orderByComparator)
Returns the last document library file entry metadata in the ordered set where uuid = ?. |
List<DLFileEntryMetadata> |
findAll()
Returns all the document library file entry metadatas. |
List<DLFileEntryMetadata> |
findAll(int start,
int end)
Returns a range of all the document library file entry metadatas. |
List<DLFileEntryMetadata> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the document library file entry metadatas. |
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. |
DLFileEntryMetadata |
findByFileEntryId_First(long fileEntryId,
OrderByComparator orderByComparator)
Returns the first document library file entry metadata in the ordered set where fileEntryId = ?. |
DLFileEntryMetadata |
findByFileEntryId_Last(long fileEntryId,
OrderByComparator orderByComparator)
Returns the last document library file entry metadata in the ordered set where fileEntryId = ?. |
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 = ?. |
List<DLFileEntryMetadata> |
findByFileEntryId(long fileEntryId)
Returns all the document library file entry metadatas where fileEntryId = ?. |
List<DLFileEntryMetadata> |
findByFileEntryId(long fileEntryId,
int start,
int end)
Returns a range of all the document library file entry metadatas where fileEntryId = ?. |
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 = ?. |
DLFileEntryMetadata |
findByFileEntryTypeId_First(long fileEntryTypeId,
OrderByComparator orderByComparator)
Returns the first document library file entry metadata in the ordered set where fileEntryTypeId = ?. |
DLFileEntryMetadata |
findByFileEntryTypeId_Last(long fileEntryTypeId,
OrderByComparator orderByComparator)
Returns the last document library file entry metadata in the ordered set where fileEntryTypeId = ?. |
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 = ?. |
List<DLFileEntryMetadata> |
findByFileEntryTypeId(long fileEntryTypeId)
Returns all the document library file entry metadatas where fileEntryTypeId = ?. |
List<DLFileEntryMetadata> |
findByFileEntryTypeId(long fileEntryTypeId,
int start,
int end)
Returns a range of all the document library file entry metadatas where fileEntryTypeId = ?. |
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 = ?. |
DLFileEntryMetadata |
findByFileVersionId_First(long fileVersionId,
OrderByComparator orderByComparator)
Returns the first document library file entry metadata in the ordered set where fileVersionId = ?. |
DLFileEntryMetadata |
findByFileVersionId_Last(long fileVersionId,
OrderByComparator orderByComparator)
Returns the last document library file entry metadata in the ordered set where fileVersionId = ?. |
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 = ?. |
List<DLFileEntryMetadata> |
findByFileVersionId(long fileVersionId)
Returns all the document library file entry metadatas where fileVersionId = ?. |
List<DLFileEntryMetadata> |
findByFileVersionId(long fileVersionId,
int start,
int end)
Returns a range of all the document library file entry metadatas where fileVersionId = ?. |
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 = ?. |
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. |
DLFileEntryMetadata |
findByPrimaryKey(Serializable primaryKey)
Returns the document library file entry metadata with the primary key or throws a NoSuchModelException if it could not be found. |
DLFileEntryMetadata |
findByUuid_First(String uuid,
OrderByComparator orderByComparator)
Returns the first document library file entry metadata in the ordered set where uuid = ?. |
DLFileEntryMetadata |
findByUuid_Last(String uuid,
OrderByComparator orderByComparator)
Returns the last document library file entry metadata in the ordered set where uuid = ?. |
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 = ?. |
List<DLFileEntryMetadata> |
findByUuid(String uuid)
Returns all the document library file entry metadatas where uuid = ?. |
List<DLFileEntryMetadata> |
findByUuid(String uuid,
int start,
int end)
Returns a range of all the document library file entry metadatas where uuid = ?. |
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 = ?. |
protected Set<String> |
getBadColumnNames()
|
protected DLFileEntryMetadata |
getByFileEntryId_PrevAndNext(Session session,
DLFileEntryMetadata dlFileEntryMetadata,
long fileEntryId,
OrderByComparator orderByComparator,
boolean previous)
|
protected DLFileEntryMetadata |
getByFileEntryTypeId_PrevAndNext(Session session,
DLFileEntryMetadata dlFileEntryMetadata,
long fileEntryTypeId,
OrderByComparator orderByComparator,
boolean previous)
|
protected DLFileEntryMetadata |
getByFileVersionId_PrevAndNext(Session session,
DLFileEntryMetadata dlFileEntryMetadata,
long fileVersionId,
OrderByComparator orderByComparator,
boolean previous)
|
protected DLFileEntryMetadata |
getByUuid_PrevAndNext(Session session,
DLFileEntryMetadata dlFileEntryMetadata,
String uuid,
OrderByComparator orderByComparator,
boolean previous)
|
DLFileEntryMetadata |
remove(long fileEntryMetadataId)
Removes the document library file entry metadata with the primary key from the database. |
DLFileEntryMetadata |
remove(Serializable primaryKey)
Removes the document library file entry metadata with the primary key from the database. |
void |
removeAll()
Removes all the document library file entry metadatas from the database. |
DLFileEntryMetadata |
removeByD_F(long DDMStructureId,
long fileVersionId)
Removes the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? from the database. |
void |
removeByFileEntryId(long fileEntryId)
Removes all the document library file entry metadatas where fileEntryId = ? from the database. |
void |
removeByFileEntryTypeId(long fileEntryTypeId)
Removes all the document library file entry metadatas where fileEntryTypeId = ? from the database. |
void |
removeByFileVersionId(long fileVersionId)
Removes all the document library file entry metadatas where fileVersionId = ? from the database. |
void |
removeByUuid(String uuid)
Removes all the document library file entry metadatas where uuid = ? from the database. |
protected DLFileEntryMetadata |
removeImpl(DLFileEntryMetadata dlFileEntryMetadata)
Removes the model instance from the database. |
protected DLFileEntryMetadata |
toUnwrappedModel(DLFileEntryMetadata dlFileEntryMetadata)
|
DLFileEntryMetadata |
updateImpl(DLFileEntryMetadata dlFileEntryMetadata)
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, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl |
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, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, 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_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
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_WITH_PAGINATION_FIND_BY_FILEENTRYTYPEID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_FILEENTRYTYPEID
public static final FinderPath FINDER_PATH_COUNT_BY_FILEENTRYTYPEID
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_FILEVERSIONID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_FILEVERSIONID
public static final FinderPath FINDER_PATH_COUNT_BY_FILEVERSIONID
public static final FinderPath FINDER_PATH_FETCH_BY_D_F
public static final FinderPath FINDER_PATH_COUNT_BY_D_F
Constructor Detail |
---|
public DLFileEntryMetadataPersistenceImpl()
Method Detail |
---|
public List<DLFileEntryMetadata> findByUuid(String uuid) throws SystemException
findByUuid
in interface DLFileEntryMetadataPersistence
uuid
- the uuid
SystemException
- if a system exception occurredpublic 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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByUuid
in interface DLFileEntryMetadataPersistence
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 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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByUuid
in interface DLFileEntryMetadataPersistence
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 DLFileEntryMetadata findByUuid_First(String uuid, OrderByComparator orderByComparator) throws NoSuchFileEntryMetadataException, SystemException
findByUuid_First
in interface DLFileEntryMetadataPersistence
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 DLFileEntryMetadata fetchByUuid_First(String uuid, OrderByComparator orderByComparator) throws SystemException
fetchByUuid_First
in interface DLFileEntryMetadataPersistence
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 DLFileEntryMetadata findByUuid_Last(String uuid, OrderByComparator orderByComparator) throws NoSuchFileEntryMetadataException, SystemException
findByUuid_Last
in interface DLFileEntryMetadataPersistence
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 DLFileEntryMetadata fetchByUuid_Last(String uuid, OrderByComparator orderByComparator) throws SystemException
fetchByUuid_Last
in interface DLFileEntryMetadataPersistence
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 DLFileEntryMetadata[] findByUuid_PrevAndNext(long fileEntryMetadataId, String uuid, OrderByComparator orderByComparator) throws NoSuchFileEntryMetadataException, SystemException
findByUuid_PrevAndNext
in interface DLFileEntryMetadataPersistence
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 occurredprotected DLFileEntryMetadata getByUuid_PrevAndNext(Session session, DLFileEntryMetadata dlFileEntryMetadata, String uuid, OrderByComparator orderByComparator, boolean previous)
public void removeByUuid(String uuid) throws SystemException
removeByUuid
in interface DLFileEntryMetadataPersistence
uuid
- the uuid
SystemException
- if a system exception occurredpublic int countByUuid(String uuid) throws SystemException
countByUuid
in interface DLFileEntryMetadataPersistence
uuid
- the uuid
SystemException
- if a system exception occurredpublic List<DLFileEntryMetadata> findByFileEntryTypeId(long fileEntryTypeId) throws SystemException
findByFileEntryTypeId
in interface DLFileEntryMetadataPersistence
fileEntryTypeId
- the file entry type ID
SystemException
- if a system exception occurredpublic 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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByFileEntryTypeId
in interface DLFileEntryMetadataPersistence
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 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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByFileEntryTypeId
in interface DLFileEntryMetadataPersistence
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 DLFileEntryMetadata findByFileEntryTypeId_First(long fileEntryTypeId, OrderByComparator orderByComparator) throws NoSuchFileEntryMetadataException, SystemException
findByFileEntryTypeId_First
in interface DLFileEntryMetadataPersistence
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 DLFileEntryMetadata fetchByFileEntryTypeId_First(long fileEntryTypeId, OrderByComparator orderByComparator) throws SystemException
fetchByFileEntryTypeId_First
in interface DLFileEntryMetadataPersistence
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 DLFileEntryMetadata findByFileEntryTypeId_Last(long fileEntryTypeId, OrderByComparator orderByComparator) throws NoSuchFileEntryMetadataException, SystemException
findByFileEntryTypeId_Last
in interface DLFileEntryMetadataPersistence
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 DLFileEntryMetadata fetchByFileEntryTypeId_Last(long fileEntryTypeId, OrderByComparator orderByComparator) throws SystemException
fetchByFileEntryTypeId_Last
in interface DLFileEntryMetadataPersistence
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 DLFileEntryMetadata[] findByFileEntryTypeId_PrevAndNext(long fileEntryMetadataId, long fileEntryTypeId, OrderByComparator orderByComparator) throws NoSuchFileEntryMetadataException, SystemException
findByFileEntryTypeId_PrevAndNext
in interface DLFileEntryMetadataPersistence
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 occurredprotected DLFileEntryMetadata getByFileEntryTypeId_PrevAndNext(Session session, DLFileEntryMetadata dlFileEntryMetadata, long fileEntryTypeId, OrderByComparator orderByComparator, boolean previous)
public void removeByFileEntryTypeId(long fileEntryTypeId) throws SystemException
removeByFileEntryTypeId
in interface DLFileEntryMetadataPersistence
fileEntryTypeId
- the file entry type ID
SystemException
- if a system exception occurredpublic int countByFileEntryTypeId(long fileEntryTypeId) throws SystemException
countByFileEntryTypeId
in interface DLFileEntryMetadataPersistence
fileEntryTypeId
- the file entry type ID
SystemException
- if a system exception occurredpublic List<DLFileEntryMetadata> findByFileEntryId(long fileEntryId) throws SystemException
findByFileEntryId
in interface DLFileEntryMetadataPersistence
fileEntryId
- the file entry ID
SystemException
- if a system exception occurredpublic 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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByFileEntryId
in interface DLFileEntryMetadataPersistence
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 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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByFileEntryId
in interface DLFileEntryMetadataPersistence
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 DLFileEntryMetadata findByFileEntryId_First(long fileEntryId, OrderByComparator orderByComparator) throws NoSuchFileEntryMetadataException, SystemException
findByFileEntryId_First
in interface DLFileEntryMetadataPersistence
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 DLFileEntryMetadata fetchByFileEntryId_First(long fileEntryId, OrderByComparator orderByComparator) throws SystemException
fetchByFileEntryId_First
in interface DLFileEntryMetadataPersistence
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 DLFileEntryMetadata findByFileEntryId_Last(long fileEntryId, OrderByComparator orderByComparator) throws NoSuchFileEntryMetadataException, SystemException
findByFileEntryId_Last
in interface DLFileEntryMetadataPersistence
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 DLFileEntryMetadata fetchByFileEntryId_Last(long fileEntryId, OrderByComparator orderByComparator) throws SystemException
fetchByFileEntryId_Last
in interface DLFileEntryMetadataPersistence
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 DLFileEntryMetadata[] findByFileEntryId_PrevAndNext(long fileEntryMetadataId, long fileEntryId, OrderByComparator orderByComparator) throws NoSuchFileEntryMetadataException, SystemException
findByFileEntryId_PrevAndNext
in interface DLFileEntryMetadataPersistence
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 occurredprotected DLFileEntryMetadata getByFileEntryId_PrevAndNext(Session session, DLFileEntryMetadata dlFileEntryMetadata, long fileEntryId, OrderByComparator orderByComparator, boolean previous)
public void removeByFileEntryId(long fileEntryId) throws SystemException
removeByFileEntryId
in interface DLFileEntryMetadataPersistence
fileEntryId
- the file entry ID
SystemException
- if a system exception occurredpublic int countByFileEntryId(long fileEntryId) throws SystemException
countByFileEntryId
in interface DLFileEntryMetadataPersistence
fileEntryId
- the file entry ID
SystemException
- if a system exception occurredpublic List<DLFileEntryMetadata> findByFileVersionId(long fileVersionId) throws SystemException
findByFileVersionId
in interface DLFileEntryMetadataPersistence
fileVersionId
- the file version ID
SystemException
- if a system exception occurredpublic 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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByFileVersionId
in interface DLFileEntryMetadataPersistence
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 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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByFileVersionId
in interface DLFileEntryMetadataPersistence
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 DLFileEntryMetadata findByFileVersionId_First(long fileVersionId, OrderByComparator orderByComparator) throws NoSuchFileEntryMetadataException, SystemException
findByFileVersionId_First
in interface DLFileEntryMetadataPersistence
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 DLFileEntryMetadata fetchByFileVersionId_First(long fileVersionId, OrderByComparator orderByComparator) throws SystemException
fetchByFileVersionId_First
in interface DLFileEntryMetadataPersistence
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 DLFileEntryMetadata findByFileVersionId_Last(long fileVersionId, OrderByComparator orderByComparator) throws NoSuchFileEntryMetadataException, SystemException
findByFileVersionId_Last
in interface DLFileEntryMetadataPersistence
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 DLFileEntryMetadata fetchByFileVersionId_Last(long fileVersionId, OrderByComparator orderByComparator) throws SystemException
fetchByFileVersionId_Last
in interface DLFileEntryMetadataPersistence
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 DLFileEntryMetadata[] findByFileVersionId_PrevAndNext(long fileEntryMetadataId, long fileVersionId, OrderByComparator orderByComparator) throws NoSuchFileEntryMetadataException, SystemException
findByFileVersionId_PrevAndNext
in interface DLFileEntryMetadataPersistence
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 occurredprotected DLFileEntryMetadata getByFileVersionId_PrevAndNext(Session session, DLFileEntryMetadata dlFileEntryMetadata, long fileVersionId, OrderByComparator orderByComparator, boolean previous)
public void removeByFileVersionId(long fileVersionId) throws SystemException
removeByFileVersionId
in interface DLFileEntryMetadataPersistence
fileVersionId
- the file version ID
SystemException
- if a system exception occurredpublic int countByFileVersionId(long fileVersionId) throws SystemException
countByFileVersionId
in interface DLFileEntryMetadataPersistence
fileVersionId
- the file version ID
SystemException
- if a system exception occurredpublic DLFileEntryMetadata findByD_F(long DDMStructureId, long fileVersionId) throws NoSuchFileEntryMetadataException, SystemException
NoSuchFileEntryMetadataException
if it could not be found.
findByD_F
in interface DLFileEntryMetadataPersistence
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 DLFileEntryMetadata fetchByD_F(long DDMStructureId, long fileVersionId) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByD_F
in interface DLFileEntryMetadataPersistence
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 DLFileEntryMetadata fetchByD_F(long DDMStructureId, long fileVersionId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByD_F
in interface DLFileEntryMetadataPersistence
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 DLFileEntryMetadata removeByD_F(long DDMStructureId, long fileVersionId) throws NoSuchFileEntryMetadataException, SystemException
removeByD_F
in interface DLFileEntryMetadataPersistence
DDMStructureId
- the d d m structure IDfileVersionId
- the file version ID
SystemException
- if a system exception occurred
NoSuchFileEntryMetadataException
public int countByD_F(long DDMStructureId, long fileVersionId) throws SystemException
countByD_F
in interface DLFileEntryMetadataPersistence
DDMStructureId
- the d d m structure IDfileVersionId
- the file version ID
SystemException
- if a system exception occurredpublic void cacheResult(DLFileEntryMetadata dlFileEntryMetadata)
cacheResult
in interface DLFileEntryMetadataPersistence
dlFileEntryMetadata
- the document library file entry metadatapublic void cacheResult(List<DLFileEntryMetadata> dlFileEntryMetadatas)
cacheResult
in interface DLFileEntryMetadataPersistence
dlFileEntryMetadatas
- the document library file entry metadataspublic void clearCache()
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<DLFileEntryMetadata>
clearCache
in class BasePersistenceImpl<DLFileEntryMetadata>
public void clearCache(DLFileEntryMetadata dlFileEntryMetadata)
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<DLFileEntryMetadata>
clearCache
in class BasePersistenceImpl<DLFileEntryMetadata>
dlFileEntryMetadata
- the instance of this model to clear the cache forpublic void clearCache(List<DLFileEntryMetadata> dlFileEntryMetadatas)
BasePersistence
The EntityCache
and FinderCache
are both cleared by this
method.
clearCache
in interface BasePersistence<DLFileEntryMetadata>
clearCache
in class BasePersistenceImpl<DLFileEntryMetadata>
dlFileEntryMetadatas
- the List instances of this model to clear the cache forprotected void cacheUniqueFindersCache(DLFileEntryMetadata dlFileEntryMetadata)
protected void clearUniqueFindersCache(DLFileEntryMetadata dlFileEntryMetadata)
public DLFileEntryMetadata create(long fileEntryMetadataId)
create
in interface DLFileEntryMetadataPersistence
fileEntryMetadataId
- the primary key for the new document library file entry metadata
public DLFileEntryMetadata remove(long fileEntryMetadataId) throws NoSuchFileEntryMetadataException, SystemException
remove
in interface DLFileEntryMetadataPersistence
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 DLFileEntryMetadata remove(Serializable primaryKey) throws NoSuchFileEntryMetadataException, SystemException
remove
in interface BasePersistence<DLFileEntryMetadata>
remove
in class BasePersistenceImpl<DLFileEntryMetadata>
primaryKey
- 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 occurredprotected DLFileEntryMetadata removeImpl(DLFileEntryMetadata dlFileEntryMetadata) 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<DLFileEntryMetadata>
dlFileEntryMetadata
- the model instance to remove
SystemException
- if a system exception occurredpublic DLFileEntryMetadata updateImpl(DLFileEntryMetadata dlFileEntryMetadata) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.remove(BaseModel)
depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl
in interface DLFileEntryMetadataPersistence
updateImpl
in class BasePersistenceImpl<DLFileEntryMetadata>
dlFileEntryMetadata
- the model instance to update
SystemException
- if a system exception occurredprotected DLFileEntryMetadata toUnwrappedModel(DLFileEntryMetadata dlFileEntryMetadata)
public DLFileEntryMetadata findByPrimaryKey(Serializable primaryKey) throws NoSuchFileEntryMetadataException, SystemException
NoSuchModelException
if it could not be found.
findByPrimaryKey
in interface BasePersistence<DLFileEntryMetadata>
findByPrimaryKey
in class BasePersistenceImpl<DLFileEntryMetadata>
primaryKey
- 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 DLFileEntryMetadata findByPrimaryKey(long fileEntryMetadataId) throws NoSuchFileEntryMetadataException, SystemException
NoSuchFileEntryMetadataException
if it could not be found.
findByPrimaryKey
in interface DLFileEntryMetadataPersistence
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 DLFileEntryMetadata fetchByPrimaryKey(Serializable primaryKey) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface BasePersistence<DLFileEntryMetadata>
fetchByPrimaryKey
in class BasePersistenceImpl<DLFileEntryMetadata>
primaryKey
- 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 DLFileEntryMetadata fetchByPrimaryKey(long fileEntryMetadataId) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface DLFileEntryMetadataPersistence
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 List<DLFileEntryMetadata> findAll() throws SystemException
findAll
in interface DLFileEntryMetadataPersistence
SystemException
- if a system exception occurredpublic 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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll
in interface DLFileEntryMetadataPersistence
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 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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll
in interface DLFileEntryMetadataPersistence
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 void removeAll() throws SystemException
removeAll
in interface DLFileEntryMetadataPersistence
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface DLFileEntryMetadataPersistence
SystemException
- if a system exception occurredprotected Set<String> getBadColumnNames()
getBadColumnNames
in class BasePersistenceImpl<DLFileEntryMetadata>
public void afterPropertiesSet()
public void destroy()
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |