|
Liferay 6.1.0-ce-rc1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DLContentPersistence
The persistence interface for the document library content service.
Caching information and settings can be found in portal.properties
DLContentPersistenceImpl,
DLContentUtil| Method Summary | |
|---|---|
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. |
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. |
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. |
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 |
remove(long contentId)
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. |
void |
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. |
DLContent |
updateImpl(DLContent dlContent,
boolean merge)
|
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update |
| Method Detail |
|---|
void cacheResult(DLContent dlContent)
dlContent - the document library contentvoid cacheResult(List<DLContent> dlContents)
dlContents - the document library contentsDLContent create(long contentId)
contentId - the primary key for the new document library content
DLContent remove(long contentId)
throws SystemException,
NoSuchContentException
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 occurred
DLContent updateImpl(DLContent dlContent,
boolean merge)
throws SystemException
SystemException
DLContent findByPrimaryKey(long contentId)
throws SystemException,
NoSuchContentException
NoSuchContentException if it could not be found.
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 occurred
DLContent fetchByPrimaryKey(long contentId)
throws SystemException
null if it could not be found.
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 occurred
List<DLContent> findByC_R(long companyId,
long repositoryId)
throws SystemException
companyId - the company IDrepositoryId - the repository ID
SystemException - if a system exception occurred
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.
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 occurred
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.
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 occurred
DLContent findByC_R_First(long companyId,
long repositoryId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchContentException
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.
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 occurred
DLContent findByC_R_Last(long companyId,
long repositoryId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchContentException
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.
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 occurred
DLContent[] findByC_R_PrevAndNext(long contentId,
long companyId,
long repositoryId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchContentException
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.
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 occurred
List<DLContent> findByC_R_P(long companyId,
long repositoryId,
String path)
throws SystemException
companyId - the company IDrepositoryId - the repository IDpath - the path
SystemException - if a system exception occurred
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.
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 occurred
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.
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 occurred
DLContent findByC_R_P_First(long companyId,
long repositoryId,
String path,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchContentException
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.
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 occurred
DLContent findByC_R_P_Last(long companyId,
long repositoryId,
String path,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchContentException
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.
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 occurred
DLContent[] findByC_R_P_PrevAndNext(long contentId,
long companyId,
long repositoryId,
String path,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchContentException
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.
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 occurred
List<DLContent> findByC_R_LikeP(long companyId,
long repositoryId,
String path)
throws SystemException
companyId - the company IDrepositoryId - the repository IDpath - the path
SystemException - if a system exception occurred
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.
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 occurred
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.
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 occurred
DLContent findByC_R_LikeP_First(long companyId,
long repositoryId,
String path,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchContentException
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.
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 occurred
DLContent findByC_R_LikeP_Last(long companyId,
long repositoryId,
String path,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchContentException
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.
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 occurred
DLContent[] findByC_R_LikeP_PrevAndNext(long contentId,
long companyId,
long repositoryId,
String path,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchContentException
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.
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 occurred
DLContent findByC_R_P_V(long companyId,
long repositoryId,
String path,
String version)
throws SystemException,
NoSuchContentException
NoSuchContentException if it could not be found.
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 occurred
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.
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 occurred
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.
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 occurred
List<DLContent> findAll()
throws SystemException
SystemException - if a system exception occurred
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.
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 occurred
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.
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 occurred
void removeByC_R(long companyId,
long repositoryId)
throws SystemException
companyId - the company IDrepositoryId - the repository ID
SystemException - if a system exception occurred
void removeByC_R_P(long companyId,
long repositoryId,
String path)
throws SystemException
companyId - the company IDrepositoryId - the repository IDpath - the path
SystemException - if a system exception occurred
void removeByC_R_LikeP(long companyId,
long repositoryId,
String path)
throws SystemException
companyId - the company IDrepositoryId - the repository IDpath - the path
SystemException - if a system exception occurred
void removeByC_R_P_V(long companyId,
long repositoryId,
String path,
String version)
throws SystemException,
NoSuchContentException
companyId - the company IDrepositoryId - the repository IDpath - the pathversion - the version
SystemException - if a system exception occurred
NoSuchContentException
void removeAll()
throws SystemException
SystemException - if a system exception occurred
int countByC_R(long companyId,
long repositoryId)
throws SystemException
companyId - the company IDrepositoryId - the repository ID
SystemException - if a system exception occurred
int countByC_R_P(long companyId,
long repositoryId,
String path)
throws SystemException
companyId - the company IDrepositoryId - the repository IDpath - the path
SystemException - if a system exception occurred
int countByC_R_LikeP(long companyId,
long repositoryId,
String path)
throws SystemException
companyId - the company IDrepositoryId - the repository IDpath - the path
SystemException - if a system exception occurred
int countByC_R_P_V(long companyId,
long repositoryId,
String path,
String version)
throws SystemException
companyId - the company IDrepositoryId - the repository IDpath - the pathversion - the version
SystemException - if a system exception occurred
int countAll()
throws SystemException
SystemException - if a system exception occurred
|
Liferay 6.1.0-ce-rc1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||