|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.tasks.service.persistence.TasksReviewUtil
public class TasksReviewUtil
The persistence utility for the tasks review service. This utility wraps TasksReviewPersistenceImpl
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.
Never modify this class directly. Modify service.xml
and rerun ServiceBuilder to regenerate this class.
Caching information and settings can be found in portal.properties
TasksReviewPersistence
,
TasksReviewPersistenceImpl
Constructor Summary | |
---|---|
TasksReviewUtil()
|
Method Summary | |
---|---|
static void |
cacheResult(List<TasksReview> tasksReviews)
Caches the tasks reviews in the entity cache if it is enabled. |
static void |
cacheResult(TasksReview tasksReview)
Caches the tasks review in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(TasksReview tasksReview)
|
static int |
countAll()
Counts all the tasks reviews. |
static int |
countByP_S_C_R(long proposalId,
int stage,
boolean completed,
boolean rejected)
Counts all the tasks reviews where proposalId = ? and stage = ? and completed = ? and rejected = ?. |
static int |
countByP_S_C(long proposalId,
int stage,
boolean completed)
Counts all the tasks reviews where proposalId = ? and stage = ? and completed = ?. |
static int |
countByP_S(long proposalId,
int stage)
Counts all the tasks reviews where proposalId = ? and stage = ?. |
static int |
countByProposalId(long proposalId)
Counts all the tasks reviews where proposalId = ?. |
static int |
countByU_P(long userId,
long proposalId)
Counts all the tasks reviews where userId = ? and proposalId = ?. |
static int |
countByUserId(long userId)
Counts all the tasks reviews where userId = ?. |
long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static TasksReview |
create(long reviewId)
Creates a new tasks review with the primary key. |
static TasksReview |
fetchByPrimaryKey(long reviewId)
Finds the tasks review with the primary key or returns null if it could not be found. |
static TasksReview |
fetchByU_P(long userId,
long proposalId)
Finds the tasks review where userId = ? and proposalId = ? or returns null if it could not be found. |
static TasksReview |
fetchByU_P(long userId,
long proposalId,
boolean retrieveFromCache)
Finds the tasks review where userId = ? and proposalId = ? or returns null if it could not be found, optionally using the finder cache. |
static List<TasksReview> |
findAll()
Finds all the tasks reviews. |
static List<TasksReview> |
findAll(int start,
int end)
Finds a range of all the tasks reviews. |
static List<TasksReview> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the tasks reviews. |
static TasksReview |
findByP_S_C_First(long proposalId,
int stage,
boolean completed,
OrderByComparator orderByComparator)
Finds the first tasks review in the ordered set where proposalId = ? and stage = ? and completed = ?. |
static TasksReview |
findByP_S_C_Last(long proposalId,
int stage,
boolean completed,
OrderByComparator orderByComparator)
Finds the last tasks review in the ordered set where proposalId = ? and stage = ? and completed = ?. |
static TasksReview[] |
findByP_S_C_PrevAndNext(long reviewId,
long proposalId,
int stage,
boolean completed,
OrderByComparator orderByComparator)
Finds the tasks reviews before and after the current tasks review in the ordered set where proposalId = ? and stage = ? and completed = ?. |
static TasksReview |
findByP_S_C_R_First(long proposalId,
int stage,
boolean completed,
boolean rejected,
OrderByComparator orderByComparator)
Finds the first tasks review in the ordered set where proposalId = ? and stage = ? and completed = ? and rejected = ?. |
static TasksReview |
findByP_S_C_R_Last(long proposalId,
int stage,
boolean completed,
boolean rejected,
OrderByComparator orderByComparator)
Finds the last tasks review in the ordered set where proposalId = ? and stage = ? and completed = ? and rejected = ?. |
static TasksReview[] |
findByP_S_C_R_PrevAndNext(long reviewId,
long proposalId,
int stage,
boolean completed,
boolean rejected,
OrderByComparator orderByComparator)
Finds the tasks reviews before and after the current tasks review in the ordered set where proposalId = ? and stage = ? and completed = ? and rejected = ?. |
static List<TasksReview> |
findByP_S_C_R(long proposalId,
int stage,
boolean completed,
boolean rejected)
Finds all the tasks reviews where proposalId = ? and stage = ? and completed = ? and rejected = ?. |
static List<TasksReview> |
findByP_S_C_R(long proposalId,
int stage,
boolean completed,
boolean rejected,
int start,
int end)
Finds a range of all the tasks reviews where proposalId = ? and stage = ? and completed = ? and rejected = ?. |
static List<TasksReview> |
findByP_S_C_R(long proposalId,
int stage,
boolean completed,
boolean rejected,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the tasks reviews where proposalId = ? and stage = ? and completed = ? and rejected = ?. |
static List<TasksReview> |
findByP_S_C(long proposalId,
int stage,
boolean completed)
Finds all the tasks reviews where proposalId = ? and stage = ? and completed = ?. |
static List<TasksReview> |
findByP_S_C(long proposalId,
int stage,
boolean completed,
int start,
int end)
Finds a range of all the tasks reviews where proposalId = ? and stage = ? and completed = ?. |
static List<TasksReview> |
findByP_S_C(long proposalId,
int stage,
boolean completed,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the tasks reviews where proposalId = ? and stage = ? and completed = ?. |
static TasksReview |
findByP_S_First(long proposalId,
int stage,
OrderByComparator orderByComparator)
Finds the first tasks review in the ordered set where proposalId = ? and stage = ?. |
static TasksReview |
findByP_S_Last(long proposalId,
int stage,
OrderByComparator orderByComparator)
Finds the last tasks review in the ordered set where proposalId = ? and stage = ?. |
static TasksReview[] |
findByP_S_PrevAndNext(long reviewId,
long proposalId,
int stage,
OrderByComparator orderByComparator)
Finds the tasks reviews before and after the current tasks review in the ordered set where proposalId = ? and stage = ?. |
static List<TasksReview> |
findByP_S(long proposalId,
int stage)
Finds all the tasks reviews where proposalId = ? and stage = ?. |
static List<TasksReview> |
findByP_S(long proposalId,
int stage,
int start,
int end)
Finds a range of all the tasks reviews where proposalId = ? and stage = ?. |
static List<TasksReview> |
findByP_S(long proposalId,
int stage,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the tasks reviews where proposalId = ? and stage = ?. |
static TasksReview |
findByPrimaryKey(long reviewId)
Finds the tasks review with the primary key or throws a NoSuchReviewException if it could not be found. |
static TasksReview |
findByProposalId_First(long proposalId,
OrderByComparator orderByComparator)
Finds the first tasks review in the ordered set where proposalId = ?. |
static TasksReview |
findByProposalId_Last(long proposalId,
OrderByComparator orderByComparator)
Finds the last tasks review in the ordered set where proposalId = ?. |
static TasksReview[] |
findByProposalId_PrevAndNext(long reviewId,
long proposalId,
OrderByComparator orderByComparator)
Finds the tasks reviews before and after the current tasks review in the ordered set where proposalId = ?. |
static List<TasksReview> |
findByProposalId(long proposalId)
Finds all the tasks reviews where proposalId = ?. |
static List<TasksReview> |
findByProposalId(long proposalId,
int start,
int end)
Finds a range of all the tasks reviews where proposalId = ?. |
static List<TasksReview> |
findByProposalId(long proposalId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the tasks reviews where proposalId = ?. |
static TasksReview |
findByU_P(long userId,
long proposalId)
Finds the tasks review where userId = ? and proposalId = ? or throws a NoSuchReviewException if it could not be found. |
static TasksReview |
findByUserId_First(long userId,
OrderByComparator orderByComparator)
Finds the first tasks review in the ordered set where userId = ?. |
static TasksReview |
findByUserId_Last(long userId,
OrderByComparator orderByComparator)
Finds the last tasks review in the ordered set where userId = ?. |
static TasksReview[] |
findByUserId_PrevAndNext(long reviewId,
long userId,
OrderByComparator orderByComparator)
Finds the tasks reviews before and after the current tasks review in the ordered set where userId = ?. |
static List<TasksReview> |
findByUserId(long userId)
Finds all the tasks reviews where userId = ?. |
static List<TasksReview> |
findByUserId(long userId,
int start,
int end)
Finds a range of all the tasks reviews where userId = ?. |
static List<TasksReview> |
findByUserId(long userId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the tasks reviews where userId = ?. |
static List<TasksReview> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<TasksReview> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<TasksReview> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static TasksReviewPersistence |
getPersistence()
|
static TasksReview |
remove(long reviewId)
Removes the tasks review with the primary key from the database. |
static TasksReview |
remove(TasksReview tasksReview)
|
static void |
removeAll()
Removes all the tasks reviews from the database. |
static void |
removeByP_S_C_R(long proposalId,
int stage,
boolean completed,
boolean rejected)
Removes all the tasks reviews where proposalId = ? and stage = ? and completed = ? and rejected = ? from the database. |
static void |
removeByP_S_C(long proposalId,
int stage,
boolean completed)
Removes all the tasks reviews where proposalId = ? and stage = ? and completed = ? from the database. |
static void |
removeByP_S(long proposalId,
int stage)
Removes all the tasks reviews where proposalId = ? and stage = ? from the database. |
static void |
removeByProposalId(long proposalId)
Removes all the tasks reviews where proposalId = ? from the database. |
static void |
removeByU_P(long userId,
long proposalId)
Removes the tasks review where userId = ? and proposalId = ? from the database. |
static void |
removeByUserId(long userId)
Removes all the tasks reviews where userId = ? from the database. |
void |
setPersistence(TasksReviewPersistence persistence)
|
static TasksReview |
update(TasksReview tasksReview,
boolean merge)
|
static TasksReview |
update(TasksReview tasksReview,
boolean merge,
ServiceContext serviceContext)
|
static TasksReview |
updateImpl(TasksReview tasksReview,
boolean merge)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TasksReviewUtil()
Method Detail |
---|
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(TasksReview tasksReview)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<TasksReview> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<TasksReview> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<TasksReview> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static TasksReview remove(TasksReview tasksReview) throws SystemException
SystemException
BasePersistence.remove(com.liferay.portal.model.BaseModel)
public static TasksReview update(TasksReview tasksReview, boolean merge) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static TasksReview update(TasksReview tasksReview, boolean merge, ServiceContext serviceContext) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
public static void cacheResult(TasksReview tasksReview)
tasksReview
- the tasks review to cachepublic static void cacheResult(List<TasksReview> tasksReviews)
tasksReviews
- the tasks reviews to cachepublic static TasksReview create(long reviewId)
reviewId
- the primary key for the new tasks review
public static TasksReview remove(long reviewId) throws SystemException, NoSuchReviewException
reviewId
- the primary key of the tasks review to remove
NoSuchReviewException
- if a tasks review with the primary key could not be found
SystemException
- if a system exception occurredpublic static TasksReview updateImpl(TasksReview tasksReview, boolean merge) throws SystemException
SystemException
public static TasksReview findByPrimaryKey(long reviewId) throws SystemException, NoSuchReviewException
NoSuchReviewException
if it could not be found.
reviewId
- the primary key of the tasks review to find
NoSuchReviewException
- if a tasks review with the primary key could not be found
SystemException
- if a system exception occurredpublic static TasksReview fetchByPrimaryKey(long reviewId) throws SystemException
null
if it could not be found.
reviewId
- the primary key of the tasks review to find
null
if a tasks review with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<TasksReview> findByUserId(long userId) throws SystemException
userId
- the user id to search with
SystemException
- if a system exception occurredpublic static List<TasksReview> findByUserId(long userId, 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.
userId
- the user id to search withstart
- the lower bound of the range of tasks reviews to returnend
- the upper bound of the range of tasks reviews to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<TasksReview> findByUserId(long userId, 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.
userId
- the user id to search withstart
- the lower bound of the range of tasks reviews to returnend
- the upper bound of the range of tasks reviews to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static TasksReview findByUserId_First(long userId, OrderByComparator orderByComparator) throws SystemException, NoSuchReviewException
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.
userId
- the user id to search withorderByComparator
- the comparator to order the set by
NoSuchReviewException
- if a matching tasks review could not be found
SystemException
- if a system exception occurredpublic static TasksReview findByUserId_Last(long userId, OrderByComparator orderByComparator) throws SystemException, NoSuchReviewException
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.
userId
- the user id to search withorderByComparator
- the comparator to order the set by
NoSuchReviewException
- if a matching tasks review could not be found
SystemException
- if a system exception occurredpublic static TasksReview[] findByUserId_PrevAndNext(long reviewId, long userId, OrderByComparator orderByComparator) throws SystemException, NoSuchReviewException
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.
reviewId
- the primary key of the current tasks reviewuserId
- the user id to search withorderByComparator
- the comparator to order the set by
NoSuchReviewException
- if a tasks review with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<TasksReview> findByProposalId(long proposalId) throws SystemException
proposalId
- the proposal id to search with
SystemException
- if a system exception occurredpublic static List<TasksReview> findByProposalId(long proposalId, 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.
proposalId
- the proposal id to search withstart
- the lower bound of the range of tasks reviews to returnend
- the upper bound of the range of tasks reviews to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<TasksReview> findByProposalId(long proposalId, 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.
proposalId
- the proposal id to search withstart
- the lower bound of the range of tasks reviews to returnend
- the upper bound of the range of tasks reviews to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static TasksReview findByProposalId_First(long proposalId, OrderByComparator orderByComparator) throws SystemException, NoSuchReviewException
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.
proposalId
- the proposal id to search withorderByComparator
- the comparator to order the set by
NoSuchReviewException
- if a matching tasks review could not be found
SystemException
- if a system exception occurredpublic static TasksReview findByProposalId_Last(long proposalId, OrderByComparator orderByComparator) throws SystemException, NoSuchReviewException
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.
proposalId
- the proposal id to search withorderByComparator
- the comparator to order the set by
NoSuchReviewException
- if a matching tasks review could not be found
SystemException
- if a system exception occurredpublic static TasksReview[] findByProposalId_PrevAndNext(long reviewId, long proposalId, OrderByComparator orderByComparator) throws SystemException, NoSuchReviewException
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.
reviewId
- the primary key of the current tasks reviewproposalId
- the proposal id to search withorderByComparator
- the comparator to order the set by
NoSuchReviewException
- if a tasks review with the primary key could not be found
SystemException
- if a system exception occurredpublic static TasksReview findByU_P(long userId, long proposalId) throws SystemException, NoSuchReviewException
NoSuchReviewException
if it could not be found.
userId
- the user id to search withproposalId
- the proposal id to search with
NoSuchReviewException
- if a matching tasks review could not be found
SystemException
- if a system exception occurredpublic static TasksReview fetchByU_P(long userId, long proposalId) throws SystemException
null
if it could not be found. Uses the finder cache.
userId
- the user id to search withproposalId
- the proposal id to search with
null
if a matching tasks review could not be found
SystemException
- if a system exception occurredpublic static TasksReview fetchByU_P(long userId, long proposalId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
userId
- the user id to search withproposalId
- the proposal id to search with
null
if a matching tasks review could not be found
SystemException
- if a system exception occurredpublic static List<TasksReview> findByP_S(long proposalId, int stage) throws SystemException
proposalId
- the proposal id to search withstage
- the stage to search with
SystemException
- if a system exception occurredpublic static List<TasksReview> findByP_S(long proposalId, int stage, 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.
proposalId
- the proposal id to search withstage
- the stage to search withstart
- the lower bound of the range of tasks reviews to returnend
- the upper bound of the range of tasks reviews to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<TasksReview> findByP_S(long proposalId, int stage, 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.
proposalId
- the proposal id to search withstage
- the stage to search withstart
- the lower bound of the range of tasks reviews to returnend
- the upper bound of the range of tasks reviews to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static TasksReview findByP_S_First(long proposalId, int stage, OrderByComparator orderByComparator) throws SystemException, NoSuchReviewException
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.
proposalId
- the proposal id to search withstage
- the stage to search withorderByComparator
- the comparator to order the set by
NoSuchReviewException
- if a matching tasks review could not be found
SystemException
- if a system exception occurredpublic static TasksReview findByP_S_Last(long proposalId, int stage, OrderByComparator orderByComparator) throws SystemException, NoSuchReviewException
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.
proposalId
- the proposal id to search withstage
- the stage to search withorderByComparator
- the comparator to order the set by
NoSuchReviewException
- if a matching tasks review could not be found
SystemException
- if a system exception occurredpublic static TasksReview[] findByP_S_PrevAndNext(long reviewId, long proposalId, int stage, OrderByComparator orderByComparator) throws SystemException, NoSuchReviewException
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.
reviewId
- the primary key of the current tasks reviewproposalId
- the proposal id to search withstage
- the stage to search withorderByComparator
- the comparator to order the set by
NoSuchReviewException
- if a tasks review with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<TasksReview> findByP_S_C(long proposalId, int stage, boolean completed) throws SystemException
proposalId
- the proposal id to search withstage
- the stage to search withcompleted
- the completed to search with
SystemException
- if a system exception occurredpublic static List<TasksReview> findByP_S_C(long proposalId, int stage, boolean completed, 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.
proposalId
- the proposal id to search withstage
- the stage to search withcompleted
- the completed to search withstart
- the lower bound of the range of tasks reviews to returnend
- the upper bound of the range of tasks reviews to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<TasksReview> findByP_S_C(long proposalId, int stage, boolean completed, 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.
proposalId
- the proposal id to search withstage
- the stage to search withcompleted
- the completed to search withstart
- the lower bound of the range of tasks reviews to returnend
- the upper bound of the range of tasks reviews to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static TasksReview findByP_S_C_First(long proposalId, int stage, boolean completed, OrderByComparator orderByComparator) throws SystemException, NoSuchReviewException
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.
proposalId
- the proposal id to search withstage
- the stage to search withcompleted
- the completed to search withorderByComparator
- the comparator to order the set by
NoSuchReviewException
- if a matching tasks review could not be found
SystemException
- if a system exception occurredpublic static TasksReview findByP_S_C_Last(long proposalId, int stage, boolean completed, OrderByComparator orderByComparator) throws SystemException, NoSuchReviewException
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.
proposalId
- the proposal id to search withstage
- the stage to search withcompleted
- the completed to search withorderByComparator
- the comparator to order the set by
NoSuchReviewException
- if a matching tasks review could not be found
SystemException
- if a system exception occurredpublic static TasksReview[] findByP_S_C_PrevAndNext(long reviewId, long proposalId, int stage, boolean completed, OrderByComparator orderByComparator) throws SystemException, NoSuchReviewException
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.
reviewId
- the primary key of the current tasks reviewproposalId
- the proposal id to search withstage
- the stage to search withcompleted
- the completed to search withorderByComparator
- the comparator to order the set by
NoSuchReviewException
- if a tasks review with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<TasksReview> findByP_S_C_R(long proposalId, int stage, boolean completed, boolean rejected) throws SystemException
proposalId
- the proposal id to search withstage
- the stage to search withcompleted
- the completed to search withrejected
- the rejected to search with
SystemException
- if a system exception occurredpublic static List<TasksReview> findByP_S_C_R(long proposalId, int stage, boolean completed, boolean rejected, 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.
proposalId
- the proposal id to search withstage
- the stage to search withcompleted
- the completed to search withrejected
- the rejected to search withstart
- the lower bound of the range of tasks reviews to returnend
- the upper bound of the range of tasks reviews to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<TasksReview> findByP_S_C_R(long proposalId, int stage, boolean completed, boolean rejected, 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.
proposalId
- the proposal id to search withstage
- the stage to search withcompleted
- the completed to search withrejected
- the rejected to search withstart
- the lower bound of the range of tasks reviews to returnend
- the upper bound of the range of tasks reviews to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static TasksReview findByP_S_C_R_First(long proposalId, int stage, boolean completed, boolean rejected, OrderByComparator orderByComparator) throws SystemException, NoSuchReviewException
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.
proposalId
- the proposal id to search withstage
- the stage to search withcompleted
- the completed to search withrejected
- the rejected to search withorderByComparator
- the comparator to order the set by
NoSuchReviewException
- if a matching tasks review could not be found
SystemException
- if a system exception occurredpublic static TasksReview findByP_S_C_R_Last(long proposalId, int stage, boolean completed, boolean rejected, OrderByComparator orderByComparator) throws SystemException, NoSuchReviewException
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.
proposalId
- the proposal id to search withstage
- the stage to search withcompleted
- the completed to search withrejected
- the rejected to search withorderByComparator
- the comparator to order the set by
NoSuchReviewException
- if a matching tasks review could not be found
SystemException
- if a system exception occurredpublic static TasksReview[] findByP_S_C_R_PrevAndNext(long reviewId, long proposalId, int stage, boolean completed, boolean rejected, OrderByComparator orderByComparator) throws SystemException, NoSuchReviewException
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.
reviewId
- the primary key of the current tasks reviewproposalId
- the proposal id to search withstage
- the stage to search withcompleted
- the completed to search withrejected
- the rejected to search withorderByComparator
- the comparator to order the set by
NoSuchReviewException
- if a tasks review with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<TasksReview> findAll() throws SystemException
SystemException
- if a system exception occurredpublic static List<TasksReview> 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.
start
- the lower bound of the range of tasks reviews to returnend
- the upper bound of the range of tasks reviews to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<TasksReview> 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.
start
- the lower bound of the range of tasks reviews to returnend
- the upper bound of the range of tasks reviews to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static void removeByUserId(long userId) throws SystemException
userId
- the user id to search with
SystemException
- if a system exception occurredpublic static void removeByProposalId(long proposalId) throws SystemException
proposalId
- the proposal id to search with
SystemException
- if a system exception occurredpublic static void removeByU_P(long userId, long proposalId) throws SystemException, NoSuchReviewException
userId
- the user id to search withproposalId
- the proposal id to search with
SystemException
- if a system exception occurred
NoSuchReviewException
public static void removeByP_S(long proposalId, int stage) throws SystemException
proposalId
- the proposal id to search withstage
- the stage to search with
SystemException
- if a system exception occurredpublic static void removeByP_S_C(long proposalId, int stage, boolean completed) throws SystemException
proposalId
- the proposal id to search withstage
- the stage to search withcompleted
- the completed to search with
SystemException
- if a system exception occurredpublic static void removeByP_S_C_R(long proposalId, int stage, boolean completed, boolean rejected) throws SystemException
proposalId
- the proposal id to search withstage
- the stage to search withcompleted
- the completed to search withrejected
- the rejected to search with
SystemException
- if a system exception occurredpublic static void removeAll() throws SystemException
SystemException
- if a system exception occurredpublic static int countByUserId(long userId) throws SystemException
userId
- the user id to search with
SystemException
- if a system exception occurredpublic static int countByProposalId(long proposalId) throws SystemException
proposalId
- the proposal id to search with
SystemException
- if a system exception occurredpublic static int countByU_P(long userId, long proposalId) throws SystemException
userId
- the user id to search withproposalId
- the proposal id to search with
SystemException
- if a system exception occurredpublic static int countByP_S(long proposalId, int stage) throws SystemException
proposalId
- the proposal id to search withstage
- the stage to search with
SystemException
- if a system exception occurredpublic static int countByP_S_C(long proposalId, int stage, boolean completed) throws SystemException
proposalId
- the proposal id to search withstage
- the stage to search withcompleted
- the completed to search with
SystemException
- if a system exception occurredpublic static int countByP_S_C_R(long proposalId, int stage, boolean completed, boolean rejected) throws SystemException
proposalId
- the proposal id to search withstage
- the stage to search withcompleted
- the completed to search withrejected
- the rejected to search with
SystemException
- if a system exception occurredpublic static int countAll() throws SystemException
SystemException
- if a system exception occurredpublic static TasksReviewPersistence getPersistence()
public void setPersistence(TasksReviewPersistence persistence)
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |