|
Liferay 6.2.0-ce-m1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TrashEntryPersistence
The persistence interface for the trash entry service.
Caching information and settings can be found in portal.properties
TrashEntryPersistenceImpl,
TrashEntryUtil| Method Summary | |
|---|---|
void |
cacheResult(List<TrashEntry> trashEntries)
Caches the trash entries in the entity cache if it is enabled. |
void |
cacheResult(TrashEntry trashEntry)
Caches the trash entry in the entity cache if it is enabled. |
boolean |
containsTrashVersion(long pk,
long trashVersionPK)
Returns true if the trash version is associated with the trash entry. |
boolean |
containsTrashVersions(long pk)
Returns true if the trash entry has any trash versions associated with it. |
int |
countAll()
Returns the number of trash entries. |
int |
countByC_C(long classNameId,
long classPK)
Returns the number of trash entries where classNameId = ? and classPK = ?. |
int |
countByCompanyId(long companyId)
Returns the number of trash entries where companyId = ?. |
int |
countByG_LtCD(long groupId,
Date createDate)
Returns the number of trash entries where groupId = ? and createDate < ?. |
int |
countByGroupId(long groupId)
Returns the number of trash entries where groupId = ?. |
TrashEntry |
create(long entryId)
Creates a new trash entry with the primary key. |
TrashEntry |
fetchByC_C(long classNameId,
long classPK)
Returns the trash entry where classNameId = ? and classPK = ? or returns null if it could not be found. |
TrashEntry |
fetchByC_C(long classNameId,
long classPK,
boolean retrieveFromCache)
Returns the trash entry where classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache. |
TrashEntry |
fetchByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Returns the first trash entry in the ordered set where companyId = ?. |
TrashEntry |
fetchByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Returns the last trash entry in the ordered set where companyId = ?. |
TrashEntry |
fetchByG_LtCD_First(long groupId,
Date createDate,
OrderByComparator orderByComparator)
Returns the first trash entry in the ordered set where groupId = ? and createDate < ?. |
TrashEntry |
fetchByG_LtCD_Last(long groupId,
Date createDate,
OrderByComparator orderByComparator)
Returns the last trash entry in the ordered set where groupId = ? and createDate < ?. |
TrashEntry |
fetchByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first trash entry in the ordered set where groupId = ?. |
TrashEntry |
fetchByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last trash entry in the ordered set where groupId = ?. |
TrashEntry |
fetchByPrimaryKey(long entryId)
Returns the trash entry with the primary key or returns null if it could not be found. |
List<TrashEntry> |
findAll()
Returns all the trash entries. |
List<TrashEntry> |
findAll(int start,
int end)
Returns a range of all the trash entries. |
List<TrashEntry> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the trash entries. |
TrashEntry |
findByC_C(long classNameId,
long classPK)
Returns the trash entry where classNameId = ? and classPK = ? or throws a NoSuchEntryException if it could not be found. |
TrashEntry |
findByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Returns the first trash entry in the ordered set where companyId = ?. |
TrashEntry |
findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Returns the last trash entry in the ordered set where companyId = ?. |
TrashEntry[] |
findByCompanyId_PrevAndNext(long entryId,
long companyId,
OrderByComparator orderByComparator)
Returns the trash entries before and after the current trash entry in the ordered set where companyId = ?. |
List<TrashEntry> |
findByCompanyId(long companyId)
Returns all the trash entries where companyId = ?. |
List<TrashEntry> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the trash entries where companyId = ?. |
List<TrashEntry> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the trash entries where companyId = ?. |
TrashEntry |
findByG_LtCD_First(long groupId,
Date createDate,
OrderByComparator orderByComparator)
Returns the first trash entry in the ordered set where groupId = ? and createDate < ?. |
TrashEntry |
findByG_LtCD_Last(long groupId,
Date createDate,
OrderByComparator orderByComparator)
Returns the last trash entry in the ordered set where groupId = ? and createDate < ?. |
TrashEntry[] |
findByG_LtCD_PrevAndNext(long entryId,
long groupId,
Date createDate,
OrderByComparator orderByComparator)
Returns the trash entries before and after the current trash entry in the ordered set where groupId = ? and createDate < ?. |
List<TrashEntry> |
findByG_LtCD(long groupId,
Date createDate)
Returns all the trash entries where groupId = ? and createDate < ?. |
List<TrashEntry> |
findByG_LtCD(long groupId,
Date createDate,
int start,
int end)
Returns a range of all the trash entries where groupId = ? and createDate < ?. |
List<TrashEntry> |
findByG_LtCD(long groupId,
Date createDate,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the trash entries where groupId = ? and createDate < ?. |
TrashEntry |
findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first trash entry in the ordered set where groupId = ?. |
TrashEntry |
findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last trash entry in the ordered set where groupId = ?. |
TrashEntry[] |
findByGroupId_PrevAndNext(long entryId,
long groupId,
OrderByComparator orderByComparator)
Returns the trash entries before and after the current trash entry in the ordered set where groupId = ?. |
List<TrashEntry> |
findByGroupId(long groupId)
Returns all the trash entries where groupId = ?. |
List<TrashEntry> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the trash entries where groupId = ?. |
List<TrashEntry> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the trash entries where groupId = ?. |
TrashEntry |
findByPrimaryKey(long entryId)
Returns the trash entry with the primary key or throws a NoSuchEntryException if it could not be found. |
List<TrashVersion> |
getTrashVersions(long pk)
Returns all the trash versions associated with the trash entry. |
List<TrashVersion> |
getTrashVersions(long pk,
int start,
int end)
Returns a range of all the trash versions associated with the trash entry. |
List<TrashVersion> |
getTrashVersions(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the trash versions associated with the trash entry. |
int |
getTrashVersionsSize(long pk)
Returns the number of trash versions associated with the trash entry. |
TrashEntry |
remove(long entryId)
Removes the trash entry with the primary key from the database. |
void |
removeAll()
Removes all the trash entries from the database. |
TrashEntry |
removeByC_C(long classNameId,
long classPK)
Removes the trash entry where classNameId = ? and classPK = ? from the database. |
void |
removeByCompanyId(long companyId)
Removes all the trash entries where companyId = ? from the database. |
void |
removeByG_LtCD(long groupId,
Date createDate)
Removes all the trash entries where groupId = ? and createDate < ? from the database. |
void |
removeByGroupId(long groupId)
Removes all the trash entries where groupId = ? from the database. |
TrashEntry |
updateImpl(TrashEntry trashEntry)
|
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update |
| Method Detail |
|---|
void cacheResult(TrashEntry trashEntry)
trashEntry - the trash entryvoid cacheResult(List<TrashEntry> trashEntries)
trashEntries - the trash entriesTrashEntry create(long entryId)
entryId - the primary key for the new trash entry
TrashEntry remove(long entryId)
throws SystemException,
NoSuchEntryException
entryId - the primary key of the trash entry
NoSuchEntryException - if a trash entry with the primary key could not be found
SystemException - if a system exception occurred
TrashEntry updateImpl(TrashEntry trashEntry)
throws SystemException
SystemException
TrashEntry findByPrimaryKey(long entryId)
throws SystemException,
NoSuchEntryException
NoSuchEntryException if it could not be found.
entryId - the primary key of the trash entry
NoSuchEntryException - if a trash entry with the primary key could not be found
SystemException - if a system exception occurred
TrashEntry fetchByPrimaryKey(long entryId)
throws SystemException
null if it could not be found.
entryId - the primary key of the trash entry
null if a trash entry with the primary key could not be found
SystemException - if a system exception occurred
List<TrashEntry> findByGroupId(long groupId)
throws SystemException
groupId - the group ID
SystemException - if a system exception occurred
List<TrashEntry> findByGroupId(long groupId,
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.
groupId - the group IDstart - the lower bound of the range of trash entriesend - the upper bound of the range of trash entries (not inclusive)
SystemException - if a system exception occurred
List<TrashEntry> findByGroupId(long groupId,
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.
groupId - the group IDstart - the lower bound of the range of trash entriesend - the upper bound of the range of trash entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
TrashEntry findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchEntryException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchEntryException - if a matching trash entry could not be found
SystemException - if a system exception occurred
TrashEntry fetchByGroupId_First(long groupId,
OrderByComparator orderByComparator)
throws SystemException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching trash entry could not be found
SystemException - if a system exception occurred
TrashEntry findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchEntryException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchEntryException - if a matching trash entry could not be found
SystemException - if a system exception occurred
TrashEntry fetchByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
throws SystemException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching trash entry could not be found
SystemException - if a system exception occurred
TrashEntry[] findByGroupId_PrevAndNext(long entryId,
long groupId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchEntryException
entryId - the primary key of the current trash entrygroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchEntryException - if a trash entry with the primary key could not be found
SystemException - if a system exception occurred
List<TrashEntry> findByCompanyId(long companyId)
throws SystemException
companyId - the company ID
SystemException - if a system exception occurred
List<TrashEntry> findByCompanyId(long companyId,
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 IDstart - the lower bound of the range of trash entriesend - the upper bound of the range of trash entries (not inclusive)
SystemException - if a system exception occurred
List<TrashEntry> findByCompanyId(long companyId,
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 IDstart - the lower bound of the range of trash entriesend - the upper bound of the range of trash entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
TrashEntry findByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchEntryException
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchEntryException - if a matching trash entry could not be found
SystemException - if a system exception occurred
TrashEntry fetchByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
throws SystemException
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching trash entry could not be found
SystemException - if a system exception occurred
TrashEntry findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchEntryException
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchEntryException - if a matching trash entry could not be found
SystemException - if a system exception occurred
TrashEntry fetchByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
throws SystemException
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching trash entry could not be found
SystemException - if a system exception occurred
TrashEntry[] findByCompanyId_PrevAndNext(long entryId,
long companyId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchEntryException
entryId - the primary key of the current trash entrycompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchEntryException - if a trash entry with the primary key could not be found
SystemException - if a system exception occurred
List<TrashEntry> findByG_LtCD(long groupId,
Date createDate)
throws SystemException
groupId - the group IDcreateDate - the create date
SystemException - if a system exception occurred
List<TrashEntry> findByG_LtCD(long groupId,
Date createDate,
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.
groupId - the group IDcreateDate - the create datestart - the lower bound of the range of trash entriesend - the upper bound of the range of trash entries (not inclusive)
SystemException - if a system exception occurred
List<TrashEntry> findByG_LtCD(long groupId,
Date createDate,
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.
groupId - the group IDcreateDate - the create datestart - the lower bound of the range of trash entriesend - the upper bound of the range of trash entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
TrashEntry findByG_LtCD_First(long groupId,
Date createDate,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchEntryException
groupId - the group IDcreateDate - the create dateorderByComparator - the comparator to order the set by (optionally null)
NoSuchEntryException - if a matching trash entry could not be found
SystemException - if a system exception occurred
TrashEntry fetchByG_LtCD_First(long groupId,
Date createDate,
OrderByComparator orderByComparator)
throws SystemException
groupId - the group IDcreateDate - the create dateorderByComparator - the comparator to order the set by (optionally null)
null if a matching trash entry could not be found
SystemException - if a system exception occurred
TrashEntry findByG_LtCD_Last(long groupId,
Date createDate,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchEntryException
groupId - the group IDcreateDate - the create dateorderByComparator - the comparator to order the set by (optionally null)
NoSuchEntryException - if a matching trash entry could not be found
SystemException - if a system exception occurred
TrashEntry fetchByG_LtCD_Last(long groupId,
Date createDate,
OrderByComparator orderByComparator)
throws SystemException
groupId - the group IDcreateDate - the create dateorderByComparator - the comparator to order the set by (optionally null)
null if a matching trash entry could not be found
SystemException - if a system exception occurred
TrashEntry[] findByG_LtCD_PrevAndNext(long entryId,
long groupId,
Date createDate,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchEntryException
entryId - the primary key of the current trash entrygroupId - the group IDcreateDate - the create dateorderByComparator - the comparator to order the set by (optionally null)
NoSuchEntryException - if a trash entry with the primary key could not be found
SystemException - if a system exception occurred
TrashEntry findByC_C(long classNameId,
long classPK)
throws SystemException,
NoSuchEntryException
NoSuchEntryException if it could not be found.
classNameId - the class name IDclassPK - the class p k
NoSuchEntryException - if a matching trash entry could not be found
SystemException - if a system exception occurred
TrashEntry fetchByC_C(long classNameId,
long classPK)
throws SystemException
null if it could not be found. Uses the finder cache.
classNameId - the class name IDclassPK - the class p k
null if a matching trash entry could not be found
SystemException - if a system exception occurred
TrashEntry fetchByC_C(long classNameId,
long classPK,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
classNameId - the class name IDclassPK - the class p kretrieveFromCache - whether to use the finder cache
null if a matching trash entry could not be found
SystemException - if a system exception occurred
List<TrashEntry> findAll()
throws SystemException
SystemException - if a system exception occurred
List<TrashEntry> 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 trash entriesend - the upper bound of the range of trash entries (not inclusive)
SystemException - if a system exception occurred
List<TrashEntry> 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 trash entriesend - the upper bound of the range of trash entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
void removeByGroupId(long groupId)
throws SystemException
groupId - the group ID
SystemException - if a system exception occurred
void removeByCompanyId(long companyId)
throws SystemException
companyId - the company ID
SystemException - if a system exception occurred
void removeByG_LtCD(long groupId,
Date createDate)
throws SystemException
groupId - the group IDcreateDate - the create date
SystemException - if a system exception occurred
TrashEntry removeByC_C(long classNameId,
long classPK)
throws SystemException,
NoSuchEntryException
classNameId - the class name IDclassPK - the class p k
SystemException - if a system exception occurred
NoSuchEntryException
void removeAll()
throws SystemException
SystemException - if a system exception occurred
int countByGroupId(long groupId)
throws SystemException
groupId - the group ID
SystemException - if a system exception occurred
int countByCompanyId(long companyId)
throws SystemException
companyId - the company ID
SystemException - if a system exception occurred
int countByG_LtCD(long groupId,
Date createDate)
throws SystemException
groupId - the group IDcreateDate - the create date
SystemException - if a system exception occurred
int countByC_C(long classNameId,
long classPK)
throws SystemException
classNameId - the class name IDclassPK - the class p k
SystemException - if a system exception occurred
int countAll()
throws SystemException
SystemException - if a system exception occurred
List<TrashVersion> getTrashVersions(long pk)
throws SystemException
pk - the primary key of the trash entry
SystemException - if a system exception occurred
List<TrashVersion> getTrashVersions(long pk,
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.
pk - the primary key of the trash entrystart - the lower bound of the range of trash entriesend - the upper bound of the range of trash entries (not inclusive)
SystemException - if a system exception occurred
List<TrashVersion> getTrashVersions(long pk,
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.
pk - the primary key of the trash entrystart - the lower bound of the range of trash entriesend - the upper bound of the range of trash entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
int getTrashVersionsSize(long pk)
throws SystemException
pk - the primary key of the trash entry
SystemException - if a system exception occurred
boolean containsTrashVersion(long pk,
long trashVersionPK)
throws SystemException
true if the trash version is associated with the trash entry.
pk - the primary key of the trash entrytrashVersionPK - the primary key of the trash version
true if the trash version is associated with the trash entry; false otherwise
SystemException - if a system exception occurred
boolean containsTrashVersions(long pk)
throws SystemException
true if the trash entry has any trash versions associated with it.
pk - the primary key of the trash entry to check for associations with trash versions
true if the trash entry has any trash versions associated with it; false otherwise
SystemException - if a system exception occurred
|
Liferay 6.2.0-ce-m1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||