Liferay 6.0.5

com.liferay.portlet.tasks.service.persistence
Class TasksReviewUtil

java.lang.Object
  extended by com.liferay.portlet.tasks.service.persistence.TasksReviewUtil

public class TasksReviewUtil
extends Object

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

See Also:
TasksReviewPersistence, TasksReviewPersistenceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

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

TasksReviewUtil

public TasksReviewUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(TasksReview tasksReview)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public long countWithDynamicQuery(DynamicQuery dynamicQuery)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<TasksReview> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                              throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<TasksReview> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                     int start,
                                                     int end)
                                              throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<TasksReview> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                     int start,
                                                     int end,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

remove

public static TasksReview remove(TasksReview tasksReview)
                          throws SystemException
Throws:
SystemException
See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)

update

public static TasksReview update(TasksReview tasksReview,
                                 boolean merge)
                          throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

update

public static TasksReview update(TasksReview tasksReview,
                                 boolean merge,
                                 ServiceContext serviceContext)
                          throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)

cacheResult

public static void cacheResult(TasksReview tasksReview)
Caches the tasks review in the entity cache if it is enabled.

Parameters:
tasksReview - the tasks review to cache

cacheResult

public static void cacheResult(List<TasksReview> tasksReviews)
Caches the tasks reviews in the entity cache if it is enabled.

Parameters:
tasksReviews - the tasks reviews to cache

create

public static TasksReview create(long reviewId)
Creates a new tasks review with the primary key. Does not add the tasks review to the database.

Parameters:
reviewId - the primary key for the new tasks review
Returns:
the new tasks review

remove

public static TasksReview remove(long reviewId)
                          throws SystemException,
                                 NoSuchReviewException
Removes the tasks review with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
reviewId - the primary key of the tasks review to remove
Returns:
the tasks review that was removed
Throws:
NoSuchReviewException - if a tasks review with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

public static TasksReview updateImpl(TasksReview tasksReview,
                                     boolean merge)
                              throws SystemException
Throws:
SystemException

findByPrimaryKey

public static TasksReview findByPrimaryKey(long reviewId)
                                    throws SystemException,
                                           NoSuchReviewException
Finds the tasks review with the primary key or throws a NoSuchReviewException if it could not be found.

Parameters:
reviewId - the primary key of the tasks review to find
Returns:
the tasks review
Throws:
NoSuchReviewException - if a tasks review with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public static TasksReview fetchByPrimaryKey(long reviewId)
                                     throws SystemException
Finds the tasks review with the primary key or returns null if it could not be found.

Parameters:
reviewId - the primary key of the tasks review to find
Returns:
the tasks review, or null if a tasks review with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByUserId

public static List<TasksReview> findByUserId(long userId)
                                      throws SystemException
Finds all the tasks reviews where userId = ?.

Parameters:
userId - the user id to search with
Returns:
the matching tasks reviews
Throws:
SystemException - if a system exception occurred

findByUserId

public static List<TasksReview> findByUserId(long userId,
                                             int start,
                                             int end)
                                      throws SystemException
Finds a range of all the tasks reviews where userId = ?.

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.

Parameters:
userId - the user id to search with
start - the lower bound of the range of tasks reviews to return
end - the upper bound of the range of tasks reviews to return (not inclusive)
Returns:
the range of matching tasks reviews
Throws:
SystemException - if a system exception occurred

findByUserId

