Liferay 6.0.5

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

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<TasksReview>
      extended by com.liferay.portlet.tasks.service.persistence.TasksReviewPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<TasksReview>, TasksReviewPersistence

public class TasksReviewPersistenceImpl
extends BasePersistenceImpl<TasksReview>
implements TasksReviewPersistence

The persistence implementation for the tasks review service.

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

Caching information and settings can be found in portal.properties

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

Field Summary
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_P_S
           
static FinderPath FINDER_PATH_COUNT_BY_P_S_C
           
static FinderPath FINDER_PATH_COUNT_BY_P_S_C_R
           
static FinderPath FINDER_PATH_COUNT_BY_PROPOSALID
           
static FinderPath FINDER_PATH_COUNT_BY_U_P
           
static FinderPath FINDER_PATH_COUNT_BY_USERID
           
static FinderPath FINDER_PATH_FETCH_BY_U_P
           
static FinderPath FINDER_PATH_FIND_ALL
           
static FinderPath FINDER_PATH_FIND_BY_P_S
           
static FinderPath FINDER_PATH_FIND_BY_P_S_C
           
static FinderPath FINDER_PATH_FIND_BY_P_S_C_R
           
static FinderPath FINDER_PATH_FIND_BY_PROPOSALID
           
static FinderPath FINDER_PATH_FIND_BY_USERID
           
protected  ResourcePersistence resourcePersistence
           
protected  SocialActivityPersistence socialActivityPersistence
           
protected  TasksProposalPersistence tasksProposalPersistence
           
protected  TasksReviewPersistence tasksReviewPersistence
           
protected  UserPersistence userPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
TasksReviewPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the tasks review persistence.
 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.
 void clearCache()
          Clears the cache for all tasks reviews.
 void clearCache(TasksReview tasksReview)
          Clears the cache for the tasks review.
 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 fetchByPrimaryKey(Serializable primaryKey)
          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 findByPrimaryKey(Serializable primaryKey)
          Finds the tasks review with the primary key or throws a NoSuchModelException 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 = ?.
protected  TasksReview getByP_S_C_PrevAndNext(Session session, TasksReview tasksReview, long proposalId, int stage, boolean completed, OrderByComparator orderByComparator, boolean previous)
           
protected  TasksReview getByP_S_C_R_PrevAndNext(Session session, TasksReview tasksReview, long proposalId, int stage, boolean completed, boolean rejected, OrderByComparator orderByComparator, boolean previous)
           
protected  TasksReview getByP_S_PrevAndNext(Session session, TasksReview tasksReview, long proposalId, int stage, OrderByComparator orderByComparator, boolean previous)
           
protected  TasksReview getByProposalId_PrevAndNext(Session session, TasksReview tasksReview, long proposalId, OrderByComparator orderByComparator, boolean previous)
           
protected  TasksReview getByUserId_PrevAndNext(Session session, TasksReview tasksReview, long userId, OrderByComparator orderByComparator, boolean previous)
           
 TasksReview remove(long reviewId)
          Removes the tasks review with the primary key from the database.
 TasksReview remove(Serializable primaryKey)
          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.
protected  TasksReview removeImpl(TasksReview tasksReview)
          Removes the model instance from the database.
protected  TasksReview toUnwrappedModel(TasksReview tasksReview)
           
 TasksReview updateImpl(TasksReview tasksReview, boolean merge)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST

public static final String FINDER_CLASS_NAME_LIST

FINDER_PATH_FIND_BY_USERID

public static final FinderPath FINDER_PATH_FIND_BY_USERID

FINDER_PATH_COUNT_BY_USERID

public static final FinderPath FINDER_PATH_COUNT_BY_USERID

FINDER_PATH_FIND_BY_PROPOSALID

public static final FinderPath FINDER_PATH_FIND_BY_PROPOSALID

FINDER_PATH_COUNT_BY_PROPOSALID

public static final FinderPath FINDER_PATH_COUNT_BY_PROPOSALID

FINDER_PATH_FETCH_BY_U_P

public static final FinderPath FINDER_PATH_FETCH_BY_U_P

FINDER_PATH_COUNT_BY_U_P

public static final FinderPath FINDER_PATH_COUNT_BY_U_P

FINDER_PATH_FIND_BY_P_S

public static final FinderPath FINDER_PATH_FIND_BY_P_S

FINDER_PATH_COUNT_BY_P_S

public static final FinderPath FINDER_PATH_COUNT_BY_P_S

FINDER_PATH_FIND_BY_P_S_C

public static final FinderPath FINDER_PATH_FIND_BY_P_S_C

FINDER_PATH_COUNT_BY_P_S_C

public static final FinderPath FINDER_PATH_COUNT_BY_P_S_C

FINDER_PATH_FIND_BY_P_S_C_R

