|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.trash.service.persistence.TrashEntryUtil
@ProviderType public class TrashEntryUtil
The persistence utility for the trash entry service. This utility wraps 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 Summary | |
---|---|
TrashEntryUtil()
|
Method Summary | |
---|---|
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 orderByComparator)
Returns the first trash entry in the ordered set where companyId = ?. |
static TrashEntry |
fetchByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Returns the last trash entry in the ordered set where companyId = ?. |
static TrashEntry |
fetchByG_C_First(long groupId,
long classNameId,
OrderByComparator orderByComparator)
Returns the first trash entry in the ordered set where groupId = ? and classNameId = ?. |
static TrashEntry |
fetchByG_C_Last(long groupId,
long classNameId,
OrderByComparator orderByComparator)
Returns the last trash entry in the ordered set where groupId = ? and classNameId = ?. |
static TrashEntry |
fetchByG_LtCD_First(long groupId,
Date createDate,
OrderByComparator orderByComparator)
Returns the first trash entry in the ordered set where groupId = ? and createDate < ?. |
static TrashEntry |
fetchByG_LtCD_Last(long groupId,
Date createDate,
OrderByComparator orderByComparator)
Returns the last trash entry in the ordered set where groupId = ? and createDate < ?. |
static TrashEntry |
fetchByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first trash entry in the ordered set where groupId = ?. |
static TrashEntry |
fetchByGroupId_Last(long groupId,
OrderByComparator 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 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 orderByComparator)
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 orderByComparator)
Returns the first trash entry in the ordered set where companyId = ?. |
static TrashEntry |
findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Returns the last trash entry in the ordered set where companyId = ?. |
static TrashEntry[] |
findByCompanyId_PrevAndNext(long entryId,
long companyId,
OrderByComparator orderByComparator)
Returns the trash entries before and after the current trash entry in the ordered set where companyId = ?. |
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 orderByComparator)
Returns an ordered range of all the trash entries where companyId = ?. |
static TrashEntry |
findByG_C_First(long groupId,
long classNameId,
OrderByComparator orderByComparator)
Returns the first trash entry in the ordered set where groupId = ? and classNameId = ?. |
static TrashEntry |
findByG_C_Last(long groupId,
long classNameId,
OrderByComparator 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 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 orderByComparator)
Returns an ordered range of all the trash entries where groupId = ? and classNameId = ?. |
static TrashEntry |
findByG_LtCD_First(long groupId,
Date createDate,
OrderByComparator orderByComparator)
Returns the first trash entry in the ordered set where groupId = ? and createDate < ?. |
static TrashEntry |
findByG_LtCD_Last(long groupId,
Date createDate,
OrderByComparator 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 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 orderByComparator)
Returns an ordered range of all the trash entries where groupId = ? and createDate < ?. |
static TrashEntry |
findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first trash entry in the ordered set where groupId = ?. |
static TrashEntry |
findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last trash entry in the ordered set where groupId = ?. |
static TrashEntry[] |
findByGroupId_PrevAndNext(long entryId,
long groupId,
OrderByComparator orderByComparator)
Returns the trash entries before and after the current trash entry in the ordered set where groupId = ?. |
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 orderByComparator)
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 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. |
void |
setPersistence(TrashEntryPersistence persistence)
Deprecated. As of 6.2.0 |
static TrashEntry |
update(TrashEntry trashEntry)
|
static TrashEntry |
update(TrashEntry trashEntry,
ServiceContext serviceContext)
|
static TrashEntry |
updateImpl(TrashEntry trashEntry)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TrashEntryUtil()
Method Detail |
---|
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(TrashEntry trashEntry)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<TrashEntry> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<TrashEntry> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<TrashEntry> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static TrashEntry update(TrashEntry trashEntry) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel)
public static TrashEntry update(TrashEntry trashEntry, ServiceContext serviceContext) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)
public static List<TrashEntry> findByGroupId(long groupId) throws SystemException
groupId
- the group ID
SystemException
- if a system exception occurredpublic static List<TrashEntry> findByGroupId(long groupId, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from TrashEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDstart
- the lower bound of the range of trash entriesend
- the upper bound of the range of trash entries (not inclusive)
SystemException
- if a system exception occurredpublic static List<TrashEntry> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from TrashEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDstart
- the lower bound of the range of trash entriesend
- the upper bound of the range of trash entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static TrashEntry findByGroupId_First(long groupId, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching trash entry could not be found
SystemException
- if a system exception occurredpublic static TrashEntry fetchByGroupId_First(long groupId, OrderByComparator orderByComparator) throws SystemException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching trash entry could not be found
SystemException
- if a system exception occurredpublic static TrashEntry findByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching trash entry could not be found
SystemException
- if a system exception occurredpublic static TrashEntry fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws SystemException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching trash entry could not be found
SystemException
- if a system exception occurredpublic static TrashEntry[] findByGroupId_PrevAndNext(long entryId, long groupId, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
entryId
- the primary key of the current trash entrygroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a trash entry with the primary key could not be found
SystemException
- if a system exception occurredpublic static void removeByGroupId(long groupId) throws SystemException
groupId
- the group ID
SystemException
- if a system exception occurredpublic static int countByGroupId(long groupId) throws SystemException
groupId
- the group ID
SystemException
- if a system exception occurredpublic static List<TrashEntry> findByCompanyId(long companyId) throws SystemException
companyId
- the company ID
SystemException
- if a system exception occurredpublic static List<TrashEntry> findByCompanyId(long companyId, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from TrashEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDstart
- the lower bound of the range of trash entriesend
- the upper bound of the range of trash entries (not inclusive)
SystemException
- if a system exception occurredpublic static List<TrashEntry> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from TrashEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDstart
- the lower bound of the range of trash entriesend
- the upper bound of the range of trash entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static TrashEntry findByCompanyId_First(long companyId, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching trash entry could not be found
SystemException
- if a system exception occurredpublic static TrashEntry fetchByCompanyId_First(long companyId, OrderByComparator orderByComparator) throws SystemException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching trash entry could not be found
SystemException
- if a system exception occurredpublic static TrashEntry findByCompanyId_Last(long companyId, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching trash entry could not be found
SystemException
- if a system exception occurredpublic static TrashEntry fetchByCompanyId_Last(long companyId, OrderByComparator orderByComparator) throws SystemException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching trash entry could not be found
SystemException
- if a system exception occurredpublic static TrashEntry[] findByCompanyId_PrevAndNext(long entryId, long companyId, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
entryId
- the primary key of the current trash entrycompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a trash entry with the primary key could not be found
SystemException
- if a system exception occurredpublic static void removeByCompanyId(long companyId) throws SystemException
companyId
- the company ID
SystemException
- if a system exception occurredpublic static int countByCompanyId(long companyId) throws SystemException
companyId
- the company ID
SystemException
- if a system exception occurredpublic static List<TrashEntry> findByG_LtCD(long groupId, Date createDate) throws SystemException
groupId
- the group IDcreateDate
- the create date
SystemException
- if a system exception occurredpublic static List<TrashEntry> findByG_LtCD(long groupId, Date createDate, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from TrashEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDcreateDate
- the create datestart
- the lower bound of the range of trash entriesend
- the upper bound of the range of trash entries (not inclusive)
SystemException
- if a system exception occurredpublic static List<TrashEntry> findByG_LtCD(long groupId, Date createDate, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from TrashEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDcreateDate
- the create datestart
- the lower bound of the range of trash entriesend
- the upper bound of the range of trash entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static TrashEntry findByG_LtCD_First(long groupId, Date createDate, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
groupId
- the group IDcreateDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching trash entry could not be found
SystemException
- if a system exception occurredpublic static TrashEntry fetchByG_LtCD_First(long groupId, Date createDate, OrderByComparator orderByComparator) throws SystemException
groupId
- the group IDcreateDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching trash entry could not be found
SystemException
- if a system exception occurredpublic static TrashEntry findByG_LtCD_Last(long groupId, Date createDate, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
groupId
- the group IDcreateDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching trash entry could not be found
SystemException
- if a system exception occurredpublic static TrashEntry fetchByG_LtCD_Last(long groupId, Date createDate, OrderByComparator orderByComparator) throws SystemException
groupId
- the group IDcreateDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching trash entry could not be found
SystemException
- if a system exception occurredpublic static TrashEntry[] findByG_LtCD_PrevAndNext(long entryId, long groupId, Date createDate, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
entryId
- the primary key of the current trash entrygroupId
- the group IDcreateDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a trash entry with the primary key could not be found
SystemException
- if a system exception occurredpublic static void removeByG_LtCD(long groupId, Date createDate) throws SystemException
groupId
- the group IDcreateDate
- the create date
SystemException
- if a system exception occurredpublic static int countByG_LtCD(long groupId, Date createDate) throws SystemException
groupId
- the group IDcreateDate
- the create date
SystemException
- if a system exception occurredpublic static List<TrashEntry> findByG_C(long groupId, long classNameId) throws SystemException
groupId
- the group IDclassNameId
- the class name ID
SystemException
- if a system exception occurredpublic static List<TrashEntry> findByG_C(long groupId, long classNameId, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from TrashEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDclassNameId
- the class name IDstart
- the lower bound of the range of trash entriesend
- the upper bound of the range of trash entries (not inclusive)
SystemException
- if a system exception occurredpublic static List<TrashEntry> findByG_C(long groupId, long classNameId, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from TrashEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDclassNameId
- the class name IDstart
- the lower bound of the range of trash entriesend
- the upper bound of the range of trash entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static TrashEntry findByG_C_First(long groupId, long classNameId, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching trash entry could not be found
SystemException
- if a system exception occurredpublic static TrashEntry fetchByG_C_First(long groupId, long classNameId, OrderByComparator orderByComparator) throws SystemException
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching trash entry could not be found
SystemException
- if a system exception occurredpublic static TrashEntry findByG_C_Last(long groupId, long classNameId, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching trash entry could not be found
SystemException
- if a system exception occurredpublic static TrashEntry fetchByG_C_Last(long groupId, long classNameId, OrderByComparator orderByComparator) throws SystemException
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching trash entry could not be found
SystemException
- if a system exception occurredpublic static TrashEntry[] findByG_C_PrevAndNext(long entryId, long groupId, long classNameId, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
entryId
- the primary key of the current trash entrygroupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a trash entry with the primary key could not be found
SystemException
- if a system exception occurredpublic static void removeByG_C(long groupId, long classNameId) throws SystemException
groupId
- the group IDclassNameId
- the class name ID
SystemException
- if a system exception occurredpublic static int countByG_C(long groupId, long classNameId) throws SystemException
groupId
- the group IDclassNameId
- the class name ID
SystemException
- if a system exception occurredpublic static TrashEntry findByC_C(long classNameId, long classPK) throws SystemException, NoSuchEntryException
NoSuchEntryException
if it could not be found.
classNameId
- the class name IDclassPK
- the class p k
NoSuchEntryException
- if a matching trash entry could not be found
SystemException
- if a system exception occurredpublic static TrashEntry fetchByC_C(long classNameId, long classPK) throws SystemException
null
if it could not be found. Uses the finder cache.
classNameId
- the class name IDclassPK
- the class p k
null
if a matching trash entry could not be found
SystemException
- if a system exception occurredpublic static TrashEntry fetchByC_C(long classNameId, long classPK, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
classNameId
- the class name IDclassPK
- the class p kretrieveFromCache
- whether to use the finder cache
null
if a matching trash entry could not be found
SystemException
- if a system exception occurredpublic static TrashEntry removeByC_C(long classNameId, long classPK) throws SystemException, NoSuchEntryException
classNameId
- the class name IDclassPK
- the class p k
SystemException
- if a system exception occurred
NoSuchEntryException
public static int countByC_C(long classNameId, long classPK) throws SystemException
classNameId
- the class name IDclassPK
- the class p k
SystemException
- if a system exception occurredpublic 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 entry
public static TrashEntry remove(long entryId) throws SystemException, NoSuchEntryException
entryId
- the primary key of the trash entry
NoSuchEntryException
- if a trash entry with the primary key could not be found
SystemException
- if a system exception occurredpublic static TrashEntry updateImpl(TrashEntry trashEntry) throws SystemException
SystemException
public static TrashEntry findByPrimaryKey(long entryId) throws SystemException, NoSuchEntryException
NoSuchEntryException
if it could not be found.
entryId
- the primary key of the trash entry
NoSuchEntryException
- if a trash entry with the primary key could not be found
SystemException
- if a system exception occurredpublic static TrashEntry fetchByPrimaryKey(long entryId) throws SystemException
null
if it could not be found.
entryId
- the primary key of the trash entry
null
if a trash entry with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<TrashEntry> findAll() throws SystemException
SystemException
- if a system exception occurredpublic static List<TrashEntry> findAll(int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from TrashEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of trash entriesend
- the upper bound of the range of trash entries (not inclusive)
SystemException
- if a system exception occurredpublic static List<TrashEntry> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from TrashEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of trash entriesend
- the upper bound of the range of trash entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static void removeAll() throws SystemException
SystemException
- if a system exception occurredpublic static int countAll() throws SystemException
SystemException
- if a system exception occurredpublic static TrashEntryPersistence getPersistence()
public void setPersistence(TrashEntryPersistence persistence)
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |