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

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

public class MBThreadFinderImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl
implements com.liferay.portlet.messageboards.service.persistence.MBThreadFinder

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_G_U_A
           
static java.lang.String COUNT_BY_GROUP_ID
           
static java.lang.String COUNT_BY_S_G_U
           
static java.lang.String FIND_BY_G_U
           
static java.lang.String FIND_BY_G_U_A
           
static java.lang.String FIND_BY_GROUP_ID
           
static java.lang.String FIND_BY_S_G_U
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, listeners
 
Constructor Summary
MBThreadFinderImpl()
           
 
Method Summary
 int countByCategoryIds(java.util.List<java.lang.Long> categoryIds)
           
 int countByG_U_A(long groupId, long userId, boolean anonymous)
           
 int countByG_U(long groupId, long userId)
           
 int countByGroupId(long groupId)
           
 int countByS_G_U(long groupId, long userId)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_U_A(long groupId, long userId, boolean anonymous, int start, int end)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_U(long groupId, long userId, int start, int end)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(long groupId, int start, int end)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByS_G_U(long groupId, long userId, int start, int end)
           
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

COUNT_BY_G_U_A

public static java.lang.String COUNT_BY_G_U_A

COUNT_BY_S_G_U

public static java.lang.String COUNT_BY_S_G_U

FIND_BY_GROUP_ID

public static java.lang.String FIND_BY_GROUP_ID

FIND_BY_G_U

public static java.lang.String FIND_BY_G_U

FIND_BY_G_U_A

public static java.lang.String FIND_BY_G_U_A

FIND_BY_S_G_U

public static java.lang.String FIND_BY_S_G_U
Constructor Detail

MBThreadFinderImpl

public MBThreadFinderImpl()
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.MBThreadFinder
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.MBThreadFinder
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.MBThreadFinder
Throws:
com.liferay.portal.SystemException

countByG_U_A

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

countByS_G_U

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

findByGroupId

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

findByG_U

public java.util.List<com.liferay.portlet.messageboards.model.MBThread> 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.MBThreadFinder
Throws:
com.liferay.portal.SystemException

findByG_U_A

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

findByS_G_U

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

getCategoryIds

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