|
Liferay 6.2.0-ce-rc3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<TrashEntry>
com.liferay.portlet.trash.service.persistence.TrashEntryPersistenceImpl
public class TrashEntryPersistenceImpl
The persistence implementation for the trash entry service.
Caching information and settings can be found in portal.properties
TrashEntryPersistence,
TrashEntryUtil| 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 | |
|---|---|
TrashEntryPersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Initializes the trash entry persistence. |
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. |
protected void |
cacheUniqueFindersCache(TrashEntry trashEntry)
|
void |
clearCache()
Clears the cache for all trash entries. |
void |
clearCache(List<TrashEntry> trashEntries)
Clears the cache for a List instances of this model. |
void |
clearCache(TrashEntry trashEntry)
Clears the cache for the trash entry. |
protected void |
clearUniqueFindersCache(TrashEntry trashEntry)
|
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. |
void |
destroy()
|
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. |
TrashEntry |
fetchByPrimaryKey(Serializable primaryKey)
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 |
findByPrimaryKey(Serializable primaryKey)
Returns the trash entry with the primary key or throws a NoSuchModelException if it could not be found. |
protected TrashEntry |
getByCompanyId_PrevAndNext(Session session,
TrashEntry trashEntry,
long companyId,
OrderByComparator orderByComparator,
boolean previous)
|
protected TrashEntry |
getByG_C_PrevAndNext(Session session,
TrashEntry trashEntry,
long groupId,
long classNameId,
OrderByComparator orderByComparator,
boolean previous)
|
protected TrashEntry |
getByG_LtCD_PrevAndNext(Session session,
TrashEntry trashEntry,
long groupId,
Date createDate,
OrderByComparator orderByComparator,
boolean previous)
|
protected TrashEntry |
getByGroupId_PrevAndNext(Session session,
TrashEntry trashEntry,
long groupId,
OrderByComparator orderByComparator,
boolean previous)
|
TrashEntry |
remove(long entryId)
Removes the trash entry with the primary key from the database. |
TrashEntry |
remove(Serializable primaryKey)
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. |
protected TrashEntry |
removeImpl(TrashEntry trashEntry)
Removes the model instance from the database. |
protected TrashEntry |
toUnwrappedModel(TrashEntry trashEntry)
|
TrashEntry |
updateImpl(TrashEntry trashEntry)
Updates the model instance in the database or adds it if it does not yet exist. |
| Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update |
| Field Detail |
|---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID
public static final FinderPath FINDER_PATH_COUNT_BY_COMPANYID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_LTCD
public static final FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_G_LTCD
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C
public static final FinderPath FINDER_PATH_COUNT_BY_G_C
public static final FinderPath FINDER_PATH_FETCH_BY_C_C
public static final FinderPath FINDER_PATH_COUNT_BY_C_C
| Constructor Detail |
|---|
public TrashEntryPersistenceImpl()
| Method Detail |
|---|
public List<TrashEntry> findByGroupId(long groupId)
throws SystemException
findByGroupId in interface TrashEntryPersistencegroupId - the group ID
SystemException - if a system exception occurred
public 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. 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.
findByGroupId in interface TrashEntryPersistencegroupId - 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
public 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. 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.
findByGroupId in interface TrashEntryPersistencegroupId - 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
public TrashEntry findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
throws NoSuchEntryException,
SystemException
findByGroupId_First in interface TrashEntryPersistencegroupId - 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
public TrashEntry fetchByGroupId_First(long groupId,
OrderByComparator orderByComparator)
throws SystemException
fetchByGroupId_First in interface TrashEntryPersistencegroupId - 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
public TrashEntry findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
throws NoSuchEntryException,
SystemException
findByGroupId_Last in interface TrashEntryPersistencegroupId - 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
public TrashEntry fetchByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
throws SystemException
fetchByGroupId_Last in interface TrashEntryPersistencegroupId - 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
public TrashEntry[] findByGroupId_PrevAndNext(long entryId,
long groupId,
OrderByComparator orderByComparator)
throws NoSuchEntryException,
SystemException
findByGroupId_PrevAndNext in interface TrashEntryPersistenceentryId - 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
protected TrashEntry getByGroupId_PrevAndNext(Session session,
TrashEntry trashEntry,
long groupId,
OrderByComparator orderByComparator,
boolean previous)
public void removeByGroupId(long groupId)
throws SystemException
removeByGroupId in interface TrashEntryPersistencegroupId - the group ID
SystemException - if a system exception occurred
public int countByGroupId(long groupId)
throws SystemException
countByGroupId in interface TrashEntryPersistencegroupId - the group ID
SystemException - if a system exception occurred
public List<TrashEntry> findByCompanyId(long companyId)
throws SystemException
findByCompanyId in interface TrashEntryPersistencecompanyId - the company ID
SystemException - if a system exception occurred
public 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. 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.
findByCompanyId in interface TrashEntryPersistencecompanyId - 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
public 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. 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.
findByCompanyId in interface TrashEntryPersistencecompanyId - 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
public TrashEntry findByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
throws NoSuchEntryException,
SystemException
findByCompanyId_First in interface TrashEntryPersistencecompanyId - 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
public TrashEntry fetchByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
throws SystemException
fetchByCompanyId_First in interface TrashEntryPersistencecompanyId - 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
public TrashEntry findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
throws NoSuchEntryException,
SystemException
findByCompanyId_Last in interface TrashEntryPersistencecompanyId - 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
public TrashEntry fetchByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
throws SystemException
fetchByCompanyId_Last in interface TrashEntryPersistencecompanyId - 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
public TrashEntry[] findByCompanyId_PrevAndNext(long entryId,
long companyId,
OrderByComparator orderByComparator)
throws NoSuchEntryException,
SystemException
findByCompanyId_PrevAndNext in interface TrashEntryPersistenceentryId - 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
protected TrashEntry getByCompanyId_PrevAndNext(Session session,
TrashEntry trashEntry,
long companyId,
OrderByComparator orderByComparator,
boolean previous)
public void removeByCompanyId(long companyId)
throws SystemException
removeByCompanyId in interface TrashEntryPersistencecompanyId - the company ID
SystemException - if a system exception occurred
public int countByCompanyId(long companyId)
throws SystemException
countByCompanyId in interface TrashEntryPersistencecompanyId - the company ID
SystemException - if a system exception occurred
public List<TrashEntry> findByG_LtCD(long groupId,
Date createDate)
throws SystemException
findByG_LtCD in interface TrashEntryPersistencegroupId - the group IDcreateDate - the create date
SystemException - if a system exception occurred
public 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. 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.
findByG_LtCD in interface TrashEntryPersistencegroupId - 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
public 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. 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.
findByG_LtCD in interface TrashEntryPersistencegroupId - 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
public TrashEntry findByG_LtCD_First(long groupId,
Date createDate,
OrderByComparator orderByComparator)
throws NoSuchEntryException,
SystemException
findByG_LtCD_First in interface TrashEntryPersistencegroupId - 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
public TrashEntry fetchByG_LtCD_First(long groupId,
Date createDate,
OrderByComparator orderByComparator)
throws SystemException
fetchByG_LtCD_First in interface TrashEntryPersistencegroupId - 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
public TrashEntry findByG_LtCD_Last(long groupId,
Date createDate,
OrderByComparator orderByComparator)
throws NoSuchEntryException,
SystemException
findByG_LtCD_Last in interface TrashEntryPersistencegroupId - 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
public TrashEntry fetchByG_LtCD_Last(long groupId,
Date createDate,
OrderByComparator orderByComparator)
throws SystemException
fetchByG_LtCD_Last in interface TrashEntryPersistencegroupId - 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
public TrashEntry[] findByG_LtCD_PrevAndNext(long entryId,
long groupId,
Date createDate,
OrderByComparator orderByComparator)
throws NoSuchEntryException,
SystemException
findByG_LtCD_PrevAndNext in interface TrashEntryPersistenceentryId - 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
protected TrashEntry getByG_LtCD_PrevAndNext(Session session,
TrashEntry trashEntry,
long groupId,
Date createDate,
OrderByComparator orderByComparator,
boolean previous)
public void removeByG_LtCD(long groupId,
Date createDate)
throws SystemException
removeByG_LtCD in interface TrashEntryPersistencegroupId - the group IDcreateDate - the create date
SystemException - if a system exception occurred
public int countByG_LtCD(long groupId,
Date createDate)
throws SystemException
countByG_LtCD in interface TrashEntryPersistencegroupId - the group IDcreateDate - the create date
SystemException - if a system exception occurred
public List<TrashEntry> findByG_C(long groupId,
long classNameId)
throws SystemException
findByG_C in interface TrashEntryPersistencegroupId - the group IDclassNameId - the class name ID
SystemException - if a system exception occurred
public List<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.
findByG_C in interface TrashEntryPersistencegroupId - 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 occurred
public List<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.
findByG_C in interface TrashEntryPersistencegroupId - 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 occurred
public TrashEntry findByG_C_First(long groupId,
long classNameId,
OrderByComparator orderByComparator)
throws NoSuchEntryException,
SystemException
findByG_C_First in interface TrashEntryPersistencegroupId - 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 occurred
public TrashEntry fetchByG_C_First(long groupId,
long classNameId,
OrderByComparator orderByComparator)
throws SystemException
fetchByG_C_First in interface TrashEntryPersistencegroupId - 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 occurred
public TrashEntry findByG_C_Last(long groupId,
long classNameId,
OrderByComparator orderByComparator)
throws NoSuchEntryException,
SystemException
findByG_C_Last in interface TrashEntryPersistencegroupId - 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 occurred
public TrashEntry fetchByG_C_Last(long groupId,
long classNameId,
OrderByComparator orderByComparator)
throws SystemException
fetchByG_C_Last in interface TrashEntryPersistencegroupId - 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 occurred
public TrashEntry[] findByG_C_PrevAndNext(long entryId,
long groupId,
long classNameId,
OrderByComparator orderByComparator)
throws NoSuchEntryException,
SystemException
findByG_C_PrevAndNext in interface TrashEntryPersistenceentryId - 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 occurred
protected TrashEntry getByG_C_PrevAndNext(Session session,
TrashEntry trashEntry,
long groupId,
long classNameId,
OrderByComparator orderByComparator,
boolean previous)
public void removeByG_C(long groupId,
long classNameId)
throws SystemException
removeByG_C in interface TrashEntryPersistencegroupId - the group IDclassNameId - the class name ID
SystemException - if a system exception occurred
public int countByG_C(long groupId,
long classNameId)
throws SystemException
countByG_C in interface TrashEntryPersistencegroupId - the group IDclassNameId - the class name ID
SystemException - if a system exception occurred
public TrashEntry findByC_C(long classNameId,
long classPK)
throws NoSuchEntryException,
SystemException
NoSuchEntryException if it could not be found.
findByC_C in interface TrashEntryPersistenceclassNameId - the class name IDclassPK - the class p k
NoSuchEntryException - if a matching trash entry could not be found
SystemException - if a system exception occurred
public TrashEntry fetchByC_C(long classNameId,
long classPK)
throws SystemException
null if it could not be found. Uses the finder cache.
fetchByC_C in interface TrashEntryPersistenceclassNameId - the class name IDclassPK - the class p k
null if a matching trash entry could not be found
SystemException - if a system exception occurred
public TrashEntry fetchByC_C(long classNameId,
long classPK,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
fetchByC_C in interface TrashEntryPersistenceclassNameId - 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
public TrashEntry removeByC_C(long classNameId,
long classPK)
throws NoSuchEntryException,
SystemException
removeByC_C in interface TrashEntryPersistenceclassNameId - the class name IDclassPK - the class p k
SystemException - if a system exception occurred
NoSuchEntryException
public int countByC_C(long classNameId,
long classPK)
throws SystemException
countByC_C in interface TrashEntryPersistenceclassNameId - the class name IDclassPK - the class p k
SystemException - if a system exception occurredpublic void cacheResult(TrashEntry trashEntry)
cacheResult in interface TrashEntryPersistencetrashEntry - the trash entrypublic void cacheResult(List<TrashEntry> trashEntries)
cacheResult in interface TrashEntryPersistencetrashEntries - the trash entriespublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<TrashEntry>clearCache in class BasePersistenceImpl<TrashEntry>public void clearCache(TrashEntry trashEntry)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<TrashEntry>clearCache in class BasePersistenceImpl<TrashEntry>trashEntry - the instance of this model to clear the cache forpublic void clearCache(List<TrashEntry> trashEntries)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<TrashEntry>clearCache in class BasePersistenceImpl<TrashEntry>trashEntries - the List instances of this model to clear the cache forprotected void cacheUniqueFindersCache(TrashEntry trashEntry)
protected void clearUniqueFindersCache(TrashEntry trashEntry)
public TrashEntry create(long entryId)
create in interface TrashEntryPersistenceentryId - the primary key for the new trash entry
public TrashEntry remove(long entryId)
throws NoSuchEntryException,
SystemException
remove in interface TrashEntryPersistenceentryId - 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
public TrashEntry remove(Serializable primaryKey)
throws NoSuchEntryException,
SystemException
remove in interface BasePersistence<TrashEntry>remove in class BasePersistenceImpl<TrashEntry>primaryKey - 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
protected TrashEntry removeImpl(TrashEntry trashEntry)
throws SystemException
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<TrashEntry>trashEntry - the model instance to remove
SystemException - if a system exception occurred
public TrashEntry updateImpl(TrashEntry trashEntry)
throws SystemException
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface TrashEntryPersistenceupdateImpl in class BasePersistenceImpl<TrashEntry>trashEntry - the model instance to update
SystemException - if a system exception occurredprotected TrashEntry toUnwrappedModel(TrashEntry trashEntry)
public TrashEntry findByPrimaryKey(Serializable primaryKey)
throws NoSuchEntryException,
SystemException
NoSuchModelException if it could not be found.
findByPrimaryKey in interface BasePersistence<TrashEntry>findByPrimaryKey in class BasePersistenceImpl<TrashEntry>primaryKey - 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
public TrashEntry findByPrimaryKey(long entryId)
throws NoSuchEntryException,
SystemException
NoSuchEntryException if it could not be found.
findByPrimaryKey in interface TrashEntryPersistenceentryId - 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
public TrashEntry fetchByPrimaryKey(Serializable primaryKey)
throws SystemException
null if it could not be found.
fetchByPrimaryKey in interface BasePersistence<TrashEntry>fetchByPrimaryKey in class BasePersistenceImpl<TrashEntry>primaryKey - 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
public TrashEntry fetchByPrimaryKey(long entryId)
throws SystemException
null if it could not be found.
fetchByPrimaryKey in interface TrashEntryPersistenceentryId - 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
public List<TrashEntry> findAll()
throws SystemException
findAll in interface TrashEntryPersistenceSystemException - if a system exception occurred
public 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. 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.
findAll in interface TrashEntryPersistencestart - 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
public 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. 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.
findAll in interface TrashEntryPersistencestart - 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
public void removeAll()
throws SystemException
removeAll in interface TrashEntryPersistenceSystemException - if a system exception occurred
public int countAll()
throws SystemException
countAll in interface TrashEntryPersistenceSystemException - if a system exception occurredpublic void afterPropertiesSet()
public void destroy()
|
Liferay 6.2.0-ce-rc3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||