|
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<DLContent> com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistenceImpl
public class DLContentPersistenceImpl
The persistence implementation for the document library content service.
Caching information and settings can be found in portal.properties
DLContentPersistence
,
DLContentUtil
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 | |
---|---|
DLContentPersistenceImpl()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Initializes the document library content persistence. |
void |
cacheResult(DLContent dlContent)
Caches the document library content in the entity cache if it is enabled. |
void |
cacheResult(List<DLContent> dlContents)
Caches the document library contents in the entity cache if it is enabled. |
protected void |
cacheUniqueFindersCache(DLContent dlContent)
|
void |
clearCache()
Clears the cache for all document library contents. |
void |
clearCache(DLContent dlContent)
Clears the cache for the document library content. |
void |
clearCache(List<DLContent> dlContents)
Clears the cache for a List instances of this model. |
protected void |
clearUniqueFindersCache(DLContent dlContent)
|
int |
countAll()
Returns the number of document library contents. |
int |
countByC_R_LikeP(long companyId,
long repositoryId,
String path)
Returns the number of document library contents where companyId = ? and repositoryId = ? and path LIKE ?. |
int |
countByC_R_P_V(long companyId,
long repositoryId,
String path,
String version)
Returns the number of document library contents where companyId = ? and repositoryId = ? and path = ? and version = ?. |
int |
countByC_R_P(long companyId,
long repositoryId,
String path)
Returns the number of document library contents where companyId = ? and repositoryId = ? and path = ?. |
int |
countByC_R(long companyId,
long repositoryId)
Returns the number of document library contents where companyId = ? and repositoryId = ?. |
DLContent |
create(long contentId)
Creates a new document library content with the primary key. |
void |
destroy()
|
DLContent |
fetchByC_R_First(long companyId,
long repositoryId,
OrderByComparator orderByComparator)
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ?. |
DLContent |
fetchByC_R_Last(long companyId,
long repositoryId,
OrderByComparator orderByComparator)
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ?. |
DLContent |
fetchByC_R_LikeP_First(long companyId,
long repositoryId,
String path,
OrderByComparator orderByComparator)
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?. |
DLContent |
fetchByC_R_LikeP_Last(long companyId,
long repositoryId,
String path,
OrderByComparator orderByComparator)
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?. |
DLContent |
fetchByC_R_P_First(long companyId,
long repositoryId,
String path,
OrderByComparator orderByComparator)
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?. |
DLContent |
fetchByC_R_P_Last(long companyId,
long repositoryId,
String path,
OrderByComparator orderByComparator)
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?. |
DLContent |
fetchByC_R_P_V(long companyId,
long repositoryId,
String path,
String version)
Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or returns null if it could not be found. |
DLContent |
fetchByC_R_P_V(long companyId,
long repositoryId,
String path,
String version,
boolean retrieveFromCache)
Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or returns null if it could not be found, optionally using the finder cache. |
DLContent |
fetchByPrimaryKey(long contentId)
Returns the document library content with the primary key or returns null if it could not be found. |
DLContent |
fetchByPrimaryKey(Serializable primaryKey)
Returns the document library content with the primary key or returns null if it could not be found. |
List<DLContent> |
findAll()
Returns all the document library contents. |
List<DLContent> |
findAll(int start,
int end)
Returns a range of all the document library contents. |
List<DLContent> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the document library contents. |
DLContent |
findByC_R_First(long companyId,
long repositoryId,
OrderByComparator orderByComparator)
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ?. |
DLContent |
findByC_R_Last(long companyId,
long repositoryId,
OrderByComparator orderByComparator)
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ?. |
DLContent |
findByC_R_LikeP_First(long companyId,
long repositoryId,
String path,
OrderByComparator orderByComparator)
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?. |
DLContent |
findByC_R_LikeP_Last(long companyId,
long repositoryId,
String path,
OrderByComparator orderByComparator)
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?. |
DLContent[] |
findByC_R_LikeP_PrevAndNext(long contentId,
long companyId,
long repositoryId,
String path,
OrderByComparator orderByComparator)
Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?. |
List<DLContent> |
findByC_R_LikeP(long companyId,
long repositoryId,
String path)
Returns all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?. |
List<DLContent> |
findByC_R_LikeP(long companyId,
long repositoryId,
String path,
int start,
int end)
Returns a range of all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?. |
List<DLContent> |
findByC_R_LikeP(long companyId,
long repositoryId,
String path,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?. |
DLContent |
findByC_R_P_First(long companyId,
long repositoryId,
String path,
OrderByComparator orderByComparator)
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?. |
DLContent |
findByC_R_P_Last(long companyId,
long repositoryId,
String path,
OrderByComparator orderByComparator)
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?. |
DLContent[] |
findByC_R_P_PrevAndNext(long contentId,
long companyId,
long repositoryId,
String path,
OrderByComparator orderByComparator)
Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?. |
DLContent |
findByC_R_P_V(long companyId,
long repositoryId,
String path,
String version)
Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or throws a NoSuchContentException if it could not be found. |
List<DLContent> |
findByC_R_P(long companyId,
long repositoryId,
String path)
Returns all the document library contents where companyId = ? and repositoryId = ? and path = ?. |
List<DLContent> |
findByC_R_P(long companyId,
long repositoryId,
String path,
int start,
int end)
Returns a range of all the document library contents where companyId = ? and repositoryId = ? and path = ?. |
List<DLContent> |
findByC_R_P(long companyId,
long repositoryId,
String path,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path = ?. |
DLContent[] |
findByC_R_PrevAndNext(long contentId,
long companyId,
long repositoryId,
OrderByComparator orderByComparator)
Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ?. |
List<DLContent> |
findByC_R(long companyId,
long repositoryId)
Returns all the document library contents where companyId = ? and repositoryId = ?. |
List<DLContent> |
findByC_R(long companyId,
long repositoryId,
int start,
int end)
Returns a range of all the document library contents where companyId = ? and repositoryId = ?. |
List<DLContent> |
findByC_R(long companyId,
long repositoryId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ?. |
DLContent |
findByPrimaryKey(long contentId)
Returns the document library content with the primary key or throws a NoSuchContentException if it could not be found. |
DLContent |
findByPrimaryKey(Serializable primaryKey)
Returns the document library content with the primary key or throws a NoSuchModelException if it could not be found. |
protected DLContent |
getByC_R_LikeP_PrevAndNext(Session session,
DLContent dlContent,
long companyId,
long repositoryId,
String path,
OrderByComparator orderByComparator,
boolean previous)
|
protected DLContent |
getByC_R_P_PrevAndNext(Session session,
DLContent dlContent,
long companyId,
long repositoryId,
String path,
OrderByComparator orderByComparator,
boolean previous)
|
protected DLContent |
getByC_R_PrevAndNext(Session session,
DLContent dlContent,
long companyId,
long repositoryId,
OrderByComparator orderByComparator,
boolean previous)
|
DLContent |
remove(long contentId)
Removes the document library content with the primary key from the database. |
DLContent |
remove(Serializable primaryKey)
Removes the document library content with the primary key from the database. |
void |
removeAll()
Removes all the document library contents from the database. |
void |
removeByC_R_LikeP(long companyId,
long repositoryId,
String path)
Removes all the document library contents where companyId = ? and repositoryId = ? and path LIKE ? from the database. |
DLContent |
removeByC_R_P_V(long companyId,
long repositoryId,
String path,
String version)
Removes the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? from the database. |
void |
removeByC_R_P(long companyId,
long repositoryId,
String path)
Removes all the document library contents where companyId = ? and repositoryId = ? and path = ? from the database. |
void |
removeByC_R(long companyId,
long repositoryId)
Removes all the document library contents where companyId = ? and repositoryId = ? from the database. |
protected DLContent |
removeImpl(DLContent dlContent)
Removes the model instance from the database. |
protected DLContent |
toUnwrappedModel(DLContent dlContent)
|
DLContent |
updateImpl(DLContent dlContent,
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_C_R
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_R
public static final FinderPath FINDER_PATH_COUNT_BY_C_R
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_R_P
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_R_P
public static final FinderPath FINDER_PATH_COUNT_BY_C_R_P
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_R_LIKEP
public static final FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_C_R_LIKEP
public static final FinderPath FINDER_PATH_FETCH_BY_C_R_P_V
public static final FinderPath FINDER_PATH_COUNT_BY_C_R_P_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 DLContentPersistenceImpl()
Method Detail |
---|
public void cacheResult(DLContent dlContent)
cacheResult
in interface DLContentPersistence
dlContent
- the document library contentpublic void cacheResult(List<DLContent> dlContents)
cacheResult
in interface DLContentPersistence
dlContents
- the document library contentspublic void clearCache()
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<DLContent>
clearCache
in class BasePersistenceImpl<DLContent>
public void clearCache(DLContent dlContent)
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<DLContent>
clearCache
in class BasePersistenceImpl<DLContent>
dlContent
- the instance of this model to clear the cache forpublic void clearCache(List<DLContent> dlContents)
BasePersistence
The EntityCache
and FinderCache
are both cleared by this
method.
clearCache
in interface BasePersistence<DLContent>
clearCache
in class BasePersistenceImpl<DLContent>
dlContents
- the List instances of this model to clear the cache forprotected void cacheUniqueFindersCache(DLContent dlContent)
protected void clearUniqueFindersCache(DLContent dlContent)
public DLContent create(long contentId)
create
in interface DLContentPersistence
contentId
- the primary key for the new document library content
public DLContent remove(long contentId) throws NoSuchContentException, SystemException
remove
in interface DLContentPersistence
contentId
- the primary key of the document library content
NoSuchContentException
- if a document library content with the primary key could not be found
SystemException
- if a system exception occurredpublic DLContent remove(Serializable primaryKey) throws NoSuchContentException, SystemException
remove
in interface BasePersistence<DLContent>
remove
in class BasePersistenceImpl<DLContent>
primaryKey
- the primary key of the document library content
NoSuchContentException
- if a document library content with the primary key could not be found
SystemException
- if a system exception occurredprotected DLContent removeImpl(DLContent dlContent) 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<DLContent>
dlContent
- the model instance to remove
SystemException
- if a system exception occurredpublic DLContent updateImpl(DLContent dlContent, 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 DLContentPersistence
updateImpl
in class BasePersistenceImpl<DLContent>
dlContent
- 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 DLContent toUnwrappedModel(DLContent dlContent)
public DLContent findByPrimaryKey(Serializable primaryKey) throws NoSuchModelException, SystemException
NoSuchModelException
if it could not be found.
findByPrimaryKey
in interface BasePersistence<DLContent>
findByPrimaryKey
in class BasePersistenceImpl<DLContent>
primaryKey
- the primary key of the document library content
NoSuchModelException
- if a document library content with the primary key could not be found
SystemException
- if a system exception occurredpublic DLContent findByPrimaryKey(long contentId) throws NoSuchContentException, SystemException
NoSuchContentException
if it could not be found.
findByPrimaryKey
in interface DLContentPersistence
contentId
- the primary key of the document library content
NoSuchContentException
- if a document library content with the primary key could not be found
SystemException
- if a system exception occurredpublic DLContent fetchByPrimaryKey(Serializable primaryKey) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface BasePersistence<DLContent>
fetchByPrimaryKey
in class BasePersistenceImpl<DLContent>
primaryKey
- the primary key of the document library content
null
if a document library content with the primary key could not be found
SystemException
- if a system exception occurredpublic DLContent fetchByPrimaryKey(long contentId) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface DLContentPersistence
contentId
- the primary key of the document library content
null
if a document library content with the primary key could not be found
SystemException
- if a system exception occurredpublic List<DLContent> findByC_R(long companyId, long repositoryId) throws SystemException
findByC_R
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository ID
SystemException
- if a system exception occurredpublic List<DLContent> findByC_R(long companyId, long repositoryId, 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.
findByC_R
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDstart
- the lower bound of the range of document library contentsend
- the upper bound of the range of document library contents (not inclusive)
SystemException
- if a system exception occurredpublic List<DLContent> findByC_R(long companyId, long repositoryId, 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.
findByC_R
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDstart
- the lower bound of the range of document library contentsend
- the upper bound of the range of document library contents (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic DLContent findByC_R_First(long companyId, long repositoryId, OrderByComparator orderByComparator) throws NoSuchContentException, SystemException
findByC_R_First
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchContentException
- if a matching document library content could not be found
SystemException
- if a system exception occurredpublic DLContent fetchByC_R_First(long companyId, long repositoryId, OrderByComparator orderByComparator) throws SystemException
fetchByC_R_First
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library content could not be found
SystemException
- if a system exception occurredpublic DLContent findByC_R_Last(long companyId, long repositoryId, OrderByComparator orderByComparator) throws NoSuchContentException, SystemException
findByC_R_Last
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchContentException
- if a matching document library content could not be found
SystemException
- if a system exception occurredpublic DLContent fetchByC_R_Last(long companyId, long repositoryId, OrderByComparator orderByComparator) throws SystemException
fetchByC_R_Last
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library content could not be found
SystemException
- if a system exception occurredpublic DLContent[] findByC_R_PrevAndNext(long contentId, long companyId, long repositoryId, OrderByComparator orderByComparator) throws NoSuchContentException, SystemException
findByC_R_PrevAndNext
in interface DLContentPersistence
contentId
- the primary key of the current document library contentcompanyId
- the company IDrepositoryId
- the repository IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchContentException
- if a document library content with the primary key could not be found
SystemException
- if a system exception occurredprotected DLContent getByC_R_PrevAndNext(Session session, DLContent dlContent, long companyId, long repositoryId, OrderByComparator orderByComparator, boolean previous)
public List<DLContent> findByC_R_P(long companyId, long repositoryId, String path) throws SystemException
findByC_R_P
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the path
SystemException
- if a system exception occurredpublic List<DLContent> findByC_R_P(long companyId, long repositoryId, String path, 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.
findByC_R_P
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathstart
- the lower bound of the range of document library contentsend
- the upper bound of the range of document library contents (not inclusive)
SystemException
- if a system exception occurredpublic List<DLContent> findByC_R_P(long companyId, long repositoryId, String path, 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.
findByC_R_P
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathstart
- the lower bound of the range of document library contentsend
- the upper bound of the range of document library contents (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic DLContent findByC_R_P_First(long companyId, long repositoryId, String path, OrderByComparator orderByComparator) throws NoSuchContentException, SystemException
findByC_R_P_First
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchContentException
- if a matching document library content could not be found
SystemException
- if a system exception occurredpublic DLContent fetchByC_R_P_First(long companyId, long repositoryId, String path, OrderByComparator orderByComparator) throws SystemException
fetchByC_R_P_First
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library content could not be found
SystemException
- if a system exception occurredpublic DLContent findByC_R_P_Last(long companyId, long repositoryId, String path, OrderByComparator orderByComparator) throws NoSuchContentException, SystemException
findByC_R_P_Last
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchContentException
- if a matching document library content could not be found
SystemException
- if a system exception occurredpublic DLContent fetchByC_R_P_Last(long companyId, long repositoryId, String path, OrderByComparator orderByComparator) throws SystemException
fetchByC_R_P_Last
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library content could not be found
SystemException
- if a system exception occurredpublic DLContent[] findByC_R_P_PrevAndNext(long contentId, long companyId, long repositoryId, String path, OrderByComparator orderByComparator) throws NoSuchContentException, SystemException
findByC_R_P_PrevAndNext
in interface DLContentPersistence
contentId
- the primary key of the current document library contentcompanyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchContentException
- if a document library content with the primary key could not be found
SystemException
- if a system exception occurredprotected DLContent getByC_R_P_PrevAndNext(Session session, DLContent dlContent, long companyId, long repositoryId, String path, OrderByComparator orderByComparator, boolean previous)
public List<DLContent> findByC_R_LikeP(long companyId, long repositoryId, String path) throws SystemException
findByC_R_LikeP
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the path
SystemException
- if a system exception occurredpublic List<DLContent> findByC_R_LikeP(long companyId, long repositoryId, String path, 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.
findByC_R_LikeP
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathstart
- the lower bound of the range of document library contentsend
- the upper bound of the range of document library contents (not inclusive)
SystemException
- if a system exception occurredpublic List<DLContent> findByC_R_LikeP(long companyId, long repositoryId, String path, 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.
findByC_R_LikeP
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathstart
- the lower bound of the range of document library contentsend
- the upper bound of the range of document library contents (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic DLContent findByC_R_LikeP_First(long companyId, long repositoryId, String path, OrderByComparator orderByComparator) throws NoSuchContentException, SystemException
findByC_R_LikeP_First
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchContentException
- if a matching document library content could not be found
SystemException
- if a system exception occurredpublic DLContent fetchByC_R_LikeP_First(long companyId, long repositoryId, String path, OrderByComparator orderByComparator) throws SystemException
fetchByC_R_LikeP_First
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library content could not be found
SystemException
- if a system exception occurredpublic DLContent findByC_R_LikeP_Last(long companyId, long repositoryId, String path, OrderByComparator orderByComparator) throws NoSuchContentException, SystemException
findByC_R_LikeP_Last
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchContentException
- if a matching document library content could not be found
SystemException
- if a system exception occurredpublic DLContent fetchByC_R_LikeP_Last(long companyId, long repositoryId, String path, OrderByComparator orderByComparator) throws SystemException
fetchByC_R_LikeP_Last
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library content could not be found
SystemException
- if a system exception occurredpublic DLContent[] findByC_R_LikeP_PrevAndNext(long contentId, long companyId, long repositoryId, String path, OrderByComparator orderByComparator) throws NoSuchContentException, SystemException
findByC_R_LikeP_PrevAndNext
in interface DLContentPersistence
contentId
- the primary key of the current document library contentcompanyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchContentException
- if a document library content with the primary key could not be found
SystemException
- if a system exception occurredprotected DLContent getByC_R_LikeP_PrevAndNext(Session session, DLContent dlContent, long companyId, long repositoryId, String path, OrderByComparator orderByComparator, boolean previous)
public DLContent findByC_R_P_V(long companyId, long repositoryId, String path, String version) throws NoSuchContentException, SystemException
NoSuchContentException
if it could not be found.
findByC_R_P_V
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathversion
- the version
NoSuchContentException
- if a matching document library content could not be found
SystemException
- if a system exception occurredpublic DLContent fetchByC_R_P_V(long companyId, long repositoryId, String path, String version) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByC_R_P_V
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathversion
- the version
null
if a matching document library content could not be found
SystemException
- if a system exception occurredpublic DLContent fetchByC_R_P_V(long companyId, long repositoryId, String path, String version, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByC_R_P_V
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathversion
- the versionretrieveFromCache
- whether to use the finder cache
null
if a matching document library content could not be found
SystemException
- if a system exception occurredpublic List<DLContent> findAll() throws SystemException
findAll
in interface DLContentPersistence
SystemException
- if a system exception occurredpublic List<DLContent> 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 DLContentPersistence
start
- the lower bound of the range of document library contentsend
- the upper bound of the range of document library contents (not inclusive)
SystemException
- if a system exception occurredpublic List<DLContent> 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 DLContentPersistence
start
- the lower bound of the range of document library contentsend
- the upper bound of the range of document library contents (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic void removeByC_R(long companyId, long repositoryId) throws SystemException
removeByC_R
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository ID
SystemException
- if a system exception occurredpublic void removeByC_R_P(long companyId, long repositoryId, String path) throws SystemException
removeByC_R_P
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the path
SystemException
- if a system exception occurredpublic void removeByC_R_LikeP(long companyId, long repositoryId, String path) throws SystemException
removeByC_R_LikeP
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the path
SystemException
- if a system exception occurredpublic DLContent removeByC_R_P_V(long companyId, long repositoryId, String path, String version) throws NoSuchContentException, SystemException
removeByC_R_P_V
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathversion
- the version
SystemException
- if a system exception occurred
NoSuchContentException
public void removeAll() throws SystemException
removeAll
in interface DLContentPersistence
SystemException
- if a system exception occurredpublic int countByC_R(long companyId, long repositoryId) throws SystemException
countByC_R
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository ID
SystemException
- if a system exception occurredpublic int countByC_R_P(long companyId, long repositoryId, String path) throws SystemException
countByC_R_P
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the path
SystemException
- if a system exception occurredpublic int countByC_R_LikeP(long companyId, long repositoryId, String path) throws SystemException
countByC_R_LikeP
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the path
SystemException
- if a system exception occurredpublic int countByC_R_P_V(long companyId, long repositoryId, String path, String version) throws SystemException
countByC_R_P_V
in interface DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathversion
- the version
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface DLContentPersistence
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 |