com.liferay.portlet.polls.service.persistence
Class PollsQuestionPersistenceImpl
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.PollsQuestionPersistenceImpl
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean, PollsQuestionPersistence
- public class PollsQuestionPersistenceImpl
- extends BasePersistence
- implements PollsQuestionPersistence
View Source
- Author:
- Brian Wing Shun Chan
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
Method Summary |
int |
countAll()
|
int |
countByGroupId(long groupId)
|
com.liferay.portlet.polls.model.PollsQuestion |
create(long questionId)
|
com.liferay.portlet.polls.model.PollsQuestion |
fetchByPrimaryKey(long questionId)
|
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.PollsQuestion |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
com.liferay.portlet.polls.model.PollsQuestion |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
com.liferay.portlet.polls.model.PollsQuestion[] |
findByGroupId_PrevAndNext(long questionId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List |
findByGroupId(long groupId)
|
java.util.List |
findByGroupId(long groupId,
int begin,
int end)
|
java.util.List |
findByGroupId(long groupId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
com.liferay.portlet.polls.model.PollsQuestion |
findByPrimaryKey(long questionId)
|
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.PollsQuestion |
remove(long questionId)
|
com.liferay.portlet.polls.model.PollsQuestion |
remove(com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
|
void |
removeAll()
|
void |
removeByGroupId(long groupId)
|
com.liferay.portlet.polls.model.PollsQuestion |
update(com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
|
com.liferay.portlet.polls.model.PollsQuestion |
update(com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
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 |
PollsQuestionPersistenceImpl
public PollsQuestionPersistenceImpl()
create
public com.liferay.portlet.polls.model.PollsQuestion create(long questionId)
- Specified by:
create
in interface PollsQuestionPersistence
remove
public com.liferay.portlet.polls.model.PollsQuestion remove(long questionId)
throws com.liferay.portlet.polls.NoSuchQuestionException,
com.liferay.portal.SystemException
- Specified by:
remove
in interface PollsQuestionPersistence
- Throws:
com.liferay.portlet.polls.NoSuchQuestionException
com.liferay.portal.SystemException
remove
public com.liferay.portlet.polls.model.PollsQuestion remove(com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
throws com.liferay.portal.SystemException
- Specified by:
remove
in interface PollsQuestionPersistence
- Throws:
com.liferay.portal.SystemException
update
public com.liferay.portlet.polls.model.PollsQuestion update(com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
throws com.liferay.portal.SystemException
- Specified by:
update
in interface PollsQuestionPersistence
- Throws:
com.liferay.portal.SystemException
update
public com.liferay.portlet.polls.model.PollsQuestion update(com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
boolean merge)
throws com.liferay.portal.SystemException
- Specified by:
update
in interface PollsQuestionPersistence
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public com.liferay.portlet.polls.model.PollsQuestion findByPrimaryKey(long questionId)
throws com.liferay.portlet.polls.NoSuchQuestionException,
com.liferay.portal.SystemException
- Specified by:
findByPrimaryKey
in interface PollsQuestionPersistence
- Throws:
com.liferay.portlet.polls.NoSuchQuestionException
com.liferay.portal.SystemException
fetchByPrimaryKey
public com.liferay.portlet.polls.model.PollsQuestion fetchByPrimaryKey(long questionId)
throws com.liferay.portal.SystemException
- Specified by:
fetchByPrimaryKey
in interface PollsQuestionPersistence
- Throws:
com.liferay.portal.SystemException
findByGroupId
public java.util.List findByGroupId(long groupId)
throws com.liferay.portal.SystemException
- Specified by:
findByGroupId
in interface PollsQuestionPersistence
- Throws:
com.liferay.portal.SystemException
findByGroupId
public java.util.List findByGroupId(long groupId,
int begin,
int end)
throws com.liferay.portal.SystemException
- Specified by:
findByGroupId
in interface PollsQuestionPersistence
- Throws:
com.liferay.portal.SystemException
findByGroupId
public java.util.List findByGroupId(long groupId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Specified by:
findByGroupId
in interface PollsQuestionPersistence
- Throws:
com.liferay.portal.SystemException
findByGroupId_First
public com.liferay.portlet.polls.model.PollsQuestion findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portlet.polls.NoSuchQuestionException,
com.liferay.portal.SystemException
- Specified by:
findByGroupId_First
in interface PollsQuestionPersistence
- Throws:
com.liferay.portlet.polls.NoSuchQuestionException
com.liferay.portal.SystemException
findByGroupId_Last
public com.liferay.portlet.polls.model.PollsQuestion findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portlet.polls.NoSuchQuestionException,
com.liferay.portal.SystemException
- Specified by:
findByGroupId_Last
in interface PollsQuestionPersistence
- Throws:
com.liferay.portlet.polls.NoSuchQuestionException
com.liferay.portal.SystemException
findByGroupId_PrevAndNext
public com.liferay.portlet.polls.model.PollsQuestion[] findByGroupId_PrevAndNext(long questionId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portlet.polls.NoSuchQuestionException,
com.liferay.portal.SystemException
- Specified by:
findByGroupId_PrevAndNext
in interface PollsQuestionPersistence
- Throws:
com.liferay.portlet.polls.NoSuchQuestionException
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 PollsQuestionPersistence
- 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 PollsQuestionPersistence
- Throws:
com.liferay.portal.SystemException
findAll
public java.util.List findAll()
throws com.liferay.portal.SystemException
- Specified by:
findAll
in interface PollsQuestionPersistence
- 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 PollsQuestionPersistence
- 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 PollsQuestionPersistence
- Throws:
com.liferay.portal.SystemException
removeByGroupId
public void removeByGroupId(long groupId)
throws com.liferay.portal.SystemException
- Specified by:
removeByGroupId
in interface PollsQuestionPersistence
- Throws:
com.liferay.portal.SystemException
removeAll
public void removeAll()
throws com.liferay.portal.SystemException
- Specified by:
removeAll
in interface PollsQuestionPersistence
- Throws:
com.liferay.portal.SystemException
countByGroupId
public int countByGroupId(long groupId)
throws com.liferay.portal.SystemException
- Specified by:
countByGroupId
in interface PollsQuestionPersistence
- Throws:
com.liferay.portal.SystemException
countAll
public int countAll()
throws com.liferay.portal.SystemException
- Specified by:
countAll
in interface PollsQuestionPersistence
- Throws:
com.liferay.portal.SystemException
initDao
protected void initDao()