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

All Known Implementing Classes:
PollsVotePersistenceImpl

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)
           
 com.liferay.portlet.polls.model.PollsVote create(long voteId)
           
 com.liferay.portlet.polls.model.PollsVote fetchByPrimaryKey(long voteId)
           
 com.liferay.portlet.polls.model.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)
           
 com.liferay.portlet.polls.model.PollsVote findByChoiceId_First(long choiceId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portlet.polls.model.PollsVote findByChoiceId_Last(long choiceId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portlet.polls.model.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)
           
 com.liferay.portlet.polls.model.PollsVote findByPrimaryKey(long voteId)
           
 com.liferay.portlet.polls.model.PollsVote findByQ_U(long questionId, long userId)
           
 com.liferay.portlet.polls.model.PollsVote findByQuestionId_First(long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portlet.polls.model.PollsVote findByQuestionId_Last(long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portlet.polls.model.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)
           
 com.liferay.portlet.polls.model.PollsVote remove(long voteId)
           
 com.liferay.portlet.polls.model.PollsVote remove(com.liferay.portlet.polls.model.PollsVote pollsVote)
           
 void removeAll()
           
 void removeByChoiceId(long choiceId)
           
 void removeByQ_U(long questionId, long userId)
           
 void removeByQuestionId(long questionId)
           
 com.liferay.portlet.polls.model.PollsVote update(com.liferay.portlet.polls.model.PollsVote pollsVote)
           
 com.liferay.portlet.polls.model.PollsVote update(com.liferay.portlet.polls.model.PollsVote pollsVote, boolean merge)
           
 

Method Detail

create

public com.liferay.portlet.polls.model.PollsVote create(long voteId)

remove

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

remove

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

update

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

update

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

findByPrimaryKey

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

fetchByPrimaryKey

public com.liferay.portlet.polls.model.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 com.liferay.portlet.polls.model.PollsVote findByQuestionId_First(long questionId,
                                                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                 throws com.liferay.portal.SystemException,
                                                                        com.liferay.portlet.polls.NoSuchVoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.polls.NoSuchVoteException

findByQuestionId_Last

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

findByQuestionId_PrevAndNext

public com.liferay.portlet.polls.model.PollsVote[] findByQuestionId_PrevAndNext(long voteId,
                                                                                long questionId,
                                                                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                         throws com.liferay.portal.SystemException,
                                                                                com.liferay.portlet.polls.NoSuchVoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.polls.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 com.liferay.portlet.polls.model.PollsVote findByChoiceId_First(long choiceId,
                                                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                                               throws com.liferay.portal.SystemException,
                                                                      com.liferay.portlet.polls.NoSuchVoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.polls.NoSuchVoteException

findByChoiceId_Last

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

findByChoiceId_PrevAndNext

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

findByQ_U

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

fetchByQ_U

public com.liferay.portlet.polls.model.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,
                        com.liferay.portlet.polls.NoSuchVoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.polls.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