|
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<PollsChoice>
com.liferay.portlet.polls.service.persistence.PollsChoicePersistenceImpl
public class PollsChoicePersistenceImpl
PollsChoicePersistence,
PollsChoiceUtil| 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_Q_N
|
static FinderPath |
FINDER_PATH_COUNT_BY_QUESTIONID
|
static FinderPath |
FINDER_PATH_COUNT_BY_UUID
|
static FinderPath |
FINDER_PATH_FETCH_BY_Q_N
|
static FinderPath |
FINDER_PATH_FIND_ALL
|
static FinderPath |
FINDER_PATH_FIND_BY_QUESTIONID
|
static FinderPath |
FINDER_PATH_FIND_BY_UUID
|
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 | |
|---|---|
PollsChoicePersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
void |
cacheResult(List<PollsChoice> pollsChoices)
|
void |
cacheResult(PollsChoice pollsChoice)
|
void |
clearCache()
Clears the cache for all instances of this model. |
void |
clearCache(PollsChoice pollsChoice)
Clears the cache for one instance of this model. |
int |
countAll()
|
int |
countByQ_N(long questionId,
String name)
|
int |
countByQuestionId(long questionId)
|
int |
countByUuid(String uuid)
|
PollsChoice |
create(long choiceId)
|
PollsChoice |
fetchByPrimaryKey(long choiceId)
|
PollsChoice |
fetchByPrimaryKey(Serializable primaryKey)
Finds an instance of this model by its primary key, or return null if it could not be found. |
PollsChoice |
fetchByQ_N(long questionId,
String name)
|
PollsChoice |
fetchByQ_N(long questionId,
String name,
boolean retrieveFromCache)
|
List<PollsChoice> |
findAll()
|
List<PollsChoice> |
findAll(int start,
int end)
|
List<PollsChoice> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
|
PollsChoice |
findByPrimaryKey(long choiceId)
|
PollsChoice |
findByPrimaryKey(Serializable primaryKey)
Finds an instance of this model by its primary key, or throw an exception if it could not be found. |
PollsChoice |
findByQ_N(long questionId,
String name)
|
PollsChoice |
findByQuestionId_First(long questionId,
OrderByComparator orderByComparator)
|
PollsChoice |
findByQuestionId_Last(long questionId,
OrderByComparator orderByComparator)
|
PollsChoice[] |
findByQuestionId_PrevAndNext(long choiceId,
long questionId,
OrderByComparator orderByComparator)
|
List<PollsChoice> |
findByQuestionId(long questionId)
|
List<PollsChoice> |
findByQuestionId(long questionId,
int start,
int end)
|
List<PollsChoice> |
findByQuestionId(long questionId,
int start,
int end,
OrderByComparator orderByComparator)
|
PollsChoice |
findByUuid_First(String uuid,
OrderByComparator orderByComparator)
|
PollsChoice |
findByUuid_Last(String uuid,
OrderByComparator orderByComparator)
|
PollsChoice[] |
findByUuid_PrevAndNext(long choiceId,
String uuid,
OrderByComparator orderByComparator)
|
List<PollsChoice> |
findByUuid(String uuid)
|
List<PollsChoice> |
findByUuid(String uuid,
int start,
int end)
|
List<PollsChoice> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator orderByComparator)
|
protected PollsChoice |
getByQuestionId_PrevAndNext(Session session,
PollsChoice pollsChoice,
long questionId,
OrderByComparator orderByComparator,
boolean previous)
|
protected PollsChoice |
getByUuid_PrevAndNext(Session session,
PollsChoice pollsChoice,
String uuid,
OrderByComparator orderByComparator,
boolean previous)
|
PollsChoice |
remove(long choiceId)
|
PollsChoice |
remove(Serializable primaryKey)
Removes the model instance identified by the primary key from the database, and notifies the appropriate model listeners. |
void |
removeAll()
|
void |
removeByQ_N(long questionId,
String name)
|
void |
removeByQuestionId(long questionId)
|
void |
removeByUuid(String uuid)
|
protected PollsChoice |
removeImpl(PollsChoice pollsChoice)
Removes the model instance from the database. |
protected PollsChoice |
toUnwrappedModel(PollsChoice pollsChoice)
|
PollsChoice |
updateImpl(PollsChoice pollsChoice,
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_UUID
public static final FinderPath FINDER_PATH_COUNT_BY_UUID
public static final FinderPath FINDER_PATH_FIND_BY_QUESTIONID
public static final FinderPath FINDER_PATH_COUNT_BY_QUESTIONID
public static final FinderPath FINDER_PATH_FETCH_BY_Q_N
public static final FinderPath FINDER_PATH_COUNT_BY_Q_N
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 PollsChoicePersistenceImpl()
| Method Detail |
|---|
public void cacheResult(PollsChoice pollsChoice)
cacheResult in interface PollsChoicePersistencepublic void cacheResult(List<PollsChoice> pollsChoices)
cacheResult in interface PollsChoicePersistencepublic 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<PollsChoice>clearCache in class BasePersistenceImpl<PollsChoice>public void clearCache(PollsChoice pollsChoice)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<PollsChoice>clearCache in class BasePersistenceImpl<PollsChoice>pollsChoice - the instance of this model to clear the cache forpublic PollsChoice create(long choiceId)
create in interface PollsChoicePersistence
public PollsChoice remove(Serializable primaryKey)
throws NoSuchModelException,
SystemException
BasePersistence
remove in interface BasePersistence<PollsChoice>remove in class BasePersistenceImpl<PollsChoice>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 PollsChoice remove(long choiceId)
throws NoSuchChoiceException,
SystemException
remove in interface PollsChoicePersistenceNoSuchChoiceException
SystemException
protected PollsChoice removeImpl(PollsChoice pollsChoice)
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<PollsChoice>pollsChoice - the model instance to remove
SystemException - if a system exception occurred
public PollsChoice updateImpl(PollsChoice pollsChoice,
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 PollsChoicePersistenceupdateImpl in class BasePersistenceImpl<PollsChoice>pollsChoice - 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 PollsChoice toUnwrappedModel(PollsChoice pollsChoice)
public PollsChoice findByPrimaryKey(Serializable primaryKey)
throws NoSuchModelException,
SystemException
BasePersistence
findByPrimaryKey in interface BasePersistence<PollsChoice>findByPrimaryKey in class BasePersistenceImpl<PollsChoice>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 PollsChoice findByPrimaryKey(long choiceId)
throws NoSuchChoiceException,
SystemException
findByPrimaryKey in interface PollsChoicePersistenceNoSuchChoiceException
SystemException
public PollsChoice fetchByPrimaryKey(Serializable primaryKey)
throws SystemException
BasePersistencenull if it could not be found.
fetchByPrimaryKey in interface BasePersistence<PollsChoice>fetchByPrimaryKey in class BasePersistenceImpl<PollsChoice>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 PollsChoice fetchByPrimaryKey(long choiceId)
throws SystemException
fetchByPrimaryKey in interface PollsChoicePersistenceSystemException
public List<PollsChoice> findByUuid(String uuid)
throws SystemException
findByUuid in interface PollsChoicePersistenceSystemException
public List<PollsChoice> findByUuid(String uuid,
int start,
int end)
throws SystemException
findByUuid in interface PollsChoicePersistenceSystemException
public List<PollsChoice> findByUuid(String uuid,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
findByUuid in interface PollsChoicePersistenceSystemException
public PollsChoice findByUuid_First(String uuid,
OrderByComparator orderByComparator)
throws NoSuchChoiceException,
SystemException
findByUuid_First in interface PollsChoicePersistenceNoSuchChoiceException
SystemException
public PollsChoice findByUuid_Last(String uuid,
OrderByComparator orderByComparator)
throws NoSuchChoiceException,
SystemException
findByUuid_Last in interface PollsChoicePersistenceNoSuchChoiceException
SystemException
public PollsChoice[] findByUuid_PrevAndNext(long choiceId,
String uuid,
OrderByComparator orderByComparator)
throws NoSuchChoiceException,
SystemException
findByUuid_PrevAndNext in interface PollsChoicePersistenceNoSuchChoiceException
SystemException
protected PollsChoice getByUuid_PrevAndNext(Session session,
PollsChoice pollsChoice,
String uuid,
OrderByComparator orderByComparator,
boolean previous)
public List<PollsChoice> findByQuestionId(long questionId)
throws SystemException
findByQuestionId in interface PollsChoicePersistenceSystemException
public List<PollsChoice> findByQuestionId(long questionId,
int start,
int end)
throws SystemException
findByQuestionId in interface PollsChoicePersistenceSystemException
public List<PollsChoice> findByQuestionId(long questionId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
findByQuestionId in interface PollsChoicePersistenceSystemException
public PollsChoice findByQuestionId_First(long questionId,
OrderByComparator orderByComparator)
throws NoSuchChoiceException,
SystemException
findByQuestionId_First in interface PollsChoicePersistenceNoSuchChoiceException
SystemException
public PollsChoice findByQuestionId_Last(long questionId,
OrderByComparator orderByComparator)
throws NoSuchChoiceException,
SystemException
findByQuestionId_Last in interface PollsChoicePersistenceNoSuchChoiceException
SystemException
public PollsChoice[] findByQuestionId_PrevAndNext(long choiceId,
long questionId,
OrderByComparator orderByComparator)
throws NoSuchChoiceException,
SystemException
findByQuestionId_PrevAndNext in interface PollsChoicePersistenceNoSuchChoiceException
SystemException
protected PollsChoice getByQuestionId_PrevAndNext(Session session,
PollsChoice pollsChoice,
long questionId,
OrderByComparator orderByComparator,
boolean previous)
public PollsChoice findByQ_N(long questionId,
String name)
throws NoSuchChoiceException,
SystemException
findByQ_N in interface PollsChoicePersistenceNoSuchChoiceException
SystemException
public PollsChoice fetchByQ_N(long questionId,
String name)
throws SystemException
fetchByQ_N in interface PollsChoicePersistenceSystemException
public PollsChoice fetchByQ_N(long questionId,
String name,
boolean retrieveFromCache)
throws SystemException
fetchByQ_N in interface PollsChoicePersistenceSystemException
public List<PollsChoice> findAll()
throws SystemException
findAll in interface PollsChoicePersistenceSystemException
public List<PollsChoice> findAll(int start,
int end)
throws SystemException
findAll in interface PollsChoicePersistenceSystemException
public List<PollsChoice> findAll(int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
findAll in interface PollsChoicePersistenceSystemException
public void removeByUuid(String uuid)
throws SystemException
removeByUuid in interface PollsChoicePersistenceSystemException
public void removeByQuestionId(long questionId)
throws SystemException
removeByQuestionId in interface PollsChoicePersistenceSystemException
public void removeByQ_N(long questionId,
String name)
throws NoSuchChoiceException,
SystemException
removeByQ_N in interface PollsChoicePersistenceNoSuchChoiceException
SystemException
public void removeAll()
throws SystemException
removeAll in interface PollsChoicePersistenceSystemException
public int countByUuid(String uuid)
throws SystemException
countByUuid in interface PollsChoicePersistenceSystemException
public int countByQuestionId(long questionId)
throws SystemException
countByQuestionId in interface PollsChoicePersistenceSystemException
public int countByQ_N(long questionId,
String name)
throws SystemException
countByQ_N in interface PollsChoicePersistenceSystemException
public int countAll()
throws SystemException
countAll in interface PollsChoicePersistenceSystemExceptionpublic void afterPropertiesSet()
|
Liferay 6.0.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||