public static List<TasksReview> findByUserId(long userId,
                                             int start,
                                             int end,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Finds an ordered range of all the tasks reviews where userId = ?.

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.

Parameters:
userId - the user id to search with
start - the lower bound of the range of tasks reviews to return
end - the upper bound of the range of tasks reviews to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching tasks reviews
Throws:
SystemException - if a system exception occurred

findByUserId_First

public static TasksReview findByUserId_First(long userId,
                                             OrderByComparator orderByComparator)
                                      throws SystemException,
                                             NoSuchReviewException
Finds the first tasks review in the ordered set where userId = ?.

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.

Parameters:
userId - the user id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching tasks review
Throws:
NoSuchReviewException - if a matching tasks review could not be found
SystemException - if a system exception occurred

findByUserId_Last

public static TasksReview findByUserId_Last(long userId,
                                            OrderByComparator orderByComparator)
                                     throws SystemException,
                                            NoSuchReviewException
Finds the last tasks review in the ordered set where userId = ?.

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.

Parameters:
userId - the user id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching tasks review
Throws:
NoSuchReviewException - if a matching tasks review could not be found
SystemException - if a system exception occurred

findByUserId_PrevAndNext

public static TasksReview[] findByUserId_PrevAndNext(long reviewId,
                                                     long userId,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException,
                                                     NoSuchReviewException
Finds the tasks reviews before and after the current tasks review in the ordered set where userId = ?.

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.

Parameters:
reviewId - the primary key of the current tasks review
userId - the user id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next tasks review
Throws:
NoSuchReviewException - if a tasks review with the primary key could not be found
SystemException - if a system exception occurred

findByProposalId

public static List<TasksReview> findByProposalId(long proposalId)
                                          throws SystemException
Finds all the tasks reviews where proposalId = ?.

Parameters:
proposalId - the proposal id to search with
Returns:
the matching tasks reviews
Throws:
SystemException - if a system exception occurred

findByProposalId

public static List<TasksReview> findByProposalId(long proposalId,
                                                 int start,
                                                 int end)
                                          throws SystemException
Finds a range of all the tasks reviews where proposalId = ?.

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.

Parameters:
proposalId - the proposal id to search with
start - the lower bound of the range of tasks reviews to return
end - the upper bound of the range of tasks reviews to return (not inclusive)
Returns:
the range of matching tasks reviews
Throws:
SystemException - if a system exception occurred

findByProposalId

public static List<TasksReview> findByProposalId(long proposalId,
                                                 int start,
                                                 int end,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException
Finds an ordered range of all the tasks reviews where proposalId = ?.

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.

Parameters:
proposalId - the proposal id to search with
start - the lower bound of the range of tasks reviews to return
end - the upper bound of the range of tasks reviews to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching tasks reviews
Throws:
SystemException - if a system exception occurred

findByProposalId_First

public static TasksReview findByProposalId_First(long proposalId,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException,
                                                 NoSuchReviewException
Finds the first tasks review in the ordered set where proposalId = ?.

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.

Parameters:
proposalId - the proposal id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching tasks review
Throws:
NoSuchReviewException - if a matching tasks review could not be found
SystemException - if a system exception occurred

findByProposalId_Last

public static TasksReview findByProposalId_Last(long proposalId,
                                                OrderByComparator orderByComparator)
                                         throws SystemException,
                                                NoSuchReviewException
Finds the last tasks review in the ordered set where proposalId = ?.

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.

Parameters:
proposalId - the proposal id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching tasks review
Throws:
NoSuchReviewException - if a matching tasks review could not be found
SystemException - if a system exception occurred

findByProposalId_PrevAndNext

public static TasksReview[] findByProposalId_PrevAndNext(long reviewId,
                                                         long proposalId,
                                                         OrderByComparator orderByComparator)
                                                  throws SystemException,
                                                         NoSuchReviewException
Finds the tasks reviews before and after the current tasks review in the ordered set where proposalId = ?.

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.

Parameters:
reviewId - the primary key of the current tasks review
proposalId - the proposal id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next tasks review
Throws:
NoSuchReviewException - if a tasks review with the primary key could not be found
SystemException - if a system exception occurred

findByU_P

public static TasksReview findByU_P(long userId,
                                    long proposalId)
                             throws SystemException,
                                    NoSuchReviewException
Finds the tasks review where userId = ? and proposalId = ? or throws a NoSuchReviewException if it could not be found.

Parameters:
userId - the user id to search with
proposalId - the proposal id to search with
Returns:
the matching tasks review
Throws:
NoSuchReviewException - if a matching tasks review could not be found
SystemException - if a system exception occurred

fetchByU_P

public static TasksReview fetchByU_P(long userId,
                                     long proposalId)
                              throws SystemException
Finds the tasks review where userId = ? and proposalId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
userId - the user id to search with
proposalId - the proposal id to search with
Returns:
the matching tasks review, or null if a matching tasks review could not be found
Throws:
SystemException - if a system exception occurred

fetchByU_P

public static TasksReview fetchByU_P(long userId,
                                     long proposalId,
                                     boolean retrieveFromCache)
                              throws SystemException
Finds the tasks review where userId = ? and proposalId = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
userId - the user id to search with
proposalId - the proposal id to search with
Returns:
the matching tasks review, or null if a matching tasks review could not be found
Throws:
SystemException - if a system exception occurred

findByP_S

public static List<TasksReview> findByP_S(long proposalId,
                                          int stage)
                                   throws SystemException
Finds all the tasks reviews where proposalId = ? and stage = ?.

Parameters:
proposalId - the proposal id to search with
stage - the stage to search with
Returns:
the matching tasks reviews
Throws:
SystemException - if a system exception occurred

findByP_S

public static List<TasksReview> findByP_S(long proposalId,
                                          int stage,
                                          int start,
                                          int end)
                                   throws SystemException
Finds a range of all the tasks reviews where proposalId = ? and stage = ?.

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.

Parameters:
proposalId - the proposal id to search with
stage - the stage to search with
start - the lower bound of the range of tasks reviews to return
end - the upper bound of the range of tasks reviews to return (not inclusive)
Returns:
the range of matching tasks reviews
Throws:
SystemException - if a system exception occurred

findByP_S

public static List<TasksReview> findByP_S(long proposalId,
                                          int stage,
                                          int start,
                                          int end,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Finds an ordered range of all the tasks reviews where proposalId = ? and stage = ?.

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.

Parameters:
proposalId - the proposal id to search with
stage - the stage to search with
start - the lower bound of the range of tasks reviews to return
end - the upper bound of the range of tasks reviews to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching tasks reviews
Throws:
SystemException - if a system exception occurred

findByP_S_First

public static TasksReview findByP_S_First(long proposalId,
                                          int stage,
                                          OrderByComparator orderByComparator)
                                   throws SystemException,
                                          NoSuchReviewException
Finds the first tasks review in the ordered set where proposalId = ? and stage = ?.

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.

Parameters:
proposalId - the proposal id to search with
stage - the stage to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching tasks review
Throws:
NoSuchReviewException - if a matching tasks review could not be found
SystemException - if a system exception occurred

findByP_S_Last

public static TasksReview findByP_S_Last(long proposalId,
                                         int stage,
                                         OrderByComparator orderByComparator)
                                  throws SystemException,
                                         NoSuchReviewException
Finds the last tasks review in the ordered set where proposalId = ? and stage = ?.

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.

Parameters:
proposalId - the proposal id to search with
stage - the stage to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching tasks review
Throws:
NoSuchReviewException - if a matching tasks review could not be found
SystemException - if a system exception occurred

findByP_S_PrevAndNext

public static TasksReview[] findByP_S_PrevAndNext(long reviewId,
                                                  long proposalId,
                                                  int stage,
                                                  OrderByComparator orderByComparator)
                                           throws SystemException,
                                                  NoSuchReviewException
Finds the tasks reviews before and after the current tasks review in the ordered set where proposalId = ? and stage = ?.

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.

Parameters:
reviewId - the primary key of the current tasks review
proposalId - the proposal id to search with
stage - the stage to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next tasks review
Throws:
NoSuchReviewException - if a tasks review with the primary key could not be found
SystemException - if a system exception occurred

findByP_S_C

public static List<TasksReview> findByP_S_C(long proposalId,
                                            int stage,
                                            boolean completed)
                                     throws SystemException
Finds all the tasks reviews where proposalId = ? and stage = ? and completed = ?.

Parameters:
proposalId - the proposal id to search with
stage - the stage to search with
completed - the completed to search with
Returns:
the matching tasks reviews
Throws:
SystemException - if a system exception occurred

findByP_S_C

public static List<TasksReview> findByP_S_C(long proposalId,
                                            int stage,
                                            boolean completed,
                                            int start,
                                            int end)
                                     throws SystemException
Finds a range of all the tasks reviews where proposalId = ? and stage = ? and completed = ?.

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.

Parameters:
proposalId - the proposal id to search with
stage - the stage to search with
completed - the completed to search with
start - the lower bound of the range of tasks reviews to return
end - the upper bound of the range of tasks reviews to return (not inclusive)
Returns:
the range of matching tasks reviews
Throws:
SystemException - if a system exception occurred

findByP_S_C

public static List<TasksReview> findByP_S_C(long proposalId,
                                            int stage,
                                            boolean completed,
                                            int start,
                                            int end,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Finds an ordered range of all the tasks reviews where proposalId = ? and stage = ? and completed = ?.

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.

Parameters:
proposalId - the proposal id to search with
stage - the stage to search with
completed - the completed to search with
start - the lower bound of the range of tasks reviews to return
end - the upper bound of the range of tasks reviews to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching tasks reviews
Throws:
SystemException - if a system exception occurred

findByP_S_C_First

public static TasksReview findByP_S_C_First(long proposalId,
                                            int stage,
                                            boolean completed,
                                            OrderByComparator orderByComparator)
                                     throws SystemException,
                                            NoSuchReviewException
Finds the first tasks review in the ordered set where proposalId = ? and stage = ? and completed = ?.

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.

Parameters:
proposalId - the proposal id to search with
stage - the stage to search with
completed - the completed to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching tasks review
Throws:
NoSuchReviewException - if a matching tasks review could not be found
SystemException - if a system exception occurred

findByP_S_C_Last

public static TasksReview findByP_S_C_Last(long proposalId,
                                           int stage,
                                           boolean completed,
                                           OrderByComparator orderByComparator)
                                    throws SystemException,
                                           NoSuchReviewException
Finds the last tasks review in the ordered set where proposalId = ? and stage = ? and completed = ?.

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.

Parameters:
proposalId - the proposal id to search with
stage - the stage to search with
completed - the completed to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching tasks review
Throws:
NoSuchReviewException - if a matching tasks review could not be found
SystemException - if a system exception occurred

findByP_S_C_PrevAndNext

public static TasksReview[] findByP_S_C_PrevAndNext(long reviewId,
                                                    long proposalId,
                                                    int stage,
                                                    boolean completed,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException,
                                                    NoSuchReviewException
Finds the tasks reviews before and after the current tasks review in the ordered set where proposalId = ? and stage = ? and completed = ?.

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.

Parameters:
reviewId - the primary key of the current tasks review
proposalId - the proposal id to search with
stage - the stage to search with
completed - the completed to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next tasks review
Throws:
NoSuchReviewException - if a tasks review with the primary key could not be found
SystemException - if a system exception occurred

findByP_S_C_R

public static List<TasksReview> findByP_S_C_R(long proposalId,
                                              int stage,
                                              boolean completed,
                                              boolean rejected)
                                       throws SystemException
Finds all the tasks reviews where proposalId = ? and stage = ? and completed = ? and rejected = ?.

Parameters:
proposalId - the proposal id to search with
stage - the stage to search with
completed - the completed to search with
rejected - the rejected to search with
Returns:
the matching tasks reviews
Throws:
SystemException - if a system exception occurred

findByP_S_C_R

public static List<TasksReview> findByP_S_C_R(long proposalId,
                                              int stage,
                                              boolean completed,
                                              boolean rejected,
                                              int start,
                                              int end)
                                       throws SystemException
Finds a range of all the tasks reviews where proposalId = ? and stage = ? and completed = ? and rejected = ?.

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.

Parameters:
proposalId - the proposal id to search with
stage - the stage to search with
completed - the completed to search with
rejected - the rejected to search with
start - the lower bound of the range of tasks reviews to return
end - the upper bound of the range of tasks reviews to return (not inclusive)
Returns:
the range of matching tasks reviews
Throws:
SystemException - if a system exception occurred

findByP_S_C_R

public static List<TasksReview> findByP_S_C_R(long proposalId,
                                              int stage,
                                              boolean completed,
                                              boolean rejected,
                                              int start,
                                              int end,
                                              OrderByComparator orderByComparator)
                                       throws SystemException
Finds an ordered range of all the tasks reviews where proposalId = ? and stage = ? and completed = ? and rejected = ?.

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.

Parameters:
proposalId - the proposal id to search with
stage - the stage to search with
completed - the completed to search with
rejected - the rejected to search with
start - the lower bound of the range of tasks reviews to return
end - the upper bound of the range of tasks reviews to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching tasks reviews
Throws:
SystemException - if a system exception occurred

findByP_S_C_R_First

public static TasksReview findByP_S_C_R_First(long proposalId,
                                              int stage,
                                              boolean completed,
                                              boolean rejected,
                                              OrderByComparator orderByComparator)
                                       throws SystemException,
                                              NoSuchReviewException
Finds the first tasks review in the ordered set where proposalId = ? and stage = ? and completed = ? and rejected = ?.

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.

Parameters:
proposalId - the proposal id to search with
stage - the stage to search with
completed - the completed to search with
rejected - the rejected to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching tasks review
Throws:
NoSuchReviewException - if a matching tasks review could not be found
SystemException - if a system exception occurred

findByP_S_C_R_Last

public static TasksReview findByP_S_C_R_Last(long proposalId,
                                             int stage,
                                             boolean completed,
                                             boolean rejected,
                                             OrderByComparator orderByComparator)
                                      throws SystemException,
                                             NoSuchReviewException
Finds the last tasks review in the ordered set where proposalId = ? and stage = ? and completed = ? and rejected = ?.

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.

Parameters:
proposalId - the proposal id to search with
stage - the stage to search with
completed - the completed to search with
rejected - the rejected to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching tasks review
Throws:
NoSuchReviewException - if a matching tasks review could not be found
SystemException - if a system exception occurred

findByP_S_C_R_PrevAndNext

public static TasksReview[] findByP_S_C_R_PrevAndNext(long reviewId,
                                                      long proposalId,
                                                      int stage,
                                                      boolean completed,
                                                      boolean rejected,
                                                      OrderByComparator orderByComparator)
                                               throws SystemException,
                                                      NoSuchReviewException
Finds the tasks reviews before and after the current tasks review in the ordered set where proposalId = ? and stage = ? and completed = ? and rejected = ?.

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.

Parameters:
reviewId - the primary key of the current tasks review
proposalId - the proposal id to search with
stage - the stage to search with
completed - the completed to search with
rejected - the rejected to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next tasks review
Throws:
NoSuchReviewException - if a tasks review with the primary key could not be found
SystemException - if a system exception occurred

findAll

public static List<TasksReview> findAll()
                                 throws SystemException
Finds all the tasks reviews.

Returns:
the tasks reviews
Throws:
SystemException - if a system exception occurred

findAll

public static List<TasksReview> findAll(int start,
                                        int end)
                                 throws SystemException
Finds a range of all the tasks reviews.

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.

Parameters:
start - the lower bound of the range of tasks reviews to return
end - the upper bound of the range of tasks reviews to return (not inclusive)
Returns:
the range of tasks reviews
Throws:
SystemException - if a system exception occurred

findAll

public static List<TasksReview> findAll(int start,
                                        int end,
                                        OrderByComparator orderByComparator)
                                 throws SystemException
Finds an ordered range of all the tasks reviews.

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.

Parameters:
start - the lower bound of the range of tasks reviews to return
end - the upper bound of the range of tasks reviews to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of tasks reviews
Throws:
SystemException - if a system exception occurred

removeByUserId

public static void removeByUserId(long userId)
                           throws SystemException
Removes all the tasks reviews where userId = ? from the database.

Parameters:
userId - the user id to search with
Throws:
SystemException - if a system exception occurred

removeByProposalId

public static void removeByProposalId(long proposalId)
                               throws SystemException
Removes all the tasks reviews where proposalId = ? from the database.

Parameters:
proposalId - the proposal id to search with
Throws:
SystemException - if a system exception occurred

removeByU_P

public static void removeByU_P(long userId,
                               long proposalId)
                        throws SystemException,
                               NoSuchReviewException
Removes the tasks review where userId = ? and proposalId = ? from the database.

Parameters:
userId - the user id to search with
proposalId - the proposal id to search with
Throws:
SystemException - if a system exception occurred
NoSuchReviewException

removeByP_S

public static void removeByP_S(long proposalId,
                               int stage)
                        throws SystemException
Removes all the tasks reviews where proposalId = ? and stage = ? from the database.

Parameters:
proposalId - the proposal id to search with
stage - the stage to search with
Throws:
SystemException - if a system exception occurred

removeByP_S_C

public static void removeByP_S_C(long proposalId,
                                 int stage,
                                 boolean completed)
                          throws SystemException
Removes all the tasks reviews where proposalId = ? and stage = ? and completed = ? from the database.

Parameters:
proposalId - the proposal id to search with
stage - the stage to search with
completed - the completed to search with
Throws:
SystemException - if a system exception occurred

removeByP_S_C_R

public static void removeByP_S_C_R(long proposalId,
                                   int stage,
                                   boolean completed,
                                   boolean rejected)
                            throws SystemException
Removes all the tasks reviews where proposalId = ? and stage = ? and completed = ? and rejected = ? from the database.

Parameters:
proposalId - the proposal id to search with
stage - the stage to search with
completed - the completed to search with
rejected - the rejected to search with
Throws:
SystemException - if a system exception occurred

removeAll

public static void removeAll()
                      throws SystemException
Removes all the tasks reviews from the database.

Throws:
SystemException - if a system exception occurred

countByUserId

public static int countByUserId(long userId)
                         throws SystemException
Counts all the tasks reviews where userId = ?.

Parameters:
userId - the user id to search with
Returns:
the number of matching tasks reviews
Throws:
SystemException - if a system exception occurred

countByProposalId

public static int countByProposalId(long proposalId)
                             throws SystemException
Counts all the tasks reviews where proposalId = ?.

Parameters:
proposalId - the proposal id to search with
Returns:
the number of matching tasks reviews
Throws:
SystemException - if a system exception occurred

countByU_P

public static int countByU_P(long userId,
                             long proposalId)
                      throws SystemException
Counts all the tasks reviews where userId = ? and proposalId = ?.

Parameters:
userId - the user id to search with
proposalId - the proposal id to search with
Returns:
the number of matching tasks reviews
Throws:
SystemException - if a system exception occurred

countByP_S

public static int countByP_S(long proposalId,
                             int stage)
                      throws SystemException
Counts all the tasks reviews where proposalId = ? and stage = ?.

Parameters:
proposalId - the proposal id to search with
stage - the stage to search with
Returns:
the number of matching tasks reviews
Throws:
SystemException - if a system exception occurred

countByP_S_C

public static int countByP_S_C(long proposalId,
                               int stage,
                               boolean completed)
                        throws SystemException
Counts all the tasks reviews where proposalId = ? and stage = ? and completed = ?.

Parameters:
proposalId - the proposal id to search with
stage - the stage to search with
completed - the completed to search with
Returns:
the number of matching tasks reviews
Throws:
SystemException - if a system exception occurred

countByP_S_C_R

public static int countByP_S_C_R(long proposalId,
                                 int stage,
                                 boolean completed,
                                 boolean rejected)
                          throws SystemException
Counts all the tasks reviews where proposalId = ? and stage = ? and completed = ? and rejected = ?.

Parameters:
proposalId - the proposal id to search with
stage - the stage to search with
completed - the completed to search with
rejected - the rejected to search with
Returns:
the number of matching tasks reviews
Throws:
SystemException - if a system exception occurred

countAll

public static int countAll()
                    throws SystemException
Counts all the tasks reviews.

Returns:
the number of tasks reviews
Throws:
SystemException - if a system exception occurred

getPersistence

public static TasksReviewPersistence getPersistence()

setPersistence

public void setPersistence(TasksReviewPersistence persistence)

Liferay 6.0.5