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 PollsVote |
create(long voteId)
|
static PollsVote |
fetchByPrimaryKey(long voteId)
|
static PollsVote |
fetchByQ_U(long questionId,
long userId)
|
static java.util.List<PollsVote> |
findAll()
|
static java.util.List<PollsVote> |
findAll(int start,
int end)
|
static java.util.List<PollsVote> |
findAll(int start,
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<PollsVote> |
findByChoiceId(long choiceId)
|
static java.util.List<PollsVote> |
findByChoiceId(long choiceId,
int start,
int end)
|
static java.util.List<PollsVote> |
findByChoiceId(long choiceId,
int start,
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<PollsVote> |
findByQuestionId(long questionId)
|
static java.util.List<PollsVote> |
findByQuestionId(long questionId,
int start,
int end)
|
static java.util.List<PollsVote> |
findByQuestionId(long questionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
static PollsVotePersistence |
getPersistence()
|
static void |
registerListener(ModelListener listener)
|
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 void |
unregisterListener(ModelListener listener)
|
static PollsVote |
update(PollsVote pollsVote)
Deprecated. Use update(PollsVote pollsVote, boolean merge) . |
static PollsVote |
update(PollsVote pollsVote,
boolean merge)
Add, update, or merge, the entity. |
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 |
PollsVoteUtil
public PollsVoteUtil()
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
- Deprecated. Use
update(PollsVote pollsVote, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
public static PollsVote update(PollsVote pollsVote,
boolean merge)
throws com.liferay.portal.SystemException
- Add, update, or merge, the entity. This method also calls the model
listeners to trigger the proper events associated with adding, deleting,
or updating an entity.
- Parameters:
pollsVote
- the entity to add, update, or mergemerge
- boolean value for whether to merge the entity. The
default value is false. Setting merge to true is more
expensive and should only be true when pollsVote is
transient. See LEP-5473 for a detailed discussion of this
method.
- Returns:
- true if the portlet can be displayed via Ajax
- 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<PollsVote> findByQuestionId(long questionId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByQuestionId
public static java.util.List<PollsVote> findByQuestionId(long questionId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByQuestionId
public static java.util.List<PollsVote> findByQuestionId(long questionId,
int start,
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<PollsVote> findByChoiceId(long choiceId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByChoiceId
public static java.util.List<PollsVote> findByChoiceId(long choiceId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByChoiceId
public static java.util.List<PollsVote> findByChoiceId(long choiceId,
int start,
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<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<PollsVote> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<PollsVote> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<PollsVote> findAll(int start,
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
registerListener
public static void registerListener(ModelListener listener)
unregisterListener
public static void unregisterListener(ModelListener listener)
getPersistence
public static PollsVotePersistence getPersistence()
setPersistence
public void setPersistence(PollsVotePersistence persistence)