@ProviderType
public class PollsChoicePersistenceImpl
extends com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.polls.model.PollsChoice>
implements com.liferay.polls.service.persistence.PollsChoicePersistence
Caching information and settings can be found in portal.properties
PollsChoicePersistence,
PollsChoiceUtil| Modifier and Type | Field and Description |
|---|---|
protected com.liferay.portal.kernel.service.persistence.CompanyProvider |
companyProvider |
protected com.liferay.portal.kernel.dao.orm.EntityCache |
entityCache |
static java.lang.String |
FINDER_CLASS_NAME_ENTITY |
static java.lang.String |
FINDER_CLASS_NAME_LIST_WITH_PAGINATION |
static java.lang.String |
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_ALL |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_Q_N |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_QUESTIONID |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_UUID |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_UUID_C |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_UUID_G |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_FETCH_BY_Q_N |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_FETCH_BY_UUID_G |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_ALL |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_QUESTIONID |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_QUESTIONID |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C |
protected com.liferay.portal.kernel.dao.orm.FinderCache |
finderCache |
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, nullModel, 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 and Description |
|---|
PollsChoicePersistenceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Initializes the polls choice persistence.
|
void |
cacheResult(java.util.List<com.liferay.polls.model.PollsChoice> pollsChoices)
Caches the polls choices in the entity cache if it is enabled.
|
void |
cacheResult(com.liferay.polls.model.PollsChoice pollsChoice)
Caches the polls choice in the entity cache if it is enabled.
|
protected void |
cacheUniqueFindersCache(PollsChoiceModelImpl pollsChoiceModelImpl,
boolean isNew) |
void |
clearCache()
Clears the cache for all polls choices.
|
void |
clearCache(java.util.List<com.liferay.polls.model.PollsChoice> pollsChoices) |
void |
clearCache(com.liferay.polls.model.PollsChoice pollsChoice)
Clears the cache for the polls choice.
|
protected void |
clearUniqueFindersCache(PollsChoiceModelImpl pollsChoiceModelImpl) |
int |
countAll()
Returns the number of polls choices.
|
int |
countByQ_N(long questionId,
java.lang.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(java.lang.String uuid,
long companyId)
Returns the number of polls choices where uuid = ? and companyId = ?.
|
int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of polls choices where uuid = ? and groupId = ?.
|
int |
countByUuid(java.lang.String uuid)
Returns the number of polls choices where uuid = ?.
|
com.liferay.polls.model.PollsChoice |
create(long choiceId)
Creates a new polls choice with the primary key.
|
void |
destroy() |
com.liferay.polls.model.PollsChoice |
fetchByPrimaryKey(long choiceId)
Returns the polls choice with the primary key or returns
null if it could not be found. |
com.liferay.polls.model.PollsChoice |
fetchByPrimaryKey(java.io.Serializable primaryKey)
Returns the polls choice with the primary key or returns
null if it could not be found. |
java.util.Map<java.io.Serializable,com.liferay.polls.model.PollsChoice> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
com.liferay.polls.model.PollsChoice |
fetchByQ_N(long questionId,
java.lang.String name)
Returns the polls choice where questionId = ? and name = ? or returns
null if it could not be found. |
com.liferay.polls.model.PollsChoice |
fetchByQ_N(long questionId,
java.lang.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. |
com.liferay.polls.model.PollsChoice |
fetchByQuestionId_First(long questionId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
Returns the first polls choice in the ordered set where questionId = ?.
|
com.liferay.polls.model.PollsChoice |
fetchByQuestionId_Last(long questionId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
Returns the last polls choice in the ordered set where questionId = ?.
|
com.liferay.polls.model.PollsChoice |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
Returns the first polls choice in the ordered set where uuid = ? and companyId = ?.
|
com.liferay.polls.model.PollsChoice |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
Returns the last polls choice in the ordered set where uuid = ? and companyId = ?.
|
com.liferay.polls.model.PollsChoice |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
Returns the first polls choice in the ordered set where uuid = ?.
|
com.liferay.polls.model.PollsChoice |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the polls choice where uuid = ? and groupId = ? or returns
null if it could not be found. |
com.liferay.polls.model.PollsChoice |
fetchByUUID_G(java.lang.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. |
com.liferay.polls.model.PollsChoice |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
Returns the last polls choice in the ordered set where uuid = ?.
|
java.util.List<com.liferay.polls.model.PollsChoice> |
findAll()
Returns all the polls choices.
|
java.util.List<com.liferay.polls.model.PollsChoice> |
findAll(int start,
int end)
Returns a range of all the polls choices.
|
java.util.List<com.liferay.polls.model.PollsChoice> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
Returns an ordered range of all the polls choices.
|
java.util.List<com.liferay.polls.model.PollsChoice> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the polls choices.
|
com.liferay.polls.model.PollsChoice |
findByPrimaryKey(long choiceId)
Returns the polls choice with the primary key or throws a
NoSuchChoiceException if it could not be found. |
com.liferay.polls.model.PollsChoice |
findByPrimaryKey(java.io.Serializable primaryKey)
Returns the polls choice with the primary key or throws a
NoSuchModelException if it could not be found. |
com.liferay.polls.model.PollsChoice |
findByQ_N(long questionId,
java.lang.String name)
Returns the polls choice where questionId = ? and name = ? or throws a
NoSuchChoiceException if it could not be found. |
com.liferay.polls.model.PollsChoice |
findByQuestionId_First(long questionId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
Returns the first polls choice in the ordered set where questionId = ?.
|
com.liferay.polls.model.PollsChoice |
findByQuestionId_Last(long questionId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
Returns the last polls choice in the ordered set where questionId = ?.
|
com.liferay.polls.model.PollsChoice[] |
findByQuestionId_PrevAndNext(long choiceId,
long questionId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
Returns the polls choices before and after the current polls choice in the ordered set where questionId = ?.
|
java.util.List<com.liferay.polls.model.PollsChoice> |
findByQuestionId(long questionId)
Returns all the polls choices where questionId = ?.
|
java.util.List<com.liferay.polls.model.PollsChoice> |
findByQuestionId(long questionId,
int start,
int end)
Returns a range of all the polls choices where questionId = ?.
|
java.util.List<com.liferay.polls.model.PollsChoice> |
findByQuestionId(long questionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
Returns an ordered range of all the polls choices where questionId = ?.
|
java.util.List<com.liferay.polls.model.PollsChoice> |
findByQuestionId(long questionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the polls choices where questionId = ?.
|
com.liferay.polls.model.PollsChoice |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
Returns the first polls choice in the ordered set where uuid = ? and companyId = ?.
|
com.liferay.polls.model.PollsChoice |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
Returns the last polls choice in the ordered set where uuid = ? and companyId = ?.
|
com.liferay.polls.model.PollsChoice[] |
findByUuid_C_PrevAndNext(long choiceId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
Returns the polls choices before and after the current polls choice in the ordered set where uuid = ? and companyId = ?.
|
java.util.List<com.liferay.polls.model.PollsChoice> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the polls choices where uuid = ? and companyId = ?.
|
java.util.List<com.liferay.polls.model.PollsChoice> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the polls choices where uuid = ? and companyId = ?.
|
java.util.List<com.liferay.polls.model.PollsChoice> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
Returns an ordered range of all the polls choices where uuid = ? and companyId = ?.
|
java.util.List<com.liferay.polls.model.PollsChoice> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the polls choices where uuid = ? and companyId = ?.
|
com.liferay.polls.model.PollsChoice |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
Returns the first polls choice in the ordered set where uuid = ?.
|
com.liferay.polls.model.PollsChoice |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the polls choice where uuid = ? and groupId = ? or throws a
NoSuchChoiceException if it could not be found. |
com.liferay.polls.model.PollsChoice |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
Returns the last polls choice in the ordered set where uuid = ?.
|
com.liferay.polls.model.PollsChoice[] |
findByUuid_PrevAndNext(long choiceId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
Returns the polls choices before and after the current polls choice in the ordered set where uuid = ?.
|
java.util.List<com.liferay.polls.model.PollsChoice> |
findByUuid(java.lang.String uuid)
Returns all the polls choices where uuid = ?.
|
java.util.List<com.liferay.polls.model.PollsChoice> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the polls choices where uuid = ?.
|
java.util.List<com.liferay.polls.model.PollsChoice> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
Returns an ordered range of all the polls choices where uuid = ?.
|
java.util.List<com.liferay.polls.model.PollsChoice> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the polls choices where uuid = ?.
|
java.util.Set<java.lang.String> |
getBadColumnNames() |
protected com.liferay.polls.model.PollsChoice |
getByQuestionId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.polls.model.PollsChoice pollsChoice,
long questionId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator,
boolean previous) |
protected com.liferay.polls.model.PollsChoice |
getByUuid_C_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.polls.model.PollsChoice pollsChoice,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator,
boolean previous) |
protected com.liferay.polls.model.PollsChoice |
getByUuid_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.polls.model.PollsChoice pollsChoice,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator,
boolean previous) |
protected java.util.Map<java.lang.String,java.lang.Integer> |
getTableColumnsMap() |
com.liferay.polls.model.PollsChoice |
remove(long choiceId)
Removes the polls choice with the primary key from the database.
|
com.liferay.polls.model.PollsChoice |
remove(java.io.Serializable primaryKey)
Removes the polls choice with the primary key from the database.
|
void |
removeAll()
Removes all the polls choices from the database.
|
com.liferay.polls.model.PollsChoice |
removeByQ_N(long questionId,
java.lang.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(java.lang.String uuid,
long companyId)
Removes all the polls choices where uuid = ? and companyId = ? from the database.
|
com.liferay.polls.model.PollsChoice |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the polls choice where uuid = ? and groupId = ? from the database.
|
void |
removeByUuid(java.lang.String uuid)
Removes all the polls choices where uuid = ? from the database.
|
protected com.liferay.polls.model.PollsChoice |
removeImpl(com.liferay.polls.model.PollsChoice pollsChoice) |
protected com.liferay.polls.model.PollsChoice |
toUnwrappedModel(com.liferay.polls.model.PollsChoice pollsChoice) |
com.liferay.polls.model.PollsChoice |
updateImpl(com.liferay.polls.model.PollsChoice pollsChoice) |
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, updatepublic static final java.lang.String FINDER_CLASS_NAME_ENTITY
public static final java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_UUID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_UUID_G
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_UUID_G
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_UUID_C
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_QUESTIONID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_QUESTIONID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_QUESTIONID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_Q_N
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_Q_N
@ServiceReference(type=com.liferay.portal.kernel.service.persistence.CompanyProviderWrapper.class) protected com.liferay.portal.kernel.service.persistence.CompanyProvider companyProvider
@ServiceReference(type=com.liferay.portal.kernel.dao.orm.EntityCache.class) protected com.liferay.portal.kernel.dao.orm.EntityCache entityCache
@ServiceReference(type=com.liferay.portal.kernel.dao.orm.FinderCache.class) protected com.liferay.portal.kernel.dao.orm.FinderCache finderCache
public java.util.List<com.liferay.polls.model.PollsChoice> findByUuid(java.lang.String uuid)
findByUuid in interface com.liferay.polls.service.persistence.PollsChoicePersistenceuuid - the uuidpublic java.util.List<com.liferay.polls.model.PollsChoice> findByUuid(java.lang.String uuid,
int start,
int end)
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 com.liferay.polls.service.persistence.PollsChoicePersistenceuuid - the uuidstart - the lower bound of the range of polls choicesend - the upper bound of the range of polls choices (not inclusive)public java.util.List<com.liferay.polls.model.PollsChoice> findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
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 com.liferay.polls.service.persistence.PollsChoicePersistenceuuid - 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)public java.util.List<com.liferay.polls.model.PollsChoice> findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator,
boolean retrieveFromCache)
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 com.liferay.polls.service.persistence.PollsChoicePersistenceuuid - 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)retrieveFromCache - whether to retrieve from the finder cachepublic com.liferay.polls.model.PollsChoice findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
throws com.liferay.polls.exception.NoSuchChoiceException
findByUuid_First in interface com.liferay.polls.service.persistence.PollsChoicePersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)com.liferay.polls.exception.NoSuchChoiceException - if a matching polls choice could not be foundpublic com.liferay.polls.model.PollsChoice fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
fetchByUuid_First in interface com.liferay.polls.service.persistence.PollsChoicePersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)null if a matching polls choice could not be foundpublic com.liferay.polls.model.PollsChoice findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
throws com.liferay.polls.exception.NoSuchChoiceException
findByUuid_Last in interface com.liferay.polls.service.persistence.PollsChoicePersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)com.liferay.polls.exception.NoSuchChoiceException - if a matching polls choice could not be foundpublic com.liferay.polls.model.PollsChoice fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
fetchByUuid_Last in interface com.liferay.polls.service.persistence.PollsChoicePersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)null if a matching polls choice could not be foundpublic com.liferay.polls.model.PollsChoice[] findByUuid_PrevAndNext(long choiceId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
throws com.liferay.polls.exception.NoSuchChoiceException
findByUuid_PrevAndNext in interface com.liferay.polls.service.persistence.PollsChoicePersistencechoiceId - the primary key of the current polls choiceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)com.liferay.polls.exception.NoSuchChoiceException - if a polls choice with the primary key could not be foundprotected com.liferay.polls.model.PollsChoice getByUuid_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.polls.model.PollsChoice pollsChoice,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator,
boolean previous)
public void removeByUuid(java.lang.String uuid)
removeByUuid in interface com.liferay.polls.service.persistence.PollsChoicePersistenceuuid - the uuidpublic int countByUuid(java.lang.String uuid)
countByUuid in interface com.liferay.polls.service.persistence.PollsChoicePersistenceuuid - the uuidpublic com.liferay.polls.model.PollsChoice findByUUID_G(java.lang.String uuid,
long groupId)
throws com.liferay.polls.exception.NoSuchChoiceException
NoSuchChoiceException if it could not be found.findByUUID_G in interface com.liferay.polls.service.persistence.PollsChoicePersistenceuuid - the uuidgroupId - the group IDcom.liferay.polls.exception.NoSuchChoiceException - if a matching polls choice could not be foundpublic com.liferay.polls.model.PollsChoice fetchByUUID_G(java.lang.String uuid,
long groupId)
null if it could not be found. Uses the finder cache.fetchByUUID_G in interface com.liferay.polls.service.persistence.PollsChoicePersistenceuuid - the uuidgroupId - the group IDnull if a matching polls choice could not be foundpublic com.liferay.polls.model.PollsChoice fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.fetchByUUID_G in interface com.liferay.polls.service.persistence.PollsChoicePersistenceuuid - the uuidgroupId - the group IDretrieveFromCache - whether to retrieve from the finder cachenull if a matching polls choice could not be foundpublic com.liferay.polls.model.PollsChoice removeByUUID_G(java.lang.String uuid,
long groupId)
throws com.liferay.polls.exception.NoSuchChoiceException
removeByUUID_G in interface com.liferay.polls.service.persistence.PollsChoicePersistenceuuid - the uuidgroupId - the group IDcom.liferay.polls.exception.NoSuchChoiceExceptionpublic int countByUUID_G(java.lang.String uuid,
long groupId)
countByUUID_G in interface com.liferay.polls.service.persistence.PollsChoicePersistenceuuid - the uuidgroupId - the group IDpublic java.util.List<com.liferay.polls.model.PollsChoice> findByUuid_C(java.lang.String uuid,
long companyId)
findByUuid_C in interface com.liferay.polls.service.persistence.PollsChoicePersistenceuuid - the uuidcompanyId - the company IDpublic java.util.List<com.liferay.polls.model.PollsChoice> findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
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 com.liferay.polls.service.persistence.PollsChoicePersistenceuuid - 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)public java.util.List<com.liferay.polls.model.PollsChoice> findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
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 com.liferay.polls.service.persistence.PollsChoicePersistenceuuid - 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)public java.util.List<com.liferay.polls.model.PollsChoice> findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator,
boolean retrieveFromCache)
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 com.liferay.polls.service.persistence.PollsChoicePersistenceuuid - 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)retrieveFromCache - whether to retrieve from the finder cachepublic com.liferay.polls.model.PollsChoice findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
throws com.liferay.polls.exception.NoSuchChoiceException
findByUuid_C_First in interface com.liferay.polls.service.persistence.PollsChoicePersistenceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.polls.exception.NoSuchChoiceException - if a matching polls choice could not be foundpublic com.liferay.polls.model.PollsChoice fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
fetchByUuid_C_First in interface com.liferay.polls.service.persistence.PollsChoicePersistenceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching polls choice could not be foundpublic com.liferay.polls.model.PollsChoice findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
throws com.liferay.polls.exception.NoSuchChoiceException
findByUuid_C_Last in interface com.liferay.polls.service.persistence.PollsChoicePersistenceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.polls.exception.NoSuchChoiceException - if a matching polls choice could not be foundpublic com.liferay.polls.model.PollsChoice fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
fetchByUuid_C_Last in interface com.liferay.polls.service.persistence.PollsChoicePersistenceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching polls choice could not be foundpublic com.liferay.polls.model.PollsChoice[] findByUuid_C_PrevAndNext(long choiceId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
throws com.liferay.polls.exception.NoSuchChoiceException
findByUuid_C_PrevAndNext in interface com.liferay.polls.service.persistence.PollsChoicePersistencechoiceId - the primary key of the current polls choiceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.polls.exception.NoSuchChoiceException - if a polls choice with the primary key could not be foundprotected com.liferay.polls.model.PollsChoice getByUuid_C_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.polls.model.PollsChoice pollsChoice,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator,
boolean previous)
public void removeByUuid_C(java.lang.String uuid,
long companyId)
removeByUuid_C in interface com.liferay.polls.service.persistence.PollsChoicePersistenceuuid - the uuidcompanyId - the company IDpublic int countByUuid_C(java.lang.String uuid,
long companyId)
countByUuid_C in interface com.liferay.polls.service.persistence.PollsChoicePersistenceuuid - the uuidcompanyId - the company IDpublic java.util.List<com.liferay.polls.model.PollsChoice> findByQuestionId(long questionId)
findByQuestionId in interface com.liferay.polls.service.persistence.PollsChoicePersistencequestionId - the question IDpublic java.util.List<com.liferay.polls.model.PollsChoice> findByQuestionId(long questionId,
int start,
int end)
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 com.liferay.polls.service.persistence.PollsChoicePersistencequestionId - the question IDstart - the lower bound of the range of polls choicesend - the upper bound of the range of polls choices (not inclusive)public java.util.List<com.liferay.polls.model.PollsChoice> findByQuestionId(long questionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
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 com.liferay.polls.service.persistence.PollsChoicePersistencequestionId - 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)public java.util.List<com.liferay.polls.model.PollsChoice> findByQuestionId(long questionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator,
boolean retrieveFromCache)
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 com.liferay.polls.service.persistence.PollsChoicePersistencequestionId - 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)retrieveFromCache - whether to retrieve from the finder cachepublic com.liferay.polls.model.PollsChoice findByQuestionId_First(long questionId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
throws com.liferay.polls.exception.NoSuchChoiceException
findByQuestionId_First in interface com.liferay.polls.service.persistence.PollsChoicePersistencequestionId - the question IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.polls.exception.NoSuchChoiceException - if a matching polls choice could not be foundpublic com.liferay.polls.model.PollsChoice fetchByQuestionId_First(long questionId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
fetchByQuestionId_First in interface com.liferay.polls.service.persistence.PollsChoicePersistencequestionId - the question IDorderByComparator - the comparator to order the set by (optionally null)null if a matching polls choice could not be foundpublic com.liferay.polls.model.PollsChoice findByQuestionId_Last(long questionId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
throws com.liferay.polls.exception.NoSuchChoiceException
findByQuestionId_Last in interface com.liferay.polls.service.persistence.PollsChoicePersistencequestionId - the question IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.polls.exception.NoSuchChoiceException - if a matching polls choice could not be foundpublic com.liferay.polls.model.PollsChoice fetchByQuestionId_Last(long questionId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
fetchByQuestionId_Last in interface com.liferay.polls.service.persistence.PollsChoicePersistencequestionId - the question IDorderByComparator - the comparator to order the set by (optionally null)null if a matching polls choice could not be foundpublic com.liferay.polls.model.PollsChoice[] findByQuestionId_PrevAndNext(long choiceId,
long questionId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
throws com.liferay.polls.exception.NoSuchChoiceException
findByQuestionId_PrevAndNext in interface com.liferay.polls.service.persistence.PollsChoicePersistencechoiceId - the primary key of the current polls choicequestionId - the question IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.polls.exception.NoSuchChoiceException - if a polls choice with the primary key could not be foundprotected com.liferay.polls.model.PollsChoice getByQuestionId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.polls.model.PollsChoice pollsChoice,
long questionId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator,
boolean previous)
public void removeByQuestionId(long questionId)
removeByQuestionId in interface com.liferay.polls.service.persistence.PollsChoicePersistencequestionId - the question IDpublic int countByQuestionId(long questionId)
countByQuestionId in interface com.liferay.polls.service.persistence.PollsChoicePersistencequestionId - the question IDpublic com.liferay.polls.model.PollsChoice findByQ_N(long questionId,
java.lang.String name)
throws com.liferay.polls.exception.NoSuchChoiceException
NoSuchChoiceException if it could not be found.findByQ_N in interface com.liferay.polls.service.persistence.PollsChoicePersistencequestionId - the question IDname - the namecom.liferay.polls.exception.NoSuchChoiceException - if a matching polls choice could not be foundpublic com.liferay.polls.model.PollsChoice fetchByQ_N(long questionId,
java.lang.String name)
null if it could not be found. Uses the finder cache.fetchByQ_N in interface com.liferay.polls.service.persistence.PollsChoicePersistencequestionId - the question IDname - the namenull if a matching polls choice could not be foundpublic com.liferay.polls.model.PollsChoice fetchByQ_N(long questionId,
java.lang.String name,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.fetchByQ_N in interface com.liferay.polls.service.persistence.PollsChoicePersistencequestionId - the question IDname - the nameretrieveFromCache - whether to retrieve from the finder cachenull if a matching polls choice could not be foundpublic com.liferay.polls.model.PollsChoice removeByQ_N(long questionId,
java.lang.String name)
throws com.liferay.polls.exception.NoSuchChoiceException
removeByQ_N in interface com.liferay.polls.service.persistence.PollsChoicePersistencequestionId - the question IDname - the namecom.liferay.polls.exception.NoSuchChoiceExceptionpublic int countByQ_N(long questionId,
java.lang.String name)
countByQ_N in interface com.liferay.polls.service.persistence.PollsChoicePersistencequestionId - the question IDname - the namepublic void cacheResult(com.liferay.polls.model.PollsChoice pollsChoice)
cacheResult in interface com.liferay.polls.service.persistence.PollsChoicePersistencepollsChoice - the polls choicepublic void cacheResult(java.util.List<com.liferay.polls.model.PollsChoice> pollsChoices)
cacheResult in interface com.liferay.polls.service.persistence.PollsChoicePersistencepollsChoices - the polls choicespublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.polls.model.PollsChoice>clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.polls.model.PollsChoice>public void clearCache(com.liferay.polls.model.PollsChoice pollsChoice)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.polls.model.PollsChoice>clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.polls.model.PollsChoice>public void clearCache(java.util.List<com.liferay.polls.model.PollsChoice> pollsChoices)
clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.polls.model.PollsChoice>clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.polls.model.PollsChoice>protected void cacheUniqueFindersCache(PollsChoiceModelImpl pollsChoiceModelImpl, boolean isNew)
protected void clearUniqueFindersCache(PollsChoiceModelImpl pollsChoiceModelImpl)
public com.liferay.polls.model.PollsChoice create(long choiceId)
create in interface com.liferay.polls.service.persistence.PollsChoicePersistencechoiceId - the primary key for the new polls choicepublic com.liferay.polls.model.PollsChoice remove(long choiceId)
throws com.liferay.polls.exception.NoSuchChoiceException
remove in interface com.liferay.polls.service.persistence.PollsChoicePersistencechoiceId - the primary key of the polls choicecom.liferay.polls.exception.NoSuchChoiceException - if a polls choice with the primary key could not be foundpublic com.liferay.polls.model.PollsChoice remove(java.io.Serializable primaryKey)
throws com.liferay.polls.exception.NoSuchChoiceException
remove in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.polls.model.PollsChoice>remove in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.polls.model.PollsChoice>primaryKey - the primary key of the polls choicecom.liferay.polls.exception.NoSuchChoiceException - if a polls choice with the primary key could not be foundprotected com.liferay.polls.model.PollsChoice removeImpl(com.liferay.polls.model.PollsChoice pollsChoice)
removeImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.polls.model.PollsChoice>public com.liferay.polls.model.PollsChoice updateImpl(com.liferay.polls.model.PollsChoice pollsChoice)
updateImpl in interface com.liferay.polls.service.persistence.PollsChoicePersistenceupdateImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.polls.model.PollsChoice>protected com.liferay.polls.model.PollsChoice toUnwrappedModel(com.liferay.polls.model.PollsChoice pollsChoice)
public com.liferay.polls.model.PollsChoice findByPrimaryKey(java.io.Serializable primaryKey)
throws com.liferay.polls.exception.NoSuchChoiceException
NoSuchModelException if it could not be found.findByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.polls.model.PollsChoice>findByPrimaryKey in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.polls.model.PollsChoice>primaryKey - the primary key of the polls choicecom.liferay.polls.exception.NoSuchChoiceException - if a polls choice with the primary key could not be foundpublic com.liferay.polls.model.PollsChoice findByPrimaryKey(long choiceId)
throws com.liferay.polls.exception.NoSuchChoiceException
NoSuchChoiceException if it could not be found.findByPrimaryKey in interface com.liferay.polls.service.persistence.PollsChoicePersistencechoiceId - the primary key of the polls choicecom.liferay.polls.exception.NoSuchChoiceException - if a polls choice with the primary key could not be foundpublic com.liferay.polls.model.PollsChoice fetchByPrimaryKey(java.io.Serializable primaryKey)
null if it could not be found.fetchByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.polls.model.PollsChoice>fetchByPrimaryKey in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.polls.model.PollsChoice>primaryKey - the primary key of the polls choicenull if a polls choice with the primary key could not be foundpublic com.liferay.polls.model.PollsChoice fetchByPrimaryKey(long choiceId)
null if it could not be found.fetchByPrimaryKey in interface com.liferay.polls.service.persistence.PollsChoicePersistencechoiceId - the primary key of the polls choicenull if a polls choice with the primary key could not be foundpublic java.util.Map<java.io.Serializable,com.liferay.polls.model.PollsChoice> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys in interface com.liferay.polls.service.persistence.PollsChoicePersistencefetchByPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.polls.model.PollsChoice>fetchByPrimaryKeys in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.polls.model.PollsChoice>public java.util.List<com.liferay.polls.model.PollsChoice> findAll()
findAll in interface com.liferay.polls.service.persistence.PollsChoicePersistencepublic java.util.List<com.liferay.polls.model.PollsChoice> findAll(int start,
int end)
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 com.liferay.polls.service.persistence.PollsChoicePersistencestart - the lower bound of the range of polls choicesend - the upper bound of the range of polls choices (not inclusive)public java.util.List<com.liferay.polls.model.PollsChoice> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
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 com.liferay.polls.service.persistence.PollsChoicePersistencestart - 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)public java.util.List<com.liferay.polls.model.PollsChoice> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator,
boolean retrieveFromCache)
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 com.liferay.polls.service.persistence.PollsChoicePersistencestart - 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)retrieveFromCache - whether to retrieve from the finder cachepublic void removeAll()
removeAll in interface com.liferay.polls.service.persistence.PollsChoicePersistencepublic int countAll()
countAll in interface com.liferay.polls.service.persistence.PollsChoicePersistencepublic java.util.Set<java.lang.String> getBadColumnNames()
getBadColumnNames in interface com.liferay.polls.service.persistence.PollsChoicePersistencegetBadColumnNames in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.polls.model.PollsChoice>getBadColumnNames in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.polls.model.PollsChoice>protected java.util.Map<java.lang.String,java.lang.Integer> getTableColumnsMap()
getTableColumnsMap in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.polls.model.PollsChoice>public void afterPropertiesSet()
public void destroy()