|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.persistence.impl.BasePersistenceImpl<PollsChoice> com.liferay.portlet.polls.service.persistence.PollsChoicePersistenceImpl
public class PollsChoicePersistenceImpl
The persistence implementation for the polls choice service.
Caching information and settings can be found in portal.properties
PollsChoicePersistence
,
PollsChoiceUtil
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
---|
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, 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()
Initializes the polls choice persistence. |
void |
cacheResult(List<PollsChoice> pollsChoices)
Caches the polls choices in the entity cache if it is enabled. |
void |
cacheResult(PollsChoice pollsChoice)
Caches the polls choice in the entity cache if it is enabled. |
protected void |
cacheUniqueFindersCache(PollsChoice pollsChoice)
|
void |
clearCache()
Clears the cache for all polls choices. |
void |
clearCache(List<PollsChoice> pollsChoices)
Clears the cache for a List instances of this model. |
void |
clearCache(PollsChoice pollsChoice)
Clears the cache for the polls choice. |
protected void |
clearUniqueFindersCache(PollsChoice pollsChoice)
|
int |
countAll()
Returns the number of polls choices. |
int |
countByQ_N(long questionId,
String name)
Returns the number of polls choices where questionId = ? and name = ?. |
int |
countByQuestionId(long questionId)
Returns the number of polls choices where questionId = ?. |
int |
countByUuid_C(String uuid,
long companyId)
Returns the number of polls choices where uuid = ? and companyId = ?. |
int |
countByUUID_G(String uuid,
long groupId)
Returns the number of polls choices where uuid = ? and groupId = ?. |
int |
countByUuid(String uuid)
Returns the number of polls choices where uuid = ?. |
PollsChoice |
create(long choiceId)
Creates a new polls choice with the primary key. |
void |
destroy()
|
PollsChoice |
fetchByPrimaryKey(long choiceId)
Returns the polls choice with the primary key or returns null if it could not be found. |
PollsChoice |
fetchByPrimaryKey(Serializable primaryKey)
Returns the polls choice with the primary key or returns null if it could not be found. |
PollsChoice |
fetchByQ_N(long questionId,
String name)
Returns the polls choice where questionId = ? and name = ? or returns null if it could not be found. |
PollsChoice |
fetchByQ_N(long questionId,
String name,
boolean retrieveFromCache)
Returns the polls choice where questionId = ? and name = ? or returns null if it could not be found, optionally using the finder cache. |
PollsChoice |
fetchByQuestionId_First(long questionId,
OrderByComparator orderByComparator)
Returns the first polls choice in the ordered set where questionId = ?. |
PollsChoice |
fetchByQuestionId_Last(long questionId,
OrderByComparator orderByComparator)
Returns the last polls choice in the ordered set where questionId = ?. |
PollsChoice |
fetchByUuid_C_First(String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the first polls choice in the ordered set where uuid = ? and companyId = ?. |
PollsChoice |
fetchByUuid_C_Last(String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the last polls choice in the ordered set where uuid = ? and companyId = ?. |
PollsChoice |
fetchByUuid_First(String uuid,
OrderByComparator orderByComparator)
Returns the first polls choice in the ordered set where uuid = ?. |
PollsChoice |
fetchByUUID_G(String uuid,
long groupId)
Returns the polls choice where uuid = ? and groupId = ? or returns null if it could not be found. |
PollsChoice |
fetchByUUID_G(String uuid,
long groupId,
boolean retrieveFromCache)
Returns the polls choice where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache. |
PollsChoice |
fetchByUuid_Last(String uuid,
OrderByComparator orderByComparator)
Returns the last polls choice in the ordered set where uuid = ?. |
List<PollsChoice> |
findAll()
Returns all the polls choices. |
List<PollsChoice> |
findAll(int start,
int end)
Returns a range of all the polls choices. |
List<PollsChoice> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the polls choices. |
PollsChoice |
findByPrimaryKey(long choiceId)
Returns the polls choice with the primary key or throws a NoSuchChoiceException if it could not be found. |
PollsChoice |
findByPrimaryKey(Serializable primaryKey)
Returns the polls choice with the primary key or throws a NoSuchModelException if it could not be found. |
PollsChoice |
findByQ_N(long questionId,
String name)
Returns the polls choice where questionId = ? and name = ? or throws a NoSuchChoiceException if it could not be found. |
PollsChoice |
findByQuestionId_First(long questionId,
OrderByComparator orderByComparator)
Returns the first polls choice in the ordered set where questionId = ?. |
PollsChoice |
findByQuestionId_Last(long questionId,
OrderByComparator orderByComparator)
Returns the last polls choice in the ordered set where questionId = ?. |
PollsChoice[] |
findByQuestionId_PrevAndNext(long choiceId,
long questionId,
OrderByComparator orderByComparator)
Returns the polls choices before and after the current polls choice in the ordered set where questionId = ?. |
List<PollsChoice> |
findByQuestionId(long questionId)
Returns all the polls choices where questionId = ?. |
List<PollsChoice> |
findByQuestionId(long questionId,
int start,
int end)
Returns a range of all the polls choices where questionId = ?. |
List<PollsChoice> |
findByQuestionId(long questionId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the polls choices where questionId = ?. |
PollsChoice |
findByUuid_C_First(String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the first polls choice in the ordered set where uuid = ? and companyId = ?. |
PollsChoice |
findByUuid_C_Last(String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the last polls choice in the ordered set where uuid = ? and companyId = ?. |
PollsChoice[] |
findByUuid_C_PrevAndNext(long choiceId,
String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the polls choices before and after the current polls choice in the ordered set where uuid = ? and companyId = ?. |
List<PollsChoice> |
findByUuid_C(String uuid,
long companyId)
Returns all the polls choices where uuid = ? and companyId = ?. |
List<PollsChoice> |
findByUuid_C(String uuid,
long companyId,
int start,
int end)
Returns a range of all the polls choices where uuid = ? and companyId = ?. |
List<PollsChoice> |
findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the polls choices where uuid = ? and companyId = ?. |
PollsChoice |
findByUuid_First(String uuid,
OrderByComparator orderByComparator)
Returns the first polls choice in the ordered set where uuid = ?. |
PollsChoice |
findByUUID_G(String uuid,
long groupId)
Returns the polls choice where uuid = ? and groupId = ? or throws a NoSuchChoiceException if it could not be found. |
PollsChoice |
findByUuid_Last(String uuid,
OrderByComparator orderByComparator)
Returns the last polls choice in the ordered set where uuid = ?. |
PollsChoice[] |
findByUuid_PrevAndNext(long choiceId,
String uuid,
OrderByComparator orderByComparator)
Returns the polls choices before and after the current polls choice in the ordered set where uuid = ?. |
List<PollsChoice> |
findByUuid(String uuid)
Returns all the polls choices where uuid = ?. |
List<PollsChoice> |
findByUuid(String uuid,
int start,
int end)
Returns a range of all the polls choices where uuid = ?. |
List<PollsChoice> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the polls choices where uuid = ?. |
protected Set<String> |
getBadColumnNames()
|
protected PollsChoice |
getByQuestionId_PrevAndNext(Session session,
PollsChoice pollsChoice,
long questionId,
OrderByComparator orderByComparator,
boolean previous)
|
protected PollsChoice |
getByUuid_C_PrevAndNext(Session session,
PollsChoice pollsChoice,
String uuid,
long companyId,
OrderByComparator orderByComparator,
boolean previous)
|
protected PollsChoice |
getByUuid_PrevAndNext(Session session,
PollsChoice pollsChoice,
String uuid,
OrderByComparator orderByComparator,
boolean previous)
|
PollsChoice |
remove(long choiceId)
Removes the polls choice with the primary key from the database. |
PollsChoice |
remove(Serializable primaryKey)
Removes the polls choice with the primary key from the database. |
void |
removeAll()
Removes all the polls choices from the database. |
PollsChoice |
removeByQ_N(long questionId,
String name)
Removes the polls choice where questionId = ? and name = ? from the database. |
void |
removeByQuestionId(long questionId)
Removes all the polls choices where questionId = ? from the database. |
void |
removeByUuid_C(String uuid,
long companyId)
Removes all the polls choices where uuid = ? and companyId = ? from the database. |
PollsChoice |
removeByUUID_G(String uuid,
long groupId)
Removes the polls choice where uuid = ? and groupId = ? from the database. |
void |
removeByUuid(String uuid)
Removes all the polls choices where uuid = ? from the database. |
protected PollsChoice |
removeImpl(PollsChoice pollsChoice)
Removes the model instance from the database. |
protected PollsChoice |
toUnwrappedModel(PollsChoice pollsChoice)
|
PollsChoice |
updateImpl(PollsChoice pollsChoice)
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, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl |
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 |
---|
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update |
Field Detail |
---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID
public static final FinderPath FINDER_PATH_COUNT_BY_UUID
public static final FinderPath FINDER_PATH_FETCH_BY_UUID_G
public static final FinderPath FINDER_PATH_COUNT_BY_UUID_G
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C
public static final FinderPath FINDER_PATH_COUNT_BY_UUID_C
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_QUESTIONID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_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
Constructor Detail |
---|
public PollsChoicePersistenceImpl()
Method Detail |
---|
public List<PollsChoice> findByUuid(String uuid) throws SystemException
findByUuid
in interface PollsChoicePersistence
uuid
- the uuid
SystemException
- if a system exception occurredpublic List<PollsChoice> findByUuid(String uuid, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from PollsChoiceModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByUuid
in interface PollsChoicePersistence
uuid
- the uuidstart
- the lower bound of the range of polls choicesend
- the upper bound of the range of polls choices (not inclusive)
SystemException
- if a system exception occurredpublic List<PollsChoice> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from PollsChoiceModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByUuid
in interface PollsChoicePersistence
uuid
- the uuidstart
- the lower bound of the range of polls choicesend
- the upper bound of the range of polls choices (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic PollsChoice findByUuid_First(String uuid, OrderByComparator orderByComparator) throws NoSuchChoiceException, SystemException
findByUuid_First
in interface PollsChoicePersistence
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchChoiceException
- if a matching polls choice could not be found
SystemException
- if a system exception occurredpublic PollsChoice fetchByUuid_First(String uuid, OrderByComparator orderByComparator) throws SystemException
fetchByUuid_First
in interface PollsChoicePersistence
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching polls choice could not be found
SystemException
- if a system exception occurredpublic PollsChoice findByUuid_Last(String uuid, OrderByComparator orderByComparator) throws NoSuchChoiceException, SystemException
findByUuid_Last
in interface PollsChoicePersistence
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchChoiceException
- if a matching polls choice could not be found
SystemException
- if a system exception occurredpublic PollsChoice fetchByUuid_Last(String uuid, OrderByComparator orderByComparator) throws SystemException
fetchByUuid_Last
in interface PollsChoicePersistence
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching polls choice could not be found
SystemException
- if a system exception occurredpublic PollsChoice[] findByUuid_PrevAndNext(long choiceId, String uuid, OrderByComparator orderByComparator) throws NoSuchChoiceException, SystemException
findByUuid_PrevAndNext
in interface PollsChoicePersistence
choiceId
- the primary key of the current polls choiceuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchChoiceException
- if a polls choice with the primary key could not be found
SystemException
- if a system exception occurredprotected PollsChoice getByUuid_PrevAndNext(Session session, PollsChoice pollsChoice, String uuid, OrderByComparator orderByComparator, boolean previous)
public void removeByUuid(String uuid) throws SystemException
removeByUuid
in interface PollsChoicePersistence
uuid
- the uuid
SystemException
- if a system exception occurredpublic int countByUuid(String uuid) throws SystemException
countByUuid
in interface PollsChoicePersistence
uuid
- the uuid
SystemException
- if a system exception occurredpublic PollsChoice findByUUID_G(String uuid, long groupId) throws NoSuchChoiceException, SystemException
NoSuchChoiceException
if it could not be found.
findByUUID_G
in interface PollsChoicePersistence
uuid
- the uuidgroupId
- the group ID
NoSuchChoiceException
- if a matching polls choice could not be found
SystemException
- if a system exception occurredpublic PollsChoice fetchByUUID_G(String uuid, long groupId) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByUUID_G
in interface PollsChoicePersistence
uuid
- the uuidgroupId
- the group ID
null
if a matching polls choice could not be found
SystemException
- if a system exception occurredpublic PollsChoice fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByUUID_G
in interface PollsChoicePersistence
uuid
- the uuidgroupId
- the group IDretrieveFromCache
- whether to use the finder cache
null
if a matching polls choice could not be found
SystemException
- if a system exception occurredpublic PollsChoice removeByUUID_G(String uuid, long groupId) throws NoSuchChoiceException, SystemException
removeByUUID_G
in interface PollsChoicePersistence
uuid
- the uuidgroupId
- the group ID
SystemException
- if a system exception occurred
NoSuchChoiceException
public int countByUUID_G(String uuid, long groupId) throws SystemException
countByUUID_G
in interface PollsChoicePersistence
uuid
- the uuidgroupId
- the group ID
SystemException
- if a system exception occurredpublic List<PollsChoice> findByUuid_C(String uuid, long companyId) throws SystemException
findByUuid_C
in interface PollsChoicePersistence
uuid
- the uuidcompanyId
- the company ID
SystemException
- if a system exception occurredpublic List<PollsChoice> findByUuid_C(String uuid, long companyId, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from PollsChoiceModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByUuid_C
in interface PollsChoicePersistence
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of polls choicesend
- the upper bound of the range of polls choices (not inclusive)
SystemException
- if a system exception occurredpublic List<PollsChoice> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from PollsChoiceModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByUuid_C
in interface PollsChoicePersistence
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of polls choicesend
- the upper bound of the range of polls choices (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic PollsChoice findByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator) throws NoSuchChoiceException, SystemException
findByUuid_C_First
in interface PollsChoicePersistence
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchChoiceException
- if a matching polls choice could not be found
SystemException
- if a system exception occurredpublic PollsChoice fetchByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator) throws SystemException
fetchByUuid_C_First
in interface PollsChoicePersistence
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching polls choice could not be found
SystemException
- if a system exception occurredpublic PollsChoice findByUuid_C_Last(String uuid, long companyId, OrderByComparator orderByComparator) throws NoSuchChoiceException, SystemException
findByUuid_C_Last
in interface PollsChoicePersistence
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchChoiceException
- if a matching polls choice could not be found
SystemException
- if a system exception occurredpublic PollsChoice fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator orderByComparator) throws SystemException
fetchByUuid_C_Last
in interface PollsChoicePersistence
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching polls choice could not be found
SystemException
- if a system exception occurredpublic PollsChoice[] findByUuid_C_PrevAndNext(long choiceId, String uuid, long companyId, OrderByComparator orderByComparator) throws NoSuchChoiceException, SystemException
findByUuid_C_PrevAndNext
in interface PollsChoicePersistence
choiceId
- the primary key of the current polls choiceuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchChoiceException
- if a polls choice with the primary key could not be found
SystemException
- if a system exception occurredprotected PollsChoice getByUuid_C_PrevAndNext(Session session, PollsChoice pollsChoice, String uuid, long companyId, OrderByComparator orderByComparator, boolean previous)
public void removeByUuid_C(String uuid, long companyId) throws SystemException
removeByUuid_C
in interface PollsChoicePersistence
uuid
- the uuidcompanyId
- the company ID
SystemException
- if a system exception occurredpublic int countByUuid_C(String uuid, long companyId) throws SystemException
countByUuid_C
in interface PollsChoicePersistence
uuid
- the uuidcompanyId
- the company ID
SystemException
- if a system exception occurredpublic List<PollsChoice> findByQuestionId(long questionId) throws SystemException
findByQuestionId
in interface PollsChoicePersistence
questionId
- the question ID
SystemException
- if a system exception occurredpublic List<PollsChoice> findByQuestionId(long questionId, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from PollsChoiceModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByQuestionId
in interface PollsChoicePersistence
questionId
- the question IDstart
- the lower bound of the range of polls choicesend
- the upper bound of the range of polls choices (not inclusive)
SystemException
- if a system exception occurredpublic List<PollsChoice> findByQuestionId(long questionId, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from PollsChoiceModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByQuestionId
in interface PollsChoicePersistence
questionId
- the question IDstart
- the lower bound of the range of polls choicesend
- the upper bound of the range of polls choices (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic PollsChoice findByQuestionId_First(long questionId, OrderByComparator orderByComparator) throws NoSuchChoiceException, SystemException
findByQuestionId_First
in interface PollsChoicePersistence
questionId
- the question IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchChoiceException
- if a matching polls choice could not be found
SystemException
- if a system exception occurredpublic PollsChoice fetchByQuestionId_First(long questionId, OrderByComparator orderByComparator) throws SystemException
fetchByQuestionId_First
in interface PollsChoicePersistence
questionId
- the question IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching polls choice could not be found
SystemException
- if a system exception occurredpublic PollsChoice findByQuestionId_Last(long questionId, OrderByComparator orderByComparator) throws NoSuchChoiceException, SystemException
findByQuestionId_Last
in interface PollsChoicePersistence
questionId
- the question IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchChoiceException
- if a matching polls choice could not be found
SystemException
- if a system exception occurredpublic PollsChoice fetchByQuestionId_Last(long questionId, OrderByComparator orderByComparator) throws SystemException
fetchByQuestionId_Last
in interface PollsChoicePersistence
questionId
- the question IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching polls choice could not be found
SystemException
- if a system exception occurredpublic PollsChoice[] findByQuestionId_PrevAndNext(long choiceId, long questionId, OrderByComparator orderByComparator) throws NoSuchChoiceException, SystemException
findByQuestionId_PrevAndNext
in interface PollsChoicePersistence
choiceId
- the primary key of the current polls choicequestionId
- the question IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchChoiceException
- if a polls choice with the primary key could not be found
SystemException
- if a system exception occurredprotected PollsChoice getByQuestionId_PrevAndNext(Session session, PollsChoice pollsChoice, long questionId, OrderByComparator orderByComparator, boolean previous)
public void removeByQuestionId(long questionId) throws SystemException
removeByQuestionId
in interface PollsChoicePersistence
questionId
- the question ID
SystemException
- if a system exception occurredpublic int countByQuestionId(long questionId) throws SystemException
countByQuestionId
in interface PollsChoicePersistence
questionId
- the question ID
SystemException
- if a system exception occurredpublic PollsChoice findByQ_N(long questionId, String name) throws NoSuchChoiceException, SystemException
NoSuchChoiceException
if it could not be found.
findByQ_N
in interface PollsChoicePersistence
questionId
- the question IDname
- the name
NoSuchChoiceException
- if a matching polls choice could not be found
SystemException
- if a system exception occurredpublic PollsChoice fetchByQ_N(long questionId, String name) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByQ_N
in interface PollsChoicePersistence
questionId
- the question IDname
- the name
null
if a matching polls choice could not be found
SystemException
- if a system exception occurredpublic PollsChoice fetchByQ_N(long questionId, String name, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByQ_N
in interface PollsChoicePersistence
questionId
- the question IDname
- the nameretrieveFromCache
- whether to use the finder cache
null
if a matching polls choice could not be found
SystemException
- if a system exception occurredpublic PollsChoice removeByQ_N(long questionId, String name) throws NoSuchChoiceException, SystemException
removeByQ_N
in interface PollsChoicePersistence
questionId
- the question IDname
- the name
SystemException
- if a system exception occurred
NoSuchChoiceException
public int countByQ_N(long questionId, String name) throws SystemException
countByQ_N
in interface PollsChoicePersistence
questionId
- the question IDname
- the name
SystemException
- if a system exception occurredpublic void cacheResult(PollsChoice pollsChoice)
cacheResult
in interface PollsChoicePersistence
pollsChoice
- the polls choicepublic void cacheResult(List<PollsChoice> pollsChoices)
cacheResult
in interface PollsChoicePersistence
pollsChoices
- the polls choicespublic void clearCache()
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<PollsChoice>
clearCache
in class BasePersistenceImpl<PollsChoice>
public void clearCache(PollsChoice pollsChoice)
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 void clearCache(List<PollsChoice> pollsChoices)
BasePersistence
The EntityCache
and FinderCache
are both cleared by this
method.
clearCache
in interface BasePersistence<PollsChoice>
clearCache
in class BasePersistenceImpl<PollsChoice>
pollsChoices
- the List instances of this model to clear the cache forprotected void cacheUniqueFindersCache(PollsChoice pollsChoice)
protected void clearUniqueFindersCache(PollsChoice pollsChoice)
public PollsChoice create(long choiceId)
create
in interface PollsChoicePersistence
choiceId
- the primary key for the new polls choice
public PollsChoice remove(long choiceId) throws NoSuchChoiceException, SystemException
remove
in interface PollsChoicePersistence
choiceId
- the primary key of the polls choice
NoSuchChoiceException
- if a polls choice with the primary key could not be found
SystemException
- if a system exception occurredpublic PollsChoice remove(Serializable primaryKey) throws NoSuchChoiceException, SystemException
remove
in interface BasePersistence<PollsChoice>
remove
in class BasePersistenceImpl<PollsChoice>
primaryKey
- the primary key of the polls choice
NoSuchChoiceException
- if a polls choice with the primary key could not be found
SystemException
- if a system exception occurredprotected PollsChoice removeImpl(PollsChoice pollsChoice) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.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 occurredpublic PollsChoice updateImpl(PollsChoice pollsChoice) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.remove(BaseModel)
depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl
in interface PollsChoicePersistence
updateImpl
in class BasePersistenceImpl<PollsChoice>
pollsChoice
- the model instance to update
SystemException
- if a system exception occurredprotected PollsChoice toUnwrappedModel(PollsChoice pollsChoice)
public PollsChoice findByPrimaryKey(Serializable primaryKey) throws NoSuchChoiceException, SystemException
NoSuchModelException
if it could not be found.
findByPrimaryKey
in interface BasePersistence<PollsChoice>
findByPrimaryKey
in class BasePersistenceImpl<PollsChoice>
primaryKey
- the primary key of the polls choice
NoSuchChoiceException
- if a polls choice with the primary key could not be found
SystemException
- if a system exception occurredpublic PollsChoice findByPrimaryKey(long choiceId) throws NoSuchChoiceException, SystemException
NoSuchChoiceException
if it could not be found.
findByPrimaryKey
in interface PollsChoicePersistence
choiceId
- the primary key of the polls choice
NoSuchChoiceException
- if a polls choice with the primary key could not be found
SystemException
- if a system exception occurredpublic PollsChoice fetchByPrimaryKey(Serializable primaryKey) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface BasePersistence<PollsChoice>
fetchByPrimaryKey
in class BasePersistenceImpl<PollsChoice>
primaryKey
- the primary key of the polls choice
null
if a polls choice with the primary key could not be found
SystemException
- if a system exception occurredpublic PollsChoice fetchByPrimaryKey(long choiceId) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface PollsChoicePersistence
choiceId
- the primary key of the polls choice
null
if a polls choice with the primary key could not be found
SystemException
- if a system exception occurredpublic List<PollsChoice> findAll() throws SystemException
findAll
in interface PollsChoicePersistence
SystemException
- if a system exception occurredpublic List<PollsChoice> findAll(int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from PollsChoiceModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll
in interface PollsChoicePersistence
start
- the lower bound of the range of polls choicesend
- the upper bound of the range of polls choices (not inclusive)
SystemException
- if a system exception occurredpublic List<PollsChoice> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from PollsChoiceModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll
in interface PollsChoicePersistence
start
- the lower bound of the range of polls choicesend
- the upper bound of the range of polls choices (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic void removeAll() throws SystemException
removeAll
in interface PollsChoicePersistence
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface PollsChoicePersistence
SystemException
- if a system exception occurredprotected Set<String> getBadColumnNames()
getBadColumnNames
in class BasePersistenceImpl<PollsChoice>
public void afterPropertiesSet()
public void destroy()
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |