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

All Superinterfaces:
BasePersistence<PollsVote>

public interface PollsVotePersistence
extends BasePersistence<PollsVote>

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Author:
Brian Wing Shun Chan
See Also:
PollsVotePersistenceImpl, PollsVoteUtil
Generated:

Method Summary
 void cacheResult(java.util.List<PollsVote> pollsVotes)
           
 void cacheResult(PollsVote pollsVote)
           
 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)
           
 PollsVote fetchByQ_U(long questionId, long userId, boolean retrieveFromCache)
           
 java.util.List<PollsVote> findAll()
           
 java.util.List<PollsVote> findAll(int start, int end)
           
 java.util.List<PollsVote> findAll(int start, int end, OrderByComparator orderByComparator)
           
 PollsVote findByChoiceId_First(long choiceId, OrderByComparator orderByComparator)
           
 PollsVote findByChoiceId_Last(long choiceId, OrderByComparator orderByComparator)
           
 PollsVote[] findByChoiceId_PrevAndNext(long voteId, long choiceId, OrderByComparator orderByComparator)
           
 java.util.List<PollsVote> findByChoiceId(long choiceId)
           
 java.util.List<PollsVote> findByChoiceId(long choiceId, int start, int end)
           
 java.util.List<PollsVote> findByChoiceId(long choiceId, int start, int end, OrderByComparator orderByComparator)
           
 PollsVote findByPrimaryKey(long voteId)
           
 PollsVote findByQ_U(long questionId, long userId)
           
 PollsVote findByQuestionId_First(long questionId, OrderByComparator orderByComparator)
           
 PollsVote findByQuestionId_Last(long questionId, OrderByComparator orderByComparator)
           
 PollsVote[] findByQuestionId_PrevAndNext(long voteId, long questionId, OrderByComparator orderByComparator)
           
 java.util.List<PollsVote> findByQuestionId(long questionId)
           
 java.util.List<PollsVote> findByQuestionId(long questionId, int start, int end)
           
 java.util.List<PollsVote> findByQuestionId(long questionId, int start, int end, OrderByComparator orderByComparator)
           
 PollsVote remove(long voteId)
           
 void removeAll()
           
 void removeByChoiceId(long choiceId)
           
 void removeByQ_U(long questionId, long userId)
           
 void removeByQuestionId(long questionId)
           
 PollsVote updateImpl(PollsVote pollsVote, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update
 

Method Detail

cacheResult

void cacheResult(PollsVote pollsVote)

cacheResult

void cacheResult(java.util.List<PollsVote> pollsVotes)

create

PollsVote create(long voteId)

remove

PollsVote remove(long voteId)
                 throws SystemException,
                        NoSuchVoteException
Throws:
SystemException
NoSuchVoteException

updateImpl

PollsVote updateImpl(PollsVote pollsVote,
                     boolean merge)
                     throws SystemException
Throws:
SystemException

findByPrimaryKey

PollsVote findByPrimaryKey(long voteId)
                           throws SystemException,
                                  NoSuchVoteException
Throws:
SystemException
NoSuchVoteException

fetchByPrimaryKey

PollsVote fetchByPrimaryKey(long voteId)
                            throws SystemException
Throws:
SystemException

findByQuestionId

java.util.List<PollsVote> findByQuestionId(long questionId)
                                           throws SystemException
Throws:
SystemException

findByQuestionId

java.util.List<PollsVote> findByQuestionId(long questionId,
                                           int start,
                                           int end)
                                           throws SystemException
Throws:
SystemException

findByQuestionId

java.util.List<PollsVote> findByQuestionId(long questionId,
                                           int start,
                                           int end,
                                           OrderByComparator orderByComparator)
                                           throws SystemException
Throws:
SystemException

findByQuestionId_First

PollsVote findByQuestionId_First(long questionId,
                                 OrderByComparator orderByComparator)
                                 throws SystemException,
                                        NoSuchVoteException
Throws:
SystemException
NoSuchVoteException

findByQuestionId_Last

PollsVote findByQuestionId_Last(long questionId,
                                OrderByComparator orderByComparator)
                                throws SystemException,
                                       NoSuchVoteException
Throws:
SystemException
NoSuchVoteException

findByQuestionId_PrevAndNext

PollsVote[] findByQuestionId_PrevAndNext(long voteId,
                                         long questionId,
                                         OrderByComparator orderByComparator)
                                         throws SystemException,
                                                NoSuchVoteException
Throws:
SystemException
NoSuchVoteException

findByChoiceId

java.util.List<PollsVote> findByChoiceId(long choiceId)
                                         throws SystemException
Throws:
SystemException

findByChoiceId

java.util.List<PollsVote> findByChoiceId(long choiceId,
                                         int start,
                                         int end)
                                         throws SystemException
Throws:
SystemException

findByChoiceId

java.util.List<PollsVote> findByChoiceId(long choiceId,
                                         int start,
                                         int end,
                                         OrderByComparator orderByComparator)
                                         throws SystemException
Throws:
SystemException

findByChoiceId_First

PollsVote findByChoiceId_First(long choiceId,
                               OrderByComparator orderByComparator)
                               throws SystemException,
                                      NoSuchVoteException
Throws:
SystemException
NoSuchVoteException

findByChoiceId_Last

PollsVote findByChoiceId_Last(long choiceId,
                              OrderByComparator orderByComparator)
                              throws SystemException,
                                     NoSuchVoteException
Throws:
SystemException
NoSuchVoteException

findByChoiceId_PrevAndNext

PollsVote[] findByChoiceId_PrevAndNext(long voteId,
                                       long choiceId,
                                       OrderByComparator orderByComparator)
                                       throws SystemException,
                                              NoSuchVoteException
Throws:
SystemException
NoSuchVoteException

findByQ_U

PollsVote findByQ_U(long questionId,
                    long userId)
                    throws SystemException,
                           NoSuchVoteException
Throws:
SystemException
NoSuchVoteException

fetchByQ_U

PollsVote fetchByQ_U(long questionId,
                     long userId)
                     throws SystemException
Throws:
SystemException

fetchByQ_U

PollsVote fetchByQ_U(long questionId,
                     long userId,
                     boolean retrieveFromCache)
                     throws SystemException
Throws:
SystemException

findAll

java.util.List<PollsVote> findAll()
                                  throws SystemException
Throws:
SystemException

findAll

java.util.List<PollsVote> findAll(int start,
                                  int end)
                                  throws SystemException
Throws:
SystemException

findAll

java.util.List<PollsVote> findAll(int start,
                                  int end,
                                  OrderByComparator orderByComparator)
                                  throws SystemException
Throws:
SystemException

removeByQuestionId

void removeByQuestionId(long questionId)
                        throws SystemException
Throws:
SystemException

removeByChoiceId

void removeByChoiceId(long choiceId)
                      throws SystemException
Throws:
SystemException

removeByQ_U

void removeByQ_U(long questionId,
                 long userId)
                 throws SystemException,
                        NoSuchVoteException
Throws:
SystemException
NoSuchVoteException

removeAll

void removeAll()
               throws SystemException
Throws:
SystemException

countByQuestionId

int countByQuestionId(long questionId)
                      throws SystemException
Throws:
SystemException

countByChoiceId

int countByChoiceId(long choiceId)
                    throws SystemException
Throws:
SystemException

countByQ_U

int countByQ_U(long questionId,
               long userId)
               throws SystemException
Throws:
SystemException

countAll

int countAll()
             throws SystemException
Throws:
SystemException