public static final FinderPath FINDER_PATH_FIND_BY_P_S_C_R

FINDER_PATH_COUNT_BY_P_S_C_R

public static final FinderPath FINDER_PATH_COUNT_BY_P_S_C_R

FINDER_PATH_FIND_ALL

public static final FinderPath FINDER_PATH_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

tasksProposalPersistence

@BeanReference(type=TasksProposalPersistence.class)
protected TasksProposalPersistence tasksProposalPersistence

tasksReviewPersistence

@BeanReference(type=TasksReviewPersistence.class)
protected TasksReviewPersistence tasksReviewPersistence

resourcePersistence

@BeanReference(type=ResourcePersistence.class)
protected ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=UserPersistence.class)
protected UserPersistence userPersistence

socialActivityPersistence

@BeanReference(type=SocialActivityPersistence.class)
protected SocialActivityPersistence socialActivityPersistence
Constructor Detail

TasksReviewPersistenceImpl

public TasksReviewPersistenceImpl()
Method Detail

cacheResult

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

Specified by:
cacheResult in interface TasksReviewPersistence
Parameters:
tasksReview - the tasks review to cache

cacheResult

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

Specified by:
cacheResult in interface TasksReviewPersistence
Parameters:
tasksReviews - the tasks reviews to cache

clearCache

public void clearCache()
Clears the cache for all tasks reviews.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<TasksReview>
Overrides:
clearCache in class BasePersistenceImpl<TasksReview>

clearCache

public void clearCache(TasksReview tasksReview)
Clears the cache for the tasks review.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<TasksReview>
Overrides:
clearCache in class BasePersistenceImpl<TasksReview>
Parameters:
tasksReview - the instance of this model to clear the cache for

create

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

Specified by:
create in interface TasksReviewPersistence
Parameters:
reviewId - the primary key for the new tasks review
Returns:
the new tasks review

remove

public TasksReview remove(Serializable primaryKey)
                   throws NoSuchModelException,
                          SystemException
Removes the tasks review with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<TasksReview>
Overrides:
remove in class BasePersistenceImpl<TasksReview>
Parameters:
primaryKey - the primary key of the tasks review to remove
Returns:
the tasks review that was removed
Throws:
NoSuchModelException - if a tasks review with the primary key could not be found
SystemException - if a system exception occurred

remove

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

Specified by:
remove in interface TasksReviewPersistence
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

removeImpl

protected TasksReview removeImpl(TasksReview tasksReview)
                          throws SystemException
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<TasksReview>
Parameters:
tasksReview - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public TasksReview updateImpl(TasksReview tasksReview,
                              boolean merge)
                       throws SystemException
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface TasksReviewPersistence
Overrides:
updateImpl in class BasePersistenceImpl<TasksReview>
Parameters:
tasksReview - the model instance to update
merge - whether to merge the model instance with the current session. See BatchSession.update( com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean) for an explanation.
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected TasksReview toUnwrappedModel(TasksReview tasksReview)

findByPrimaryKey

public TasksReview findByPrimaryKey(Serializable primaryKey)
                             throws NoSuchModelException,
                                    SystemException
Finds the tasks review with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<TasksReview>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<TasksReview>
Parameters:
primaryKey - the primary key of the tasks review to find
Returns:
the tasks review
Throws:
NoSuchModelException - if a tasks review with the primary key could not be found
SystemException - if a system exception occurred

findByPrimaryKey

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

Specified by:
findByPrimaryKey in interface TasksReviewPersistence
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 TasksReview fetchByPrimaryKey(Serializable primaryKey)
                              throws SystemException
Finds the tasks review with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<TasksReview>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<TasksReview>
Parameters:
primaryKey - 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

fetchByPrimaryKey

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

Specified by:
fetchByPrimaryKey in interface TasksReviewPersistence
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 List<TasksReview> findByUserId(long userId)
                               throws SystemException
Finds all the tasks reviews where userId = ?.

Specified by:
findByUserId in interface TasksReviewPersistence
Parameters:
userId - the user id to search with
Returns:
the matching tasks reviews
Throws:
SystemException - if a system exception occurred

findByUserId

public 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.

Specified by:
findByUserId in interface TasksReviewPersistence
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 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.

Specified by:
findByUserId in interface TasksReviewPersistence
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 TasksReview findByUserId_First(long userId,
                                      OrderByComparator orderByComparator)
                               throws NoSuchReviewException,
                                      SystemException
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.

Specified by:
findByUserId_First in interface TasksReviewPersistence
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 TasksReview findByUserId_Last(long userId,
                                     OrderByComparator orderByComparator)
                              throws NoSuchReviewException,
                                     SystemException
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.

