|
Liferay 6.0.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<PollsVote>
com.liferay.portlet.polls.service.persistence.PollsVotePersistenceImpl
public class PollsVotePersistenceImpl
PollsVotePersistence,
PollsVoteUtil| Field Summary | |
|---|---|
static String |
FINDER_CLASS_NAME_ENTITY
|
static String |
FINDER_CLASS_NAME_LIST
|
static FinderPath |
FINDER_PATH_COUNT_ALL
|
static FinderPath |
FINDER_PATH_COUNT_BY_CHOICEID
|
static FinderPath |
FINDER_PATH_COUNT_BY_Q_U
|
static FinderPath |
FINDER_PATH_COUNT_BY_QUESTIONID
|
static FinderPath |
FINDER_PATH_FETCH_BY_Q_U
|
static FinderPath |
FINDER_PATH_FIND_ALL
|
static FinderPath |
FINDER_PATH_FIND_BY_CHOICEID
|
static FinderPath |
FINDER_PATH_FIND_BY_QUESTIONID
|
protected PollsChoicePersistence |
pollsChoicePersistence
|
protected PollsQuestionPersistence |
pollsQuestionPersistence
|
protected PollsVotePersistence |
pollsVotePersistence
|
protected ResourcePersistence |
resourcePersistence
|
protected UserPersistence |
userPersistence
|
| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
COUNT_COLUMN_NAME, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR |
| Constructor Summary | |
|---|---|
PollsVotePersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
void |
cacheResult(List<PollsVote> pollsVotes)
|
void |
cacheResult(PollsVote pollsVote)
|
void |
clearCache()
Clears the cache for all instances of this model. |
void |
clearCache(PollsVote pollsVote)
Clears the cache for one instance of this model. |
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 |
fetchByPrimaryKey(Serializable primaryKey)
Finds an instance of this model by its primary key, or return null if it could not be found. |
PollsVote |
fetchByQ_U(long questionId,
long userId)
|
PollsVote |
fetchByQ_U(long questionId,
long userId,
boolean retrieveFromCache)
|
List<PollsVote> |
findAll()
|
List<PollsVote> |
findAll(int start,
int end)
|
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)
|
List<PollsVote> |
findByChoiceId(long choiceId)
|
List<PollsVote> |
findByChoiceId(long choiceId,
int start,
int end)
|
List<PollsVote> |
findByChoiceId(long choiceId,
int start,
int end,
OrderByComparator orderByComparator)
|
PollsVote |
findByPrimaryKey(long voteId)
|
PollsVote |
findByPrimaryKey(Serializable primaryKey)
Finds an instance of this model by its primary key, or throw an exception if it could not be found. |
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)
|
List<PollsVote> |
findByQuestionId(long questionId)
|
List<PollsVote> |
findByQuestionId(long questionId,
int start,
int end)
|
List<PollsVote> |
findByQuestionId(long questionId,
int start,
int end,
OrderByComparator orderByComparator)
|
protected PollsVote |
getByChoiceId_PrevAndNext(Session session,
PollsVote pollsVote,
long choiceId,
OrderByComparator orderByComparator,
boolean previous)
|
protected PollsVote |
getByQuestionId_PrevAndNext(Session session,
PollsVote pollsVote,
long questionId,
OrderByComparator orderByComparator,
boolean previous)
|
PollsVote |
remove(long voteId)
|
PollsVote |
remove(Serializable primaryKey)
Removes the model instance identified by the primary key from the database, and notifies the appropriate model listeners. |
void |
removeAll()
|
void |
removeByChoiceId(long choiceId)
|
void |
removeByQ_U(long questionId,
long userId)
|
void |
removeByQuestionId(long questionId)
|
protected PollsVote |
removeImpl(PollsVote pollsVote)
Removes the model instance from the database. |
protected PollsVote |
toUnwrappedModel(PollsVote pollsVote)
|
PollsVote |
updateImpl(PollsVote pollsVote,
boolean merge)
Updates the model instance in the database or adds it if it does not yet exist. |
| Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update |
| Field Detail |
|---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST
public static final FinderPath FINDER_PATH_FIND_BY_QUESTIONID
public static final FinderPath FINDER_PATH_COUNT_BY_QUESTIONID
public static final FinderPath FINDER_PATH_FIND_BY_CHOICEID
public static final FinderPath FINDER_PATH_COUNT_BY_CHOICEID
public static final FinderPath FINDER_PATH_FETCH_BY_Q_U
public static final FinderPath FINDER_PATH_COUNT_BY_Q_U
public static final FinderPath FINDER_PATH_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
@BeanReference(type=PollsChoicePersistence.class) protected PollsChoicePersistence pollsChoicePersistence
@BeanReference(type=PollsQuestionPersistence.class) protected PollsQuestionPersistence pollsQuestionPersistence
@BeanReference(type=PollsVotePersistence.class) protected PollsVotePersistence pollsVotePersistence
@BeanReference(type=ResourcePersistence.class) protected ResourcePersistence resourcePersistence
@BeanReference(type=UserPersistence.class) protected UserPersistence userPersistence
| Constructor Detail |
|---|
public PollsVotePersistenceImpl()
| Method Detail |
|---|
public void cacheResult(PollsVote pollsVote)
cacheResult in interface PollsVotePersistencepublic void cacheResult(List<PollsVote> pollsVotes)
cacheResult in interface PollsVotePersistencepublic void clearCache()
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
Caching information and settings can be found in
portal.properties
clearCache in interface BasePersistence<PollsVote>clearCache in class BasePersistenceImpl<PollsVote>public void clearCache(PollsVote pollsVote)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<PollsVote>clearCache in class BasePersistenceImpl<PollsVote>pollsVote - the instance of this model to clear the cache forpublic PollsVote create(long voteId)
create in interface PollsVotePersistence
public PollsVote remove(Serializable primaryKey)
throws NoSuchModelException,
SystemException
BasePersistence
remove in interface BasePersistence<PollsVote>remove in class BasePersistenceImpl<PollsVote>primaryKey - the primary key of the model instance to remove
NoSuchModelException - if an instance of this model with the
primary key does not exist
SystemException - if a system exception occurred
public PollsVote remove(long voteId)
throws NoSuchVoteException,
SystemException
remove in interface PollsVotePersistenceNoSuchVoteException
SystemException
protected PollsVote removeImpl(PollsVote pollsVote)
throws SystemException
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<PollsVote>pollsVote - the model instance to remove
SystemException - if a system exception occurred
public PollsVote updateImpl(PollsVote pollsVote,
boolean merge)
throws SystemException
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface PollsVotePersistenceupdateImpl in class BasePersistenceImpl<PollsVote>pollsVote - the model instance to updatemerge - whether to merge the model instance with the current
session. See BatchSession.update(
com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean)
for an explanation.
SystemException - if a system exception occurredprotected PollsVote toUnwrappedModel(PollsVote pollsVote)
public PollsVote findByPrimaryKey(Serializable primaryKey)
throws NoSuchModelException,
SystemException
BasePersistence
findByPrimaryKey in interface BasePersistence<PollsVote>findByPrimaryKey in class BasePersistenceImpl<PollsVote>primaryKey - the primary key of the model instance to find
NoSuchModelException - if an instance of this model with the
primary key does not exist
SystemException - if the primary key is null, or if a
system exception occurred
public PollsVote findByPrimaryKey(long voteId)
throws NoSuchVoteException,
SystemException
findByPrimaryKey in interface PollsVotePersistenceNoSuchVoteException
SystemException
public PollsVote fetchByPrimaryKey(Serializable primaryKey)
throws SystemException
BasePersistencenull if it could not be found.
fetchByPrimaryKey in interface BasePersistence<PollsVote>fetchByPrimaryKey in class BasePersistenceImpl<PollsVote>primaryKey - the primary key of the model instance to find
null if an instance of this
model with the primary key does not exist
SystemException - if the primary key is null, or if a
system exception occurred
public PollsVote fetchByPrimaryKey(long voteId)
throws SystemException
fetchByPrimaryKey in interface PollsVotePersistenceSystemException
public List<PollsVote> findByQuestionId(long questionId)
throws SystemException
findByQuestionId in interface PollsVotePersistenceSystemException
public List<PollsVote> findByQuestionId(long questionId,
int start,
int end)
throws SystemException
findByQuestionId in interface PollsVotePersistenceSystemException
public List<PollsVote> findByQuestionId(long questionId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
findByQuestionId in interface PollsVotePersistenceSystemException
public PollsVote findByQuestionId_First(long questionId,
OrderByComparator orderByComparator)
throws NoSuchVoteException,
SystemException
findByQuestionId_First in interface PollsVotePersistenceNoSuchVoteException
SystemException
public PollsVote findByQuestionId_Last(long questionId,
OrderByComparator orderByComparator)
throws NoSuchVoteException,
SystemException
findByQuestionId_Last in interface PollsVotePersistenceNoSuchVoteException
SystemException
public PollsVote[] findByQuestionId_PrevAndNext(long voteId,
long questionId,
OrderByComparator orderByComparator)
throws NoSuchVoteException,
SystemException
findByQuestionId_PrevAndNext in interface PollsVotePersistenceNoSuchVoteException
SystemException
protected PollsVote getByQuestionId_PrevAndNext(Session session,
PollsVote pollsVote,
long questionId,
OrderByComparator orderByComparator,
boolean previous)
public List<PollsVote> findByChoiceId(long choiceId)
throws SystemException
findByChoiceId in interface PollsVotePersistenceSystemException
public List<PollsVote> findByChoiceId(long choiceId,
int start,
int end)
throws SystemException
findByChoiceId in interface PollsVotePersistenceSystemException
public List<PollsVote> findByChoiceId(long choiceId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
findByChoiceId in interface PollsVotePersistenceSystemException
public PollsVote findByChoiceId_First(long choiceId,
OrderByComparator orderByComparator)
throws NoSuchVoteException,
SystemException
findByChoiceId_First in interface PollsVotePersistenceNoSuchVoteException
SystemException
public PollsVote findByChoiceId_Last(long choiceId,
OrderByComparator orderByComparator)
throws NoSuchVoteException,
SystemException
findByChoiceId_Last in interface PollsVotePersistenceNoSuchVoteException
SystemException
public PollsVote[] findByChoiceId_PrevAndNext(long voteId,
long choiceId,
OrderByComparator orderByComparator)
throws NoSuchVoteException,
SystemException
findByChoiceId_PrevAndNext in interface PollsVotePersistenceNoSuchVoteException
SystemException
protected PollsVote getByChoiceId_PrevAndNext(Session session,
PollsVote pollsVote,
long choiceId,
OrderByComparator orderByComparator,
boolean previous)
public PollsVote findByQ_U(long questionId,
long userId)
throws NoSuchVoteException,
SystemException
findByQ_U in interface PollsVotePersistenceNoSuchVoteException
SystemException
public PollsVote fetchByQ_U(long questionId,
long userId)
throws SystemException
fetchByQ_U in interface PollsVotePersistenceSystemException
public PollsVote fetchByQ_U(long questionId,
long userId,
boolean retrieveFromCache)
throws SystemException
fetchByQ_U in interface PollsVotePersistenceSystemException
public List<PollsVote> findAll()
throws SystemException
findAll in interface PollsVotePersistenceSystemException
public List<PollsVote> findAll(int start,
int end)
throws SystemException
findAll in interface PollsVotePersistenceSystemException
public List<PollsVote> findAll(int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
findAll in interface PollsVotePersistenceSystemException
public void removeByQuestionId(long questionId)
throws SystemException
removeByQuestionId in interface PollsVotePersistenceSystemException
public void removeByChoiceId(long choiceId)
throws SystemException
removeByChoiceId in interface PollsVotePersistenceSystemException
public void removeByQ_U(long questionId,
long userId)
throws NoSuchVoteException,
SystemException
removeByQ_U in interface PollsVotePersistenceNoSuchVoteException
SystemException
public void removeAll()
throws SystemException
removeAll in interface PollsVotePersistenceSystemException
public int countByQuestionId(long questionId)
throws SystemException
countByQuestionId in interface PollsVotePersistenceSystemException
public int countByChoiceId(long choiceId)
throws SystemException
countByChoiceId in interface PollsVotePersistenceSystemException
public int countByQ_U(long questionId,
long userId)
throws SystemException
countByQ_U in interface PollsVotePersistenceSystemException
public int countAll()
throws SystemException
countAll in interface PollsVotePersistenceSystemExceptionpublic void afterPropertiesSet()
|
Liferay 6.0.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||