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
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
- Author:
- Brian Wing Shun Chan
- See Also:
PollsVotePersistence
,
PollsVotePersistenceImpl
- Generated:
Method Summary |
static void |
cacheResult(java.util.List<PollsVote> pollsVotes)
|
static void |
cacheResult(PollsVote pollsVote)
|
static void |
clearCache()
|
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 PollsVote |
fetchByQ_U(long questionId,
long userId,
boolean retrieveFromCache)
|
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 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 PollsVote |
update(PollsVote pollsVote,
boolean merge)
|
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()
clearCache
public static void clearCache()
- See Also:
BasePersistence.clearCache()
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
- See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)
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.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
- See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
remove
public static PollsVote remove(PollsVote pollsVote)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
- See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)
update
public static PollsVote update(PollsVote pollsVote,
boolean merge)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
- See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
cacheResult
public static void cacheResult(PollsVote pollsVote)
cacheResult
public static void cacheResult(java.util.List<PollsVote> pollsVotes)
create
public static PollsVote create(long voteId)
remove
public static PollsVote remove(long voteId)
throws com.liferay.portal.kernel.exception.SystemException,
NoSuchVoteException
- Throws:
com.liferay.portal.kernel.exception.SystemException
NoSuchVoteException
updateImpl
public static PollsVote updateImpl(PollsVote pollsVote,
boolean merge)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findByPrimaryKey
public static PollsVote findByPrimaryKey(long voteId)
throws com.liferay.portal.kernel.exception.SystemException,
NoSuchVoteException
- Throws:
com.liferay.portal.kernel.exception.SystemException
NoSuchVoteException
fetchByPrimaryKey
public static PollsVote fetchByPrimaryKey(long voteId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findByQuestionId
public static java.util.List<PollsVote> findByQuestionId(long questionId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findByQuestionId
public static java.util.List<PollsVote> findByQuestionId(long questionId,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.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.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findByQuestionId_First
public static PollsVote findByQuestionId_First(long questionId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException,
NoSuchVoteException
- Throws:
com.liferay.portal.kernel.exception.SystemException
NoSuchVoteException
findByQuestionId_Last
public static PollsVote findByQuestionId_Last(long questionId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException,
NoSuchVoteException
- Throws:
com.liferay.portal.kernel.exception.SystemException
NoSuchVoteException
findByQuestionId_PrevAndNext
public static PollsVote[] findByQuestionId_PrevAndNext(long voteId,
long questionId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException,
NoSuchVoteException
- Throws:
com.liferay.portal.kernel.exception.SystemException
NoSuchVoteException
findByChoiceId
public static java.util.List<PollsVote> findByChoiceId(long choiceId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findByChoiceId
public static java.util.List<PollsVote> findByChoiceId(long choiceId,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.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.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findByChoiceId_First
public static PollsVote findByChoiceId_First(long choiceId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException,
NoSuchVoteException
- Throws:
com.liferay.portal.kernel.exception.SystemException
NoSuchVoteException
findByChoiceId_Last
public static PollsVote findByChoiceId_Last(long choiceId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException,
NoSuchVoteException
- Throws:
com.liferay.portal.kernel.exception.SystemException
NoSuchVoteException
findByChoiceId_PrevAndNext
public static PollsVote[] findByChoiceId_PrevAndNext(long voteId,
long choiceId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException,
NoSuchVoteException
- Throws:
com.liferay.portal.kernel.exception.SystemException
NoSuchVoteException
findByQ_U
public static PollsVote findByQ_U(long questionId,
long userId)
throws com.liferay.portal.kernel.exception.SystemException,
NoSuchVoteException
- Throws:
com.liferay.portal.kernel.exception.SystemException
NoSuchVoteException
fetchByQ_U
public static PollsVote fetchByQ_U(long questionId,
long userId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
fetchByQ_U
public static PollsVote fetchByQ_U(long questionId,
long userId,
boolean retrieveFromCache)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findAll
public static java.util.List<PollsVote> findAll()
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findAll
public static java.util.List<PollsVote> findAll(int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findAll
public static java.util.List<PollsVote> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
removeByQuestionId
public static void removeByQuestionId(long questionId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
removeByChoiceId
public static void removeByChoiceId(long choiceId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
removeByQ_U
public static void removeByQ_U(long questionId,
long userId)
throws com.liferay.portal.kernel.exception.SystemException,
NoSuchVoteException
- Throws:
com.liferay.portal.kernel.exception.SystemException
NoSuchVoteException
removeAll
public static void removeAll()
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
countByQuestionId
public static int countByQuestionId(long questionId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
countByChoiceId
public static int countByChoiceId(long choiceId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
countByQ_U
public static int countByQ_U(long questionId,
long userId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
countAll
public static int countAll()
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getPersistence
public static PollsVotePersistence getPersistence()
setPersistence
public void setPersistence(PollsVotePersistence persistence)