|
Liferay 7.0-ce-b4 | |||||||||
| 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.impl.TrashEntryPersistenceImpl
@ProviderType 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 |
|---|
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, 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(TrashEntryModelImpl trashEntryModelImpl,
boolean isNew)
|
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(TrashEntryModelImpl trashEntryModelImpl)
|
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<TrashEntry> orderByComparator)
Returns the first trash entry in the ordered set where companyId = ?. |
TrashEntry |
fetchByCompanyId_Last(long companyId,
OrderByComparator<TrashEntry> orderByComparator)
Returns the last trash entry in the ordered set where companyId = ?. |
TrashEntry |
fetchByG_C_First(long groupId,
long classNameId,
OrderByComparator<TrashEntry> orderByComparator)
Returns the first trash entry in the ordered set where groupId = ? and classNameId = ?. |
TrashEntry |
fetchByG_C_Last(long groupId,
long classNameId,
OrderByComparator<TrashEntry> orderByComparator)
Returns the last trash entry in the ordered set where groupId = ? and classNameId = ?. |
TrashEntry |
fetchByG_LtCD_First(long groupId,
Date createDate,
OrderByComparator<TrashEntry> orderByComparator)
Returns the first trash entry in the ordered set where groupId = ? and createDate < ?. |
TrashEntry |
fetchByG_LtCD_Last(long groupId,
Date createDate,
OrderByComparator<TrashEntry> orderByComparator)
Returns the last trash entry in the ordered set where groupId = ? and createDate < ?. |
TrashEntry |
fetchByGroupId_First(long groupId,
OrderByComparator<TrashEntry> orderByComparator)
Returns the first trash entry in the ordered set where groupId = ?. |
TrashEntry |
fetchByGroupId_Last(long groupId,
OrderByComparator<TrashEntry> 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. |
Map<Serializable,TrashEntry> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
|
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<TrashEntry> orderByComparator)
Returns an ordered range of all the trash entries. |
List<TrashEntry> |
findAll(int start,
int end,
OrderByComparator<TrashEntry> orderByComparator,
boolean retrieveFromCache)
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<TrashEntry> orderByComparator)
Returns the first trash entry in the ordered set where companyId = ?. |
TrashEntry |
findByCompanyId_Last(long companyId,
OrderByComparator<TrashEntry> orderByComparator)
Returns the last trash entry in the ordered set where companyId = ?. |
TrashEntry[] |
findByCompanyId_PrevAndNext(long entryId,
long companyId,
OrderByComparator<TrashEntry> 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<TrashEntry> orderByComparator)
Returns an ordered range of all the trash entries where companyId = ?. |
List<TrashEntry> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<TrashEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the trash entries where companyId = ?. |
TrashEntry |
findByG_C_First(long groupId,
long classNameId,
OrderByComparator<TrashEntry> orderByComparator)
Returns the first trash entry in the ordered set where groupId = ? and classNameId = ?. |
TrashEntry |
findByG_C_Last(long groupId,
long classNameId,
OrderByComparator<TrashEntry> 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<TrashEntry> 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<TrashEntry> orderByComparator)
Returns an ordered range of all the trash entries where groupId = ? and classNameId = ?. |
List<TrashEntry> |
findByG_C(long groupId,
long classNameId,
int start,
int end,
OrderByComparator<TrashEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the trash entries where groupId = ? and classNameId = ?. |
TrashEntry |
findByG_LtCD_First(long groupId,
Date createDate,
OrderByComparator<TrashEntry> orderByComparator)
Returns the first trash entry in the ordered set where groupId = ? and createDate < ?. |
TrashEntry |
findByG_LtCD_Last(long groupId,
Date createDate,
OrderByComparator<TrashEntry> 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<TrashEntry> 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<TrashEntry> orderByComparator)
Returns an ordered range of all the trash entries where groupId = ? and createDate < ?. |
List<TrashEntry> |
findByG_LtCD(long groupId,
Date createDate,
int start,
int end,
OrderByComparator<TrashEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the trash entries where groupId = ? and createDate < ?. |
TrashEntry |
findByGroupId_First(long groupId,
OrderByComparator<TrashEntry> orderByComparator)
Returns the first trash entry in the ordered set where groupId = ?. |
TrashEntry |
findByGroupId_Last(long groupId,
OrderByComparator<TrashEntry> orderByComparator)
Returns the last trash entry in the ordered set where groupId = ?. |
TrashEntry[] |
findByGroupId_PrevAndNext(long entryId,
long groupId,
OrderByComparator<TrashEntry> 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<TrashEntry> orderByComparator)
Returns an ordered range of all the trash entries where groupId = ?. |
List<TrashEntry> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator<TrashEntry> orderByComparator,
boolean retrieveFromCache)
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<TrashEntry> orderByComparator,
boolean previous)
|
protected TrashEntry |
getByG_C_PrevAndNext(Session session,
TrashEntry trashEntry,
long groupId,
long classNameId,
OrderByComparator<TrashEntry> orderByComparator,
boolean previous)
|
protected TrashEntry |
getByG_LtCD_PrevAndNext(Session session,
TrashEntry trashEntry,
long groupId,
Date createDate,
OrderByComparator<TrashEntry> orderByComparator,
boolean previous)
|
protected TrashEntry |
getByGroupId_PrevAndNext(Session session,
TrashEntry trashEntry,
long groupId,
OrderByComparator<TrashEntry> orderByComparator,
boolean previous)
|
protected Map<String,Integer> |
getTableColumnsMap()
|
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, getColumnName, 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, getBadColumnNames, 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
@BeanReference(type=CompanyProviderWrapper.class) protected CompanyProvider companyProvider
protected EntityCache entityCache
protected FinderCache finderCache
| Constructor Detail |
|---|
public TrashEntryPersistenceImpl()
| Method Detail |
|---|
public List<TrashEntry> findByGroupId(long groupId)
findByGroupId in interface TrashEntryPersistencegroupId - the group ID
public List<TrashEntry> findByGroupId(long groupId,
int start,
int end)
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)
public List<TrashEntry> findByGroupId(long groupId,
int start,
int end,
OrderByComparator<TrashEntry> orderByComparator)
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)
public List<TrashEntry> findByGroupId(long groupId,
int start,
int end,
OrderByComparator<TrashEntry> orderByComparator,
boolean retrieveFromCache)
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)retrieveFromCache - whether to retrieve from the finder cache
public TrashEntry findByGroupId_First(long groupId,
OrderByComparator<TrashEntry> orderByComparator)
throws NoSuchEntryException
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
public TrashEntry fetchByGroupId_First(long groupId,
OrderByComparator<TrashEntry> orderByComparator)
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
public TrashEntry findByGroupId_Last(long groupId,
OrderByComparator<TrashEntry> orderByComparator)
throws NoSuchEntryException
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
public TrashEntry fetchByGroupId_Last(long groupId,
OrderByComparator<TrashEntry> orderByComparator)
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
public TrashEntry[] findByGroupId_PrevAndNext(long entryId,
long groupId,
OrderByComparator<TrashEntry> orderByComparator)
throws NoSuchEntryException
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
protected TrashEntry getByGroupId_PrevAndNext(Session session,
TrashEntry trashEntry,
long groupId,
OrderByComparator<TrashEntry> orderByComparator,
boolean previous)
public void removeByGroupId(long groupId)
removeByGroupId in interface TrashEntryPersistencegroupId - the group IDpublic int countByGroupId(long groupId)
countByGroupId in interface TrashEntryPersistencegroupId - the group ID
public List<TrashEntry> findByCompanyId(long companyId)
findByCompanyId in interface TrashEntryPersistencecompanyId - the company ID
public List<TrashEntry> findByCompanyId(long companyId,
int start,
int end)
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)
public List<TrashEntry> findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<TrashEntry> orderByComparator)
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)
public List<TrashEntry> findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<TrashEntry> orderByComparator,
boolean retrieveFromCache)
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)retrieveFromCache - whether to retrieve from the finder cache
public TrashEntry findByCompanyId_First(long companyId,
OrderByComparator<TrashEntry> orderByComparator)
throws NoSuchEntryException
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
public TrashEntry fetchByCompanyId_First(long companyId,
OrderByComparator<TrashEntry> orderByComparator)
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
public TrashEntry findByCompanyId_Last(long companyId,
OrderByComparator<TrashEntry> orderByComparator)
throws NoSuchEntryException
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
public TrashEntry fetchByCompanyId_Last(long companyId,
OrderByComparator<TrashEntry> orderByComparator)
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
public TrashEntry[] findByCompanyId_PrevAndNext(long entryId,
long companyId,
OrderByComparator<TrashEntry> orderByComparator)
throws NoSuchEntryException
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
protected TrashEntry getByCompanyId_PrevAndNext(Session session,
TrashEntry trashEntry,
long companyId,
OrderByComparator<TrashEntry> orderByComparator,
boolean previous)
public void removeByCompanyId(long companyId)
removeByCompanyId in interface TrashEntryPersistencecompanyId - the company IDpublic int countByCompanyId(long companyId)
countByCompanyId in interface TrashEntryPersistencecompanyId - the company ID
public List<TrashEntry> findByG_LtCD(long groupId,
Date createDate)
findByG_LtCD in interface TrashEntryPersistencegroupId - the group IDcreateDate - the create date
public List<TrashEntry> findByG_LtCD(long groupId,
Date createDate,
int start,
int end)
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)
public List<TrashEntry> findByG_LtCD(long groupId,
Date createDate,
int start,
int end,
OrderByComparator<TrashEntry> orderByComparator)
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)
public List<TrashEntry> findByG_LtCD(long groupId,
Date createDate,
int start,
int end,
OrderByComparator<TrashEntry> orderByComparator,
boolean retrieveFromCache)
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)retrieveFromCache - whether to retrieve from the finder cache
public TrashEntry findByG_LtCD_First(long groupId,
Date createDate,
OrderByComparator<TrashEntry> orderByComparator)
throws NoSuchEntryException
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
public TrashEntry fetchByG_LtCD_First(long groupId,
Date createDate,
OrderByComparator<TrashEntry> orderByComparator)
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
public TrashEntry findByG_LtCD_Last(long groupId,
Date createDate,
OrderByComparator<TrashEntry> orderByComparator)
throws NoSuchEntryException
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
public TrashEntry fetchByG_LtCD_Last(long groupId,
Date createDate,
OrderByComparator<TrashEntry> orderByComparator)
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
public TrashEntry[] findByG_LtCD_PrevAndNext(long entryId,
long groupId,
Date createDate,
OrderByComparator<TrashEntry> orderByComparator)
throws NoSuchEntryException
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
protected TrashEntry getByG_LtCD_PrevAndNext(Session session,
TrashEntry trashEntry,
long groupId,
Date createDate,
OrderByComparator<TrashEntry> orderByComparator,
boolean previous)
public void removeByG_LtCD(long groupId,
Date createDate)
removeByG_LtCD in interface TrashEntryPersistencegroupId - the group IDcreateDate - the create date
public int countByG_LtCD(long groupId,
Date createDate)
countByG_LtCD in interface TrashEntryPersistencegroupId - the group IDcreateDate - the create date
public List<TrashEntry> findByG_C(long groupId,
long classNameId)
findByG_C in interface TrashEntryPersistencegroupId - the group IDclassNameId - the class name ID
public List<TrashEntry> findByG_C(long groupId,
long classNameId,
int start,
int end)
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)
public List<TrashEntry> findByG_C(long groupId,
long classNameId,
int start,
int end,
OrderByComparator<TrashEntry> orderByComparator)
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)
public List<TrashEntry> findByG_C(long groupId,
long classNameId,
int start,
int end,
OrderByComparator<TrashEntry> orderByComparator,
boolean retrieveFromCache)
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)retrieveFromCache - whether to retrieve from the finder cache
public TrashEntry findByG_C_First(long groupId,
long classNameId,
OrderByComparator<TrashEntry> orderByComparator)
throws NoSuchEntryException
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
public TrashEntry fetchByG_C_First(long groupId,
long classNameId,
OrderByComparator<TrashEntry> orderByComparator)
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
public TrashEntry findByG_C_Last(long groupId,
long classNameId,
OrderByComparator<TrashEntry> orderByComparator)
throws NoSuchEntryException
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
public TrashEntry fetchByG_C_Last(long groupId,
long classNameId,
OrderByComparator<TrashEntry> orderByComparator)
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
public TrashEntry[] findByG_C_PrevAndNext(long entryId,
long groupId,
long classNameId,
OrderByComparator<TrashEntry> orderByComparator)
throws NoSuchEntryException
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
protected TrashEntry getByG_C_PrevAndNext(Session session,
TrashEntry trashEntry,
long groupId,
long classNameId,
OrderByComparator<TrashEntry> orderByComparator,
boolean previous)
public void removeByG_C(long groupId,
long classNameId)
removeByG_C in interface TrashEntryPersistencegroupId - the group IDclassNameId - the class name ID
public int countByG_C(long groupId,
long classNameId)
countByG_C in interface TrashEntryPersistencegroupId - the group IDclassNameId - the class name ID
public TrashEntry findByC_C(long classNameId,
long classPK)
throws NoSuchEntryException
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
public TrashEntry fetchByC_C(long classNameId,
long classPK)
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
public TrashEntry fetchByC_C(long classNameId,
long classPK,
boolean retrieveFromCache)
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 retrieve from the finder cache
null if a matching trash entry could not be found
public TrashEntry removeByC_C(long classNameId,
long classPK)
throws NoSuchEntryException
removeByC_C in interface TrashEntryPersistenceclassNameId - the class name IDclassPK - the class p k
NoSuchEntryException
public int countByC_C(long classNameId,
long classPK)
countByC_C in interface TrashEntryPersistenceclassNameId - the class name IDclassPK - the class p k
public 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 for
protected void cacheUniqueFindersCache(TrashEntryModelImpl trashEntryModelImpl,
boolean isNew)
protected void clearUniqueFindersCache(TrashEntryModelImpl trashEntryModelImpl)
public TrashEntry create(long entryId)
create in interface TrashEntryPersistenceentryId - the primary key for the new trash entry
public TrashEntry remove(long entryId)
throws NoSuchEntryException
remove in interface TrashEntryPersistenceentryId - the primary key of the trash entry
NoSuchEntryException - if a trash entry with the primary key could not be found
public TrashEntry remove(Serializable primaryKey)
throws NoSuchEntryException
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 foundprotected TrashEntry removeImpl(TrashEntry trashEntry)
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
public TrashEntry updateImpl(TrashEntry trashEntry)
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
protected TrashEntry toUnwrappedModel(TrashEntry trashEntry)
public TrashEntry findByPrimaryKey(Serializable primaryKey)
throws NoSuchEntryException
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
public TrashEntry findByPrimaryKey(long entryId)
throws NoSuchEntryException
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 foundpublic TrashEntry fetchByPrimaryKey(Serializable primaryKey)
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 foundpublic TrashEntry fetchByPrimaryKey(long entryId)
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 foundpublic Map<Serializable,TrashEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys in interface BasePersistence<TrashEntry>fetchByPrimaryKeys in interface TrashEntryPersistencefetchByPrimaryKeys in class BasePersistenceImpl<TrashEntry>public List<TrashEntry> findAll()
findAll in interface TrashEntryPersistence
public List<TrashEntry> findAll(int start,
int end)
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)
public List<TrashEntry> findAll(int start,
int end,
OrderByComparator<TrashEntry> orderByComparator)
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)
public List<TrashEntry> findAll(int start,
int end,
OrderByComparator<TrashEntry> orderByComparator,
boolean retrieveFromCache)
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)retrieveFromCache - whether to retrieve from the finder cache
public void removeAll()
removeAll in interface TrashEntryPersistencepublic int countAll()
countAll in interface TrashEntryPersistenceprotected Map<String,Integer> getTableColumnsMap()
getTableColumnsMap in class BasePersistenceImpl<TrashEntry>public void afterPropertiesSet()
public void destroy()
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||