public class TrashEntryPersistenceImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.trash.model.TrashEntry>
implements com.liferay.portlet.trash.service.persistence.TrashEntryPersistence
Caching information and settings can be found in portal.properties
TrashEntryPersistence,
TrashEntryUtil| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FINDER_CLASS_NAME_ENTITY |
static java.lang.String |
FINDER_CLASS_NAME_LIST_WITH_PAGINATION |
static java.lang.String |
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_ALL |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_C_C |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_COMPANYID |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_G_C |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_GROUPID |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_FETCH_BY_C_C |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_COUNT_BY_G_LTCD |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_ALL |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_G_LTCD |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID |
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 and Description |
|---|
TrashEntryPersistenceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Initializes the trash entry persistence.
|
void |
cacheResult(java.util.List<com.liferay.portlet.trash.model.TrashEntry> trashEntries)
Caches the trash entries in the entity cache if it is enabled.
|
void |
cacheResult(com.liferay.portlet.trash.model.TrashEntry trashEntry)
Caches the trash entry in the entity cache if it is enabled.
|
protected void |
cacheUniqueFindersCache(com.liferay.portlet.trash.model.TrashEntry trashEntry) |
void |
clearCache()
Clears the cache for all trash entries.
|
void |
clearCache(java.util.List<com.liferay.portlet.trash.model.TrashEntry> trashEntries) |
void |
clearCache(com.liferay.portlet.trash.model.TrashEntry trashEntry)
Clears the cache for the trash entry.
|
protected void |
clearUniqueFindersCache(com.liferay.portlet.trash.model.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,
java.util.Date createDate)
Returns the number of trash entries where groupId = ? and createDate < ?.
|
int |
countByGroupId(long groupId)
Returns the number of trash entries where groupId = ?.
|
com.liferay.portlet.trash.model.TrashEntry |
create(long entryId)
Creates a new trash entry with the primary key.
|
void |
destroy() |
com.liferay.portlet.trash.model.TrashEntry |
fetchByC_C(long classNameId,
long classPK)
Returns the trash entry where classNameId = ? and classPK = ? or returns
null if it could not be found. |
com.liferay.portlet.trash.model.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. |
com.liferay.portlet.trash.model.TrashEntry |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first trash entry in the ordered set where companyId = ?.
|
com.liferay.portlet.trash.model.TrashEntry |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last trash entry in the ordered set where companyId = ?.
|
com.liferay.portlet.trash.model.TrashEntry |
fetchByG_C_First(long groupId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first trash entry in the ordered set where groupId = ? and classNameId = ?.
|
com.liferay.portlet.trash.model.TrashEntry |
fetchByG_C_Last(long groupId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last trash entry in the ordered set where groupId = ? and classNameId = ?.
|
com.liferay.portlet.trash.model.TrashEntry |
fetchByG_LtCD_First(long groupId,
java.util.Date createDate,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first trash entry in the ordered set where groupId = ? and createDate < ?.
|
com.liferay.portlet.trash.model.TrashEntry |
fetchByG_LtCD_Last(long groupId,
java.util.Date createDate,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last trash entry in the ordered set where groupId = ? and createDate < ?.
|
com.liferay.portlet.trash.model.TrashEntry |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first trash entry in the ordered set where groupId = ?.
|
com.liferay.portlet.trash.model.TrashEntry |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last trash entry in the ordered set where groupId = ?.
|
com.liferay.portlet.trash.model.TrashEntry |
fetchByPrimaryKey(long entryId)
Returns the trash entry with the primary key or returns
null if it could not be found. |
com.liferay.portlet.trash.model.TrashEntry |
fetchByPrimaryKey(java.io.Serializable primaryKey)
Returns the trash entry with the primary key or returns
null if it could not be found. |
java.util.List<com.liferay.portlet.trash.model.TrashEntry> |
findAll()
Returns all the trash entries.
|
java.util.List<com.liferay.portlet.trash.model.TrashEntry> |
findAll(int start,
int end)
Returns a range of all the trash entries.
|
java.util.List<com.liferay.portlet.trash.model.TrashEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the trash entries.
|
com.liferay.portlet.trash.model.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. |
com.liferay.portlet.trash.model.TrashEntry |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first trash entry in the ordered set where companyId = ?.
|
com.liferay.portlet.trash.model.TrashEntry |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last trash entry in the ordered set where companyId = ?.
|
com.liferay.portlet.trash.model.TrashEntry[] |
findByCompanyId_PrevAndNext(long entryId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the trash entries before and after the current trash entry in the ordered set where companyId = ?.
|
java.util.List<com.liferay.portlet.trash.model.TrashEntry> |
findByCompanyId(long companyId)
Returns all the trash entries where companyId = ?.
|
java.util.List<com.liferay.portlet.trash.model.TrashEntry> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the trash entries where companyId = ?.
|
java.util.List<com.liferay.portlet.trash.model.TrashEntry> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the trash entries where companyId = ?.
|
com.liferay.portlet.trash.model.TrashEntry |
findByG_C_First(long groupId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first trash entry in the ordered set where groupId = ? and classNameId = ?.
|
com.liferay.portlet.trash.model.TrashEntry |
findByG_C_Last(long groupId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last trash entry in the ordered set where groupId = ? and classNameId = ?.
|
com.liferay.portlet.trash.model.TrashEntry[] |
findByG_C_PrevAndNext(long entryId,
long groupId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the trash entries before and after the current trash entry in the ordered set where groupId = ? and classNameId = ?.
|
java.util.List<com.liferay.portlet.trash.model.TrashEntry> |
findByG_C(long groupId,
long classNameId)
Returns all the trash entries where groupId = ? and classNameId = ?.
|
java.util.List<com.liferay.portlet.trash.model.TrashEntry> |
findByG_C(long groupId,
long classNameId,
int start,
int end)
Returns a range of all the trash entries where groupId = ? and classNameId = ?.
|
java.util.List<com.liferay.portlet.trash.model.TrashEntry> |
findByG_C(long groupId,
long classNameId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the trash entries where groupId = ? and classNameId = ?.
|
com.liferay.portlet.trash.model.TrashEntry |
findByG_LtCD_First(long groupId,
java.util.Date createDate,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first trash entry in the ordered set where groupId = ? and createDate < ?.
|
com.liferay.portlet.trash.model.TrashEntry |
findByG_LtCD_Last(long groupId,
java.util.Date createDate,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last trash entry in the ordered set where groupId = ? and createDate < ?.
|
com.liferay.portlet.trash.model.TrashEntry[] |
findByG_LtCD_PrevAndNext(long entryId,
long groupId,
java.util.Date createDate,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the trash entries before and after the current trash entry in the ordered set where groupId = ? and createDate < ?.
|
java.util.List<com.liferay.portlet.trash.model.TrashEntry> |
findByG_LtCD(long groupId,
java.util.Date createDate)
Returns all the trash entries where groupId = ? and createDate < ?.
|
java.util.List<com.liferay.portlet.trash.model.TrashEntry> |
findByG_LtCD(long groupId,
java.util.Date createDate,
int start,
int end)
Returns a range of all the trash entries where groupId = ? and createDate < ?.
|
java.util.List<com.liferay.portlet.trash.model.TrashEntry> |
findByG_LtCD(long groupId,
java.util.Date createDate,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the trash entries where groupId = ? and createDate < ?.
|
com.liferay.portlet.trash.model.TrashEntry |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first trash entry in the ordered set where groupId = ?.
|
com.liferay.portlet.trash.model.TrashEntry |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last trash entry in the ordered set where groupId = ?.
|
com.liferay.portlet.trash.model.TrashEntry[] |
findByGroupId_PrevAndNext(long entryId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the trash entries before and after the current trash entry in the ordered set where groupId = ?.
|
java.util.List<com.liferay.portlet.trash.model.TrashEntry> |
findByGroupId(long groupId)
Returns all the trash entries where groupId = ?.
|
java.util.List<com.liferay.portlet.trash.model.TrashEntry> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the trash entries where groupId = ?.
|
java.util.List<com.liferay.portlet.trash.model.TrashEntry> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the trash entries where groupId = ?.
|
com.liferay.portlet.trash.model.TrashEntry |
findByPrimaryKey(long entryId)
Returns the trash entry with the primary key or throws a
NoSuchEntryException if it could not be found. |
com.liferay.portlet.trash.model.TrashEntry |
findByPrimaryKey(java.io.Serializable primaryKey)
Returns the trash entry with the primary key or throws a
NoSuchModelException if it could not be found. |
protected com.liferay.portlet.trash.model.TrashEntry |
getByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.trash.model.TrashEntry trashEntry,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous) |
protected com.liferay.portlet.trash.model.TrashEntry |
getByG_C_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.trash.model.TrashEntry trashEntry,
long groupId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous) |
protected com.liferay.portlet.trash.model.TrashEntry |
getByG_LtCD_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.trash.model.TrashEntry trashEntry,
long groupId,
java.util.Date createDate,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous) |
protected com.liferay.portlet.trash.model.TrashEntry |
getByGroupId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.trash.model.TrashEntry trashEntry,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous) |
com.liferay.portlet.trash.model.TrashEntry |
remove(long entryId)
Removes the trash entry with the primary key from the database.
|
com.liferay.portlet.trash.model.TrashEntry |
remove(java.io.Serializable primaryKey)
Removes the trash entry with the primary key from the database.
|
void |
removeAll()
Removes all the trash entries from the database.
|
com.liferay.portlet.trash.model.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,
java.util.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 com.liferay.portlet.trash.model.TrashEntry |
removeImpl(com.liferay.portlet.trash.model.TrashEntry trashEntry) |
protected com.liferay.portlet.trash.model.TrashEntry |
toUnwrappedModel(com.liferay.portlet.trash.model.TrashEntry trashEntry) |
com.liferay.portlet.trash.model.TrashEntry |
updateImpl(com.liferay.portlet.trash.model.TrashEntry trashEntry) |
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, updateImplclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, updatepublic static final java.lang.String FINDER_CLASS_NAME_ENTITY
public static final java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_GROUPID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_COMPANYID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_LTCD
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_G_LTCD
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_G_C
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_C_C
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_C
public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByGroupId(long groupId)
throws com.liferay.portal.kernel.exception.SystemException
findByGroupId in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistencegroupId - the group IDcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByGroupId(long groupId,
int start,
int end)
throws com.liferay.portal.kernel.exception.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 com.liferay.portlet.trash.service.persistence.TrashEntryPersistencegroupId - the group IDstart - the lower bound of the range of trash entriesend - the upper bound of the range of trash entries (not inclusive)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.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 com.liferay.portlet.trash.service.persistence.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)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.trash.NoSuchEntryException,
com.liferay.portal.kernel.exception.SystemException
findByGroupId_First in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.portlet.trash.NoSuchEntryException - if a matching trash entry could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
fetchByGroupId_First in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching trash entry could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.trash.NoSuchEntryException,
com.liferay.portal.kernel.exception.SystemException
findByGroupId_Last in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.portlet.trash.NoSuchEntryException - if a matching trash entry could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
fetchByGroupId_Last in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching trash entry could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry[] findByGroupId_PrevAndNext(long entryId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.trash.NoSuchEntryException,
com.liferay.portal.kernel.exception.SystemException
findByGroupId_PrevAndNext in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistenceentryId - the primary key of the current trash entrygroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.portlet.trash.NoSuchEntryException - if a trash entry with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredprotected com.liferay.portlet.trash.model.TrashEntry getByGroupId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.trash.model.TrashEntry trashEntry,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
public void removeByGroupId(long groupId)
throws com.liferay.portal.kernel.exception.SystemException
removeByGroupId in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistencegroupId - the group IDcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic int countByGroupId(long groupId)
throws com.liferay.portal.kernel.exception.SystemException
countByGroupId in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistencegroupId - the group IDcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByCompanyId(long companyId)
throws com.liferay.portal.kernel.exception.SystemException
findByCompanyId in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistencecompanyId - the company IDcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByCompanyId(long companyId,
int start,
int end)
throws com.liferay.portal.kernel.exception.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 com.liferay.portlet.trash.service.persistence.TrashEntryPersistencecompanyId - the company IDstart - the lower bound of the range of trash entriesend - the upper bound of the range of trash entries (not inclusive)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.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 com.liferay.portlet.trash.service.persistence.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)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.trash.NoSuchEntryException,
com.liferay.portal.kernel.exception.SystemException
findByCompanyId_First in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.portlet.trash.NoSuchEntryException - if a matching trash entry could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
fetchByCompanyId_First in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching trash entry could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.trash.NoSuchEntryException,
com.liferay.portal.kernel.exception.SystemException
findByCompanyId_Last in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.portlet.trash.NoSuchEntryException - if a matching trash entry could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
fetchByCompanyId_Last in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching trash entry could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry[] findByCompanyId_PrevAndNext(long entryId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.trash.NoSuchEntryException,
com.liferay.portal.kernel.exception.SystemException
findByCompanyId_PrevAndNext in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistenceentryId - the primary key of the current trash entrycompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.portlet.trash.NoSuchEntryException - if a trash entry with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredprotected com.liferay.portlet.trash.model.TrashEntry getByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.trash.model.TrashEntry trashEntry,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
public void removeByCompanyId(long companyId)
throws com.liferay.portal.kernel.exception.SystemException
removeByCompanyId in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistencecompanyId - the company IDcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic int countByCompanyId(long companyId)
throws com.liferay.portal.kernel.exception.SystemException
countByCompanyId in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistencecompanyId - the company IDcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByG_LtCD(long groupId,
java.util.Date createDate)
throws com.liferay.portal.kernel.exception.SystemException
findByG_LtCD in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistencegroupId - the group IDcreateDate - the create datecom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByG_LtCD(long groupId,
java.util.Date createDate,
int start,
int end)
throws com.liferay.portal.kernel.exception.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 com.liferay.portlet.trash.service.persistence.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)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByG_LtCD(long groupId,
java.util.Date createDate,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.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 com.liferay.portlet.trash.service.persistence.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)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry findByG_LtCD_First(long groupId,
java.util.Date createDate,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.trash.NoSuchEntryException,
com.liferay.portal.kernel.exception.SystemException
findByG_LtCD_First in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistencegroupId - the group IDcreateDate - the create dateorderByComparator - the comparator to order the set by (optionally null)com.liferay.portlet.trash.NoSuchEntryException - if a matching trash entry could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry fetchByG_LtCD_First(long groupId,
java.util.Date createDate,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
fetchByG_LtCD_First in interface com.liferay.portlet.trash.service.persistence.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 foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry findByG_LtCD_Last(long groupId,
java.util.Date createDate,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.trash.NoSuchEntryException,
com.liferay.portal.kernel.exception.SystemException
findByG_LtCD_Last in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistencegroupId - the group IDcreateDate - the create dateorderByComparator - the comparator to order the set by (optionally null)com.liferay.portlet.trash.NoSuchEntryException - if a matching trash entry could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry fetchByG_LtCD_Last(long groupId,
java.util.Date createDate,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
fetchByG_LtCD_Last in interface com.liferay.portlet.trash.service.persistence.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 foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry[] findByG_LtCD_PrevAndNext(long entryId,
long groupId,
java.util.Date createDate,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.trash.NoSuchEntryException,
com.liferay.portal.kernel.exception.SystemException
findByG_LtCD_PrevAndNext in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistenceentryId - the primary key of the current trash entrygroupId - the group IDcreateDate - the create dateorderByComparator - the comparator to order the set by (optionally null)com.liferay.portlet.trash.NoSuchEntryException - if a trash entry with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredprotected com.liferay.portlet.trash.model.TrashEntry getByG_LtCD_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.trash.model.TrashEntry trashEntry,
long groupId,
java.util.Date createDate,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
public void removeByG_LtCD(long groupId,
java.util.Date createDate)
throws com.liferay.portal.kernel.exception.SystemException
removeByG_LtCD in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistencegroupId - the group IDcreateDate - the create datecom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic int countByG_LtCD(long groupId,
java.util.Date createDate)
throws com.liferay.portal.kernel.exception.SystemException
countByG_LtCD in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistencegroupId - the group IDcreateDate - the create datecom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByG_C(long groupId,
long classNameId)
throws com.liferay.portal.kernel.exception.SystemException
findByG_C in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistencegroupId - the group IDclassNameId - the class name IDcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByG_C(long groupId,
long classNameId,
int start,
int end)
throws com.liferay.portal.kernel.exception.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 com.liferay.portlet.trash.service.persistence.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)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByG_C(long groupId,
long classNameId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.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 com.liferay.portlet.trash.service.persistence.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)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry findByG_C_First(long groupId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.trash.NoSuchEntryException,
com.liferay.portal.kernel.exception.SystemException
findByG_C_First in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistencegroupId - the group IDclassNameId - the class name IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.portlet.trash.NoSuchEntryException - if a matching trash entry could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry fetchByG_C_First(long groupId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
fetchByG_C_First in interface com.liferay.portlet.trash.service.persistence.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 foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry findByG_C_Last(long groupId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.trash.NoSuchEntryException,
com.liferay.portal.kernel.exception.SystemException
findByG_C_Last in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistencegroupId - the group IDclassNameId - the class name IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.portlet.trash.NoSuchEntryException - if a matching trash entry could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry fetchByG_C_Last(long groupId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
fetchByG_C_Last in interface com.liferay.portlet.trash.service.persistence.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 foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry[] findByG_C_PrevAndNext(long entryId,
long groupId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.trash.NoSuchEntryException,
com.liferay.portal.kernel.exception.SystemException
findByG_C_PrevAndNext in interface com.liferay.portlet.trash.service.persistence.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)com.liferay.portlet.trash.NoSuchEntryException - if a trash entry with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredprotected com.liferay.portlet.trash.model.TrashEntry getByG_C_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.trash.model.TrashEntry trashEntry,
long groupId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
public void removeByG_C(long groupId,
long classNameId)
throws com.liferay.portal.kernel.exception.SystemException
removeByG_C in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistencegroupId - the group IDclassNameId - the class name IDcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic int countByG_C(long groupId,
long classNameId)
throws com.liferay.portal.kernel.exception.SystemException
countByG_C in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistencegroupId - the group IDclassNameId - the class name IDcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry findByC_C(long classNameId,
long classPK)
throws com.liferay.portlet.trash.NoSuchEntryException,
com.liferay.portal.kernel.exception.SystemException
NoSuchEntryException if it could not be found.findByC_C in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistenceclassNameId - the class name IDclassPK - the class p kcom.liferay.portlet.trash.NoSuchEntryException - if a matching trash entry could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry fetchByC_C(long classNameId,
long classPK)
throws com.liferay.portal.kernel.exception.SystemException
null if it could not be found. Uses the finder cache.fetchByC_C in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistenceclassNameId - the class name IDclassPK - the class p knull if a matching trash entry could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry fetchByC_C(long classNameId,
long classPK,
boolean retrieveFromCache)
throws com.liferay.portal.kernel.exception.SystemException
null if it could not be found, optionally using the finder cache.fetchByC_C in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistenceclassNameId - the class name IDclassPK - the class p kretrieveFromCache - whether to use the finder cachenull if a matching trash entry could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry removeByC_C(long classNameId,
long classPK)
throws com.liferay.portlet.trash.NoSuchEntryException,
com.liferay.portal.kernel.exception.SystemException
removeByC_C in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistenceclassNameId - the class name IDclassPK - the class p kcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredcom.liferay.portlet.trash.NoSuchEntryExceptionpublic int countByC_C(long classNameId,
long classPK)
throws com.liferay.portal.kernel.exception.SystemException
countByC_C in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistenceclassNameId - the class name IDclassPK - the class p kcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void cacheResult(com.liferay.portlet.trash.model.TrashEntry trashEntry)
cacheResult in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistencetrashEntry - the trash entrypublic void cacheResult(java.util.List<com.liferay.portlet.trash.model.TrashEntry> trashEntries)
cacheResult in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistencetrashEntries - the trash entriespublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.trash.model.TrashEntry>clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.trash.model.TrashEntry>public void clearCache(com.liferay.portlet.trash.model.TrashEntry trashEntry)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.trash.model.TrashEntry>clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.trash.model.TrashEntry>public void clearCache(java.util.List<com.liferay.portlet.trash.model.TrashEntry> trashEntries)
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.trash.model.TrashEntry>clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.trash.model.TrashEntry>protected void cacheUniqueFindersCache(com.liferay.portlet.trash.model.TrashEntry trashEntry)
protected void clearUniqueFindersCache(com.liferay.portlet.trash.model.TrashEntry trashEntry)
public com.liferay.portlet.trash.model.TrashEntry create(long entryId)
create in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistenceentryId - the primary key for the new trash entrypublic com.liferay.portlet.trash.model.TrashEntry remove(long entryId)
throws com.liferay.portlet.trash.NoSuchEntryException,
com.liferay.portal.kernel.exception.SystemException
remove in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistenceentryId - the primary key of the trash entrycom.liferay.portlet.trash.NoSuchEntryException - if a trash entry with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry remove(java.io.Serializable primaryKey)
throws com.liferay.portlet.trash.NoSuchEntryException,
com.liferay.portal.kernel.exception.SystemException
remove in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.trash.model.TrashEntry>remove in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.trash.model.TrashEntry>primaryKey - the primary key of the trash entrycom.liferay.portlet.trash.NoSuchEntryException - if a trash entry with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredprotected com.liferay.portlet.trash.model.TrashEntry removeImpl(com.liferay.portlet.trash.model.TrashEntry trashEntry)
throws com.liferay.portal.kernel.exception.SystemException
removeImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.trash.model.TrashEntry>com.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portlet.trash.model.TrashEntry updateImpl(com.liferay.portlet.trash.model.TrashEntry trashEntry)
throws com.liferay.portal.kernel.exception.SystemException
updateImpl in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistenceupdateImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.trash.model.TrashEntry>com.liferay.portal.kernel.exception.SystemExceptionprotected com.liferay.portlet.trash.model.TrashEntry toUnwrappedModel(com.liferay.portlet.trash.model.TrashEntry trashEntry)
public com.liferay.portlet.trash.model.TrashEntry findByPrimaryKey(java.io.Serializable primaryKey)
throws com.liferay.portlet.trash.NoSuchEntryException,
com.liferay.portal.kernel.exception.SystemException
NoSuchModelException if it could not be found.findByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.trash.model.TrashEntry>findByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.trash.model.TrashEntry>primaryKey - the primary key of the trash entrycom.liferay.portlet.trash.NoSuchEntryException - if a trash entry with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry findByPrimaryKey(long entryId)
throws com.liferay.portlet.trash.NoSuchEntryException,
com.liferay.portal.kernel.exception.SystemException
NoSuchEntryException if it could not be found.findByPrimaryKey in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistenceentryId - the primary key of the trash entrycom.liferay.portlet.trash.NoSuchEntryException - if a trash entry with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry fetchByPrimaryKey(java.io.Serializable primaryKey)
throws com.liferay.portal.kernel.exception.SystemException
null if it could not be found.fetchByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.trash.model.TrashEntry>fetchByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.trash.model.TrashEntry>primaryKey - the primary key of the trash entrynull if a trash entry with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry fetchByPrimaryKey(long entryId)
throws com.liferay.portal.kernel.exception.SystemException
null if it could not be found.fetchByPrimaryKey in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistenceentryId - the primary key of the trash entrynull if a trash entry with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.trash.model.TrashEntry> findAll()
throws com.liferay.portal.kernel.exception.SystemException
findAll in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistencecom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.trash.model.TrashEntry> findAll(int start,
int end)
throws com.liferay.portal.kernel.exception.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 com.liferay.portlet.trash.service.persistence.TrashEntryPersistencestart - the lower bound of the range of trash entriesend - the upper bound of the range of trash entries (not inclusive)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.trash.model.TrashEntry> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.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 com.liferay.portlet.trash.service.persistence.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)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void removeAll()
throws com.liferay.portal.kernel.exception.SystemException
removeAll in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistencecom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic int countAll()
throws com.liferay.portal.kernel.exception.SystemException
countAll in interface com.liferay.portlet.trash.service.persistence.TrashEntryPersistencecom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void afterPropertiesSet()
public void destroy()