Liferay 6.1.2-ce-ga3

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

java.lang.Object
  extended by com.liferay.portlet.messageboards.service.persistence.MBThreadUtil

public class MBThreadUtil
extends Object

The persistence utility for the message boards thread service. This utility wraps MBThreadPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

See Also:
MBThreadPersistence, MBThreadPersistenceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
MBThreadUtil()
           
 
Method Summary
static void cacheResult(List<MBThread> mbThreads)
          Caches the message boards threads in the entity cache if it is enabled.
static void cacheResult(MBThread mbThread)
          Caches the message boards thread in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(MBThread mbThread)
           
static int countAll()
          Returns the number of message boards threads.
static int countByC_P(long categoryId, double priority)
          Returns the number of message boards threads where categoryId = ? and priority = ?.
static int countByG_C_L(long groupId, long categoryId, Date lastPostDate)
          Returns the number of message boards threads where groupId = ? and categoryId = ? and lastPostDate = ?.
static int countByG_C_S(long groupId, long[] categoryIds, int status)
          Returns the number of message boards threads where groupId = ? and categoryId = any ? and status = ?.
static int countByG_C_S(long groupId, long categoryId, int status)
          Returns the number of message boards threads where groupId = ? and categoryId = ? and status = ?.
static int countByG_C(long groupId, long categoryId)
          Returns the number of message boards threads where groupId = ? and categoryId = ?.
static int countByG_C(long groupId, long[] categoryIds)
          Returns the number of message boards threads where groupId = ? and categoryId = any ?.
static int countByG_NotC_S(long groupId, long categoryId, int status)
          Returns the number of message boards threads where groupId = ? and categoryId ≠ ? and status = ?.
static int countByG_NotC(long groupId, long categoryId)
          Returns the number of message boards threads where groupId = ? and categoryId ≠ ?.
static int countByG_S(long groupId, int status)
          Returns the number of message boards threads where groupId = ? and status = ?.
static int countByGroupId(long groupId)
          Returns the number of message boards threads where groupId = ?.
static int countByL_P(Date lastPostDate, double priority)
          Returns the number of message boards threads where lastPostDate = ? and priority = ?.
static int countByRootMessageId(long rootMessageId)
          Returns the number of message boards threads where rootMessageId = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static MBThread create(long threadId)
          Creates a new message boards thread with the primary key.
static MBThread fetchByC_P_First(long categoryId, double priority, OrderByComparator orderByComparator)
          Returns the first message boards thread in the ordered set where categoryId = ? and priority = ?.
static MBThread fetchByC_P_Last(long categoryId, double priority, OrderByComparator orderByComparator)
          Returns the last message boards thread in the ordered set where categoryId = ? and priority = ?.
static MBThread fetchByG_C_First(long groupId, long categoryId, OrderByComparator orderByComparator)
          Returns the first message boards thread in the ordered set where groupId = ? and categoryId = ?.
static MBThread fetchByG_C_L_First(long groupId, long categoryId, Date lastPostDate, OrderByComparator orderByComparator)
          Returns the first message boards thread in the ordered set where groupId = ? and categoryId = ? and lastPostDate = ?.
static MBThread fetchByG_C_L_Last(long groupId, long categoryId, Date lastPostDate, OrderByComparator orderByComparator)
          Returns the last message boards thread in the ordered set where groupId = ? and categoryId = ? and lastPostDate = ?.
static MBThread fetchByG_C_Last(long groupId, long categoryId, OrderByComparator orderByComparator)
          Returns the last message boards thread in the ordered set where groupId = ? and categoryId = ?.
static MBThread fetchByG_C_S_First(long groupId, long categoryId, int status, OrderByComparator orderByComparator)
          Returns the first message boards thread in the ordered set where groupId = ? and categoryId = ? and status = ?.
static MBThread fetchByG_C_S_Last(long groupId, long categoryId, int status, OrderByComparator orderByComparator)
          Returns the last message boards thread in the ordered set where groupId = ? and categoryId = ? and status = ?.
static MBThread fetchByG_NotC_First(long groupId, long categoryId, OrderByComparator orderByComparator)
          Returns the first message boards thread in the ordered set where groupId = ? and categoryId ≠ ?.
static MBThread fetchByG_NotC_Last(long groupId, long categoryId, OrderByComparator orderByComparator)
          Returns the last message boards thread in the ordered set where groupId = ? and categoryId ≠ ?.
static MBThread fetchByG_NotC_S_First(long groupId, long categoryId, int status, OrderByComparator orderByComparator)
          Returns the first message boards thread in the ordered set where groupId = ? and categoryId ≠ ? and status = ?.
static MBThread fetchByG_NotC_S_Last(long groupId, long categoryId, int status, OrderByComparator orderByComparator)
          Returns the last message boards thread in the ordered set where groupId = ? and categoryId ≠ ? and status = ?.
static MBThread fetchByG_S_First(long groupId, int status, OrderByComparator orderByComparator)
          Returns the first message boards thread in the ordered set where groupId = ? and status = ?.
static MBThread fetchByG_S_Last(long groupId, int status, OrderByComparator orderByComparator)
          Returns the last message boards thread in the ordered set where groupId = ? and status = ?.
static MBThread fetchByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first message boards thread in the ordered set where groupId = ?.
static MBThread fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last message boards thread in the ordered set where groupId = ?.
static MBThread fetchByL_P_First(Date lastPostDate, double priority, OrderByComparator orderByComparator)
          Returns the first message boards thread in the ordered set where lastPostDate = ? and priority = ?.
static MBThread fetchByL_P_Last(Date lastPostDate, double priority, OrderByComparator orderByComparator)
          Returns the last message boards thread in the ordered set where lastPostDate = ? and priority = ?.
static MBThread fetchByPrimaryKey(long threadId)
          Returns the message boards thread with the primary key or returns null if it could not be found.
static MBThread fetchByRootMessageId(long rootMessageId)
          Returns the message boards thread where rootMessageId = ? or returns null if it could not be found.
static MBThread fetchByRootMessageId(long rootMessageId, boolean retrieveFromCache)
          Returns the message boards thread where rootMessageId = ? or returns null if it could not be found, optionally using the finder cache.
static int filterCountByG_C_L(long groupId, long categoryId, Date lastPostDate)
          Returns the number of message boards threads that the user has permission to view where groupId = ? and categoryId = ? and lastPostDate = ?.
static int filterCountByG_C_S(long groupId, long[] categoryIds, int status)
          Returns the number of message boards threads that the user has permission to view where groupId = ? and categoryId = any ? and status = ?.
static int filterCountByG_C_S(long groupId, long categoryId, int status)
          Returns the number of message boards threads that the user has permission to view where groupId = ? and categoryId = ? and status = ?.
static int filterCountByG_C(long groupId, long categoryId)
          Returns the number of message boards threads that the user has permission to view where groupId = ? and categoryId = ?.
static int filterCountByG_C(long groupId, long[] categoryIds)
          Returns the number of message boards threads that the user has permission to view where groupId = ? and categoryId = any ?.
static int filterCountByG_NotC_S(long groupId, long categoryId, int status)
          Returns the number of message boards threads that the user has permission to view where groupId = ? and categoryId ≠ ? and status = ?.
static int filterCountByG_NotC(long groupId, long categoryId)
          Returns the number of message boards threads that the user has permission to view where groupId = ? and categoryId ≠ ?.
static int filterCountByG_S(long groupId, int status)
          Returns the number of message boards threads that the user has permission to view where groupId = ? and status = ?.
static int filterCountByGroupId(long groupId)
          Returns the number of message boards threads that the user has permission to view where groupId = ?.
static MBThread[] filterFindByG_C_L_PrevAndNext(long threadId, long groupId, long categoryId, Date lastPostDate, OrderByComparator orderByComparator)
          Returns the message boards threads before and after the current message boards thread in the ordered set of message boards threads that the user has permission to view where groupId = ? and categoryId = ? and lastPostDate = ?.
static List<MBThread> filterFindByG_C_L(long groupId, long categoryId, Date lastPostDate)
          Returns all the message boards threads that the user has permission to view where groupId = ? and categoryId = ? and lastPostDate = ?.
static List<MBThread> filterFindByG_C_L(long groupId, long categoryId, Date lastPostDate, int start, int end)
          Returns a range of all the message boards threads that the user has permission to view where groupId = ? and categoryId = ? and lastPostDate = ?.
