Liferay 6.0.5

com.liferay.portlet.tasks.service.persistence
Interface TasksReviewPersistence

All Superinterfaces:
BasePersistence<TasksReview>
All Known Implementing Classes:
TasksReviewPersistenceImpl

public interface TasksReviewPersistence
extends BasePersistence<TasksReview>

The persistence interface for the tasks review service.

Never modify or reference this interface directly. Always use TasksReviewUtil to access the tasks review persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface.

Caching information and settings can be found in portal.properties

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

Method Summary
 void cacheResult(List<TasksReview> tasksReviews)
          Caches the tasks reviews in the entity cache if it is enabled.
 void cacheResult(TasksReview tasksReview)
          Caches the tasks review in the entity cache if it is enabled.
 int countAll()
          Counts all the tasks reviews.
 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 = ?.
 int countByP_S_C(long proposalId, int stage, boolean completed)
          Counts all the tasks reviews where proposalId = ? and stage = ? and completed = ?.
 int countByP_S(long proposalId, int stage)
          Counts all the tasks reviews where proposalId = ? and stage = ?.
 int countByProposalId(long proposalId)
          Counts all the tasks reviews where proposalId = ?.
 int countByU_P(long userId, long proposalId)
          Counts all the tasks reviews where userId = ? and proposalId = ?.
 int countByUserId(long userId)
          Counts all the tasks reviews where userId = ?.
 TasksReview create(long reviewId)
          Creates a new tasks review with the primary key.
 TasksReview fetchByPrimaryKey(long reviewId)
          Finds the tasks review with the primary key or returns null if it could not be found.
 TasksReview fetchByU_P(long userId, long proposalId)
          Finds the tasks review where userId = ? and proposalId = ? or returns null if it could not be found.
 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.
 List<TasksReview> findAll()
          Finds all the tasks reviews.
 List<TasksReview> findAll(int start, int end)
          Finds a range of all the tasks reviews.
 List<TasksReview> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the tasks reviews.
 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 = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 List<TasksReview> findByP_S_C(long proposalId, int stage, boolean completed)
          Finds all the tasks reviews where proposalId = ? and stage = ? and completed = ?.
 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 = ?.
 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 = ?.
 TasksReview findByP_S_First(long proposalId, int stage, OrderByComparator orderByComparator)
          Finds the first tasks review in the ordered set where proposalId = ? and stage = ?.
 TasksReview findByP_S_Last(long proposalId, int stage, OrderByComparator orderByComparator)
          Finds the last tasks review in the ordered set where proposalId = ? and stage = ?.
 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 = ?.
 List<TasksReview> findByP_S(long proposalId, int stage)
          Finds all the tasks reviews where proposalId = ? and stage = ?.
 List<TasksReview> findByP_S(long proposalId, int stage, int start, int end)
          Finds a range of all the tasks reviews where proposalId = ? and stage = ?.
 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 = ?.
 TasksReview findByPrimaryKey(long reviewId)
          Finds the tasks review with the primary key or throws a NoSuchReviewException if it could not be found.
 TasksReview findByProposalId_First(long proposalId, OrderByComparator orderByComparator)
          Finds the first tasks review in the ordered set where proposalId = ?.
 TasksReview findByProposalId_Last(long proposalId, OrderByComparator orderByComparator)
          Finds the last tasks review in the ordered set where proposalId = ?.
 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 = ?.
 List<TasksReview> findByProposalId(long proposalId)
          Finds all the tasks reviews where proposalId = ?.
 List<TasksReview> findByProposalId(long proposalId, int start, int end)
          Finds a range of all the tasks reviews where proposalId = ?.
 List<TasksReview> findByProposalId(long proposalId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the tasks reviews where proposalId = ?.
 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.
 TasksReview findByUserId_First(long userId, OrderByComparator orderByComparator)
          Finds the first tasks review in the ordered set where userId = ?.
 TasksReview findByUserId_Last(long userId, OrderByComparator orderByComparator)
          Finds the last tasks review in the ordered set where userId = ?.
 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 = ?.
 List<TasksReview> findByUserId(long userId)
          Finds all the tasks reviews where userId = ?.
 List<TasksReview> findByUserId(long userId, int start, int end)
          Finds a range of all the tasks reviews where userId = ?.
 List<TasksReview> findByUserId(long userId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the tasks reviews where userId = ?.
 TasksReview remove(long reviewId)
          Removes the tasks review with the primary key from the database.
 void removeAll()
          Removes all the tasks reviews from the database.
 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.
 void removeByP_S_C(long proposalId, int stage, boolean completed)
          Removes all the tasks reviews where proposalId = ? and stage = ? and completed = ? from the database.
 void removeByP_S(long proposalId, int stage)
          Removes all the tasks reviews where proposalId = ? and stage = ? from the database.
 void removeByProposalId(long proposalId)
          Removes all the tasks reviews where proposalId = ? from the database.
 void removeByU_P(long userId, long proposalId)
          Removes the tasks review where userId = ? and proposalId = ? from the database.
 void removeByUserId(long userId)
          Removes all the tasks reviews where userId = ? from the database.
 TasksReview updateImpl(TasksReview tasksReview, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update, update
 

Method Detail

cacheResult

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

Parameters:
tasksReview - the tasks review to cache

cacheResult

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

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

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

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

findByPrimaryKey

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

findAll

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

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

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

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

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

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

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

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

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

Throws:
SystemException - if a system exception occurred

countByUserId

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

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

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

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

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

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

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

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

Liferay 6.0.5