@ProviderType
public class TrashEntryUtil
extends Object
TrashEntryPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
TrashEntryPersistence
,
TrashEntryPersistenceImpl
Constructor and Description |
---|
TrashEntryUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(List<TrashEntry> trashEntries)
Caches the trash entries in the entity cache if it is enabled.
|
static void |
cacheResult(TrashEntry trashEntry)
Caches the trash entry in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(TrashEntry trashEntry) |
static int |
countAll()
Returns the number of trash entries.
|
static int |
countByC_C(long classNameId,
long classPK)
Returns the number of trash entries where classNameId = ? and classPK = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of trash entries where companyId = ?.
|
static int |
countByG_C(long groupId,
long classNameId)
Returns the number of trash entries where groupId = ? and classNameId = ?.
|
static int |
countByG_LtCD(long groupId,
Date createDate)
Returns the number of trash entries where groupId = ? and createDate < ?.
|
static int |
countByGroupId(long groupId)
Returns the number of trash entries where groupId = ?.
|
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery) |
static TrashEntry |
create(long entryId)
Creates a new trash entry with the primary key.
|
static TrashEntry |
fetchByC_C(long classNameId,
long classPK)
Returns the trash entry where classNameId = ? and classPK = ? or returns
null if it could not be found. |
static 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. |
static TrashEntry |
fetchByCompanyId_First(long companyId,
OrderByComparator<TrashEntry> orderByComparator)
Returns the first trash entry in the ordered set where companyId = ?.
|
static TrashEntry |
fetchByCompanyId_Last(long companyId,
OrderByComparator<TrashEntry> orderByComparator)
Returns the last trash entry in the ordered set where companyId = ?.
|
static TrashEntry |
fetchByG_C_First(long groupId,
long classNameId,
OrderByComparator<TrashEntry> orderByComparator)
Returns the first trash entry in the ordered set where groupId = ? and classNameId = ?.
|
static TrashEntry |
fetchByG_C_Last(long groupId,
long classNameId,
OrderByComparator<TrashEntry> orderByComparator)
Returns the last trash entry in the ordered set where groupId = ? and classNameId = ?.
|
static TrashEntry |
fetchByG_LtCD_First(long groupId,
Date createDate,
OrderByComparator<TrashEntry> orderByComparator)
Returns the first trash entry in the ordered set where groupId = ? and createDate < ?.
|
static TrashEntry |
fetchByG_LtCD_Last(long groupId,
Date createDate,
OrderByComparator<TrashEntry> orderByComparator)
Returns the last trash entry in the ordered set where groupId = ? and createDate < ?.
|
static TrashEntry |
fetchByGroupId_First(long groupId,
OrderByComparator<TrashEntry> orderByComparator)
Returns the first trash entry in the ordered set where groupId = ?.
|
static TrashEntry |
fetchByGroupId_Last(long groupId,
OrderByComparator<TrashEntry> orderByComparator)
Returns the last trash entry in the ordered set where groupId = ?.
|
static TrashEntry |
fetchByPrimaryKey(long entryId)
Returns the trash entry with the primary key or returns
null if it could not be found. |
static Map<Serializable,TrashEntry> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys) |
static List<TrashEntry> |
findAll()
Returns all the trash entries.
|
static List<TrashEntry> |
findAll(int start,
int end)
Returns a range of all the trash entries.
|
static List<TrashEntry> |
findAll(int start,
int end,
OrderByComparator<TrashEntry> orderByComparator)
Returns an ordered range of all the trash entries.
|
static List<TrashEntry> |
findAll(int start,
int end,
OrderByComparator<TrashEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the trash entries.
|
static 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. |
static TrashEntry |
findByCompanyId_First(long companyId,
OrderByComparator<TrashEntry> orderByComparator)
Returns the first trash entry in the ordered set where companyId = ?.
|
static TrashEntry |
findByCompanyId_Last(long companyId,
OrderByComparator<TrashEntry> orderByComparator)
Returns the last trash entry in the ordered set where companyId = ?.
|
static 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 = ?.
|
static List<TrashEntry> |
findByCompanyId(long companyId)
Returns all the trash entries where companyId = ?.
|
static List<TrashEntry> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the trash entries where companyId = ?.
|
static List<TrashEntry> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<TrashEntry> orderByComparator)
Returns an ordered range of all the trash entries where companyId = ?.
|
static 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 = ?.
|
static TrashEntry |
findByG_C_First(long groupId,
long classNameId,
OrderByComparator<TrashEntry> orderByComparator)
Returns the first trash entry in the ordered set where groupId = ? and classNameId = ?.
|
static TrashEntry |
findByG_C_Last(long groupId,
long classNameId,
OrderByComparator<TrashEntry> orderByComparator)
Returns the last trash entry in the ordered set where groupId = ? and classNameId = ?.
|
static 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 = ?.
|
static List<TrashEntry> |
findByG_C(long groupId,
long classNameId)
Returns all the trash entries where groupId = ? and classNameId = ?.
|
static List<TrashEntry> |
findByG_C(long groupId,
long classNameId,
int start,
int end)
Returns a range of all the trash entries where groupId = ? and classNameId = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static TrashEntry |
findByG_LtCD_First(long groupId,
Date createDate,
OrderByComparator<TrashEntry> orderByComparator)
Returns the first trash entry in the ordered set where groupId = ? and createDate < ?.
|
static TrashEntry |
findByG_LtCD_Last(long groupId,
Date createDate,
OrderByComparator<TrashEntry> orderByComparator)
Returns the last trash entry in the ordered set where groupId = ? and createDate < ?.
|
static 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 < ?.
|
static List<TrashEntry> |
findByG_LtCD(long groupId,
Date createDate)
Returns all the trash entries where groupId = ? and createDate < ?.
|
static List<TrashEntry> |
findByG_LtCD(long groupId,
Date createDate,
int start,
int end)
Returns a range of all the trash entries where groupId = ? and createDate < ?.
|
static 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 < ?.
|
static 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 < ?.
|
static TrashEntry |
findByGroupId_First(long groupId,
OrderByComparator<TrashEntry> orderByComparator)
Returns the first trash entry in the ordered set where groupId = ?.
|
static TrashEntry |
findByGroupId_Last(long groupId,
OrderByComparator<TrashEntry> orderByComparator)
Returns the last trash entry in the ordered set where groupId = ?.
|
static 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 = ?.
|
static List<TrashEntry> |
findByGroupId(long groupId)
Returns all the trash entries where groupId = ?.
|
static List<TrashEntry> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the trash entries where groupId = ?.
|
static List<TrashEntry> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator<TrashEntry> orderByComparator)
Returns an ordered range of all the trash entries where groupId = ?.
|
static 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 = ?.
|
static TrashEntry |
findByPrimaryKey(long entryId)
Returns the trash entry with the primary key or throws a
NoSuchEntryException if it could not be found. |
static List<TrashEntry> |
findWithDynamicQuery(DynamicQuery dynamicQuery) |
static List<TrashEntry> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end) |
static List<TrashEntry> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<TrashEntry> orderByComparator) |
static TrashEntryPersistence |
getPersistence() |
static TrashEntry |
remove(long entryId)
Removes the trash entry with the primary key from the database.
|
static void |
removeAll()
Removes all the trash entries from the database.
|
static TrashEntry |
removeByC_C(long classNameId,
long classPK)
Removes the trash entry where classNameId = ? and classPK = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the trash entries where companyId = ? from the database.
|
static void |
removeByG_C(long groupId,
long classNameId)
Removes all the trash entries where groupId = ? and classNameId = ? from the database.
|
static void |
removeByG_LtCD(long groupId,
Date createDate)
Removes all the trash entries where groupId = ? and createDate < ? from the database.
|
static void |
removeByGroupId(long groupId)
Removes all the trash entries where groupId = ? from the database.
|
static TrashEntry |
update(TrashEntry trashEntry) |
static TrashEntry |
update(TrashEntry trashEntry,
ServiceContext serviceContext) |
static TrashEntry |
updateImpl(TrashEntry trashEntry) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(TrashEntry trashEntry)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
public static List<TrashEntry> findWithDynamicQuery(DynamicQuery dynamicQuery)
public static List<TrashEntry> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
public static List<TrashEntry> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<TrashEntry> orderByComparator)
public static TrashEntry update(TrashEntry trashEntry)
public static TrashEntry update(TrashEntry trashEntry, ServiceContext serviceContext)
public static List<TrashEntry> findByGroupId(long groupId)
groupId
- the group IDpublic static 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.
groupId
- the group IDstart
- the lower bound of the range of trash entriesend
- the upper bound of the range of trash entries (not inclusive)public static 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.
groupId
- the group IDstart
- the lower bound of the range of trash entriesend
- the upper bound of the range of trash entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static 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.
groupId
- the group IDstart
- the lower bound of the range of trash entriesend
- the upper bound of the range of trash entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static TrashEntry findByGroupId_First(long groupId, OrderByComparator<TrashEntry> orderByComparator) throws NoSuchEntryException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching trash entry could not be foundpublic static TrashEntry fetchByGroupId_First(long groupId, OrderByComparator<TrashEntry> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching trash entry could not be foundpublic static TrashEntry findByGroupId_Last(long groupId, OrderByComparator<TrashEntry> orderByComparator) throws NoSuchEntryException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching trash entry could not be foundpublic static TrashEntry fetchByGroupId_Last(long groupId, OrderByComparator<TrashEntry> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching trash entry could not be foundpublic static TrashEntry[] findByGroupId_PrevAndNext(long entryId, long groupId, OrderByComparator<TrashEntry> orderByComparator) throws NoSuchEntryException
entryId
- the primary key of the current trash entrygroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a trash entry with the primary key could not be foundpublic static void removeByGroupId(long groupId)
groupId
- the group IDpublic static int countByGroupId(long groupId)
groupId
- the group IDpublic static List<TrashEntry> findByCompanyId(long companyId)
companyId
- the company IDpublic static 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.
companyId
- the company IDstart
- the lower bound of the range of trash entriesend
- the upper bound of the range of trash entries (not inclusive)public static 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.
companyId
- the company IDstart
- the lower bound of the range of trash entriesend
- the upper bound of the range of trash entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static 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.
companyId
- the company IDstart
- the lower bound of the range of trash entriesend
- the upper bound of the range of trash entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static TrashEntry findByCompanyId_First(long companyId, OrderByComparator<TrashEntry> orderByComparator) throws NoSuchEntryException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching trash entry could not be foundpublic static TrashEntry fetchByCompanyId_First(long companyId, OrderByComparator<TrashEntry> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching trash entry could not be foundpublic static TrashEntry findByCompanyId_Last(long companyId, OrderByComparator<TrashEntry> orderByComparator) throws NoSuchEntryException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching trash entry could not be foundpublic static TrashEntry fetchByCompanyId_Last(long companyId, OrderByComparator<TrashEntry> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching trash entry could not be foundpublic static TrashEntry[] findByCompanyId_PrevAndNext(long entryId, long companyId, OrderByComparator<TrashEntry> orderByComparator) throws NoSuchEntryException
entryId
- the primary key of the current trash entrycompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a trash entry with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static List<TrashEntry> findByG_LtCD(long groupId, Date createDate)
groupId
- the group IDcreateDate
- the create datepublic static 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.
groupId
- the group IDcreateDate
- the create datestart
- the lower bound of the range of trash entriesend
- the upper bound of the range of trash entries (not inclusive)public static 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.
groupId
- the group IDcreateDate
- the create datestart
- the lower bound of the range of trash entriesend
- the upper bound of the range of trash entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static 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.
groupId
- the group IDcreateDate
- the create datestart
- the lower bound of the range of trash entriesend
- the upper bound of the range of trash entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static TrashEntry findByG_LtCD_First(long groupId, Date createDate, OrderByComparator<TrashEntry> orderByComparator) throws NoSuchEntryException
groupId
- the group IDcreateDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching trash entry could not be foundpublic static TrashEntry fetchByG_LtCD_First(long groupId, Date createDate, OrderByComparator<TrashEntry> orderByComparator)
groupId
- the group IDcreateDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching trash entry could not be foundpublic static TrashEntry findByG_LtCD_Last(long groupId, Date createDate, OrderByComparator<TrashEntry> orderByComparator) throws NoSuchEntryException
groupId
- the group IDcreateDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching trash entry could not be foundpublic static TrashEntry fetchByG_LtCD_Last(long groupId, Date createDate, OrderByComparator<TrashEntry> orderByComparator)
groupId
- the group IDcreateDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching trash entry could not be foundpublic static TrashEntry[] findByG_LtCD_PrevAndNext(long entryId, long groupId, Date createDate, OrderByComparator<TrashEntry> orderByComparator) throws NoSuchEntryException
entryId
- the primary key of the current trash entrygroupId
- the group IDcreateDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a trash entry with the primary key could not be foundpublic static void removeByG_LtCD(long groupId, Date createDate)
groupId
- the group IDcreateDate
- the create datepublic static int countByG_LtCD(long groupId, Date createDate)
groupId
- the group IDcreateDate
- the create datepublic static List<TrashEntry> findByG_C(long groupId, long classNameId)
groupId
- the group IDclassNameId
- the class name IDpublic static 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.
groupId
- the group IDclassNameId
- the class name IDstart
- the lower bound of the range of trash entriesend
- the upper bound of the range of trash entries (not inclusive)public static 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.
groupId
- the group IDclassNameId
- the class name IDstart
- the lower bound of the range of trash entriesend
- the upper bound of the range of trash entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static 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.
groupId
- the group IDclassNameId
- the class name IDstart
- the lower bound of the range of trash entriesend
- the upper bound of the range of trash entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static TrashEntry findByG_C_First(long groupId, long classNameId, OrderByComparator<TrashEntry> orderByComparator) throws NoSuchEntryException
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching trash entry could not be foundpublic static TrashEntry fetchByG_C_First(long groupId, long classNameId, OrderByComparator<TrashEntry> orderByComparator)
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching trash entry could not be foundpublic static TrashEntry findByG_C_Last(long groupId, long classNameId, OrderByComparator<TrashEntry> orderByComparator) throws NoSuchEntryException
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching trash entry could not be foundpublic static TrashEntry fetchByG_C_Last(long groupId, long classNameId, OrderByComparator<TrashEntry> orderByComparator)
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching trash entry could not be foundpublic static TrashEntry[] findByG_C_PrevAndNext(long entryId, long groupId, long classNameId, OrderByComparator<TrashEntry> orderByComparator) throws NoSuchEntryException
entryId
- the primary key of the current trash entrygroupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a trash entry with the primary key could not be foundpublic static void removeByG_C(long groupId, long classNameId)
groupId
- the group IDclassNameId
- the class name IDpublic static int countByG_C(long groupId, long classNameId)
groupId
- the group IDclassNameId
- the class name IDpublic static TrashEntry findByC_C(long classNameId, long classPK) throws NoSuchEntryException
NoSuchEntryException
if it could not be found.classNameId
- the class name IDclassPK
- the class pkNoSuchEntryException
- if a matching trash entry could not be foundpublic static TrashEntry fetchByC_C(long classNameId, long classPK)
null
if it could not be found. Uses the finder cache.classNameId
- the class name IDclassPK
- the class pknull
if a matching trash entry could not be foundpublic static TrashEntry fetchByC_C(long classNameId, long classPK, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.classNameId
- the class name IDclassPK
- the class pkretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching trash entry could not be foundpublic static TrashEntry removeByC_C(long classNameId, long classPK) throws NoSuchEntryException
classNameId
- the class name IDclassPK
- the class pkNoSuchEntryException
public static int countByC_C(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkpublic static void cacheResult(TrashEntry trashEntry)
trashEntry
- the trash entrypublic static void cacheResult(List<TrashEntry> trashEntries)
trashEntries
- the trash entriespublic static TrashEntry create(long entryId)
entryId
- the primary key for the new trash entrypublic static TrashEntry remove(long entryId) throws NoSuchEntryException
entryId
- the primary key of the trash entryNoSuchEntryException
- if a trash entry with the primary key could not be foundpublic static TrashEntry updateImpl(TrashEntry trashEntry)
public static TrashEntry findByPrimaryKey(long entryId) throws NoSuchEntryException
NoSuchEntryException
if it could not be found.entryId
- the primary key of the trash entryNoSuchEntryException
- if a trash entry with the primary key could not be foundpublic static TrashEntry fetchByPrimaryKey(long entryId)
null
if it could not be found.entryId
- the primary key of the trash entrynull
if a trash entry with the primary key could not be foundpublic static Map<Serializable,TrashEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
public static List<TrashEntry> findAll()
public static 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.
start
- the lower bound of the range of trash entriesend
- the upper bound of the range of trash entries (not inclusive)public static 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.
start
- the lower bound of the range of trash entriesend
- the upper bound of the range of trash entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static 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.
start
- the lower bound of the range of trash entriesend
- the upper bound of the range of trash entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static TrashEntryPersistence getPersistence()