com.liferay.portlet.polls.service.persistence
Class PollsVoteUtil
java.lang.Object
com.liferay.portlet.polls.service.persistence.PollsVoteUtil
- public class PollsVoteUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
static int |
countAll()
|
static int |
countByChoiceId(long choiceId)
|
static int |
countByQ_U(long questionId,
long userId)
|
static int |
countByQuestionId(long questionId)
|
static com.liferay.portlet.polls.model.PollsVote |
create(long voteId)
|
static com.liferay.portlet.polls.model.PollsVote |
fetchByPrimaryKey(long voteId)
|
static com.liferay.portlet.polls.model.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 com.liferay.portlet.polls.model.PollsVote |
findByChoiceId_First(long choiceId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static com.liferay.portlet.polls.model.PollsVote |
findByChoiceId_Last(long choiceId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static com.liferay.portlet.polls.model.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 com.liferay.portlet.polls.model.PollsVote |
findByPrimaryKey(long voteId)
|
static com.liferay.portlet.polls.model.PollsVote |
findByQ_U(long questionId,
long userId)
|
static com.liferay.portlet.polls.model.PollsVote |
findByQuestionId_First(long questionId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static com.liferay.portlet.polls.model.PollsVote |
findByQuestionId_Last(long questionId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static com.liferay.portlet.polls.model.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 com.liferay.portlet.polls.model.PollsVote |
remove(long voteId)
|
static com.liferay.portlet.polls.model.PollsVote |
remove(com.liferay.portlet.polls.model.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 com.liferay.portlet.polls.model.PollsVote |
update(com.liferay.portlet.polls.model.PollsVote pollsVote)
|
static com.liferay.portlet.polls.model.PollsVote |
update(com.liferay.portlet.polls.model.PollsVote pollsVote,
boolean merge)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PollsVoteUtil
public PollsVoteUtil()
create
public static com.liferay.portlet.polls.model.PollsVote create(long voteId)
remove
public static 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 static 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 static 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 static 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 static 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 static com.liferay.portlet.polls.model.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 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 static 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 static 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 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 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 static 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 static 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 static 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 static com.liferay.portlet.polls.model.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,
com.liferay.portlet.polls.NoSuchVoteException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.polls.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)