com.liferay.portlet.messageboards.service.persistence
Class MBMessageFinderImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl
      extended by com.liferay.portlet.messageboards.service.persistence.MBMessageFinderImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.service.persistence.BasePersistence, com.liferay.portlet.messageboards.service.persistence.MBMessageFinder

public class MBMessageFinderImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl
implements com.liferay.portlet.messageboards.service.persistence.MBMessageFinder

View Source

Author:
Brian Wing Shun Chan

Field Summary
static java.lang.String COUNT_BY_CATEGORY_IDS
           
static java.lang.String COUNT_BY_G_U
           
static java.lang.String COUNT_BY_GROUP_ID
           
static java.lang.String FIND_BY_C_C
           
static java.lang.String FIND_BY_G_U
           
static java.lang.String FIND_BY_GROUP_ID
           
static java.lang.String FIND_BY_NO_ASSETS
           
static java.lang.String FIND_BY_UUID_G
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, listeners
 
Constructor Summary
MBMessageFinderImpl()
           
 
Method Summary
 int countByCategoryIds(java.util.List<java.lang.Long> categoryIds)
           
 int countByG_U(long groupId, long userId)
           
 int countByGroupId(long groupId)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C(long classNameId, long classPK)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U(long groupId, long userId, int start, int end)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U(long groupId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByGroupId(long groupId, int start, int end)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByNoAssets()
           
 com.liferay.portlet.messageboards.model.MBMessage findByUuid_G(java.lang.String uuid, long groupId)
           
protected  java.lang.String getCategoryIds(java.util.List<java.lang.Long> categoryIds)
           
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
closeSession, getDataSource, getDialect, getListeners, openSession, processException, registerListener, setDataSource, setSessionFactory, unregisterListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COUNT_BY_CATEGORY_IDS

public static java.lang.String COUNT_BY_CATEGORY_IDS

COUNT_BY_GROUP_ID

public static java.lang.String COUNT_BY_GROUP_ID

COUNT_BY_G_U

public static java.lang.String COUNT_BY_G_U

FIND_BY_GROUP_ID

public static java.lang.String FIND_BY_GROUP_ID

FIND_BY_NO_ASSETS

public static java.lang.String FIND_BY_NO_ASSETS

FIND_BY_UUID_G

public static java.lang.String FIND_BY_UUID_G

FIND_BY_G_U

public static java.lang.String FIND_BY_G_U

FIND_BY_C_C

public static java.lang.String FIND_BY_C_C
Constructor Detail

MBMessageFinderImpl

public MBMessageFinderImpl()
Method Detail

countByCategoryIds

public int countByCategoryIds(java.util.List<java.lang.Long> categoryIds)
                       throws com.liferay.portal.SystemException
Specified by:
countByCategoryIds in interface com.liferay.portlet.messageboards.service.persistence.MBMessageFinder
Throws:
com.liferay.portal.SystemException

countByGroupId

public int countByGroupId(long groupId)
                   throws com.liferay.portal.SystemException
Specified by:
countByGroupId in interface com.liferay.portlet.messageboards.service.persistence.MBMessageFinder
Throws:
com.liferay.portal.SystemException

countByG_U

public int countByG_U(long groupId,
                      long userId)
               throws com.liferay.portal.SystemException
Specified by:
countByG_U in interface com.liferay.portlet.messageboards.service.persistence.MBMessageFinder
Throws:
com.liferay.portal.SystemException

findByGroupId

public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByGroupId(long groupId,
                                                                                       int start,
                                                                                       int end)
                                                                                throws com.liferay.portal.SystemException
Specified by:
findByGroupId in interface com.liferay.portlet.messageboards.service.persistence.MBMessageFinder
Throws:
com.liferay.portal.SystemException

findByGroupId

public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByGroupId(long groupId,
                                                                                       int start,
                                                                                       int end,
                                                                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                                throws com.liferay.portal.SystemException
Specified by:
findByGroupId in interface com.liferay.portlet.messageboards.service.persistence.MBMessageFinder
Throws:
com.liferay.portal.SystemException

findByNoAssets

public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByNoAssets()
                                                                                 throws com.liferay.portal.SystemException
Specified by:
findByNoAssets in interface com.liferay.portlet.messageboards.service.persistence.MBMessageFinder
Throws:
com.liferay.portal.SystemException

findByUuid_G

public com.liferay.portlet.messageboards.model.MBMessage findByUuid_G(java.lang.String uuid,
                                                                      long groupId)
                                                               throws com.liferay.portlet.messageboards.NoSuchMessageException,
                                                                      com.liferay.portal.SystemException
Specified by:
findByUuid_G in interface com.liferay.portlet.messageboards.service.persistence.MBMessageFinder
Throws:
com.liferay.portlet.messageboards.NoSuchMessageException
com.liferay.portal.SystemException

findByG_U

public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U(long groupId,
                                                                                   long userId,
                                                                                   int start,
                                                                                   int end)
                                                                            throws com.liferay.portal.SystemException
Specified by:
findByG_U in interface com.liferay.portlet.messageboards.service.persistence.MBMessageFinder
Throws:
com.liferay.portal.SystemException

findByG_U

public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U(long groupId,
                                                                                   long userId,
                                                                                   int start,
                                                                                   int end,
                                                                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                            throws com.liferay.portal.SystemException
Specified by:
findByG_U in interface com.liferay.portlet.messageboards.service.persistence.MBMessageFinder
Throws:
com.liferay.portal.SystemException

findByC_C

public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C(long classNameId,
                                                                                   long classPK)
                                                                            throws com.liferay.portal.SystemException
Specified by:
findByC_C in interface com.liferay.portlet.messageboards.service.persistence.MBMessageFinder
Throws:
com.liferay.portal.SystemException

getCategoryIds

protected java.lang.String getCategoryIds(java.util.List<java.lang.Long> categoryIds)