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

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

public class TasksReviewUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
TasksReviewUtil()
           
 
Method Summary
static int countAll()
           
static int countByP_S_C_R(long proposalId, int stage, boolean completed, boolean rejected)
           
static int countByP_S_C(long proposalId, int stage, boolean completed)
           
static int countByP_S(long proposalId, int stage)
           
static int countByProposalId(long proposalId)
           
static int countByU_P(long userId, long proposalId)
           
static int countByUserId(long userId)
           
static TasksReview create(long reviewId)
           
static TasksReview fetchByPrimaryKey(long reviewId)
           
static TasksReview fetchByU_P(long userId, long proposalId)
           
static java.util.List<TasksReview> findAll()
           
static java.util.List<TasksReview> findAll(int start, int end)
           
static java.util.List<TasksReview> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static TasksReview findByP_S_C_First(long proposalId, int stage, boolean completed, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static TasksReview findByP_S_C_Last(long proposalId, int stage, boolean completed, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static TasksReview[] findByP_S_C_PrevAndNext(long reviewId, long proposalId, int stage, boolean completed, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static TasksReview findByP_S_C_R_First(long proposalId, int stage, boolean completed, boolean rejected, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static TasksReview findByP_S_C_R_Last(long proposalId, int stage, boolean completed, boolean rejected, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static TasksReview[] findByP_S_C_R_PrevAndNext(long reviewId, long proposalId, int stage, boolean completed, boolean rejected, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<TasksReview> findByP_S_C_R(long proposalId, int stage, boolean completed, boolean rejected)
           
static java.util.List<TasksReview> findByP_S_C_R(long proposalId, int stage, boolean completed, boolean rejected, int start, int end)
           
static java.util.List<TasksReview> findByP_S_C_R(long proposalId, int stage, boolean completed, boolean rejected, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<TasksReview> findByP_S_C(long proposalId, int stage, boolean completed)
           
static java.util.List<TasksReview> findByP_S_C(long proposalId, int stage, boolean completed, int start, int end)
           
static java.util.List<TasksReview> findByP_S_C(long proposalId, int stage, boolean completed, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static TasksReview findByP_S_First(long proposalId, int stage, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static TasksReview findByP_S_Last(long proposalId, int stage, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static TasksReview[] findByP_S_PrevAndNext(long reviewId, long proposalId, int stage, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<TasksReview> findByP_S(long proposalId, int stage)
           
static java.util.List<TasksReview> findByP_S(long proposalId, int stage, int start, int end)
           
static java.util.List<TasksReview> findByP_S(long proposalId, int stage, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static TasksReview findByPrimaryKey(long reviewId)
           
static TasksReview findByProposalId_First(long proposalId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static TasksReview findByProposalId_Last(long proposalId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static TasksReview[] findByProposalId_PrevAndNext(long reviewId, long proposalId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<TasksReview> findByProposalId(long proposalId)
           
static java.util.List<TasksReview> findByProposalId(long proposalId, int start, int end)
           
static java.util.List<TasksReview> findByProposalId(long proposalId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static TasksReview findByU_P(long userId, long proposalId)
           
static TasksReview findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static TasksReview findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static TasksReview[] findByUserId_PrevAndNext(long reviewId, long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<TasksReview> findByUserId(long userId)
           
static java.util.List<TasksReview> findByUserId(long userId, int start, int end)
           
static java.util.List<TasksReview> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
static TasksReviewPersistence getPersistence()
           
static TasksReview remove(long reviewId)
           
static TasksReview remove(TasksReview tasksReview)
           
static void removeAll()
           
static void removeByP_S_C_R(long proposalId, int stage, boolean completed, boolean rejected)
           
static void removeByP_S_C(long proposalId, int stage, boolean completed)
           
static void removeByP_S(long proposalId, int stage)
           
static void removeByProposalId(long proposalId)
           
static void removeByU_P(long userId, long proposalId)
           
static void removeByUserId(long userId)
           
 void setPersistence(TasksReviewPersistence persistence)
           
static TasksReview update(TasksReview tasksReview)
          Deprecated. Use update(TasksReview tasksReview, boolean merge).
static TasksReview update(TasksReview tasksReview, boolean merge)
          Add, update, or merge, the entity.
static TasksReview updateImpl(TasksReview tasksReview, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TasksReviewUtil

public TasksReviewUtil()
Method Detail

create

public static TasksReview create(long reviewId)

remove

public static TasksReview remove(long reviewId)
                          throws com.liferay.portal.SystemException,
                                 NoSuchReviewException
Throws:
com.liferay.portal.SystemException
NoSuchReviewException

remove

public static TasksReview remove(TasksReview tasksReview)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static TasksReview update(TasksReview tasksReview)
                          throws com.liferay.portal.SystemException
Deprecated. Use update(TasksReview tasksReview, boolean merge).

Throws:
com.liferay.portal.SystemException

update

public static TasksReview update(TasksReview tasksReview,
                                 boolean merge)
                          throws com.liferay.portal.SystemException
Add, update, or merge, the entity. This method also calls the model listeners to trigger the proper events associated with adding, deleting, or updating an entity.

Parameters:
tasksReview - the entity to add, update, or merge
merge - boolean value for whether to merge the entity. The default value is false. Setting merge to true is more expensive and should only be true when tasksReview is transient. See LEP-5473 for a detailed discussion of this method.
Returns:
true if the portlet can be displayed via Ajax
Throws:
com.liferay.portal.SystemException

updateImpl

public static TasksReview updateImpl(TasksReview tasksReview,
                                     boolean merge)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public static TasksReview findByPrimaryKey(long reviewId)
                                    throws com.liferay.portal.SystemException,
                                           NoSuchReviewException
Throws:
com.liferay.portal.SystemException
NoSuchReviewException

fetchByPrimaryKey

public static TasksReview fetchByPrimaryKey(long reviewId)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

public static java.util.List<TasksReview> findByUserId(long userId)
                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

public static java.util.List<TasksReview> findByUserId(long userId,
                                                       int start,
                                                       int end)
                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

public static java.util.List<TasksReview> findByUserId(long userId,
                                                       int start,
                                                       int end,
                                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId_First

public static TasksReview findByUserId_First(long userId,
                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws com.liferay.portal.SystemException,
                                             NoSuchReviewException
Throws:
com.liferay.portal.SystemException
NoSuchReviewException

findByUserId_Last

public static TasksReview findByUserId_Last(long userId,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws com.liferay.portal.SystemException,
                                            NoSuchReviewException
Throws:
com.liferay.portal.SystemException
NoSuchReviewException

findByUserId_PrevAndNext

public static TasksReview[] findByUserId_PrevAndNext(long reviewId,
                                                     long userId,
                                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                              throws com.liferay.portal.SystemException,
                                                     NoSuchReviewException
Throws:
com.liferay.portal.SystemException
NoSuchReviewException

findByProposalId

public static java.util.List<TasksReview> findByProposalId(long proposalId)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByProposalId

public static java.util.List<TasksReview> findByProposalId(long proposalId,
                                                           int start,
                                                           int end)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByProposalId

public static java.util.List<TasksReview> findByProposalId(long proposalId,
                                                           int start,
                                                           int end,
                                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByProposalId_First

public static TasksReview findByProposalId_First(long proposalId,
                                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                          throws com.liferay.portal.SystemException,
                                                 NoSuchReviewException
Throws:
com.liferay.portal.SystemException
NoSuchReviewException

findByProposalId_Last

public static TasksReview findByProposalId_Last(long proposalId,
                                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                         throws com.liferay.portal.SystemException,
                                                NoSuchReviewException
Throws:
com.liferay.portal.SystemException
NoSuchReviewException

findByProposalId_PrevAndNext

public static TasksReview[] findByProposalId_PrevAndNext(long reviewId,
                                                         long proposalId,
                                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                                  throws com.liferay.portal.SystemException,
                                                         NoSuchReviewException
Throws:
com.liferay.portal.SystemException
NoSuchReviewException

findByU_P

public static TasksReview findByU_P(long userId,
                                    long proposalId)
                             throws com.liferay.portal.SystemException,
                                    NoSuchReviewException
Throws:
com.liferay.portal.SystemException
NoSuchReviewException

fetchByU_P

public static TasksReview fetchByU_P(long userId,
                                     long proposalId)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByP_S

public static java.util.List<TasksReview> findByP_S(long proposalId,
                                                    int stage)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByP_S

public static java.util.List<TasksReview> findByP_S(long proposalId,
                                                    int stage,
                                                    int start,
                                                    int end)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByP_S

public static java.util.List<TasksReview> findByP_S(long proposalId,
                                                    int stage,
                                                    int start,
                                                    int end,
                                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByP_S_First

public static TasksReview findByP_S_First(long proposalId,
                                          int stage,
                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                                   throws com.liferay.portal.SystemException,
                                          NoSuchReviewException
Throws:
com.liferay.portal.SystemException
NoSuchReviewException

findByP_S_Last

public static TasksReview findByP_S_Last(long proposalId,
                                         int stage,
                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                  throws com.liferay.portal.SystemException,
                                         NoSuchReviewException
Throws:
com.liferay.portal.SystemException
NoSuchReviewException

findByP_S_PrevAndNext

public static TasksReview[] findByP_S_PrevAndNext(long reviewId,
                                                  long proposalId,
                                                  int stage,
                                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                           throws com.liferay.portal.SystemException,
                                                  NoSuchReviewException
Throws:
com.liferay.portal.SystemException
NoSuchReviewException

findByP_S_C

public static java.util.List<TasksReview> findByP_S_C(long proposalId,
                                                      int stage,
                                                      boolean completed)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByP_S_C

public static java.util.List<TasksReview> findByP_S_C(long proposalId,
                                                      int stage,
                                                      boolean completed,
                                                      int start,
                                                      int end)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByP_S_C

public static java.util.List<TasksReview> findByP_S_C(long proposalId,
                                                      int stage,
                                                      boolean completed,
                                                      int start,
                                                      int end,
                                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByP_S_C_First

public static TasksReview findByP_S_C_First(long proposalId,
                                            int stage,
                                            boolean completed,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws com.liferay.portal.SystemException,
                                            NoSuchReviewException
Throws:
com.liferay.portal.SystemException
NoSuchReviewException

findByP_S_C_Last

public static TasksReview findByP_S_C_Last(long proposalId,
                                           int stage,
                                           boolean completed,
                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                                    throws com.liferay.portal.SystemException,
                                           NoSuchReviewException
Throws:
com.liferay.portal.SystemException
NoSuchReviewException

findByP_S_C_PrevAndNext

public static TasksReview[] findByP_S_C_PrevAndNext(long reviewId,
                                                    long proposalId,
                                                    int stage,
                                                    boolean completed,
                                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                             throws com.liferay.portal.SystemException,
                                                    NoSuchReviewException
Throws:
com.liferay.portal.SystemException
NoSuchReviewException

findByP_S_C_R

public static java.util.List<TasksReview> findByP_S_C_R(long proposalId,
                                                        int stage,
                                                        boolean completed,
                                                        boolean rejected)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByP_S_C_R

public static java.util.List<TasksReview> findByP_S_C_R(long proposalId,
                                                        int stage,
                                                        boolean completed,
                                                        boolean rejected,
                                                        int start,
                                                        int end)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByP_S_C_R

public static java.util.List<TasksReview> findByP_S_C_R(long proposalId,
                                                        int stage,
                                                        boolean completed,
                                                        boolean rejected,
                                                        int start,
                                                        int end,
                                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByP_S_C_R_First

public static TasksReview findByP_S_C_R_First(long proposalId,
                                              int stage,
                                              boolean completed,
                                              boolean rejected,
                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.SystemException,
                                              NoSuchReviewException
Throws:
com.liferay.portal.SystemException
NoSuchReviewException

findByP_S_C_R_Last

public static TasksReview findByP_S_C_R_Last(long proposalId,
                                             int stage,
                                             boolean completed,
                                             boolean rejected,
                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws com.liferay.portal.SystemException,
                                             NoSuchReviewException
Throws:
com.liferay.portal.SystemException
NoSuchReviewException

findByP_S_C_R_PrevAndNext

public static TasksReview[] findByP_S_C_R_PrevAndNext(long reviewId,
                                                      long proposalId,
                                                      int stage,
                                                      boolean completed,
                                                      boolean rejected,
                                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                               throws com.liferay.portal.SystemException,
                                                      NoSuchReviewException
Throws:
com.liferay.portal.SystemException
NoSuchReviewException

findWithDynamicQuery

public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                                    int start,
                                                                    int end)
                                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<TasksReview> findAll()
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<TasksReview> findAll(int start,
                                                  int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<TasksReview> findAll(int start,
                                                  int end,
                                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByUserId

public static void removeByUserId(long userId)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByProposalId

public static void removeByProposalId(long proposalId)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByU_P

public static void removeByU_P(long userId,
                               long proposalId)
                        throws com.liferay.portal.SystemException,
                               NoSuchReviewException
Throws:
com.liferay.portal.SystemException
NoSuchReviewException

removeByP_S

public static void removeByP_S(long proposalId,
                               int stage)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByP_S_C

public static void removeByP_S_C(long proposalId,
                                 int stage,
                                 boolean completed)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByP_S_C_R

public static void removeByP_S_C_R(long proposalId,
                                   int stage,
                                   boolean completed,
                                   boolean rejected)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeAll

public static void removeAll()
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByUserId

public static int countByUserId(long userId)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByProposalId

public static int countByProposalId(long proposalId)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByU_P

public static int countByU_P(long userId,
                             long proposalId)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByP_S

public static int countByP_S(long proposalId,
                             int stage)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByP_S_C

public static int countByP_S_C(long proposalId,
                               int stage,
                               boolean completed)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByP_S_C_R

public static int countByP_S_C_R(long proposalId,
                                 int stage,
                                 boolean completed,
                                 boolean rejected)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

public static int countAll()
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPersistence

public static TasksReviewPersistence getPersistence()

setPersistence

public void setPersistence(TasksReviewPersistence persistence)