com.liferay.portlet.polls.service.persistence
Class PollsVoteUtil

java.lang.Object
  extended bycom.liferay.portlet.polls.service.persistence.PollsVoteUtil

public class PollsVoteUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
PollsVoteUtil()
           
 
Method Summary
static int countAll()
           
static int countByChoiceId(long choiceId)
           
static int countByQ_U(long questionId, long userId)
           
static int countByQuestionId(long questionId)
           
static PollsVote create(long voteId)
           
static PollsVote fetchByPrimaryKey(long voteId)
           
static PollsVote fetchByQ_U(long questionId, long userId)
           
static java.util.List findAll()
           
static java.util.List findAll(int begin, int end)
           
static java.util.List findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static PollsVote findByChoiceId_First(long choiceId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static PollsVote findByChoiceId_Last(long choiceId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static PollsVote[] findByChoiceId_PrevAndNext(long voteId, long choiceId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List findByChoiceId(long choiceId)
           
static java.util.List findByChoiceId(long choiceId, int begin, int end)
           
static java.util.List findByChoiceId(long choiceId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static PollsVote findByPrimaryKey(long voteId)
           
static PollsVote findByQ_U(long questionId, long userId)
           
static PollsVote findByQuestionId_First(long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static PollsVote findByQuestionId_Last(long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static PollsVote[] findByQuestionId_PrevAndNext(long voteId, long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List findByQuestionId(long questionId)
           
static java.util.List findByQuestionId(long questionId, int begin, int end)
           
static java.util.List findByQuestionId(long questionId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
static PollsVotePersistence getPersistence()
           
static PollsVote remove(long voteId)
           
static PollsVote remove(PollsVote pollsVote)
           
static void removeAll()
           
static void removeByChoiceId(long choiceId)
           
static void removeByQ_U(long questionId, long userId)
           
static void removeByQuestionId(long questionId)
           
 void setPersistence(PollsVotePersistence persistence)
           
static PollsVote update(PollsVote pollsVote)
           
static PollsVote update(PollsVote pollsVote, boolean merge)
           
static PollsVote updateImpl(PollsVote pollsVote, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PollsVoteUtil

public PollsVoteUtil()
Method Detail

create

public static PollsVote create(long voteId)

remove

public static PollsVote remove(long voteId)
                        throws com.liferay.portal.SystemException,
                               NoSuchVoteException
Throws:
com.liferay.portal.SystemException
NoSuchVoteException

remove

public static PollsVote remove(PollsVote pollsVote)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static PollsVote update(PollsVote pollsVote)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static PollsVote update(PollsVote pollsVote,
                               boolean merge)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateImpl

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

findByPrimaryKey

public static PollsVote findByPrimaryKey(long voteId)
                                  throws com.liferay.portal.SystemException,
                                         NoSuchVoteException
Throws:
com.liferay.portal.SystemException
NoSuchVoteException

fetchByPrimaryKey

public static PollsVote fetchByPrimaryKey(long voteId)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByQuestionId

public static java.util.List findByQuestionId(long questionId)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByQuestionId

public static java.util.List findByQuestionId(long questionId,
                                              int begin,
                                              int end)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByQuestionId

public static java.util.List findByQuestionId(long questionId,
                                              int begin,
                                              int end,
                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByQuestionId_First

public static PollsVote findByQuestionId_First(long questionId,
                                               com.liferay.portal.kernel.util.OrderByComparator obc)
                                        throws com.liferay.portal.SystemException,
                                               NoSuchVoteException
Throws:
com.liferay.portal.SystemException
NoSuchVoteException

findByQuestionId_Last

public static PollsVote findByQuestionId_Last(long questionId,
                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.SystemException,
                                              NoSuchVoteException
Throws:
com.liferay.portal.SystemException
NoSuchVoteException

findByQuestionId_PrevAndNext

public static PollsVote[] findByQuestionId_PrevAndNext(long voteId,
                                                       long questionId,
                                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                                throws com.liferay.portal.SystemException,
                                                       NoSuchVoteException
Throws:
com.liferay.portal.SystemException
NoSuchVoteException

findByChoiceId

public static java.util.List findByChoiceId(long choiceId)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByChoiceId

public static java.util.List findByChoiceId(long choiceId,
                                            int begin,
                                            int end)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByChoiceId

public static java.util.List findByChoiceId(long choiceId,
                                            int begin,
                                            int end,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByChoiceId_First

public static PollsVote findByChoiceId_First(long choiceId,
                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws com.liferay.portal.SystemException,
                                             NoSuchVoteException
Throws:
com.liferay.portal.SystemException
NoSuchVoteException

findByChoiceId_Last

public static PollsVote findByChoiceId_Last(long choiceId,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws com.liferay.portal.SystemException,
                                            NoSuchVoteException
Throws:
com.liferay.portal.SystemException
NoSuchVoteException

findByChoiceId_PrevAndNext

public static PollsVote[] findByChoiceId_PrevAndNext(long voteId,
                                                     long choiceId,
                                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                              throws com.liferay.portal.SystemException,
                                                     NoSuchVoteException
Throws:
com.liferay.portal.SystemException
NoSuchVoteException

findByQ_U

public static PollsVote findByQ_U(long questionId,
                                  long userId)
                           throws com.liferay.portal.SystemException,
                                  NoSuchVoteException
Throws:
com.liferay.portal.SystemException
NoSuchVoteException

fetchByQ_U

public static PollsVote fetchByQ_U(long questionId,
                                   long userId)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                                  int begin,
                                                  int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

public static java.util.List findAll(int begin,
                                     int end)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

removeByQuestionId

public static void removeByQuestionId(long questionId)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByChoiceId

public static void removeByChoiceId(long choiceId)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByQ_U

public static void removeByQ_U(long questionId,
                               long userId)
                        throws com.liferay.portal.SystemException,
                               NoSuchVoteException
Throws:
com.liferay.portal.SystemException
NoSuchVoteException

removeAll

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

countByQuestionId

public static int countByQuestionId(long questionId)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByChoiceId

public static int countByChoiceId(long choiceId)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByQ_U

public static int countByQ_U(long questionId,
                             long userId)
                      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 PollsVotePersistence getPersistence()

setPersistence

public void setPersistence(PollsVotePersistence persistence)