com.liferay.portlet.polls.service.persistence
Interface PollsVotePersistence


public interface PollsVotePersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByChoiceId(long choiceId)
           
 int countByQ_U(long questionId, long userId)
           
 int countByQuestionId(long questionId)
           
 PollsVote create(long voteId)
           
 PollsVote fetchByPrimaryKey(long voteId)
           
 PollsVote fetchByQ_U(long questionId, long userId)
           
 java.util.List findAll()
           
 java.util.List findAll(int begin, int end)
           
 java.util.List findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 PollsVote findByChoiceId_First(long choiceId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 PollsVote findByChoiceId_Last(long choiceId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 PollsVote[] findByChoiceId_PrevAndNext(long voteId, long choiceId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List findByChoiceId(long choiceId)
           
 java.util.List findByChoiceId(long choiceId, int begin, int end)
           
 java.util.List findByChoiceId(long choiceId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 PollsVote findByPrimaryKey(long voteId)
           
 PollsVote findByQ_U(long questionId, long userId)
           
 PollsVote findByQuestionId_First(long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 PollsVote findByQuestionId_Last(long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 PollsVote[] findByQuestionId_PrevAndNext(long voteId, long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List findByQuestionId(long questionId)
           
 java.util.List findByQuestionId(long questionId, int begin, int end)
           
 java.util.List findByQuestionId(long questionId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
 PollsVote remove(long voteId)
           
 PollsVote remove(PollsVote pollsVote)
           
 void removeAll()
           
 void removeByChoiceId(long choiceId)
           
 void removeByQ_U(long questionId, long userId)
           
 void removeByQuestionId(long questionId)
           
 PollsVote update(PollsVote pollsVote)
           
 PollsVote update(PollsVote pollsVote, boolean merge)
           
 PollsVote updateImpl(PollsVote pollsVote, boolean merge)
           
 

Method Detail

create

public PollsVote create(long voteId)

remove

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

remove

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

update

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

update

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

updateImpl

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

findByPrimaryKey

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

fetchByPrimaryKey

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

findByQuestionId

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

findByQuestionId

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

findByQuestionId

public 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 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 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 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 java.util.List findByChoiceId(long choiceId)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByChoiceId

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

findByChoiceId

public 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 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 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 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 PollsVote findByQ_U(long questionId,
                           long userId)
                    throws com.liferay.portal.SystemException,
                           NoSuchVoteException
Throws:
com.liferay.portal.SystemException
NoSuchVoteException

fetchByQ_U

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

findWithDynamicQuery

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

findWithDynamicQuery

public 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 java.util.List findAll()
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

public 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 void removeByQuestionId(long questionId)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByChoiceId

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

removeByQ_U

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

removeAll

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

countByQuestionId

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

countByChoiceId

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

countByQ_U

public int countByQ_U(long questionId,
                      long userId)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

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