static List<MBThread> filterFindByG_C_L(long groupId, long categoryId, Date lastPostDate, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message boards threads that the user has permissions to view where groupId = ? and categoryId = ? and lastPostDate = ?.
static MBThread[] filterFindByG_C_PrevAndNext(long threadId, long groupId, long categoryId, OrderByComparator orderByComparator)
          Returns the message boards threads before and after the current message boards thread in the ordered set of message boards threads that the user has permission to view where groupId = ? and categoryId = ?.
static MBThread[] filterFindByG_C_S_PrevAndNext(long threadId, long groupId, long categoryId, int status, OrderByComparator orderByComparator)
          Returns the message boards threads before and after the current message boards thread in the ordered set of message boards threads that the user has permission to view where groupId = ? and categoryId = ? and status = ?.
static List<MBThread> filterFindByG_C_S(long groupId, long[] categoryIds, int status)
          Returns all the message boards threads that the user has permission to view where groupId = ? and categoryId = any ? and status = ?.
static List<MBThread> filterFindByG_C_S(long groupId, long[] categoryIds, int status, int start, int end)
          Returns a range of all the message boards threads that the user has permission to view where groupId = ? and categoryId = any ? and status = ?.
static List<MBThread> filterFindByG_C_S(long groupId, long[] categoryIds, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message boards threads that the user has permission to view where groupId = ? and categoryId = any ? and status = ?.
static List<MBThread> filterFindByG_C_S(long groupId, long categoryId, int status)
          Returns all the message boards threads that the user has permission to view where groupId = ? and categoryId = ? and status = ?.
static List<MBThread> filterFindByG_C_S(long groupId, long categoryId, int status, int start, int end)
          Returns a range of all the message boards threads that the user has permission to view where groupId = ? and categoryId = ? and status = ?.
static List<MBThread> filterFindByG_C_S(long groupId, long categoryId, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message boards threads that the user has permissions to view where groupId = ? and categoryId = ? and status = ?.
static List<MBThread> filterFindByG_C(long groupId, long categoryId)
          Returns all the message boards threads that the user has permission to view where groupId = ? and categoryId = ?.
static List<MBThread> filterFindByG_C(long groupId, long[] categoryIds)
          Returns all the message boards threads that the user has permission to view where groupId = ? and categoryId = any ?.
static List<MBThread> filterFindByG_C(long groupId, long[] categoryIds, int start, int end)
          Returns a range of all the message boards threads that the user has permission to view where groupId = ? and categoryId = any ?.
static List<MBThread> filterFindByG_C(long groupId, long[] categoryIds, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message boards threads that the user has permission to view where groupId = ? and categoryId = any ?.
static List<MBThread> filterFindByG_C(long groupId, long categoryId, int start, int end)
          Returns a range of all the message boards threads that the user has permission to view where groupId = ? and categoryId = ?.
static List<MBThread> filterFindByG_C(long groupId, long categoryId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message boards threads that the user has permissions to view where groupId = ? and categoryId = ?.
static MBThread[] filterFindByG_NotC_PrevAndNext(long threadId, long groupId, long categoryId, OrderByComparator orderByComparator)
          Returns the message boards threads before and after the current message boards thread in the ordered set of message boards threads that the user has permission to view where groupId = ? and categoryId ≠ ?.
static MBThread[] filterFindByG_NotC_S_PrevAndNext(long threadId, long groupId, long categoryId, int status, OrderByComparator orderByComparator)
          Returns the message boards threads before and after the current message boards thread in the ordered set of message boards threads that the user has permission to view where groupId = ? and categoryId ≠ ? and status = ?.
static List<MBThread> filterFindByG_NotC_S(long groupId, long categoryId, int status)
          Returns all the message boards threads that the user has permission to view where groupId = ? and categoryId ≠ ? and status = ?.
static List<MBThread> filterFindByG_NotC_S(long groupId, long categoryId, int status, int start, int end)
          Returns a range of all the message boards threads that the user has permission to view where groupId = ? and categoryId ≠ ? and status = ?.
static List<MBThread> filterFindByG_NotC_S(long groupId, long categoryId, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message boards threads that the user has permissions to view where groupId = ? and categoryId ≠ ? and status = ?.
static List<MBThread> filterFindByG_NotC(long groupId, long categoryId)
          Returns all the message boards threads that the user has permission to view where groupId = ? and categoryId ≠ ?.
static List<MBThread> filterFindByG_NotC(long groupId, long categoryId, int start, int end)
          Returns a range of all the message boards threads that the user has permission to view where groupId = ? and categoryId ≠ ?.
static List<MBThread> filterFindByG_NotC(long groupId, long categoryId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message boards threads that the user has permissions to view where groupId = ? and categoryId ≠ ?.
static MBThread[] filterFindByG_S_PrevAndNext(long threadId, long groupId, int status, OrderByComparator orderByComparator)
          Returns the message boards threads before and after the current message boards thread in the ordered set of message boards threads that the user has permission to view where groupId = ? and status = ?.
static List<MBThread> filterFindByG_S(long groupId, int status)
          Returns all the message boards threads that the user has permission to view where groupId = ? and status = ?.
static List<MBThread> filterFindByG_S(long groupId, int status, int start, int end)
          Returns a range of all the message boards threads that the user has permission to view where groupId = ? and status = ?.
static List<MBThread> filterFindByG_S(long groupId, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message boards threads that the user has permissions to view where groupId = ? and status = ?.
static MBThread[] filterFindByGroupId_PrevAndNext(long threadId, long groupId, OrderByComparator orderByComparator)
          Returns the message boards threads before and after the current message boards thread in the ordered set of message boards threads that the user has permission to view where groupId = ?.
static List<MBThread> filterFindByGroupId(long groupId)
          Returns all the message boards threads that the user has permission to view where groupId = ?.
static List<MBThread> filterFindByGroupId(long groupId, int start, int end)
          Returns a range of all the message boards threads that the user has permission to view where groupId = ?.
static List<MBThread> filterFindByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message boards threads that the user has permissions to view where groupId = ?.
static List<MBThread> findAll()
          Returns all the message boards threads.
static List<MBThread> findAll(int start, int end)
          Returns a range of all the message boards threads.
static List<MBThread> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message boards threads.
static MBThread findByC_P_First(long categoryId, double priority, OrderByComparator orderByComparator)
          Returns the first message boards thread in the ordered set where categoryId = ? and priority = ?.
static MBThread findByC_P_Last(long categoryId, double priority, OrderByComparator orderByComparator)
          Returns the last message boards thread in the ordered set where categoryId = ? and priority = ?.
static MBThread[] findByC_P_PrevAndNext(long threadId, long categoryId, double priority, OrderByComparator orderByComparator)
          Returns the message boards threads before and after the current message boards thread in the ordered set where categoryId = ? and priority = ?.
static List<MBThread> findByC_P(long categoryId, double priority)
          Returns all the message boards threads where categoryId = ? and priority = ?.
static List<MBThread> findByC_P(long categoryId, double priority, int start, int end)
          Returns a range of all the message boards threads where categoryId = ? and priority = ?.
static List<MBThread> findByC_P(long categoryId, double priority, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message boards threads where categoryId = ? and priority = ?.
static MBThread findByG_C_First(long groupId, long categoryId, OrderByComparator orderByComparator)
          Returns the first message boards thread in the ordered set where groupId = ? and categoryId = ?.
static MBThread findByG_C_L_First(long groupId, long categoryId, Date lastPostDate, OrderByComparator orderByComparator)
          Returns the first message boards thread in the ordered set where groupId = ? and categoryId = ? and lastPostDate = ?.
static MBThread findByG_C_L_Last(long groupId, long categoryId, Date lastPostDate, OrderByComparator orderByComparator)
          Returns the last message boards thread in the ordered set where groupId = ? and categoryId = ? and lastPostDate = ?.
static MBThread[] findByG_C_L_PrevAndNext(long threadId, long groupId, long categoryId, Date lastPostDate, OrderByComparator orderByComparator)
          Returns the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId = ? and lastPostDate = ?.
static List<MBThread> findByG_C_L(long groupId, long categoryId, Date lastPostDate)
          Returns all the message boards threads where groupId = ? and categoryId = ? and lastPostDate = ?.
static List<MBThread> findByG_C_L(long groupId, long categoryId, Date lastPostDate, int start, int end)
          Returns a range of all the message boards threads where groupId = ? and categoryId = ? and lastPostDate = ?.
static List<MBThread> findByG_C_L(long groupId, long categoryId, Date lastPostDate, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message boards threads where groupId = ? and categoryId = ? and lastPostDate = ?.
static MBThread findByG_C_Last(long groupId, long categoryId, OrderByComparator orderByComparator)
          Returns the last message boards thread in the ordered set where groupId = ? and categoryId = ?.
static MBThread[] findByG_C_PrevAndNext(long threadId, long groupId, long categoryId, OrderByComparator orderByComparator)
          Returns the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId = ?.
static MBThread findByG_C_S_First(long groupId, long categoryId, int status, OrderByComparator orderByComparator)
          Returns the first message boards thread in the ordered set where groupId = ? and categoryId = ? and status = ?.
static MBThread findByG_C_S_Last(long groupId, long categoryId, int status, OrderByComparator orderByComparator)
          Returns the last message boards thread in the ordered set where groupId = ? and categoryId = ? and status = ?.
static MBThread[] findByG_C_S_PrevAndNext(long threadId, long groupId, long categoryId, int status, OrderByComparator orderByComparator)
          Returns the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId = ? and status = ?.
static List<MBThread> findByG_C_S(long groupId, long[] categoryIds, int status)
          Returns all the message boards threads where groupId = ? and categoryId = any ? and status = ?.
static List<MBThread> findByG_C_S(long groupId, long[] categoryIds, int status, int start, int end)
          Returns a range of all the message boards threads where groupId = ? and categoryId = any ? and status = ?.
static List<MBThread> findByG_C_S(long groupId, long[] categoryIds, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message boards threads where groupId = ? and categoryId = any ? and status = ?.
static List<MBThread> findByG_C_S(long groupId, long categoryId, int status)
          Returns all the message boards threads where groupId = ? and categoryId = ? and status = ?.
static List<MBThread> findByG_C_S(long groupId, long categoryId, int status, int start, int end)
          Returns a range of all the message boards threads where groupId = ? and categoryId = ? and status = ?.
static List<MBThread> findByG_C_S(long groupId, long categoryId, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message boards threads where groupId = ? and categoryId = ? and status = ?.
static List<MBThread> findByG_C(long groupId, long categoryId)
          Returns all the message boards threads where groupId = ? and categoryId = ?.
static List<MBThread> findByG_C(long groupId, long[] categoryIds)
          Returns all the message boards threads where groupId = ? and categoryId = any ?.
static List<MBThread> findByG_C(long groupId, long[] categoryIds, int start, int end)
          Returns a range of all the message boards threads where groupId = ? and categoryId = any ?.
static List<MBThread> findByG_C(long groupId, long[] categoryIds, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message boards threads where groupId = ? and categoryId = any ?.
static List<MBThread> findByG_C(long groupId, long categoryId, int start, int end)
          Returns a range of all the message boards threads where groupId = ? and categoryId = ?.
static List<MBThread> findByG_C(long groupId, long categoryId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message boards threads where groupId = ? and categoryId = ?.
static MBThread findByG_NotC_First(long groupId, long categoryId, OrderByComparator orderByComparator)
          Returns the first message boards thread in the ordered set where groupId = ? and categoryId ≠ ?.
static MBThread findByG_NotC_Last(long groupId, long categoryId, OrderByComparator orderByComparator)
          Returns the last message boards thread in the ordered set where groupId = ? and categoryId ≠ ?.
static MBThread[] findByG_NotC_PrevAndNext(long threadId, long groupId, long categoryId, OrderByComparator orderByComparator)
          Returns the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId ≠ ?.
static MBThread findByG_NotC_S_First(long groupId, long categoryId, int status, OrderByComparator orderByComparator)
          Returns the first message boards thread in the ordered set where groupId = ? and categoryId ≠ ? and status = ?.
static MBThread findByG_NotC_S_Last(long groupId, long categoryId, int status, OrderByComparator orderByComparator)
          Returns the last message boards thread in the ordered set where groupId = ? and categoryId ≠ ? and status = ?.
static MBThread[] findByG_NotC_S_PrevAndNext(long threadId, long groupId, long categoryId, int status, OrderByComparator orderByComparator)
          Returns the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId ≠ ? and status = ?.
static List<MBThread> findByG_NotC_S(long groupId, long categoryId, int status)
          Returns all the message boards threads where groupId = ? and categoryId ≠ ? and status = ?.
static List<MBThread> findByG_NotC_S(long groupId, long categoryId, int status, int start, int end)
          Returns a range of all the message boards threads where groupId = ? and categoryId ≠ ? and status = ?.
static List<MBThread> findByG_NotC_S(long groupId, long categoryId, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message boards threads where groupId = ? and categoryId ≠ ? and status = ?.
static List<MBThread> findByG_NotC(long groupId, long categoryId)
          Returns all the message boards threads where groupId = ? and categoryId ≠ ?.
static List<MBThread> findByG_NotC(long groupId, long categoryId, int start, int end)
          Returns a range of all the message boards threads where groupId = ? and categoryId ≠ ?.
static List<MBThread> findByG_NotC(long groupId, long categoryId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message boards threads where groupId = ? and categoryId ≠ ?.
static MBThread findByG_S_First(long groupId, int status, OrderByComparator orderByComparator)
          Returns the first message boards thread in the ordered set where groupId = ? and status = ?.
static MBThread findByG_S_Last(long groupId, int status, OrderByComparator orderByComparator)
          Returns the last message boards thread in the ordered set where groupId = ? and status = ?.
static MBThread[] findByG_S_PrevAndNext(long threadId, long groupId, int status, OrderByComparator orderByComparator)
          Returns the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and status = ?.
static List<MBThread> findByG_S(long groupId, int status)
          Returns all the message boards threads where groupId = ? and status = ?.
static List<MBThread> findByG_S(long groupId, int status, int start, int end)
          Returns a range of all the message boards threads where groupId = ? and status = ?.
static List<MBThread> findByG_S(long groupId, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message boards threads where groupId = ? and status = ?.
static MBThread findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first message boards thread in the ordered set where groupId = ?.
static MBThread findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last message boards thread in the ordered set where groupId = ?.
static MBThread[] findByGroupId_PrevAndNext(long threadId, long groupId, OrderByComparator orderByComparator)
          Returns the message boards threads before and after the current message boards thread in the ordered set where groupId = ?.
static List<MBThread> findByGroupId(long groupId)
          Returns all the message boards threads where groupId = ?.
static List<MBThread> findByGroupId(long groupId, int start, int end)
          Returns a range of all the message boards threads where groupId = ?.
static List<MBThread> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message boards threads where groupId = ?.
static MBThread findByL_P_First(Date lastPostDate, double priority, OrderByComparator orderByComparator)
          Returns the first message boards thread in the ordered set where lastPostDate = ? and priority = ?.
static MBThread findByL_P_Last(Date lastPostDate, double priority, OrderByComparator orderByComparator)
          Returns the last message boards thread in the ordered set where lastPostDate = ? and priority = ?.
static MBThread[] findByL_P_PrevAndNext(long threadId, Date lastPostDate, double priority, OrderByComparator orderByComparator)
          Returns the message boards threads before and after the current message boards thread in the ordered set where lastPostDate = ? and priority = ?.
static List<MBThread> findByL_P(Date lastPostDate, double priority)
          Returns all the message boards threads where lastPostDate = ? and priority = ?.
static List<MBThread> findByL_P(Date lastPostDate, double priority, int start, int end)
          Returns a range of all the message boards threads where lastPostDate = ? and priority = ?.
static List<MBThread> findByL_P(Date lastPostDate, double priority, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message boards threads where lastPostDate = ? and priority = ?.
static MBThread findByPrimaryKey(long threadId)
          Returns the message boards thread with the primary key or throws a NoSuchThreadException if it could not be found.
static MBThread findByRootMessageId(long rootMessageId)
          Returns the message boards thread where rootMessageId = ? or throws a NoSuchThreadException if it could not be found.
static List<MBThread> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<MBThread> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<MBThread> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static MBThreadPersistence getPersistence()
           
static MBThread remove(long threadId)
          Removes the message boards thread with the primary key from the database.
static void removeAll()
          Removes all the message boards threads from the database.
static void removeByC_P(long categoryId, double priority)
          Removes all the message boards threads where categoryId = ? and priority = ? from the database.
static void removeByG_C_L(long groupId, long categoryId, Date lastPostDate)
          Removes all the message boards threads where groupId = ? and categoryId = ? and lastPostDate = ? from the database.
static void removeByG_C_S(long groupId, long categoryId, int status)
          Removes all the message boards threads where groupId = ? and categoryId = ? and status = ? from the database.
static void removeByG_C(long groupId, long categoryId)
          Removes all the message boards threads where groupId = ? and categoryId = ? from the database.
static void removeByG_NotC_S(long groupId, long categoryId, int status)
          Removes all the message boards threads where groupId = ? and categoryId ≠ ? and status = ? from the database.
static void removeByG_NotC(long groupId, long categoryId)
          Removes all the message boards threads where groupId = ? and categoryId ≠ ? from the database.
static void removeByG_S(long groupId, int status)
          Removes all the message boards threads where groupId = ? and status = ? from the database.
static void removeByGroupId(long groupId)
          Removes all the message boards threads where groupId = ? from the database.
static void removeByL_P(Date lastPostDate, double priority)
          Removes all the message boards threads where lastPostDate = ? and priority = ? from the database.
static MBThread removeByRootMessageId(long rootMessageId)
          Removes the message boards thread where rootMessageId = ? from the database.
 void setPersistence(MBThreadPersistence persistence)
          Deprecated.  
static MBThread update(MBThread mbThread, boolean merge)
           
static MBThread update(MBThread mbThread, boolean merge, ServiceContext serviceContext)
           
static MBThread updateImpl(MBThread mbThread, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBThreadUtil

public MBThreadUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(MBThread mbThread)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public long countWithDynamicQuery(DynamicQuery dynamicQuery)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<MBThread> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<MBThread> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                  int start,
                                                  int end)
                                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<MBThread> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                  int start,
                                                  int end,
                                                  OrderByComparator orderByComparator)
                                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

update

public static MBThread update(MBThread mbThread,
                              boolean merge)
                       throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

update

public static MBThread update(MBThread mbThread,
                              boolean merge,
                              ServiceContext serviceContext)
                       throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)

cacheResult

public static void cacheResult(MBThread mbThread)
Caches the message boards thread in the entity cache if it is enabled.

Parameters:
mbThread - the message boards thread

cacheResult

public static void cacheResult(List<MBThread> mbThreads)
Caches the message boards threads in the entity cache if it is enabled.

Parameters:
mbThreads - the message boards threads

create

public static MBThread create(long threadId)
Creates a new message boards thread with the primary key. Does not add the message boards thread to the database.

Parameters:
threadId - the primary key for the new message boards thread
Returns:
the new message boards thread

remove

public static MBThread remove(long threadId)
                       throws SystemException,
                              NoSuchThreadException
Removes the message boards thread with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
threadId - the primary key of the message boards thread
Returns:
the message boards thread that was removed
Throws:
NoSuchThreadException - if a message boards thread with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

public static MBThread updateImpl(MBThread mbThread,
                                  boolean merge)
                           throws SystemException
Throws:
SystemException

findByPrimaryKey

public static MBThread findByPrimaryKey(long threadId)
                                 throws SystemException,
                                        NoSuchThreadException
Returns the message boards thread with the primary key or throws a NoSuchThreadException if it could not be found.

Parameters:
threadId - the primary key of the message boards thread
Returns:
the message boards thread
Throws:
NoSuchThreadException - if a message boards thread with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public static MBThread fetchByPrimaryKey(long threadId)
                                  throws SystemException
Returns the message boards thread with the primary key or returns null if it could not be found.

Parameters:
threadId - the primary key of the message boards thread
Returns:
the message boards thread, or null if a message boards thread with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<MBThread> findByGroupId(long groupId)
                                    throws SystemException
Returns all the message boards threads where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the matching message boards threads
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<MBThread> findByGroupId(long groupId,
                                           int start,
                                           int end)
                                    throws SystemException
Returns a range of all the message boards threads where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
Returns:
the range of matching message boards threads
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<MBThread> findByGroupId(long groupId,
                                           int start,
                                           int end,
                                           OrderByComparator orderByComparator)
                                    throws SystemException
Returns an ordered range of all the message boards threads where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message boards threads
Throws:
SystemException - if a system exception occurred

findByGroupId_First

public static MBThread findByGroupId_First(long groupId,
                                           OrderByComparator orderByComparator)
                                    throws SystemException,
                                           NoSuchThreadException
Returns the first message boards thread in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message boards thread
Throws:
NoSuchThreadException - if a matching message boards thread could not be found
SystemException - if a system exception occurred

fetchByGroupId_First

public static MBThread fetchByGroupId_First(long groupId,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Returns the first message boards thread in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message boards thread, or null if a matching message boards thread could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId_Last

public static MBThread findByGroupId_Last(long groupId,
                                          OrderByComparator orderByComparator)
                                   throws SystemException,
                                          NoSuchThreadException
Returns the last message boards thread in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message boards thread
Throws:
NoSuchThreadException - if a matching message boards thread could not be found
SystemException - if a system exception occurred

fetchByGroupId_Last

public static MBThread fetchByGroupId_Last(long groupId,
                                           OrderByComparator orderByComparator)
                                    throws SystemException
Returns the last message boards thread in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message boards thread, or null if a matching message boards thread could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

public static MBThread[] findByGroupId_PrevAndNext(long threadId,
                                                   long groupId,
                                                   OrderByComparator orderByComparator)
                                            throws SystemException,
                                                   NoSuchThreadException
Returns the message boards threads before and after the current message boards thread in the ordered set where groupId = ?.

Parameters:
threadId - the primary key of the current message boards thread
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message boards thread
Throws:
NoSuchThreadException - if a message boards thread with the primary key could not be found
SystemException - if a system exception occurred

filterFindByGroupId

public static List<MBThread> filterFindByGroupId(long groupId)
                                          throws SystemException
Returns all the message boards threads that the user has permission to view where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

public static List<MBThread> filterFindByGroupId(long groupId,
                                                 int start,
                                                 int end)
                                          throws SystemException
Returns a range of all the message boards threads that the user has permission to view where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
Returns:
the range of matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

public static List<MBThread> filterFindByGroupId(long groupId,
                                                 int start,
                                                 int end,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException
Returns an ordered range of all the message boards threads that the user has permissions to view where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId_PrevAndNext

public static MBThread[] filterFindByGroupId_PrevAndNext(long threadId,
                                                         long groupId,
                                                         OrderByComparator orderByComparator)
                                                  throws SystemException,
                                                         NoSuchThreadException
Returns the message boards threads before and after the current message boards thread in the ordered set of message boards threads that the user has permission to view where groupId = ?.

Parameters:
threadId - the primary key of the current message boards thread
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message boards thread
Throws:
NoSuchThreadException - if a message boards thread with the primary key could not be found
SystemException - if a system exception occurred

findByRootMessageId

public static MBThread findByRootMessageId(long rootMessageId)
                                    throws SystemException,
                                           NoSuchThreadException
Returns the message boards thread where rootMessageId = ? or throws a NoSuchThreadException if it could not be found.

Parameters:
rootMessageId - the root message ID
Returns:
the matching message boards thread
Throws:
NoSuchThreadException - if a matching message boards thread could not be found
SystemException - if a system exception occurred

fetchByRootMessageId

public static MBThread fetchByRootMessageId(long rootMessageId)
                                     throws SystemException
Returns the message boards thread where rootMessageId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
rootMessageId - the root message ID
Returns:
the matching message boards thread, or null if a matching message boards thread could not be found
Throws:
SystemException - if a system exception occurred

fetchByRootMessageId

public static MBThread fetchByRootMessageId(long rootMessageId,
                                            boolean retrieveFromCache)
                                     throws SystemException
Returns the message boards thread where rootMessageId = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
rootMessageId - the root message ID
retrieveFromCache - whether to use the finder cache
Returns:
the matching message boards thread, or null if a matching message boards thread could not be found
Throws:
SystemException - if a system exception occurred

findByG_C

public static List<MBThread> findByG_C(long groupId,
                                       long categoryId)
                                throws SystemException
Returns all the message boards threads where groupId = ? and categoryId = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
Returns:
the matching message boards threads
Throws:
SystemException - if a system exception occurred

findByG_C

public static List<MBThread> findByG_C(long groupId,
                                       long categoryId,
                                       int start,
                                       int end)
                                throws SystemException
Returns a range of all the message boards threads where groupId = ? and categoryId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
categoryId - the category ID
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
Returns:
the range of matching message boards threads
Throws:
SystemException - if a system exception occurred

findByG_C

public static List<MBThread> findByG_C(long groupId,
                                       long categoryId,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Returns an ordered range of all the message boards threads where groupId = ? and categoryId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
categoryId - the category ID
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message boards threads
Throws:
SystemException - if a system exception occurred

findByG_C_First

public static MBThread findByG_C_First(long groupId,
                                       long categoryId,
                                       OrderByComparator orderByComparator)
                                throws SystemException,
                                       NoSuchThreadException
Returns the first message boards thread in the ordered set where groupId = ? and categoryId = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message boards thread
Throws:
NoSuchThreadException - if a matching message boards thread could not be found
SystemException - if a system exception occurred

fetchByG_C_First

public static MBThread fetchByG_C_First(long groupId,
                                        long categoryId,
                                        OrderByComparator orderByComparator)
                                 throws SystemException
Returns the first message boards thread in the ordered set where groupId = ? and categoryId = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message boards thread, or null if a matching message boards thread could not be found
Throws:
SystemException - if a system exception occurred

findByG_C_Last

public static MBThread findByG_C_Last(long groupId,
                                      long categoryId,
                                      OrderByComparator orderByComparator)
                               throws SystemException,
                                      NoSuchThreadException
Returns the last message boards thread in the ordered set where groupId = ? and categoryId = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message boards thread
Throws:
NoSuchThreadException - if a matching message boards thread could not be found
SystemException - if a system exception occurred

fetchByG_C_Last

public static MBThread fetchByG_C_Last(long groupId,
                                       long categoryId,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Returns the last message boards thread in the ordered set where groupId = ? and categoryId = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message boards thread, or null if a matching message boards thread could not be found
Throws:
SystemException - if a system exception occurred

findByG_C_PrevAndNext

public static MBThread[] findByG_C_PrevAndNext(long threadId,
                                               long groupId,
                                               long categoryId,
                                               OrderByComparator orderByComparator)
                                        throws SystemException,
                                               NoSuchThreadException
Returns the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId = ?.

Parameters:
threadId - the primary key of the current message boards thread
groupId - the group ID
categoryId - the category ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message boards thread
Throws:
NoSuchThreadException - if a message boards thread with the primary key could not be found
SystemException - if a system exception occurred

findByG_C

public static List<MBThread> findByG_C(long groupId,
                                       long[] categoryIds)
                                throws SystemException
Returns all the message boards threads where groupId = ? and categoryId = any ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
categoryIds - the category IDs
Returns:
the matching message boards threads
Throws:
SystemException - if a system exception occurred

findByG_C

public static List<MBThread> findByG_C(long groupId,
                                       long[] categoryIds,
                                       int start,
                                       int end)
                                throws SystemException
Returns a range of all the message boards threads where groupId = ? and categoryId = any ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
categoryIds - the category IDs
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
Returns:
the range of matching message boards threads
Throws:
SystemException - if a system exception occurred

findByG_C

public static List<MBThread> findByG_C(long groupId,
                                       long[] categoryIds,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Returns an ordered range of all the message boards threads where groupId = ? and categoryId = any ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
categoryIds - the category IDs
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message boards threads
Throws:
SystemException - if a system exception occurred

filterFindByG_C

public static List<MBThread> filterFindByG_C(long groupId,
                                             long categoryId)
                                      throws SystemException
Returns all the message boards threads that the user has permission to view where groupId = ? and categoryId = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
Returns:
the matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_C

public static List<MBThread> filterFindByG_C(long groupId,
                                             long categoryId,
                                             int start,
                                             int end)
                                      throws SystemException
Returns a range of all the message boards threads that the user has permission to view where groupId = ? and categoryId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
categoryId - the category ID
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
Returns:
the range of matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_C

public static List<MBThread> filterFindByG_C(long groupId,
                                             long categoryId,
                                             int start,
                                             int end,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Returns an ordered range of all the message boards threads that the user has permissions to view where groupId = ? and categoryId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
categoryId - the category ID
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_C_PrevAndNext

public static MBThread[] filterFindByG_C_PrevAndNext(long threadId,
                                                     long groupId,
                                                     long categoryId,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException,
                                                     NoSuchThreadException
Returns the message boards threads before and after the current message boards thread in the ordered set of message boards threads that the user has permission to view where groupId = ? and categoryId = ?.

Parameters:
threadId - the primary key of the current message boards thread
groupId - the group ID
categoryId - the category ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message boards thread
Throws:
NoSuchThreadException - if a message boards thread with the primary key could not be found
SystemException - if a system exception occurred

filterFindByG_C

public static List<MBThread> filterFindByG_C(long groupId,
                                             long[] categoryIds)
                                      throws SystemException
Returns all the message boards threads that the user has permission to view where groupId = ? and categoryId = any ?.

Parameters:
groupId - the group ID
categoryIds - the category IDs
Returns:
the matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_C

public static List<MBThread> filterFindByG_C(long groupId,
                                             long[] categoryIds,
                                             int start,
                                             int end)
                                      throws SystemException
Returns a range of all the message boards threads that the user has permission to view where groupId = ? and categoryId = any ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
categoryIds - the category IDs
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
Returns:
the range of matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_C

public static List<MBThread> filterFindByG_C(long groupId,
                                             long[] categoryIds,
                                             int start,
                                             int end,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Returns an ordered range of all the message boards threads that the user has permission to view where groupId = ? and categoryId = any ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
categoryIds - the category IDs
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

findByG_NotC

public static List<MBThread> findByG_NotC(long groupId,
                                          long categoryId)
                                   throws SystemException
Returns all the message boards threads where groupId = ? and categoryId ≠ ?.

Parameters:
groupId - the group ID
categoryId - the category ID
Returns:
the matching message boards threads
Throws:
SystemException - if a system exception occurred

findByG_NotC

public static List<MBThread> findByG_NotC(long groupId,
                                          long categoryId,
                                          int start,
                                          int end)
                                   throws SystemException
Returns a range of all the message boards threads where groupId = ? and categoryId ≠ ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
categoryId - the category ID
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
Returns:
the range of matching message boards threads
Throws:
SystemException - if a system exception occurred

findByG_NotC

public static List<MBThread> findByG_NotC(long groupId,
                                          long categoryId,
                                          int start,
                                          int end,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Returns an ordered range of all the message boards threads where groupId = ? and categoryId ≠ ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
categoryId - the category ID
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message boards threads
Throws:
SystemException - if a system exception occurred

findByG_NotC_First

public static MBThread findByG_NotC_First(long groupId,
                                          long categoryId,
                                          OrderByComparator orderByComparator)
                                   throws SystemException,
                                          NoSuchThreadException
Returns the first message boards thread in the ordered set where groupId = ? and categoryId ≠ ?.

Parameters:
groupId - the group ID
categoryId - the category ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message boards thread
Throws:
NoSuchThreadException - if a matching message boards thread could not be found
SystemException - if a system exception occurred

fetchByG_NotC_First

public static MBThread fetchByG_NotC_First(long groupId,
                                           long categoryId,
                                           OrderByComparator orderByComparator)
                                    throws SystemException
Returns the first message boards thread in the ordered set where groupId = ? and categoryId ≠ ?.

Parameters:
groupId - the group ID
categoryId - the category ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message boards thread, or null if a matching message boards thread could not be found
Throws:
SystemException - if a system exception occurred

findByG_NotC_Last

public static MBThread findByG_NotC_Last(long groupId,
                                         long categoryId,
                                         OrderByComparator orderByComparator)
                                  throws SystemException,
                                         NoSuchThreadException
Returns the last message boards thread in the ordered set where groupId = ? and categoryId ≠ ?.

Parameters:
groupId - the group ID
categoryId - the category ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message boards thread
Throws:
NoSuchThreadException - if a matching message boards thread could not be found
SystemException - if a system exception occurred

fetchByG_NotC_Last

public static MBThread fetchByG_NotC_Last(long groupId,
                                          long categoryId,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Returns the last message boards thread in the ordered set where groupId = ? and categoryId ≠ ?.

Parameters:
groupId - the group ID
categoryId - the category ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message boards thread, or null if a matching message boards thread could not be found
Throws:
SystemException - if a system exception occurred

findByG_NotC_PrevAndNext

public static MBThread[] findByG_NotC_PrevAndNext(long threadId,
                                                  long groupId,
                                                  long categoryId,
                                                  OrderByComparator orderByComparator)
                                           throws SystemException,
                                                  NoSuchThreadException
Returns the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId ≠ ?.

Parameters:
threadId - the primary key of the current message boards thread
groupId - the group ID
categoryId - the category ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message boards thread
Throws:
NoSuchThreadException - if a message boards thread with the primary key could not be found
SystemException - if a system exception occurred

filterFindByG_NotC

public static List<MBThread> filterFindByG_NotC(long groupId,
                                                long categoryId)
                                         throws SystemException
Returns all the message boards threads that the user has permission to view where groupId = ? and categoryId ≠ ?.

Parameters:
groupId - the group ID
categoryId - the category ID
Returns:
the matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_NotC

public static List<MBThread> filterFindByG_NotC(long groupId,
                                                long categoryId,
                                                int start,
                                                int end)
                                         throws SystemException
Returns a range of all the message boards threads that the user has permission to view where groupId = ? and categoryId ≠ ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
categoryId - the category ID
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
Returns:
the range of matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_NotC

public static List<MBThread> filterFindByG_NotC(long groupId,
                                                long categoryId,
                                                int start,
                                                int end,
                                                OrderByComparator orderByComparator)
                                         throws SystemException
Returns an ordered range of all the message boards threads that the user has permissions to view where groupId = ? and categoryId ≠ ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
categoryId - the category ID
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_NotC_PrevAndNext

public static MBThread[] filterFindByG_NotC_PrevAndNext(long threadId,
                                                        long groupId,
                                                        long categoryId,
                                                        OrderByComparator orderByComparator)
                                                 throws SystemException,
                                                        NoSuchThreadException
Returns the message boards threads before and after the current message boards thread in the ordered set of message boards threads that the user has permission to view where groupId = ? and categoryId ≠ ?.

Parameters:
threadId - the primary key of the current message boards thread
groupId - the group ID
categoryId - the category ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message boards thread
Throws:
NoSuchThreadException - if a message boards thread with the primary key could not be found
SystemException - if a system exception occurred

findByG_S

public static List<MBThread> findByG_S(long groupId,
                                       int status)
                                throws SystemException
Returns all the message boards threads where groupId = ? and status = ?.

Parameters:
groupId - the group ID
status - the status
Returns:
the matching message boards threads
Throws:
SystemException - if a system exception occurred

findByG_S

public static List<MBThread> findByG_S(long groupId,
                                       int status,
                                       int start,
                                       int end)
                                throws SystemException
Returns a range of all the message boards threads where groupId = ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
status - the status
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
Returns:
the range of matching message boards threads
Throws:
SystemException - if a system exception occurred

findByG_S

public static List<MBThread> findByG_S(long groupId,
                                       int status,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Returns an ordered range of all the message boards threads where groupId = ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
status - the status
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message boards threads
Throws:
SystemException - if a system exception occurred

findByG_S_First

public static MBThread findByG_S_First(long groupId,
                                       int status,
                                       OrderByComparator orderByComparator)
                                throws SystemException,
                                       NoSuchThreadException
Returns the first message boards thread in the ordered set where groupId = ? and status = ?.

Parameters:
groupId - the group ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message boards thread
Throws:
NoSuchThreadException - if a matching message boards thread could not be found
SystemException - if a system exception occurred

fetchByG_S_First

public static MBThread fetchByG_S_First(long groupId,
                                        int status,
                                        OrderByComparator orderByComparator)
                                 throws SystemException
Returns the first message boards thread in the ordered set where groupId = ? and status = ?.

Parameters:
groupId - the group ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message boards thread, or null if a matching message boards thread could not be found
Throws:
SystemException - if a system exception occurred

findByG_S_Last

public static MBThread findByG_S_Last(long groupId,
                                      int status,
                                      OrderByComparator orderByComparator)
                               throws SystemException,
                                      NoSuchThreadException
Returns the last message boards thread in the ordered set where groupId = ? and status = ?.

Parameters:
groupId - the group ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message boards thread
Throws:
NoSuchThreadException - if a matching message boards thread could not be found
SystemException - if a system exception occurred

fetchByG_S_Last

public static MBThread fetchByG_S_Last(long groupId,
                                       int status,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Returns the last message boards thread in the ordered set where groupId = ? and status = ?.

Parameters:
groupId - the group ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message boards thread, or null if a matching message boards thread could not be found
Throws:
SystemException - if a system exception occurred

findByG_S_PrevAndNext

public static MBThread[] findByG_S_PrevAndNext(long threadId,
                                               long groupId,
                                               int status,
                                               OrderByComparator orderByComparator)
                                        throws SystemException,
                                               NoSuchThreadException
Returns the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and status = ?.

Parameters:
threadId - the primary key of the current message boards thread
groupId - the group ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message boards thread
Throws:
NoSuchThreadException - if a message boards thread with the primary key could not be found
SystemException - if a system exception occurred

filterFindByG_S

public static List<MBThread> filterFindByG_S(long groupId,
                                             int status)
                                      throws SystemException
Returns all the message boards threads that the user has permission to view where groupId = ? and status = ?.

Parameters:
groupId - the group ID
status - the status
Returns:
the matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_S

public static List<MBThread> filterFindByG_S(long groupId,
                                             int status,
                                             int start,
                                             int end)
                                      throws SystemException
Returns a range of all the message boards threads that the user has permission to view where groupId = ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
status - the status
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
Returns:
the range of matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_S

public static List<MBThread> filterFindByG_S(long groupId,
                                             int status,
                                             int start,
                                             int end,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Returns an ordered range of all the message boards threads that the user has permissions to view where groupId = ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
status - the status
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_S_PrevAndNext

public static MBThread[] filterFindByG_S_PrevAndNext(long threadId,
                                                     long groupId,
                                                     int status,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException,
                                                     NoSuchThreadException
Returns the message boards threads before and after the current message boards thread in the ordered set of message boards threads that the user has permission to view where groupId = ? and status = ?.

Parameters:
threadId - the primary key of the current message boards thread
groupId - the group ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message boards thread
Throws:
NoSuchThreadException - if a message boards thread with the primary key could not be found
SystemException - if a system exception occurred

findByC_P

public static List<MBThread> findByC_P(long categoryId,
                                       double priority)
                                throws SystemException
Returns all the message boards threads where categoryId = ? and priority = ?.

Parameters:
categoryId - the category ID
priority - the priority
Returns:
the matching message boards threads
Throws:
SystemException - if a system exception occurred

findByC_P

public static List<MBThread> findByC_P(long categoryId,
                                       double priority,
                                       int start,
                                       int end)
                                throws SystemException
Returns a range of all the message boards threads where categoryId = ? and priority = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
categoryId - the category ID
priority - the priority
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
Returns:
the range of matching message boards threads
Throws:
SystemException - if a system exception occurred

findByC_P

public static List<MBThread> findByC_P(long categoryId,
                                       double priority,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Returns an ordered range of all the message boards threads where categoryId = ? and priority = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
categoryId - the category ID
priority - the priority
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message boards threads
Throws:
SystemException - if a system exception occurred

findByC_P_First

public static MBThread findByC_P_First(long categoryId,
                                       double priority,
                                       OrderByComparator orderByComparator)
                                throws SystemException,
                                       NoSuchThreadException
Returns the first message boards thread in the ordered set where categoryId = ? and priority = ?.

Parameters:
categoryId - the category ID
priority - the priority
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message boards thread
Throws:
NoSuchThreadException - if a matching message boards thread could not be found
SystemException - if a system exception occurred

fetchByC_P_First

public static MBThread fetchByC_P_First(long categoryId,
                                        double priority,
                                        OrderByComparator orderByComparator)
                                 throws SystemException
Returns the first message boards thread in the ordered set where categoryId = ? and priority = ?.

Parameters:
categoryId - the category ID
priority - the priority
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message boards thread, or null if a matching message boards thread could not be found
Throws:
SystemException - if a system exception occurred

findByC_P_Last

public static MBThread findByC_P_Last(long categoryId,
                                      double priority,
                                      OrderByComparator orderByComparator)
                               throws SystemException,
                                      NoSuchThreadException
Returns the last message boards thread in the ordered set where categoryId = ? and priority = ?.

Parameters:
categoryId - the category ID
priority - the priority
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message boards thread
Throws:
NoSuchThreadException - if a matching message boards thread could not be found
SystemException - if a system exception occurred

fetchByC_P_Last

public static MBThread fetchByC_P_Last(long categoryId,
                                       double priority,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Returns the last message boards thread in the ordered set where categoryId = ? and priority = ?.

Parameters:
categoryId - the category ID
priority - the priority
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message boards thread, or null if a matching message boards thread could not be found
Throws:
SystemException - if a system exception occurred

findByC_P_PrevAndNext

public static MBThread[] findByC_P_PrevAndNext(long threadId,
                                               long categoryId,
                                               double priority,
                                               OrderByComparator orderByComparator)
                                        throws SystemException,
                                               NoSuchThreadException
Returns the message boards threads before and after the current message boards thread in the ordered set where categoryId = ? and priority = ?.

Parameters:
threadId - the primary key of the current message boards thread
categoryId - the category ID
priority - the priority
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message boards thread
Throws:
NoSuchThreadException - if a message boards thread with the primary key could not be found
SystemException - if a system exception occurred

findByL_P

public static List<MBThread> findByL_P(Date lastPostDate,
                                       double priority)
                                throws SystemException
Returns all the message boards threads where lastPostDate = ? and priority = ?.

Parameters:
lastPostDate - the last post date
priority - the priority
Returns:
the matching message boards threads
Throws:
SystemException - if a system exception occurred

findByL_P

public static List<MBThread> findByL_P(Date lastPostDate,
                                       double priority,
                                       int start,
                                       int end)
                                throws SystemException
Returns a range of all the message boards threads where lastPostDate = ? and priority = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
lastPostDate - the last post date
priority - the priority
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
Returns:
the range of matching message boards threads
Throws:
SystemException - if a system exception occurred

findByL_P

public static List<MBThread> findByL_P(Date lastPostDate,
                                       double priority,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Returns an ordered range of all the message boards threads where lastPostDate = ? and priority = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
lastPostDate - the last post date
priority - the priority
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message boards threads
Throws:
SystemException - if a system exception occurred

findByL_P_First

public static MBThread findByL_P_First(Date lastPostDate,
                                       double priority,
                                       OrderByComparator orderByComparator)
                                throws SystemException,
                                       NoSuchThreadException
Returns the first message boards thread in the ordered set where lastPostDate = ? and priority = ?.

Parameters:
lastPostDate - the last post date
priority - the priority
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message boards thread
Throws:
NoSuchThreadException - if a matching message boards thread could not be found
SystemException - if a system exception occurred

fetchByL_P_First

public static MBThread fetchByL_P_First(Date lastPostDate,
                                        double priority,
                                        OrderByComparator orderByComparator)
                                 throws SystemException
Returns the first message boards thread in the ordered set where lastPostDate = ? and priority = ?.

Parameters:
lastPostDate - the last post date
priority - the priority
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message boards thread, or null if a matching message boards thread could not be found
Throws:
SystemException - if a system exception occurred

findByL_P_Last

public static MBThread findByL_P_Last(Date lastPostDate,
                                      double priority,
                                      OrderByComparator orderByComparator)
                               throws SystemException,
                                      NoSuchThreadException
Returns the last message boards thread in the ordered set where lastPostDate = ? and priority = ?.

Parameters:
lastPostDate - the last post date
priority - the priority
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message boards thread
Throws:
NoSuchThreadException - if a matching message boards thread could not be found
SystemException - if a system exception occurred

fetchByL_P_Last

public static MBThread fetchByL_P_Last(Date lastPostDate,
                                       double priority,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Returns the last message boards thread in the ordered set where lastPostDate = ? and priority = ?.

Parameters:
lastPostDate - the last post date
priority - the priority
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message boards thread, or null if a matching message boards thread could not be found
Throws:
SystemException - if a system exception occurred

findByL_P_PrevAndNext

public static MBThread[] findByL_P_PrevAndNext(long threadId,
                                               Date lastPostDate,
                                               double priority,
                                               OrderByComparator orderByComparator)
                                        throws SystemException,
                                               NoSuchThreadException
Returns the message boards threads before and after the current message boards thread in the ordered set where lastPostDate = ? and priority = ?.

Parameters:
threadId - the primary key of the current message boards thread
lastPostDate - the last post date
priority - the priority
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message boards thread
Throws:
NoSuchThreadException - if a message boards thread with the primary key could not be found
SystemException - if a system exception occurred

findByG_C_L

public static List<MBThread> findByG_C_L(long groupId,
                                         long categoryId,
                                         Date lastPostDate)
                                  throws SystemException
Returns all the message boards threads where groupId = ? and categoryId = ? and lastPostDate = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
lastPostDate - the last post date
Returns:
the matching message boards threads
Throws:
SystemException - if a system exception occurred

findByG_C_L

public static List<MBThread> findByG_C_L(long groupId,
                                         long categoryId,
                                         Date lastPostDate,
                                         int start,
                                         int end)
                                  throws SystemException
Returns a range of all the message boards threads where groupId = ? and categoryId = ? and lastPostDate = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
categoryId - the category ID
lastPostDate - the last post date
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
Returns:
the range of matching message boards threads
Throws:
SystemException - if a system exception occurred

findByG_C_L

public static List<MBThread> findByG_C_L(long groupId,
                                         long categoryId,
                                         Date lastPostDate,
                                         int start,
                                         int end,
                                         OrderByComparator orderByComparator)
                                  throws SystemException
Returns an ordered range of all the message boards threads where groupId = ? and categoryId = ? and lastPostDate = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
categoryId - the category ID
lastPostDate - the last post date
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message boards threads
Throws:
SystemException - if a system exception occurred

findByG_C_L_First

public static MBThread findByG_C_L_First(long groupId,
                                         long categoryId,
                                         Date lastPostDate,
                                         OrderByComparator orderByComparator)
                                  throws SystemException,
                                         NoSuchThreadException
Returns the first message boards thread in the ordered set where groupId = ? and categoryId = ? and lastPostDate = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
lastPostDate - the last post date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message boards thread
Throws:
NoSuchThreadException - if a matching message boards thread could not be found
SystemException - if a system exception occurred

fetchByG_C_L_First

public static MBThread fetchByG_C_L_First(long groupId,
                                          long categoryId,
                                          Date lastPostDate,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Returns the first message boards thread in the ordered set where groupId = ? and categoryId = ? and lastPostDate = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
lastPostDate - the last post date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message boards thread, or null if a matching message boards thread could not be found
Throws:
SystemException - if a system exception occurred

findByG_C_L_Last

public static MBThread findByG_C_L_Last(long groupId,
                                        long categoryId,
                                        Date lastPostDate,
                                        OrderByComparator orderByComparator)
                                 throws SystemException,
                                        NoSuchThreadException
Returns the last message boards thread in the ordered set where groupId = ? and categoryId = ? and lastPostDate = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
lastPostDate - the last post date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message boards thread
Throws:
NoSuchThreadException - if a matching message boards thread could not be found
SystemException - if a system exception occurred

fetchByG_C_L_Last

public static MBThread fetchByG_C_L_Last(long groupId,
                                         long categoryId,
                                         Date lastPostDate,
                                         OrderByComparator orderByComparator)
                                  throws SystemException
Returns the last message boards thread in the ordered set where groupId = ? and categoryId = ? and lastPostDate = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
lastPostDate - the last post date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message boards thread, or null if a matching message boards thread could not be found
Throws:
SystemException - if a system exception occurred

findByG_C_L_PrevAndNext

public static MBThread[] findByG_C_L_PrevAndNext(long threadId,
                                                 long groupId,
                                                 long categoryId,
                                                 Date lastPostDate,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException,
                                                 NoSuchThreadException
Returns the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId = ? and lastPostDate = ?.

Parameters:
threadId - the primary key of the current message boards thread
groupId - the group ID
categoryId - the category ID
lastPostDate - the last post date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message boards thread
Throws:
NoSuchThreadException - if a message boards thread with the primary key could not be found
SystemException - if a system exception occurred

filterFindByG_C_L

public static List<MBThread> filterFindByG_C_L(long groupId,
                                               long categoryId,
                                               Date lastPostDate)
                                        throws SystemException
Returns all the message boards threads that the user has permission to view where groupId = ? and categoryId = ? and lastPostDate = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
lastPostDate - the last post date
Returns:
the matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_C_L

public static List<MBThread> filterFindByG_C_L(long groupId,
                                               long categoryId,
                                               Date lastPostDate,
                                               int start,
                                               int end)
                                        throws SystemException
Returns a range of all the message boards threads that the user has permission to view where groupId = ? and categoryId = ? and lastPostDate = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
categoryId - the category ID
lastPostDate - the last post date
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
Returns:
the range of matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_C_L

public static List<MBThread> filterFindByG_C_L(long groupId,
                                               long categoryId,
                                               Date lastPostDate,
                                               int start,
                                               int end,
                                               OrderByComparator orderByComparator)
                                        throws SystemException
Returns an ordered range of all the message boards threads that the user has permissions to view where groupId = ? and categoryId = ? and lastPostDate = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
categoryId - the category ID
lastPostDate - the last post date
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_C_L_PrevAndNext

public static MBThread[] filterFindByG_C_L_PrevAndNext(long threadId,
                                                       long groupId,
                                                       long categoryId,
                                                       Date lastPostDate,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException,
                                                       NoSuchThreadException
Returns the message boards threads before and after the current message boards thread in the ordered set of message boards threads that the user has permission to view where groupId = ? and categoryId = ? and lastPostDate = ?.

Parameters:
threadId - the primary key of the current message boards thread
groupId - the group ID
categoryId - the category ID
lastPostDate - the last post date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message boards thread
Throws:
NoSuchThreadException - if a message boards thread with the primary key could not be found
SystemException - if a system exception occurred

findByG_C_S

public static List<MBThread> findByG_C_S(long groupId,
                                         long categoryId,
                                         int status)
                                  throws SystemException
Returns all the message boards threads where groupId = ? and categoryId = ? and status = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
Returns:
the matching message boards threads
Throws:
SystemException - if a system exception occurred

findByG_C_S

public static List<MBThread> findByG_C_S(long groupId,
                                         long categoryId,
                                         int status,
                                         int start,
                                         int end)
                                  throws SystemException
Returns a range of all the message boards threads where groupId = ? and categoryId = ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
Returns:
the range of matching message boards threads
Throws:
SystemException - if a system exception occurred

findByG_C_S

public static List<MBThread> findByG_C_S(long groupId,
                                         long categoryId,
                                         int status,
                                         int start,
                                         int end,
                                         OrderByComparator orderByComparator)
                                  throws SystemException
Returns an ordered range of all the message boards threads where groupId = ? and categoryId = ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message boards threads
Throws:
SystemException - if a system exception occurred

findByG_C_S_First

public static MBThread findByG_C_S_First(long groupId,
                                         long categoryId,
                                         int status,
                                         OrderByComparator orderByComparator)
                                  throws SystemException,
                                         NoSuchThreadException
Returns the first message boards thread in the ordered set where groupId = ? and categoryId = ? and status = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message boards thread
Throws:
NoSuchThreadException - if a matching message boards thread could not be found
SystemException - if a system exception occurred

fetchByG_C_S_First

public static MBThread fetchByG_C_S_First(long groupId,
                                          long categoryId,
                                          int status,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Returns the first message boards thread in the ordered set where groupId = ? and categoryId = ? and status = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message boards thread, or null if a matching message boards thread could not be found
Throws:
SystemException - if a system exception occurred

findByG_C_S_Last

public static MBThread findByG_C_S_Last(long groupId,
                                        long categoryId,
                                        int status,
                                        OrderByComparator orderByComparator)
                                 throws SystemException,
                                        NoSuchThreadException
Returns the last message boards thread in the ordered set where groupId = ? and categoryId = ? and status = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message boards thread
Throws:
NoSuchThreadException - if a matching message boards thread could not be found
SystemException - if a system exception occurred

fetchByG_C_S_Last

public static MBThread fetchByG_C_S_Last(long groupId,
                                         long categoryId,
                                         int status,
                                         OrderByComparator orderByComparator)
                                  throws SystemException
Returns the last message boards thread in the ordered set where groupId = ? and categoryId = ? and status = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message boards thread, or null if a matching message boards thread could not be found
Throws:
SystemException - if a system exception occurred

findByG_C_S_PrevAndNext

public static MBThread[] findByG_C_S_PrevAndNext(long threadId,
                                                 long groupId,
                                                 long categoryId,
                                                 int status,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException,
                                                 NoSuchThreadException
Returns the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId = ? and status = ?.

Parameters:
threadId - the primary key of the current message boards thread
groupId - the group ID
categoryId - the category ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message boards thread
Throws:
NoSuchThreadException - if a message boards thread with the primary key could not be found
SystemException - if a system exception occurred

findByG_C_S

public static List<MBThread> findByG_C_S(long groupId,
                                         long[] categoryIds,
                                         int status)
                                  throws SystemException
Returns all the message boards threads where groupId = ? and categoryId = any ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
categoryIds - the category IDs
status - the status
Returns:
the matching message boards threads
Throws:
SystemException - if a system exception occurred

findByG_C_S

public static List<MBThread> findByG_C_S(long groupId,
                                         long[] categoryIds,
                                         int status,
                                         int start,
                                         int end)
                                  throws SystemException
Returns a range of all the message boards threads where groupId = ? and categoryId = any ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
categoryIds - the category IDs
status - the status
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
Returns:
the range of matching message boards threads
Throws:
SystemException - if a system exception occurred

findByG_C_S

public static List<MBThread> findByG_C_S(long groupId,
                                         long[] categoryIds,
                                         int status,
                                         int start,
                                         int end,
                                         OrderByComparator orderByComparator)
                                  throws SystemException
Returns an ordered range of all the message boards threads where groupId = ? and categoryId = any ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
categoryIds - the category IDs
status - the status
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message boards threads
Throws:
SystemException - if a system exception occurred

filterFindByG_C_S

public static List<MBThread> filterFindByG_C_S(long groupId,
                                               long categoryId,
                                               int status)
                                        throws SystemException
Returns all the message boards threads that the user has permission to view where groupId = ? and categoryId = ? and status = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
Returns:
the matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_C_S

public static List<MBThread> filterFindByG_C_S(long groupId,
                                               long categoryId,
                                               int status,
                                               int start,
                                               int end)
                                        throws SystemException
Returns a range of all the message boards threads that the user has permission to view where groupId = ? and categoryId = ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
Returns:
the range of matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_C_S

public static List<MBThread> filterFindByG_C_S(long groupId,
                                               long categoryId,
                                               int status,
                                               int start,
                                               int end,
                                               OrderByComparator orderByComparator)
                                        throws SystemException
Returns an ordered range of all the message boards threads that the user has permissions to view where groupId = ? and categoryId = ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_C_S_PrevAndNext

public static MBThread[] filterFindByG_C_S_PrevAndNext(long threadId,
                                                       long groupId,
                                                       long categoryId,
                                                       int status,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException,
                                                       NoSuchThreadException
Returns the message boards threads before and after the current message boards thread in the ordered set of message boards threads that the user has permission to view where groupId = ? and categoryId = ? and status = ?.

Parameters:
threadId - the primary key of the current message boards thread
groupId - the group ID
categoryId - the category ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message boards thread
Throws:
NoSuchThreadException - if a message boards thread with the primary key could not be found
SystemException - if a system exception occurred

filterFindByG_C_S

public static List<MBThread> filterFindByG_C_S(long groupId,
                                               long[] categoryIds,
                                               int status)
                                        throws SystemException
Returns all the message boards threads that the user has permission to view where groupId = ? and categoryId = any ? and status = ?.

Parameters:
groupId - the group ID
categoryIds - the category IDs
status - the status
Returns:
the matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_C_S

public static List<MBThread> filterFindByG_C_S(long groupId,
                                               long[] categoryIds,
                                               int status,
                                               int start,
                                               int end)
                                        throws SystemException
Returns a range of all the message boards threads that the user has permission to view where groupId = ? and categoryId = any ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
categoryIds - the category IDs
status - the status
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
Returns:
the range of matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_C_S

public static List<MBThread> filterFindByG_C_S(long groupId,
                                               long[] categoryIds,
                                               int status,
                                               int start,
                                               int end,
                                               OrderByComparator orderByComparator)
                                        throws SystemException
Returns an ordered range of all the message boards threads that the user has permission to view where groupId = ? and categoryId = any ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
categoryIds - the category IDs
status - the status
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

findByG_NotC_S

public static List<MBThread> findByG_NotC_S(long groupId,
                                            long categoryId,
                                            int status)
                                     throws SystemException
Returns all the message boards threads where groupId = ? and categoryId ≠ ? and status = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
Returns:
the matching message boards threads
Throws:
SystemException - if a system exception occurred

findByG_NotC_S

public static List<MBThread> findByG_NotC_S(long groupId,
                                            long categoryId,
                                            int status,
                                            int start,
                                            int end)
                                     throws SystemException
Returns a range of all the message boards threads where groupId = ? and categoryId ≠ ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
Returns:
the range of matching message boards threads
Throws:
SystemException - if a system exception occurred

findByG_NotC_S

public static List<MBThread> findByG_NotC_S(long groupId,
                                            long categoryId,
                                            int status,
                                            int start,
                                            int end,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Returns an ordered range of all the message boards threads where groupId = ? and categoryId ≠ ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message boards threads
Throws:
SystemException - if a system exception occurred

findByG_NotC_S_First

public static MBThread findByG_NotC_S_First(long groupId,
                                            long categoryId,
                                            int status,
                                            OrderByComparator orderByComparator)
                                     throws SystemException,
                                            NoSuchThreadException
Returns the first message boards thread in the ordered set where groupId = ? and categoryId ≠ ? and status = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message boards thread
Throws:
NoSuchThreadException - if a matching message boards thread could not be found
SystemException - if a system exception occurred

fetchByG_NotC_S_First

public static MBThread fetchByG_NotC_S_First(long groupId,
                                             long categoryId,
                                             int status,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Returns the first message boards thread in the ordered set where groupId = ? and categoryId ≠ ? and status = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message boards thread, or null if a matching message boards thread could not be found
Throws:
SystemException - if a system exception occurred

findByG_NotC_S_Last

public static MBThread findByG_NotC_S_Last(long groupId,
                                           long categoryId,
                                           int status,
                                           OrderByComparator orderByComparator)
                                    throws SystemException,
                                           NoSuchThreadException
Returns the last message boards thread in the ordered set where groupId = ? and categoryId ≠ ? and status = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message boards thread
Throws:
NoSuchThreadException - if a matching message boards thread could not be found
SystemException - if a system exception occurred

fetchByG_NotC_S_Last

public static MBThread fetchByG_NotC_S_Last(long groupId,
                                            long categoryId,
                                            int status,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Returns the last message boards thread in the ordered set where groupId = ? and categoryId ≠ ? and status = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message boards thread, or null if a matching message boards thread could not be found
Throws:
SystemException - if a system exception occurred

findByG_NotC_S_PrevAndNext

public static MBThread[] findByG_NotC_S_PrevAndNext(long threadId,
                                                    long groupId,
                                                    long categoryId,
                                                    int status,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException,
                                                    NoSuchThreadException
Returns the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId ≠ ? and status = ?.

Parameters:
threadId - the primary key of the current message boards thread
groupId - the group ID
categoryId - the category ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message boards thread
Throws:
NoSuchThreadException - if a message boards thread with the primary key could not be found
SystemException - if a system exception occurred

filterFindByG_NotC_S

public static List<MBThread> filterFindByG_NotC_S(long groupId,
                                                  long categoryId,
                                                  int status)
                                           throws SystemException
Returns all the message boards threads that the user has permission to view where groupId = ? and categoryId ≠ ? and status = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
Returns:
the matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_NotC_S

public static List<MBThread> filterFindByG_NotC_S(long groupId,
                                                  long categoryId,
                                                  int status,
                                                  int start,
                                                  int end)
                                           throws SystemException
Returns a range of all the message boards threads that the user has permission to view where groupId = ? and categoryId ≠ ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
Returns:
the range of matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_NotC_S

public static List<MBThread> filterFindByG_NotC_S(long groupId,
                                                  long categoryId,
                                                  int status,
                                                  int start,
                                                  int end,
                                                  OrderByComparator orderByComparator)
                                           throws SystemException
Returns an ordered range of all the message boards threads that the user has permissions to view where groupId = ? and categoryId ≠ ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_NotC_S_PrevAndNext

public static MBThread[] filterFindByG_NotC_S_PrevAndNext(long threadId,
                                                          long groupId,
                                                          long categoryId,
                                                          int status,
                                                          OrderByComparator orderByComparator)
                                                   throws SystemException,
                                                          NoSuchThreadException
Returns the message boards threads before and after the current message boards thread in the ordered set of message boards threads that the user has permission to view where groupId = ? and categoryId ≠ ? and status = ?.

Parameters:
threadId - the primary key of the current message boards thread
groupId - the group ID
categoryId - the category ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message boards thread
Throws:
NoSuchThreadException - if a message boards thread with the primary key could not be found
SystemException - if a system exception occurred

findAll

public static List<MBThread> findAll()
                              throws SystemException
Returns all the message boards threads.

Returns:
the message boards threads
Throws:
SystemException - if a system exception occurred

findAll

public static List<MBThread> findAll(int start,
                                     int end)
                              throws SystemException
Returns a range of all the message boards threads.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
Returns:
the range of message boards threads
Throws:
SystemException - if a system exception occurred

findAll

public static List<MBThread> findAll(int start,
                                     int end,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Returns an ordered range of all the message boards threads.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of message boards threads
Throws:
SystemException - if a system exception occurred

removeByGroupId

public static void removeByGroupId(long groupId)
                            throws SystemException
Removes all the message boards threads where groupId = ? from the database.

Parameters:
groupId - the group ID
Throws:
SystemException - if a system exception occurred

removeByRootMessageId

public static MBThread removeByRootMessageId(long rootMessageId)
                                      throws SystemException,
                                             NoSuchThreadException
Removes the message boards thread where rootMessageId = ? from the database.

Parameters:
rootMessageId - the root message ID
Returns:
the message boards thread that was removed
Throws:
SystemException - if a system exception occurred
NoSuchThreadException

removeByG_C

public static void removeByG_C(long groupId,
                               long categoryId)
                        throws SystemException
Removes all the message boards threads where groupId = ? and categoryId = ? from the database.

Parameters:
groupId - the group ID
categoryId - the category ID
Throws:
SystemException - if a system exception occurred

removeByG_NotC

public static void removeByG_NotC(long groupId,
                                  long categoryId)
                           throws SystemException
Removes all the message boards threads where groupId = ? and categoryId ≠ ? from the database.

Parameters:
groupId - the group ID
categoryId - the category ID
Throws:
SystemException - if a system exception occurred

removeByG_S

public static void removeByG_S(long groupId,
                               int status)
                        throws SystemException
Removes all the message boards threads where groupId = ? and status = ? from the database.

Parameters:
groupId - the group ID
status - the status
Throws:
SystemException - if a system exception occurred

removeByC_P

public static void removeByC_P(long categoryId,
                               double priority)
                        throws SystemException
Removes all the message boards threads where categoryId = ? and priority = ? from the database.

Parameters:
categoryId - the category ID
priority - the priority
Throws:
SystemException - if a system exception occurred

removeByL_P

public static void removeByL_P(Date lastPostDate,
                               double priority)
                        throws SystemException
Removes all the message boards threads where lastPostDate = ? and priority = ? from the database.

Parameters:
lastPostDate - the last post date
priority - the priority
Throws:
SystemException - if a system exception occurred

removeByG_C_L

public static void removeByG_C_L(long groupId,
                                 long categoryId,
                                 Date lastPostDate)
                          throws SystemException
Removes all the message boards threads where groupId = ? and categoryId = ? and lastPostDate = ? from the database.

Parameters:
groupId - the group ID
categoryId - the category ID
lastPostDate - the last post date
Throws:
SystemException - if a system exception occurred

removeByG_C_S

public static void removeByG_C_S(long groupId,
                                 long categoryId,
                                 int status)
                          throws SystemException
Removes all the message boards threads where groupId = ? and categoryId = ? and status = ? from the database.

Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
Throws:
SystemException - if a system exception occurred

removeByG_NotC_S

public static void removeByG_NotC_S(long groupId,
                                    long categoryId,
                                    int status)
                             throws SystemException
Removes all the message boards threads where groupId = ? and categoryId ≠ ? and status = ? from the database.

Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
Throws:
SystemException - if a system exception occurred

removeAll

public static void removeAll()
                      throws SystemException
Removes all the message boards threads from the database.

Throws:
SystemException - if a system exception occurred

countByGroupId

public static int countByGroupId(long groupId)
                          throws SystemException
Returns the number of message boards threads where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the number of matching message boards threads
Throws:
SystemException - if a system exception occurred

filterCountByGroupId

public static int filterCountByGroupId(long groupId)
                                throws SystemException
Returns the number of message boards threads that the user has permission to view where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the number of matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

countByRootMessageId

public static int countByRootMessageId(long rootMessageId)
                                throws SystemException
Returns the number of message boards threads where rootMessageId = ?.

Parameters:
rootMessageId - the root message ID
Returns:
the number of matching message boards threads
Throws:
SystemException - if a system exception occurred

countByG_C

public static int countByG_C(long groupId,
                             long categoryId)
                      throws SystemException
Returns the number of message boards threads where groupId = ? and categoryId = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
Returns:
the number of matching message boards threads
Throws:
SystemException - if a system exception occurred

countByG_C

public static int countByG_C(long groupId,
                             long[] categoryIds)
                      throws SystemException
Returns the number of message boards threads where groupId = ? and categoryId = any ?.

Parameters:
groupId - the group ID
categoryIds - the category IDs
Returns:
the number of matching message boards threads
Throws:
SystemException - if a system exception occurred

filterCountByG_C

public static int filterCountByG_C(long groupId,
                                   long categoryId)
                            throws SystemException
Returns the number of message boards threads that the user has permission to view where groupId = ? and categoryId = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
Returns:
the number of matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterCountByG_C

public static int filterCountByG_C(long groupId,
                                   long[] categoryIds)
                            throws SystemException
Returns the number of message boards threads that the user has permission to view where groupId = ? and categoryId = any ?.

Parameters:
groupId - the group ID
categoryIds - the category IDs
Returns:
the number of matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

countByG_NotC

public static int countByG_NotC(long groupId,
                                long categoryId)
                         throws SystemException
Returns the number of message boards threads where groupId = ? and categoryId ≠ ?.

Parameters:
groupId - the group ID
categoryId - the category ID
Returns:
the number of matching message boards threads
Throws:
SystemException - if a system exception occurred

filterCountByG_NotC

public static int filterCountByG_NotC(long groupId,
                                      long categoryId)
                               throws SystemException
Returns the number of message boards threads that the user has permission to view where groupId = ? and categoryId ≠ ?.

Parameters:
groupId - the group ID
categoryId - the category ID
Returns:
the number of matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

countByG_S

public static int countByG_S(long groupId,
                             int status)
                      throws SystemException
Returns the number of message boards threads where groupId = ? and status = ?.

Parameters:
groupId - the group ID
status - the status
Returns:
the number of matching message boards threads
Throws:
SystemException - if a system exception occurred

filterCountByG_S

public static int filterCountByG_S(long groupId,
                                   int status)
                            throws SystemException
Returns the number of message boards threads that the user has permission to view where groupId = ? and status = ?.

Parameters:
groupId - the group ID
status - the status
Returns:
the number of matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

countByC_P

public static int countByC_P(long categoryId,
                             double priority)
                      throws SystemException
Returns the number of message boards threads where categoryId = ? and priority = ?.

Parameters:
categoryId - the category ID
priority - the priority
Returns:
the number of matching message boards threads
Throws:
SystemException - if a system exception occurred

countByL_P

public static int countByL_P(Date lastPostDate,
                             double priority)
                      throws SystemException
Returns the number of message boards threads where lastPostDate = ? and priority = ?.

Parameters:
lastPostDate - the last post date
priority - the priority
Returns:
the number of matching message boards threads
Throws:
SystemException - if a system exception occurred

countByG_C_L

public static int countByG_C_L(long groupId,
                               long categoryId,
                               Date lastPostDate)
                        throws SystemException
Returns the number of message boards threads where groupId = ? and categoryId = ? and lastPostDate = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
lastPostDate - the last post date
Returns:
the number of matching message boards threads
Throws:
SystemException - if a system exception occurred

filterCountByG_C_L

public static int filterCountByG_C_L(long groupId,
                                     long categoryId,
                                     Date lastPostDate)
                              throws SystemException
Returns the number of message boards threads that the user has permission to view where groupId = ? and categoryId = ? and lastPostDate = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
lastPostDate - the last post date
Returns:
the number of matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

countByG_C_S

public static int countByG_C_S(long groupId,
                               long categoryId,
                               int status)
                        throws SystemException
Returns the number of message boards threads where groupId = ? and categoryId = ? and status = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
Returns:
the number of matching message boards threads
Throws:
SystemException - if a system exception occurred

countByG_C_S

public static int countByG_C_S(long groupId,
                               long[] categoryIds,
                               int status)
                        throws SystemException
Returns the number of message boards threads where groupId = ? and categoryId = any ? and status = ?.

Parameters:
groupId - the group ID
categoryIds - the category IDs
status - the status
Returns:
the number of matching message boards threads
Throws:
SystemException - if a system exception occurred

filterCountByG_C_S

public static int filterCountByG_C_S(long groupId,
                                     long categoryId,
                                     int status)
                              throws SystemException
Returns the number of message boards threads that the user has permission to view where groupId = ? and categoryId = ? and status = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
Returns:
the number of matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterCountByG_C_S

public static int filterCountByG_C_S(long groupId,
                                     long[] categoryIds,
                                     int status)
                              throws SystemException
Returns the number of message boards threads that the user has permission to view where groupId = ? and categoryId = any ? and status = ?.

Parameters:
groupId - the group ID
categoryIds - the category IDs
status - the status
Returns:
the number of matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

countByG_NotC_S

public static int countByG_NotC_S(long groupId,
                                  long categoryId,
                                  int status)
                           throws SystemException
Returns the number of message boards threads where groupId = ? and categoryId ≠ ? and status = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
Returns:
the number of matching message boards threads
Throws:
SystemException - if a system exception occurred

filterCountByG_NotC_S

public static int filterCountByG_NotC_S(long groupId,
                                        long categoryId,
                                        int status)
                                 throws SystemException
Returns the number of message boards threads that the user has permission to view where groupId = ? and categoryId ≠ ? and status = ?.

Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
Returns:
the number of matching message boards threads that the user has permission to view
Throws:
SystemException - if a system exception occurred

countAll

public static int countAll()
                    throws SystemException
Returns the number of message boards threads.

Returns:
the number of message boards threads
Throws:
SystemException - if a system exception occurred

getPersistence

public static MBThreadPersistence getPersistence()

setPersistence

public void setPersistence(MBThreadPersistence persistence)
Deprecated. 


Liferay 6.1.2-ce-ga3