|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@ProviderType 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. |
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_C(long groupId,
long classNameId)
Returns the number of trash entries where groupId = ? and classNameId = ?. |
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_C_First(long groupId,
long classNameId,
OrderByComparator orderByComparator)
Returns the first trash entry in the ordered set where groupId = ? and classNameId = ?. |
TrashEntry |
fetchByG_C_Last(long groupId,
long classNameId,
OrderByComparator orderByComparator)
Returns the last trash entry in the ordered set where groupId = ? and classNameId = ?. |
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_C_First(long groupId,
long classNameId,
OrderByComparator orderByComparator)
Returns the first trash entry in the ordered set where groupId = ? and classNameId = ?. |
TrashEntry |
findByG_C_Last(long groupId,
long classNameId,
OrderByComparator orderByComparator)
Returns the last trash entry in the ordered set where groupId = ? and classNameId = ?. |
TrashEntry[] |
findByG_C_PrevAndNext(long entryId,
long groupId,
long classNameId,
OrderByComparator orderByComparator)
Returns the trash entries before and after the current trash entry in the ordered set where groupId = ? and classNameId = ?. |
List<TrashEntry> |
findByG_C(long groupId,
long classNameId)
Returns all the trash entries where groupId = ? and classNameId = ?. |
List<TrashEntry> |
findByG_C(long groupId,
long classNameId,
int start,
int end)
Returns a range of all the trash entries where groupId = ? and classNameId = ?. |
List<TrashEntry> |
findByG_C(long groupId,
long classNameId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the trash entries where groupId = ? and classNameId = ?. |
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. |
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_C(long groupId,
long classNameId)
Removes all the trash entries where groupId = ? and classNameId = ? 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, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update |
Method Detail |
---|
List<TrashEntry> findByGroupId(long groupId) throws SystemException
groupId
- the group ID
SystemException
- if a system exception occurredList<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. 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 TrashEntryModelImpl
. 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.
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 occurredList<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. 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 TrashEntryModelImpl
. 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.
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 occurredTrashEntry 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 occurredTrashEntry 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 occurredTrashEntry 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 occurredTrashEntry 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 occurredTrashEntry[] 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 occurredvoid removeByGroupId(long groupId) throws SystemException
groupId
- the group ID
SystemException
- if a system exception occurredint countByGroupId(long groupId) throws SystemException
groupId
- the group ID
SystemException
- if a system exception occurredList<TrashEntry> findByCompanyId(long companyId) throws SystemException
companyId
- the company ID
SystemException
- if a system exception occurredList<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. 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 TrashEntryModelImpl
. 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.
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 occurredList<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. 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 TrashEntryModelImpl
. 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.
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 occurredTrashEntry 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 occurredTrashEntry 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 occurredTrashEntry 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 occurredTrashEntry 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 occurredTrashEntry[] 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 occurredvoid removeByCompanyId(long companyId) throws SystemException
companyId
- the company ID
SystemException
- if a system exception occurredint countByCompanyId(long companyId) throws SystemException
companyId
- the company ID
SystemException
- if a system exception occurredList<TrashEntry> findByG_LtCD(long groupId, Date createDate) throws SystemException
groupId
- the group IDcreateDate
- the create date
SystemException
- if a system exception occurredList<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. 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 TrashEntryModelImpl
. 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.
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 occurredList<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. 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 TrashEntryModelImpl
. 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.
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 occurredTrashEntry 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 occurredTrashEntry 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 occurredTrashEntry 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 occurredTrashEntry 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 occurredTrashEntry[] 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 occurredvoid removeByG_LtCD(long groupId, Date createDate) throws SystemException
groupId
- the group IDcreateDate
- the create date
SystemException
- if a system exception occurredint countByG_LtCD(long groupId, Date createDate) throws SystemException
groupId
- the group IDcreateDate
- the create date
SystemException
- if a system exception occurredList<TrashEntry> findByG_C(long groupId, long classNameId) throws SystemException
groupId
- the group IDclassNameId
- the class name ID
SystemException
- if a system exception occurredList<TrashEntry> findByG_C(long groupId, long classNameId, 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 TrashEntryModelImpl
. 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.
groupId
- the group IDclassNameId
- the class name 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 occurredList<TrashEntry> findByG_C(long groupId, long classNameId, 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 TrashEntryModelImpl
. 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.
groupId
- the group IDclassNameId
- the class name 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 occurredTrashEntry findByG_C_First(long groupId, long classNameId, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
groupId
- the group IDclassNameId
- the class name 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 occurredTrashEntry fetchByG_C_First(long groupId, long classNameId, OrderByComparator orderByComparator) throws SystemException
groupId
- the group IDclassNameId
- the class name 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 occurredTrashEntry findByG_C_Last(long groupId, long classNameId, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
groupId
- the group IDclassNameId
- the class name 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 occurredTrashEntry fetchByG_C_Last(long groupId, long classNameId, OrderByComparator orderByComparator) throws SystemException
groupId
- the group IDclassNameId
- the class name 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 occurredTrashEntry[] findByG_C_PrevAndNext(long entryId, long groupId, long classNameId, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
entryId
- the primary key of the current trash entrygroupId
- the group IDclassNameId
- the class name 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 occurredvoid removeByG_C(long groupId, long classNameId) throws SystemException
groupId
- the group IDclassNameId
- the class name ID
SystemException
- if a system exception occurredint countByG_C(long groupId, long classNameId) throws SystemException
groupId
- the group IDclassNameId
- the class name ID
SystemException
- if a system exception occurredTrashEntry 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 occurredTrashEntry 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 occurredTrashEntry 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 occurredTrashEntry 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
int countByC_C(long classNameId, long classPK) throws SystemException
classNameId
- the class name IDclassPK
- the class p k
SystemException
- if a system exception occurredvoid 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 occurredTrashEntry 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 occurredTrashEntry 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 occurredList<TrashEntry> findAll() throws SystemException
SystemException
- if a system exception occurredList<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. 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 TrashEntryModelImpl
. 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.
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 occurredList<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. 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 TrashEntryModelImpl
. 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.
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 occurredvoid removeAll() throws SystemException
SystemException
- if a system exception occurredint countAll() throws SystemException
SystemException
- if a system exception occurred
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |