com.liferay.portlet.messageboards.service.persistence
Class MBMessageFlagPersistenceImpl
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.jdbc.core.support.JdbcDaoSupport
com.liferay.portal.service.persistence.BasePersistence
com.liferay.portlet.messageboards.service.persistence.MBMessageFlagPersistenceImpl
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean, MBMessageFlagPersistence
- public class MBMessageFlagPersistenceImpl
- extends BasePersistence
- implements MBMessageFlagPersistence
View Source
- Author:
- Brian Wing Shun Chan
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
Method Summary |
int |
countAll()
|
int |
countByMessageId(long messageId)
|
int |
countByU_M(long userId,
long messageId)
|
int |
countByUserId(long userId)
|
com.liferay.portlet.messageboards.model.MBMessageFlag |
create(long messageFlagId)
|
com.liferay.portlet.messageboards.model.MBMessageFlag |
fetchByPrimaryKey(long messageFlagId)
|
com.liferay.portlet.messageboards.model.MBMessageFlag |
fetchByU_M(long userId,
long messageId)
|
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.messageboards.model.MBMessageFlag |
findByMessageId_First(long messageId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
com.liferay.portlet.messageboards.model.MBMessageFlag |
findByMessageId_Last(long messageId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
com.liferay.portlet.messageboards.model.MBMessageFlag[] |
findByMessageId_PrevAndNext(long messageFlagId,
long messageId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List |
findByMessageId(long messageId)
|
java.util.List |
findByMessageId(long messageId,
int begin,
int end)
|
java.util.List |
findByMessageId(long messageId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
com.liferay.portlet.messageboards.model.MBMessageFlag |
findByPrimaryKey(long messageFlagId)
|
com.liferay.portlet.messageboards.model.MBMessageFlag |
findByU_M(long userId,
long messageId)
|
com.liferay.portlet.messageboards.model.MBMessageFlag |
findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
com.liferay.portlet.messageboards.model.MBMessageFlag |
findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
com.liferay.portlet.messageboards.model.MBMessageFlag[] |
findByUserId_PrevAndNext(long messageFlagId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List |
findByUserId(long userId)
|
java.util.List |
findByUserId(long userId,
int begin,
int end)
|
java.util.List |
findByUserId(long userId,
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.messageboards.model.MBMessageFlag |
remove(long messageFlagId)
|
com.liferay.portlet.messageboards.model.MBMessageFlag |
remove(com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
|
void |
removeAll()
|
void |
removeByMessageId(long messageId)
|
void |
removeByU_M(long userId,
long messageId)
|
void |
removeByUserId(long userId)
|
com.liferay.portlet.messageboards.model.MBMessageFlag |
update(com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
|
com.liferay.portlet.messageboards.model.MBMessageFlag |
update(com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag,
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 |
MBMessageFlagPersistenceImpl
public MBMessageFlagPersistenceImpl()
create
public com.liferay.portlet.messageboards.model.MBMessageFlag create(long messageFlagId)
- Specified by:
create
in interface MBMessageFlagPersistence
remove
public com.liferay.portlet.messageboards.model.MBMessageFlag remove(long messageFlagId)
throws com.liferay.portlet.messageboards.NoSuchMessageFlagException,
com.liferay.portal.SystemException
- Specified by:
remove
in interface MBMessageFlagPersistence
- Throws:
com.liferay.portlet.messageboards.NoSuchMessageFlagException
com.liferay.portal.SystemException
remove
public com.liferay.portlet.messageboards.model.MBMessageFlag remove(com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
throws com.liferay.portal.SystemException
- Specified by:
remove
in interface MBMessageFlagPersistence
- Throws:
com.liferay.portal.SystemException
update
public com.liferay.portlet.messageboards.model.MBMessageFlag update(com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
throws com.liferay.portal.SystemException
- Specified by:
update
in interface MBMessageFlagPersistence
- Throws:
com.liferay.portal.SystemException
update
public com.liferay.portlet.messageboards.model.MBMessageFlag update(com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag,
boolean merge)
throws com.liferay.portal.SystemException
- Specified by:
update
in interface MBMessageFlagPersistence
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public com.liferay.portlet.messageboards.model.MBMessageFlag findByPrimaryKey(long messageFlagId)
throws com.liferay.portlet.messageboards.NoSuchMessageFlagException,
com.liferay.portal.SystemException
- Specified by:
findByPrimaryKey
in interface MBMessageFlagPersistence
- Throws:
com.liferay.portlet.messageboards.NoSuchMessageFlagException
com.liferay.portal.SystemException
fetchByPrimaryKey
public com.liferay.portlet.messageboards.model.MBMessageFlag fetchByPrimaryKey(long messageFlagId)
throws com.liferay.portal.SystemException
- Specified by:
fetchByPrimaryKey
in interface MBMessageFlagPersistence
- Throws:
com.liferay.portal.SystemException
findByUserId
public java.util.List findByUserId(long userId)
throws com.liferay.portal.SystemException
- Specified by:
findByUserId
in interface MBMessageFlagPersistence
- Throws:
com.liferay.portal.SystemException
findByUserId
public java.util.List findByUserId(long userId,
int begin,
int end)
throws com.liferay.portal.SystemException
- Specified by:
findByUserId
in interface MBMessageFlagPersistence
- Throws:
com.liferay.portal.SystemException
findByUserId
public java.util.List findByUserId(long userId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Specified by:
findByUserId
in interface MBMessageFlagPersistence
- Throws:
com.liferay.portal.SystemException
findByUserId_First
public com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portlet.messageboards.NoSuchMessageFlagException,
com.liferay.portal.SystemException
- Specified by:
findByUserId_First
in interface MBMessageFlagPersistence
- Throws:
com.liferay.portlet.messageboards.NoSuchMessageFlagException
com.liferay.portal.SystemException
findByUserId_Last
public com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portlet.messageboards.NoSuchMessageFlagException,
com.liferay.portal.SystemException
- Specified by:
findByUserId_Last
in interface MBMessageFlagPersistence
- Throws:
com.liferay.portlet.messageboards.NoSuchMessageFlagException
com.liferay.portal.SystemException
findByUserId_PrevAndNext
public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByUserId_PrevAndNext(long messageFlagId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portlet.messageboards.NoSuchMessageFlagException,
com.liferay.portal.SystemException
- Specified by:
findByUserId_PrevAndNext
in interface MBMessageFlagPersistence
- Throws:
com.liferay.portlet.messageboards.NoSuchMessageFlagException
com.liferay.portal.SystemException
findByMessageId
public java.util.List findByMessageId(long messageId)
throws com.liferay.portal.SystemException
- Specified by:
findByMessageId
in interface MBMessageFlagPersistence
- Throws:
com.liferay.portal.SystemException
findByMessageId
public java.util.List findByMessageId(long messageId,
int begin,
int end)
throws com.liferay.portal.SystemException
- Specified by:
findByMessageId
in interface MBMessageFlagPersistence
- Throws:
com.liferay.portal.SystemException
findByMessageId
public java.util.List findByMessageId(long messageId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Specified by:
findByMessageId
in interface MBMessageFlagPersistence
- Throws:
com.liferay.portal.SystemException
findByMessageId_First
public com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_First(long messageId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portlet.messageboards.NoSuchMessageFlagException,
com.liferay.portal.SystemException
- Specified by:
findByMessageId_First
in interface MBMessageFlagPersistence
- Throws:
com.liferay.portlet.messageboards.NoSuchMessageFlagException
com.liferay.portal.SystemException
findByMessageId_Last
public com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_Last(long messageId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portlet.messageboards.NoSuchMessageFlagException,
com.liferay.portal.SystemException
- Specified by:
findByMessageId_Last
in interface MBMessageFlagPersistence
- Throws:
com.liferay.portlet.messageboards.NoSuchMessageFlagException
com.liferay.portal.SystemException
findByMessageId_PrevAndNext
public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByMessageId_PrevAndNext(long messageFlagId,
long messageId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portlet.messageboards.NoSuchMessageFlagException,
com.liferay.portal.SystemException
- Specified by:
findByMessageId_PrevAndNext
in interface MBMessageFlagPersistence
- Throws:
com.liferay.portlet.messageboards.NoSuchMessageFlagException
com.liferay.portal.SystemException
findByU_M
public com.liferay.portlet.messageboards.model.MBMessageFlag findByU_M(long userId,
long messageId)
throws com.liferay.portlet.messageboards.NoSuchMessageFlagException,
com.liferay.portal.SystemException
- Specified by:
findByU_M
in interface MBMessageFlagPersistence
- Throws:
com.liferay.portlet.messageboards.NoSuchMessageFlagException
com.liferay.portal.SystemException
fetchByU_M
public com.liferay.portlet.messageboards.model.MBMessageFlag fetchByU_M(long userId,
long messageId)
throws com.liferay.portal.SystemException
- Specified by:
fetchByU_M
in interface MBMessageFlagPersistence
- 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 MBMessageFlagPersistence
- 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 MBMessageFlagPersistence
- Throws:
com.liferay.portal.SystemException
findAll
public java.util.List findAll()
throws com.liferay.portal.SystemException
- Specified by:
findAll
in interface MBMessageFlagPersistence
- 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 MBMessageFlagPersistence
- 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 MBMessageFlagPersistence
- Throws:
com.liferay.portal.SystemException
removeByUserId
public void removeByUserId(long userId)
throws com.liferay.portal.SystemException
- Specified by:
removeByUserId
in interface MBMessageFlagPersistence
- Throws:
com.liferay.portal.SystemException
removeByMessageId
public void removeByMessageId(long messageId)
throws com.liferay.portal.SystemException
- Specified by:
removeByMessageId
in interface MBMessageFlagPersistence
- Throws:
com.liferay.portal.SystemException
removeByU_M
public void removeByU_M(long userId,
long messageId)
throws com.liferay.portlet.messageboards.NoSuchMessageFlagException,
com.liferay.portal.SystemException
- Specified by:
removeByU_M
in interface MBMessageFlagPersistence
- Throws:
com.liferay.portlet.messageboards.NoSuchMessageFlagException
com.liferay.portal.SystemException
removeAll
public void removeAll()
throws com.liferay.portal.SystemException
- Specified by:
removeAll
in interface MBMessageFlagPersistence
- Throws:
com.liferay.portal.SystemException
countByUserId
public int countByUserId(long userId)
throws com.liferay.portal.SystemException
- Specified by:
countByUserId
in interface MBMessageFlagPersistence
- Throws:
com.liferay.portal.SystemException
countByMessageId
public int countByMessageId(long messageId)
throws com.liferay.portal.SystemException
- Specified by:
countByMessageId
in interface MBMessageFlagPersistence
- Throws:
com.liferay.portal.SystemException
countByU_M
public int countByU_M(long userId,
long messageId)
throws com.liferay.portal.SystemException
- Specified by:
countByU_M
in interface MBMessageFlagPersistence
- Throws:
com.liferay.portal.SystemException
countAll
public int countAll()
throws com.liferay.portal.SystemException
- Specified by:
countAll
in interface MBMessageFlagPersistence
- Throws:
com.liferay.portal.SystemException
initDao
protected void initDao()