com.liferay.portlet.polls.service.persistence
Class PollsChoicePersistenceImpl
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.jdbc.core.support.JdbcDaoSupport
com.liferay.portal.service.persistence.BasePersistence
com.liferay.portlet.polls.service.persistence.PollsChoicePersistenceImpl
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean, PollsChoicePersistence
- public class PollsChoicePersistenceImpl
- extends BasePersistence
- implements PollsChoicePersistence
View Source
- Author:
- Brian Wing Shun Chan
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
Method Summary |
int |
countAll()
|
int |
countByQ_N(long questionId,
java.lang.String name)
|
int |
countByQuestionId(long questionId)
|
com.liferay.portlet.polls.model.PollsChoice |
create(long choiceId)
|
com.liferay.portlet.polls.model.PollsChoice |
fetchByPrimaryKey(long choiceId)
|
com.liferay.portlet.polls.model.PollsChoice |
fetchByQ_N(long questionId,
java.lang.String name)
|
java.util.List |
findAll()
|
java.util.List |
findAll(int begin,
int end)
|
java.util.List |
findAll(int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
com.liferay.portlet.polls.model.PollsChoice |
findByPrimaryKey(long choiceId)
|
com.liferay.portlet.polls.model.PollsChoice |
findByQ_N(long questionId,
java.lang.String name)
|
com.liferay.portlet.polls.model.PollsChoice |
findByQuestionId_First(long questionId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
com.liferay.portlet.polls.model.PollsChoice |
findByQuestionId_Last(long questionId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
com.liferay.portlet.polls.model.PollsChoice[] |
findByQuestionId_PrevAndNext(long choiceId,
long questionId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List |
findByQuestionId(long questionId)
|
java.util.List |
findByQuestionId(long questionId,
int begin,
int end)
|
java.util.List |
findByQuestionId(long questionId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List |
findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
|
java.util.List |
findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
int begin,
int end)
|
protected void |
initDao()
|
com.liferay.portlet.polls.model.PollsChoice |
remove(long choiceId)
|
com.liferay.portlet.polls.model.PollsChoice |
remove(com.liferay.portlet.polls.model.PollsChoice pollsChoice)
|
void |
removeAll()
|
void |
removeByQ_N(long questionId,
java.lang.String name)
|
void |
removeByQuestionId(long questionId)
|
com.liferay.portlet.polls.model.PollsChoice |
update(com.liferay.portlet.polls.model.PollsChoice pollsChoice)
|
com.liferay.portlet.polls.model.PollsChoice |
update(com.liferay.portlet.polls.model.PollsChoice pollsChoice,
boolean merge)
|
Methods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport |
checkDaoConfig, createJdbcTemplate, getConnection, getDataSource, getExceptionTranslator, getJdbcTemplate, initTemplateConfig, releaseConnection, setDataSource, setJdbcTemplate |
Methods inherited from class org.springframework.dao.support.DaoSupport |
afterPropertiesSet |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PollsChoicePersistenceImpl
public PollsChoicePersistenceImpl()
create
public com.liferay.portlet.polls.model.PollsChoice create(long choiceId)
- Specified by:
create
in interface PollsChoicePersistence
remove
public com.liferay.portlet.polls.model.PollsChoice remove(long choiceId)
throws com.liferay.portlet.polls.NoSuchChoiceException,
com.liferay.portal.SystemException
- Specified by:
remove
in interface PollsChoicePersistence
- Throws:
com.liferay.portlet.polls.NoSuchChoiceException
com.liferay.portal.SystemException
remove
public com.liferay.portlet.polls.model.PollsChoice remove(com.liferay.portlet.polls.model.PollsChoice pollsChoice)
throws com.liferay.portal.SystemException
- Specified by:
remove
in interface PollsChoicePersistence
- Throws:
com.liferay.portal.SystemException
update
public com.liferay.portlet.polls.model.PollsChoice update(com.liferay.portlet.polls.model.PollsChoice pollsChoice)
throws com.liferay.portal.SystemException
- Specified by:
update
in interface PollsChoicePersistence
- Throws:
com.liferay.portal.SystemException
update
public com.liferay.portlet.polls.model.PollsChoice update(com.liferay.portlet.polls.model.PollsChoice pollsChoice,
boolean merge)
throws com.liferay.portal.SystemException
- Specified by:
update
in interface PollsChoicePersistence
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public com.liferay.portlet.polls.model.PollsChoice findByPrimaryKey(long choiceId)
throws com.liferay.portlet.polls.NoSuchChoiceException,
com.liferay.portal.SystemException
- Specified by:
findByPrimaryKey
in interface PollsChoicePersistence
- Throws:
com.liferay.portlet.polls.NoSuchChoiceException
com.liferay.portal.SystemException
fetchByPrimaryKey
public com.liferay.portlet.polls.model.PollsChoice fetchByPrimaryKey(long choiceId)
throws com.liferay.portal.SystemException
- Specified by:
fetchByPrimaryKey
in interface PollsChoicePersistence
- Throws:
com.liferay.portal.SystemException
findByQuestionId
public java.util.List findByQuestionId(long questionId)
throws com.liferay.portal.SystemException
- Specified by:
findByQuestionId
in interface PollsChoicePersistence
- Throws:
com.liferay.portal.SystemException
findByQuestionId
public java.util.List findByQuestionId(long questionId,
int begin,
int end)
throws com.liferay.portal.SystemException
- Specified by:
findByQuestionId
in interface PollsChoicePersistence
- Throws:
com.liferay.portal.SystemException
findByQuestionId
public java.util.List findByQuestionId(long questionId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Specified by:
findByQuestionId
in interface PollsChoicePersistence
- Throws:
com.liferay.portal.SystemException
findByQuestionId_First
public com.liferay.portlet.polls.model.PollsChoice findByQuestionId_First(long questionId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portlet.polls.NoSuchChoiceException,
com.liferay.portal.SystemException
- Specified by:
findByQuestionId_First
in interface PollsChoicePersistence
- Throws:
com.liferay.portlet.polls.NoSuchChoiceException
com.liferay.portal.SystemException
findByQuestionId_Last
public com.liferay.portlet.polls.model.PollsChoice findByQuestionId_Last(long questionId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portlet.polls.NoSuchChoiceException,
com.liferay.portal.SystemException
- Specified by:
findByQuestionId_Last
in interface PollsChoicePersistence
- Throws:
com.liferay.portlet.polls.NoSuchChoiceException
com.liferay.portal.SystemException
findByQuestionId_PrevAndNext
public com.liferay.portlet.polls.model.PollsChoice[] findByQuestionId_PrevAndNext(long choiceId,
long questionId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portlet.polls.NoSuchChoiceException,
com.liferay.portal.SystemException
- Specified by:
findByQuestionId_PrevAndNext
in interface PollsChoicePersistence
- Throws:
com.liferay.portlet.polls.NoSuchChoiceException
com.liferay.portal.SystemException
findByQ_N
public com.liferay.portlet.polls.model.PollsChoice findByQ_N(long questionId,
java.lang.String name)
throws com.liferay.portlet.polls.NoSuchChoiceException,
com.liferay.portal.SystemException
- Specified by:
findByQ_N
in interface PollsChoicePersistence
- Throws:
com.liferay.portlet.polls.NoSuchChoiceException
com.liferay.portal.SystemException
fetchByQ_N
public com.liferay.portlet.polls.model.PollsChoice fetchByQ_N(long questionId,
java.lang.String name)
throws com.liferay.portal.SystemException
- Specified by:
fetchByQ_N
in interface PollsChoicePersistence
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
throws com.liferay.portal.SystemException
- Specified by:
findWithDynamicQuery
in interface PollsChoicePersistence
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
int begin,
int end)
throws com.liferay.portal.SystemException
- Specified by:
findWithDynamicQuery
in interface PollsChoicePersistence
- Throws:
com.liferay.portal.SystemException
findAll
public java.util.List findAll()
throws com.liferay.portal.SystemException
- Specified by:
findAll
in interface PollsChoicePersistence
- Throws:
com.liferay.portal.SystemException
findAll
public java.util.List findAll(int begin,
int end)
throws com.liferay.portal.SystemException
- Specified by:
findAll
in interface PollsChoicePersistence
- Throws:
com.liferay.portal.SystemException
findAll
public java.util.List findAll(int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Specified by:
findAll
in interface PollsChoicePersistence
- Throws:
com.liferay.portal.SystemException
removeByQuestionId
public void removeByQuestionId(long questionId)
throws com.liferay.portal.SystemException
- Specified by:
removeByQuestionId
in interface PollsChoicePersistence
- Throws:
com.liferay.portal.SystemException
removeByQ_N
public void removeByQ_N(long questionId,
java.lang.String name)
throws com.liferay.portlet.polls.NoSuchChoiceException,
com.liferay.portal.SystemException
- Specified by:
removeByQ_N
in interface PollsChoicePersistence
- Throws:
com.liferay.portlet.polls.NoSuchChoiceException
com.liferay.portal.SystemException
removeAll
public void removeAll()
throws com.liferay.portal.SystemException
- Specified by:
removeAll
in interface PollsChoicePersistence
- Throws:
com.liferay.portal.SystemException
countByQuestionId
public int countByQuestionId(long questionId)
throws com.liferay.portal.SystemException
- Specified by:
countByQuestionId
in interface PollsChoicePersistence
- Throws:
com.liferay.portal.SystemException
countByQ_N
public int countByQ_N(long questionId,
java.lang.String name)
throws com.liferay.portal.SystemException
- Specified by:
countByQ_N
in interface PollsChoicePersistence
- Throws:
com.liferay.portal.SystemException
countAll
public int countAll()
throws com.liferay.portal.SystemException
- Specified by:
countAll
in interface PollsChoicePersistence
- Throws:
com.liferay.portal.SystemException
initDao
protected void initDao()