Specified by:
findByUserId_Last in interface TasksReviewPersistence
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 TasksReview[] findByUserId_PrevAndNext(long reviewId,
                                              long userId,
                                              OrderByComparator orderByComparator)
                                       throws NoSuchReviewException,
                                              SystemException
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.

Specified by:
findByUserId_PrevAndNext in interface TasksReviewPersistence
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

getByUserId_PrevAndNext

protected TasksReview getByUserId_PrevAndNext(Session session,
                                              TasksReview tasksReview,
                                              long userId,
                                              OrderByComparator orderByComparator,
                                              boolean previous)

findByProposalId

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

Specified by:
findByProposalId in interface TasksReviewPersistence
Parameters:
proposalId - the proposal id to search with
Returns:
the matching tasks reviews
Throws:
SystemException - if a system exception occurred

findByProposalId

public 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.

Specified by:
findByProposalId in interface TasksReviewPersistence
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 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.

Specified by:
findByProposalId in interface TasksReviewPersistence
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 TasksReview findByProposalId_First(long proposalId,
                                          OrderByComparator orderByComparator)
                                   throws NoSuchReviewException,
                                          SystemException
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.

Specified by:
findByProposalId_First in interface TasksReviewPersistence
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 TasksReview findByProposalId_Last(long proposalId,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchReviewException,
                                         SystemException
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.

Specified by:
findByProposalId_Last in interface TasksReviewPersistence
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 TasksReview[] findByProposalId_PrevAndNext(long reviewId,
                                                  long proposalId,
                                                  OrderByComparator orderByComparator)
                                           throws NoSuchReviewException,
                                                  SystemException
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.

Specified by:
findByProposalId_PrevAndNext in interface TasksReviewPersistence
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

getByProposalId_PrevAndNext

protected TasksReview getByProposalId_PrevAndNext(Session session,
                                                  TasksReview tasksReview,
                                                  long proposalId,
                                                  OrderByComparator orderByComparator,
                                                  boolean previous)

findByU_P

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

Specified by:
findByU_P in interface TasksReviewPersistence
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 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.

Specified by:
fetchByU_P in interface TasksReviewPersistence
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 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.

Specified by:
fetchByU_P in interface TasksReviewPersistence
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 List<TasksReview> findByP_S(long proposalId,
                                   int stage)
                            throws SystemException
Finds all the tasks reviews where proposalId = ? and stage = ?.

Specified by:
findByP_S in interface TasksReviewPersistence
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 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.

Specified by:
findByP_S in interface TasksReviewPersistence
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 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.

Specified by:
findByP_S in interface TasksReviewPersistence
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 TasksReview findByP_S_First(long proposalId,
                                   int stage,
                                   OrderByComparator orderByComparator)
                            throws NoSuchReviewException,
                                   SystemException
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.

Specified by:
findByP_S_First in interface TasksReviewPersistence
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 TasksReview findByP_S_Last(long proposalId,
                                  int stage,
                                  OrderByComparator orderByComparator)
                           throws NoSuchReviewException,
                                  SystemException
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.

Specified by:
findByP_S_Last in interface TasksReviewPersistence
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 TasksReview[] findByP_S_PrevAndNext(long reviewId,
                                           long proposalId,
                                           int stage,
                                           OrderByComparator orderByComparator)
                                    throws NoSuchReviewException,
                                           SystemException
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.

Specified by:
findByP_S_PrevAndNext in interface TasksReviewPersistence
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

getByP_S_PrevAndNext

protected TasksReview getByP_S_PrevAndNext(Session session,
                                           TasksReview tasksReview,
                                           long proposalId,
                                           int stage,
                                           OrderByComparator orderByComparator,
                                           boolean previous)

findByP_S_C

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

Specified by:
findByP_S_C in interface TasksReviewPersistence
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 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.

Specified by:
findByP_S_C in interface TasksReviewPersistence
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 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.

Specified by:
findByP_S_C in interface TasksReviewPersistence
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 TasksReview findByP_S_C_First(long proposalId,
                                     int stage,
                                     boolean completed,
                                     OrderByComparator orderByComparator)
                              throws NoSuchReviewException,
                                     SystemException
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.

Specified by:
findByP_S_C_First in interface TasksReviewPersistence
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 TasksReview findByP_S_C_Last(long proposalId,
                                    int stage,
                                    boolean completed,
                                    OrderByComparator orderByComparator)
                             throws NoSuchReviewException,
                                    SystemException
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.

Specified by:
findByP_S_C_Last in interface TasksReviewPersistence
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 TasksReview[] findByP_S_C_PrevAndNext(long reviewId,
                                             long proposalId,
                                             int stage,
                                             boolean completed,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchReviewException,
                                             SystemException
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.

Specified by:
findByP_S_C_PrevAndNext in interface TasksReviewPersistence
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

getByP_S_C_PrevAndNext

protected TasksReview getByP_S_C_PrevAndNext(Session session,
                                             TasksReview tasksReview,
                                             long proposalId,
                                             int stage,
                                             boolean completed,
                                             OrderByComparator orderByComparator,
                                             boolean previous)

findByP_S_C_R

public 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 = ?.

Specified by:
findByP_S_C_R in interface TasksReviewPersistence
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 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.

Specified by:
findByP_S_C_R in interface TasksReviewPersistence
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 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.

Specified by:
findByP_S_C_R in interface TasksReviewPersistence
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 TasksReview findByP_S_C_R_First(long proposalId,
                                       int stage,
                                       boolean completed,
                                       boolean rejected,
                                       OrderByComparator orderByComparator)
                                throws NoSuchReviewException,
                                       SystemException
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.

Specified by:
findByP_S_C_R_First in interface TasksReviewPersistence
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 TasksReview findByP_S_C_R_Last(long proposalId,
                                      int stage,
                                      boolean completed,
                                      boolean rejected,
                                      OrderByComparator orderByComparator)
                               throws NoSuchReviewException,
                                      SystemException
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.

Specified by:
findByP_S_C_R_Last in interface TasksReviewPersistence
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 TasksReview[] findByP_S_C_R_PrevAndNext(long reviewId,
                                               long proposalId,
                                               int stage,
                                               boolean completed,
                                               boolean rejected,
                                               OrderByComparator orderByComparator)
                                        throws NoSuchReviewException,
                                               SystemException
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.

Specified by:
findByP_S_C_R_PrevAndNext in interface TasksReviewPersistence
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

getByP_S_C_R_PrevAndNext

protected TasksReview getByP_S_C_R_PrevAndNext(Session session,
                                               TasksReview tasksReview,
                                               long proposalId,
                                               int stage,
                                               boolean completed,
                                               boolean rejected,
                                               OrderByComparator orderByComparator,
                                               boolean previous)

findAll

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

Specified by:
findAll in interface TasksReviewPersistence
Returns:
the tasks reviews
Throws:
SystemException - if a system exception occurred

findAll

public 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.

Specified by:
findAll in interface TasksReviewPersistence
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 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.

Specified by:
findAll in interface TasksReviewPersistence
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 void removeByUserId(long userId)
                    throws SystemException
Removes all the tasks reviews where userId = ? from the database.

Specified by:
removeByUserId in interface TasksReviewPersistence
Parameters:
userId - the user id to search with
Throws:
SystemException - if a system exception occurred

removeByProposalId

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

Specified by:
removeByProposalId in interface TasksReviewPersistence
Parameters:
proposalId - the proposal id to search with
Throws:
SystemException - if a system exception occurred

removeByU_P

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

Specified by:
removeByU_P in interface TasksReviewPersistence
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 void removeByP_S(long proposalId,
                        int stage)
                 throws SystemException
Removes all the tasks reviews where proposalId = ? and stage = ? from the database.

Specified by:
removeByP_S in interface TasksReviewPersistence
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 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.

Specified by:
removeByP_S_C in interface TasksReviewPersistence
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 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.

Specified by:
removeByP_S_C_R in interface TasksReviewPersistence
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 void removeAll()
               throws SystemException
Removes all the tasks reviews from the database.

Specified by:
removeAll in interface TasksReviewPersistence
Throws:
SystemException - if a system exception occurred

countByUserId

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

Specified by:
countByUserId in interface TasksReviewPersistence
Parameters:
userId - the user id to search with
Returns:
the number of matching tasks reviews
Throws:
SystemException - if a system exception occurred

countByProposalId

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

Specified by:
countByProposalId in interface TasksReviewPersistence
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 int countByU_P(long userId,
                      long proposalId)
               throws SystemException
Counts all the tasks reviews where userId = ? and proposalId = ?.

Specified by:
countByU_P in interface TasksReviewPersistence
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 int countByP_S(long proposalId,
                      int stage)
               throws SystemException
Counts all the tasks reviews where proposalId = ? and stage = ?.

Specified by:
countByP_S in interface TasksReviewPersistence
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 int countByP_S_C(long proposalId,
                        int stage,
                        boolean completed)
                 throws SystemException
Counts all the tasks reviews where proposalId = ? and stage = ? and completed = ?.

Specified by:
countByP_S_C in interface TasksReviewPersistence
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 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 = ?.

Specified by:
countByP_S_C_R in interface TasksReviewPersistence
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 int countAll()
             throws SystemException
Counts all the tasks reviews.

Specified by:
countAll in interface TasksReviewPersistence
Returns:
the number of tasks reviews
Throws:
SystemException - if a system exception occurred

afterPropertiesSet

public void afterPropertiesSet()
Initializes the tasks review persistence.


Liferay 6.0.5