@ProviderType
public class PollsQuestionPersistenceImpl
extends com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.polls.model.PollsQuestion>
implements com.liferay.polls.service.persistence.PollsQuestionPersistence
Caching information and settings can be found in portal.properties
PollsQuestionPersistence,
PollsQuestionUtil| 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_GROUPID |
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_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_GROUPID |
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_GROUPID |
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 |
|---|
PollsQuestionPersistenceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Initializes the polls question persistence.
|
void |
cacheResult(java.util.List<com.liferay.polls.model.PollsQuestion> pollsQuestions)
Caches the polls questions in the entity cache if it is enabled.
|
void |
cacheResult(com.liferay.polls.model.PollsQuestion pollsQuestion)
Caches the polls question in the entity cache if it is enabled.
|
protected void |
cacheUniqueFindersCache(PollsQuestionModelImpl pollsQuestionModelImpl,
boolean isNew) |
void |
clearCache()
Clears the cache for all polls questions.
|
void |
clearCache(java.util.List<com.liferay.polls.model.PollsQuestion> pollsQuestions) |
void |
clearCache(com.liferay.polls.model.PollsQuestion pollsQuestion)
Clears the cache for the polls question.
|
protected void |
clearUniqueFindersCache(PollsQuestionModelImpl pollsQuestionModelImpl) |
int |
countAll()
Returns the number of polls questions.
|
int |
countByGroupId(long groupId)
Returns the number of polls questions where groupId = ?.
|
int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of polls questions where uuid = ? and companyId = ?.
|
int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of polls questions where uuid = ? and groupId = ?.
|
int |
countByUuid(java.lang.String uuid)
Returns the number of polls questions where uuid = ?.
|
com.liferay.polls.model.PollsQuestion |
create(long questionId)
Creates a new polls question with the primary key.
|
void |
destroy() |
com.liferay.polls.model.PollsQuestion |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
Returns the first polls question in the ordered set where groupId = ?.
|
com.liferay.polls.model.PollsQuestion |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
Returns the last polls question in the ordered set where groupId = ?.
|
com.liferay.polls.model.PollsQuestion |
fetchByPrimaryKey(long questionId)
Returns the polls question with the primary key or returns
null if it could not be found. |
com.liferay.polls.model.PollsQuestion |
fetchByPrimaryKey(java.io.Serializable primaryKey)
Returns the polls question with the primary key or returns
null if it could not be found. |
java.util.Map<java.io.Serializable,com.liferay.polls.model.PollsQuestion> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
com.liferay.polls.model.PollsQuestion |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
Returns the first polls question in the ordered set where uuid = ? and companyId = ?.
|
com.liferay.polls.model.PollsQuestion |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
Returns the last polls question in the ordered set where uuid = ? and companyId = ?.
|
com.liferay.polls.model.PollsQuestion |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
Returns the first polls question in the ordered set where uuid = ?.
|
com.liferay.polls.model.PollsQuestion |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the polls question where uuid = ? and groupId = ? or returns
null if it could not be found. |
com.liferay.polls.model.PollsQuestion |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean retrieveFromCache)
Returns the polls question where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
com.liferay.polls.model.PollsQuestion |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
Returns the last polls question in the ordered set where uuid = ?.
|
int |
filterCountByGroupId(long groupId)
Returns the number of polls questions that the user has permission to view where groupId = ?.
|
com.liferay.polls.model.PollsQuestion[] |
filterFindByGroupId_PrevAndNext(long questionId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
Returns the polls questions before and after the current polls question in the ordered set of polls questions that the user has permission to view where groupId = ?.
|
java.util.List<com.liferay.polls.model.PollsQuestion> |
filterFindByGroupId(long groupId)
Returns all the polls questions that the user has permission to view where groupId = ?.
|
java.util.List<com.liferay.polls.model.PollsQuestion> |
filterFindByGroupId(long groupId,
int start,
int end)
Returns a range of all the polls questions that the user has permission to view where groupId = ?.
|
java.util.List<com.liferay.polls.model.PollsQuestion> |
filterFindByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
Returns an ordered range of all the polls questions that the user has permissions to view where groupId = ?.
|
protected com.liferay.polls.model.PollsQuestion |
filterGetByGroupId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.polls.model.PollsQuestion pollsQuestion,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator,
boolean previous) |
java.util.List<com.liferay.polls.model.PollsQuestion> |
findAll()
Returns all the polls questions.
|
java.util.List<com.liferay.polls.model.PollsQuestion> |
findAll(int start,
int end)
Returns a range of all the polls questions.
|
java.util.List<com.liferay.polls.model.PollsQuestion> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
Returns an ordered range of all the polls questions.
|
java.util.List<com.liferay.polls.model.PollsQuestion> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the polls questions.
|
com.liferay.polls.model.PollsQuestion |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
Returns the first polls question in the ordered set where groupId = ?.
|
com.liferay.polls.model.PollsQuestion |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
Returns the last polls question in the ordered set where groupId = ?.
|
com.liferay.polls.model.PollsQuestion[] |
findByGroupId_PrevAndNext(long questionId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
Returns the polls questions before and after the current polls question in the ordered set where groupId = ?.
|
java.util.List<com.liferay.polls.model.PollsQuestion> |
findByGroupId(long groupId)
Returns all the polls questions where groupId = ?.
|
java.util.List<com.liferay.polls.model.PollsQuestion> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the polls questions where groupId = ?.
|
java.util.List<com.liferay.polls.model.PollsQuestion> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
Returns an ordered range of all the polls questions where groupId = ?.
|
java.util.List<com.liferay.polls.model.PollsQuestion> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the polls questions where groupId = ?.
|
com.liferay.polls.model.PollsQuestion |
findByPrimaryKey(long questionId)
Returns the polls question with the primary key or throws a
NoSuchQuestionException if it could not be found. |
com.liferay.polls.model.PollsQuestion |
findByPrimaryKey(java.io.Serializable primaryKey)
Returns the polls question with the primary key or throws a
NoSuchModelException if it could not be found. |
com.liferay.polls.model.PollsQuestion |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
Returns the first polls question in the ordered set where uuid = ? and companyId = ?.
|
com.liferay.polls.model.PollsQuestion |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
Returns the last polls question in the ordered set where uuid = ? and companyId = ?.
|
com.liferay.polls.model.PollsQuestion[] |
findByUuid_C_PrevAndNext(long questionId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
Returns the polls questions before and after the current polls question in the ordered set where uuid = ? and companyId = ?.
|
java.util.List<com.liferay.polls.model.PollsQuestion> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the polls questions where uuid = ? and companyId = ?.
|
java.util.List<com.liferay.polls.model.PollsQuestion> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the polls questions where uuid = ? and companyId = ?.
|
java.util.List<com.liferay.polls.model.PollsQuestion> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
Returns an ordered range of all the polls questions where uuid = ? and companyId = ?.
|
java.util.List<com.liferay.polls.model.PollsQuestion> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the polls questions where uuid = ? and companyId = ?.
|
com.liferay.polls.model.PollsQuestion |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
Returns the first polls question in the ordered set where uuid = ?.
|
com.liferay.polls.model.PollsQuestion |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the polls question where uuid = ? and groupId = ? or throws a
NoSuchQuestionException if it could not be found. |
com.liferay.polls.model.PollsQuestion |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
Returns the last polls question in the ordered set where uuid = ?.
|
com.liferay.polls.model.PollsQuestion[] |
findByUuid_PrevAndNext(long questionId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
Returns the polls questions before and after the current polls question in the ordered set where uuid = ?.
|
java.util.List<com.liferay.polls.model.PollsQuestion> |
findByUuid(java.lang.String uuid)
Returns all the polls questions where uuid = ?.
|
java.util.List<com.liferay.polls.model.PollsQuestion> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the polls questions where uuid = ?.
|
java.util.List<com.liferay.polls.model.PollsQuestion> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
Returns an ordered range of all the polls questions where uuid = ?.
|
java.util.List<com.liferay.polls.model.PollsQuestion> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the polls questions where uuid = ?.
|
java.util.Set<java.lang.String> |
getBadColumnNames() |
protected com.liferay.polls.model.PollsQuestion |
getByGroupId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.polls.model.PollsQuestion pollsQuestion,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator,
boolean previous) |
protected com.liferay.polls.model.PollsQuestion |
getByUuid_C_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.polls.model.PollsQuestion pollsQuestion,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator,
boolean previous) |
protected com.liferay.polls.model.PollsQuestion |
getByUuid_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.polls.model.PollsQuestion pollsQuestion,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator,
boolean previous) |
protected java.util.Map<java.lang.String,java.lang.Integer> |
getTableColumnsMap() |
com.liferay.polls.model.PollsQuestion |
remove(long questionId)
Removes the polls question with the primary key from the database.
|
com.liferay.polls.model.PollsQuestion |
remove(java.io.Serializable primaryKey)
Removes the polls question with the primary key from the database.
|
void |
removeAll()
Removes all the polls questions from the database.
|
void |
removeByGroupId(long groupId)
Removes all the polls questions where groupId = ? from the database.
|
void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the polls questions where uuid = ? and companyId = ? from the database.
|
com.liferay.polls.model.PollsQuestion |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the polls question where uuid = ? and groupId = ? from the database.
|
void |
removeByUuid(java.lang.String uuid)
Removes all the polls questions where uuid = ? from the database.
|
protected com.liferay.polls.model.PollsQuestion |
removeImpl(com.liferay.polls.model.PollsQuestion pollsQuestion) |
protected com.liferay.polls.model.PollsQuestion |
toUnwrappedModel(com.liferay.polls.model.PollsQuestion pollsQuestion) |
com.liferay.polls.model.PollsQuestion |
updateImpl(com.liferay.polls.model.PollsQuestion pollsQuestion) |
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_GROUPID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_GROUPID
@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.PollsQuestion> findByUuid(java.lang.String uuid)
findByUuid in interface com.liferay.polls.service.persistence.PollsQuestionPersistenceuuid - the uuidpublic java.util.List<com.liferay.polls.model.PollsQuestion> 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 PollsQuestionModelImpl. 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.PollsQuestionPersistenceuuid - the uuidstart - the lower bound of the range of polls questionsend - the upper bound of the range of polls questions (not inclusive)public java.util.List<com.liferay.polls.model.PollsQuestion> findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> 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 PollsQuestionModelImpl. 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.PollsQuestionPersistenceuuid - the uuidstart - the lower bound of the range of polls questionsend - the upper bound of the range of polls questions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public java.util.List<com.liferay.polls.model.PollsQuestion> findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> 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 PollsQuestionModelImpl. 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.PollsQuestionPersistenceuuid - the uuidstart - the lower bound of the range of polls questionsend - the upper bound of the range of polls questions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic com.liferay.polls.model.PollsQuestion findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
throws com.liferay.polls.exception.NoSuchQuestionException
findByUuid_First in interface com.liferay.polls.service.persistence.PollsQuestionPersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)com.liferay.polls.exception.NoSuchQuestionException - if a matching polls question could not be foundpublic com.liferay.polls.model.PollsQuestion fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
fetchByUuid_First in interface com.liferay.polls.service.persistence.PollsQuestionPersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)null if a matching polls question could not be foundpublic com.liferay.polls.model.PollsQuestion findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
throws com.liferay.polls.exception.NoSuchQuestionException
findByUuid_Last in interface com.liferay.polls.service.persistence.PollsQuestionPersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)com.liferay.polls.exception.NoSuchQuestionException - if a matching polls question could not be foundpublic com.liferay.polls.model.PollsQuestion fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
fetchByUuid_Last in interface com.liferay.polls.service.persistence.PollsQuestionPersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)null if a matching polls question could not be foundpublic com.liferay.polls.model.PollsQuestion[] findByUuid_PrevAndNext(long questionId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
throws com.liferay.polls.exception.NoSuchQuestionException
findByUuid_PrevAndNext in interface com.liferay.polls.service.persistence.PollsQuestionPersistencequestionId - the primary key of the current polls questionuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)com.liferay.polls.exception.NoSuchQuestionException - if a polls question with the primary key could not be foundprotected com.liferay.polls.model.PollsQuestion getByUuid_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.polls.model.PollsQuestion pollsQuestion,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator,
boolean previous)
public void removeByUuid(java.lang.String uuid)
removeByUuid in interface com.liferay.polls.service.persistence.PollsQuestionPersistenceuuid - the uuidpublic int countByUuid(java.lang.String uuid)
countByUuid in interface com.liferay.polls.service.persistence.PollsQuestionPersistenceuuid - the uuidpublic com.liferay.polls.model.PollsQuestion findByUUID_G(java.lang.String uuid,
long groupId)
throws com.liferay.polls.exception.NoSuchQuestionException
NoSuchQuestionException if it could not be found.findByUUID_G in interface com.liferay.polls.service.persistence.PollsQuestionPersistenceuuid - the uuidgroupId - the group IDcom.liferay.polls.exception.NoSuchQuestionException - if a matching polls question could not be foundpublic com.liferay.polls.model.PollsQuestion 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.PollsQuestionPersistenceuuid - the uuidgroupId - the group IDnull if a matching polls question could not be foundpublic com.liferay.polls.model.PollsQuestion 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.PollsQuestionPersistenceuuid - the uuidgroupId - the group IDretrieveFromCache - whether to retrieve from the finder cachenull if a matching polls question could not be foundpublic com.liferay.polls.model.PollsQuestion removeByUUID_G(java.lang.String uuid,
long groupId)
throws com.liferay.polls.exception.NoSuchQuestionException
removeByUUID_G in interface com.liferay.polls.service.persistence.PollsQuestionPersistenceuuid - the uuidgroupId - the group IDcom.liferay.polls.exception.NoSuchQuestionExceptionpublic int countByUUID_G(java.lang.String uuid,
long groupId)
countByUUID_G in interface com.liferay.polls.service.persistence.PollsQuestionPersistenceuuid - the uuidgroupId - the group IDpublic java.util.List<com.liferay.polls.model.PollsQuestion> findByUuid_C(java.lang.String uuid,
long companyId)
findByUuid_C in interface com.liferay.polls.service.persistence.PollsQuestionPersistenceuuid - the uuidcompanyId - the company IDpublic java.util.List<com.liferay.polls.model.PollsQuestion> 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 PollsQuestionModelImpl. 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.PollsQuestionPersistenceuuid - the uuidcompanyId - the company IDstart - the lower bound of the range of polls questionsend - the upper bound of the range of polls questions (not inclusive)public java.util.List<com.liferay.polls.model.PollsQuestion> findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> 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 PollsQuestionModelImpl. 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.PollsQuestionPersistenceuuid - the uuidcompanyId - the company IDstart - the lower bound of the range of polls questionsend - the upper bound of the range of polls questions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public java.util.List<com.liferay.polls.model.PollsQuestion> findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> 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 PollsQuestionModelImpl. 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.PollsQuestionPersistenceuuid - the uuidcompanyId - the company IDstart - the lower bound of the range of polls questionsend - the upper bound of the range of polls questions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic com.liferay.polls.model.PollsQuestion findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
throws com.liferay.polls.exception.NoSuchQuestionException
findByUuid_C_First in interface com.liferay.polls.service.persistence.PollsQuestionPersistenceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.polls.exception.NoSuchQuestionException - if a matching polls question could not be foundpublic com.liferay.polls.model.PollsQuestion fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
fetchByUuid_C_First in interface com.liferay.polls.service.persistence.PollsQuestionPersistenceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching polls question could not be foundpublic com.liferay.polls.model.PollsQuestion findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
throws com.liferay.polls.exception.NoSuchQuestionException
findByUuid_C_Last in interface com.liferay.polls.service.persistence.PollsQuestionPersistenceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.polls.exception.NoSuchQuestionException - if a matching polls question could not be foundpublic com.liferay.polls.model.PollsQuestion fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
fetchByUuid_C_Last in interface com.liferay.polls.service.persistence.PollsQuestionPersistenceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching polls question could not be foundpublic com.liferay.polls.model.PollsQuestion[] findByUuid_C_PrevAndNext(long questionId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
throws com.liferay.polls.exception.NoSuchQuestionException
findByUuid_C_PrevAndNext in interface com.liferay.polls.service.persistence.PollsQuestionPersistencequestionId - the primary key of the current polls questionuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.polls.exception.NoSuchQuestionException - if a polls question with the primary key could not be foundprotected com.liferay.polls.model.PollsQuestion getByUuid_C_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.polls.model.PollsQuestion pollsQuestion,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator,
boolean previous)
public void removeByUuid_C(java.lang.String uuid,
long companyId)
removeByUuid_C in interface com.liferay.polls.service.persistence.PollsQuestionPersistenceuuid - the uuidcompanyId - the company IDpublic int countByUuid_C(java.lang.String uuid,
long companyId)
countByUuid_C in interface com.liferay.polls.service.persistence.PollsQuestionPersistenceuuid - the uuidcompanyId - the company IDpublic java.util.List<com.liferay.polls.model.PollsQuestion> findByGroupId(long groupId)
findByGroupId in interface com.liferay.polls.service.persistence.PollsQuestionPersistencegroupId - the group IDpublic java.util.List<com.liferay.polls.model.PollsQuestion> findByGroupId(long groupId,
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 PollsQuestionModelImpl. 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.
findByGroupId in interface com.liferay.polls.service.persistence.PollsQuestionPersistencegroupId - the group IDstart - the lower bound of the range of polls questionsend - the upper bound of the range of polls questions (not inclusive)public java.util.List<com.liferay.polls.model.PollsQuestion> findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> 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 PollsQuestionModelImpl. 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.
findByGroupId in interface com.liferay.polls.service.persistence.PollsQuestionPersistencegroupId - the group IDstart - the lower bound of the range of polls questionsend - the upper bound of the range of polls questions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public java.util.List<com.liferay.polls.model.PollsQuestion> findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> 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 PollsQuestionModelImpl. 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.
findByGroupId in interface com.liferay.polls.service.persistence.PollsQuestionPersistencegroupId - the group IDstart - the lower bound of the range of polls questionsend - the upper bound of the range of polls questions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic com.liferay.polls.model.PollsQuestion findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
throws com.liferay.polls.exception.NoSuchQuestionException
findByGroupId_First in interface com.liferay.polls.service.persistence.PollsQuestionPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.polls.exception.NoSuchQuestionException - if a matching polls question could not be foundpublic com.liferay.polls.model.PollsQuestion fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
fetchByGroupId_First in interface com.liferay.polls.service.persistence.PollsQuestionPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching polls question could not be foundpublic com.liferay.polls.model.PollsQuestion findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
throws com.liferay.polls.exception.NoSuchQuestionException
findByGroupId_Last in interface com.liferay.polls.service.persistence.PollsQuestionPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.polls.exception.NoSuchQuestionException - if a matching polls question could not be foundpublic com.liferay.polls.model.PollsQuestion fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
fetchByGroupId_Last in interface com.liferay.polls.service.persistence.PollsQuestionPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching polls question could not be foundpublic com.liferay.polls.model.PollsQuestion[] findByGroupId_PrevAndNext(long questionId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
throws com.liferay.polls.exception.NoSuchQuestionException
findByGroupId_PrevAndNext in interface com.liferay.polls.service.persistence.PollsQuestionPersistencequestionId - the primary key of the current polls questiongroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.polls.exception.NoSuchQuestionException - if a polls question with the primary key could not be foundprotected com.liferay.polls.model.PollsQuestion getByGroupId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.polls.model.PollsQuestion pollsQuestion,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator,
boolean previous)
public java.util.List<com.liferay.polls.model.PollsQuestion> filterFindByGroupId(long groupId)
filterFindByGroupId in interface com.liferay.polls.service.persistence.PollsQuestionPersistencegroupId - the group IDpublic java.util.List<com.liferay.polls.model.PollsQuestion> filterFindByGroupId(long groupId,
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 PollsQuestionModelImpl. 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.
filterFindByGroupId in interface com.liferay.polls.service.persistence.PollsQuestionPersistencegroupId - the group IDstart - the lower bound of the range of polls questionsend - the upper bound of the range of polls questions (not inclusive)public java.util.List<com.liferay.polls.model.PollsQuestion> filterFindByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> 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 PollsQuestionModelImpl. 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.
filterFindByGroupId in interface com.liferay.polls.service.persistence.PollsQuestionPersistencegroupId - the group IDstart - the lower bound of the range of polls questionsend - the upper bound of the range of polls questions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public com.liferay.polls.model.PollsQuestion[] filterFindByGroupId_PrevAndNext(long questionId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator)
throws com.liferay.polls.exception.NoSuchQuestionException
filterFindByGroupId_PrevAndNext in interface com.liferay.polls.service.persistence.PollsQuestionPersistencequestionId - the primary key of the current polls questiongroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.polls.exception.NoSuchQuestionException - if a polls question with the primary key could not be foundprotected com.liferay.polls.model.PollsQuestion filterGetByGroupId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.polls.model.PollsQuestion pollsQuestion,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> orderByComparator,
boolean previous)
public void removeByGroupId(long groupId)
removeByGroupId in interface com.liferay.polls.service.persistence.PollsQuestionPersistencegroupId - the group IDpublic int countByGroupId(long groupId)
countByGroupId in interface com.liferay.polls.service.persistence.PollsQuestionPersistencegroupId - the group IDpublic int filterCountByGroupId(long groupId)
filterCountByGroupId in interface com.liferay.polls.service.persistence.PollsQuestionPersistencegroupId - the group IDpublic void cacheResult(com.liferay.polls.model.PollsQuestion pollsQuestion)
cacheResult in interface com.liferay.polls.service.persistence.PollsQuestionPersistencepollsQuestion - the polls questionpublic void cacheResult(java.util.List<com.liferay.polls.model.PollsQuestion> pollsQuestions)
cacheResult in interface com.liferay.polls.service.persistence.PollsQuestionPersistencepollsQuestions - the polls questionspublic 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.PollsQuestion>clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.polls.model.PollsQuestion>public void clearCache(com.liferay.polls.model.PollsQuestion pollsQuestion)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.polls.model.PollsQuestion>clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.polls.model.PollsQuestion>public void clearCache(java.util.List<com.liferay.polls.model.PollsQuestion> pollsQuestions)
clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.polls.model.PollsQuestion>clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.polls.model.PollsQuestion>protected void cacheUniqueFindersCache(PollsQuestionModelImpl pollsQuestionModelImpl, boolean isNew)
protected void clearUniqueFindersCache(PollsQuestionModelImpl pollsQuestionModelImpl)
public com.liferay.polls.model.PollsQuestion create(long questionId)
create in interface com.liferay.polls.service.persistence.PollsQuestionPersistencequestionId - the primary key for the new polls questionpublic com.liferay.polls.model.PollsQuestion remove(long questionId)
throws com.liferay.polls.exception.NoSuchQuestionException
remove in interface com.liferay.polls.service.persistence.PollsQuestionPersistencequestionId - the primary key of the polls questioncom.liferay.polls.exception.NoSuchQuestionException - if a polls question with the primary key could not be foundpublic com.liferay.polls.model.PollsQuestion remove(java.io.Serializable primaryKey)
throws com.liferay.polls.exception.NoSuchQuestionException
remove in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.polls.model.PollsQuestion>remove in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.polls.model.PollsQuestion>primaryKey - the primary key of the polls questioncom.liferay.polls.exception.NoSuchQuestionException - if a polls question with the primary key could not be foundprotected com.liferay.polls.model.PollsQuestion removeImpl(com.liferay.polls.model.PollsQuestion pollsQuestion)
removeImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.polls.model.PollsQuestion>public com.liferay.polls.model.PollsQuestion updateImpl(com.liferay.polls.model.PollsQuestion pollsQuestion)
updateImpl in interface com.liferay.polls.service.persistence.PollsQuestionPersistenceupdateImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.polls.model.PollsQuestion>protected com.liferay.polls.model.PollsQuestion toUnwrappedModel(com.liferay.polls.model.PollsQuestion pollsQuestion)
public com.liferay.polls.model.PollsQuestion findByPrimaryKey(java.io.Serializable primaryKey)
throws com.liferay.polls.exception.NoSuchQuestionException
NoSuchModelException if it could not be found.findByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.polls.model.PollsQuestion>findByPrimaryKey in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.polls.model.PollsQuestion>primaryKey - the primary key of the polls questioncom.liferay.polls.exception.NoSuchQuestionException - if a polls question with the primary key could not be foundpublic com.liferay.polls.model.PollsQuestion findByPrimaryKey(long questionId)
throws com.liferay.polls.exception.NoSuchQuestionException
NoSuchQuestionException if it could not be found.findByPrimaryKey in interface com.liferay.polls.service.persistence.PollsQuestionPersistencequestionId - the primary key of the polls questioncom.liferay.polls.exception.NoSuchQuestionException - if a polls question with the primary key could not be foundpublic com.liferay.polls.model.PollsQuestion 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.PollsQuestion>fetchByPrimaryKey in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.polls.model.PollsQuestion>primaryKey - the primary key of the polls questionnull if a polls question with the primary key could not be foundpublic com.liferay.polls.model.PollsQuestion fetchByPrimaryKey(long questionId)
null if it could not be found.fetchByPrimaryKey in interface com.liferay.polls.service.persistence.PollsQuestionPersistencequestionId - the primary key of the polls questionnull if a polls question with the primary key could not be foundpublic java.util.Map<java.io.Serializable,com.liferay.polls.model.PollsQuestion> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys in interface com.liferay.polls.service.persistence.PollsQuestionPersistencefetchByPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.polls.model.PollsQuestion>fetchByPrimaryKeys in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.polls.model.PollsQuestion>public java.util.List<com.liferay.polls.model.PollsQuestion> findAll()
findAll in interface com.liferay.polls.service.persistence.PollsQuestionPersistencepublic java.util.List<com.liferay.polls.model.PollsQuestion> 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 PollsQuestionModelImpl. 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.PollsQuestionPersistencestart - the lower bound of the range of polls questionsend - the upper bound of the range of polls questions (not inclusive)public java.util.List<com.liferay.polls.model.PollsQuestion> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> 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 PollsQuestionModelImpl. 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.PollsQuestionPersistencestart - the lower bound of the range of polls questionsend - the upper bound of the range of polls questions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public java.util.List<com.liferay.polls.model.PollsQuestion> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsQuestion> 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 PollsQuestionModelImpl. 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.PollsQuestionPersistencestart - the lower bound of the range of polls questionsend - the upper bound of the range of polls questions (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.PollsQuestionPersistencepublic int countAll()
countAll in interface com.liferay.polls.service.persistence.PollsQuestionPersistencepublic java.util.Set<java.lang.String> getBadColumnNames()
getBadColumnNames in interface com.liferay.polls.service.persistence.PollsQuestionPersistencegetBadColumnNames in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.polls.model.PollsQuestion>getBadColumnNames in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.polls.model.PollsQuestion>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.PollsQuestion>public void afterPropertiesSet()
public void destroy()