Liferay 6.2-ce-ga5

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

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<MBMessage>
      extended by com.liferay.portlet.messageboards.service.persistence.MBMessagePersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<MBMessage>, MBMessagePersistence

public class MBMessagePersistenceImpl
extends BasePersistenceImpl<MBMessage>
implements MBMessagePersistence

The persistence implementation for the message-boards message service.

Caching information and settings can be found in portal.properties

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

Field Summary
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_C_C
           
static FinderPath FINDER_PATH_COUNT_BY_C_C_S
           
static FinderPath FINDER_PATH_COUNT_BY_C_S
           
static FinderPath FINDER_PATH_COUNT_BY_COMPANYID
           
static FinderPath FINDER_PATH_COUNT_BY_G_C
           
static FinderPath FINDER_PATH_COUNT_BY_G_C_S
           
static FinderPath FINDER_PATH_COUNT_BY_G_C_T
           
static FinderPath FINDER_PATH_COUNT_BY_G_C_T_A
           
static FinderPath FINDER_PATH_COUNT_BY_G_C_T_S
           
static FinderPath FINDER_PATH_COUNT_BY_G_S
           
static FinderPath FINDER_PATH_COUNT_BY_G_U
           
static FinderPath FINDER_PATH_COUNT_BY_G_U_S
           
static FinderPath FINDER_PATH_COUNT_BY_GROUPID
           
static FinderPath FINDER_PATH_COUNT_BY_T_A
           
static FinderPath FINDER_PATH_COUNT_BY_T_P
           
static FinderPath FINDER_PATH_COUNT_BY_T_S
           
static FinderPath FINDER_PATH_COUNT_BY_THREADID
           
static FinderPath FINDER_PATH_COUNT_BY_THREADREPLIES
           
static FinderPath FINDER_PATH_COUNT_BY_TR_S
           
static FinderPath FINDER_PATH_COUNT_BY_U_C
           
static FinderPath FINDER_PATH_COUNT_BY_U_C_C
           
static FinderPath FINDER_PATH_COUNT_BY_U_C_C_S
           
static FinderPath FINDER_PATH_COUNT_BY_U_C_S
           
static FinderPath FINDER_PATH_COUNT_BY_USERID
           
static FinderPath FINDER_PATH_COUNT_BY_UUID
           
static FinderPath FINDER_PATH_COUNT_BY_UUID_C
           
static FinderPath FINDER_PATH_COUNT_BY_UUID_G
           
static FinderPath FINDER_PATH_FETCH_BY_UUID_G
           
static FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_U_C
           
static FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_U_C_S
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_C
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_C_S
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_S
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_S
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_T
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_T_A
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_T_S
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_S
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U_S
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_T_A
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_T_P
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_T_S
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_THREADID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_THREADREPLIES
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_TR_S
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U_C
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U_C_C
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U_C_C_S
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U_C_S
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_C
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_C_S
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_S
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_S
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_T
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_T_A
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_T_S
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_S
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U_S
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_T_A
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_T_P
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_T_S
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_THREADID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_THREADREPLIES
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TR_S
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U_C
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U_C_C
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U_C_C_S
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U_C_S
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
MBMessagePersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the message-boards message persistence.
 void cacheResult(List<MBMessage> mbMessages)
          Caches the message-boards messages in the entity cache if it is enabled.
 void cacheResult(MBMessage mbMessage)
          Caches the message-boards message in the entity cache if it is enabled.
protected  void cacheUniqueFindersCache(MBMessage mbMessage)
           
 void clearCache()
          Clears the cache for all message-boards messages.
 void clearCache(List<MBMessage> mbMessages)
          Clears the cache for a List instances of this model.
 void clearCache(MBMessage mbMessage)
          Clears the cache for the message-boards message.
protected  void clearUniqueFindersCache(MBMessage mbMessage)
           
 int countAll()
          Returns the number of message-boards messages.
 int countByC_C_S(long classNameId, long classPK, int status)
          Returns the number of message-boards messages where classNameId = ? and classPK = ? and status = ?.
 int countByC_C(long classNameId, long classPK)
          Returns the number of message-boards messages where classNameId = ? and classPK = ?.
 int countByC_S(long companyId, int status)
          Returns the number of message-boards messages where companyId = ? and status = ?.
 int countByCompanyId(long companyId)
          Returns the number of message-boards messages where companyId = ?.
 int countByG_C_S(long groupId, long categoryId, int status)
          Returns the number of message-boards messages where groupId = ? and categoryId = ? and status = ?.
 int countByG_C_T_A(long groupId, long categoryId, long threadId, boolean answer)
          Returns the number of message-boards messages where groupId = ? and categoryId = ? and threadId = ? and answer = ?.
 int countByG_C_T_S(long groupId, long categoryId, long threadId, int status)
          Returns the number of message-boards messages where groupId = ? and categoryId = ? and threadId = ? and status = ?.
 int countByG_C_T(long groupId, long categoryId, long threadId)
          Returns the number of message-boards messages where groupId = ? and categoryId = ? and threadId = ?.
 int countByG_C(long groupId, long categoryId)
          Returns the number of message-boards messages where groupId = ? and categoryId = ?.
 int countByG_S(long groupId, int status)
          Returns the number of message-boards messages where groupId = ? and status = ?.
 int countByG_U_S(long groupId, long userId, int status)
          Returns the number of message-boards messages where groupId = ? and userId = ? and status = ?.
 int countByG_U(long groupId, long userId)
          Returns the number of message-boards messages where groupId = ? and userId = ?.
 int countByGroupId(long groupId)
          Returns the number of message-boards messages where groupId = ?.
 int countByT_A(long threadId, boolean answer)
          Returns the number of message-boards messages where threadId = ? and answer = ?.
 int countByT_P(long threadId, long parentMessageId)
          Returns the number of message-boards messages where threadId = ? and parentMessageId = ?.
 int countByT_S(long threadId, int status)
          Returns the number of message-boards messages where threadId = ? and status = ?.
 int countByThreadId(long threadId)
          Returns the number of message-boards messages where threadId = ?.
 int countByThreadReplies(long threadId)
          Returns the number of message-boards messages where threadId = ?.
 int countByTR_S(long threadId, int status)
          Returns the number of message-boards messages where threadId = ? and status = ?.
 int countByU_C_C_S(long userId, long classNameId, long classPK, int status)
          Returns the number of message-boards messages where userId = ? and classNameId = ? and classPK = ? and status = ?.
 int countByU_C_C(long userId, long classNameId, long classPK)
          Returns the number of message-boards messages where userId = ? and classNameId = ? and classPK = ?.
 int countByU_C_S(long userId, long[] classNameIds, int status)
          Returns the number of message-boards messages where userId = ? and classNameId = any ? and status = ?.
 int countByU_C_S(long userId, long classNameId, int status)
          Returns the number of message-boards messages where userId = ? and classNameId = ? and status = ?.
 int countByU_C(long userId, long classNameId)
          Returns the number of message-boards messages where userId = ? and classNameId = ?.
 int countByU_C(long userId, long[] classNameIds)
          Returns the number of message-boards messages where userId = ? and classNameId = any ?.
 int countByUserId(long userId)
          Returns the number of message-boards messages where userId = ?.
 int countByUuid_C(String uuid, long companyId)
          Returns the number of message-boards messages where uuid = ? and companyId = ?.
 int countByUUID_G(String uuid, long groupId)
          Returns the number of message-boards messages where uuid = ? and groupId = ?.
 int countByUuid(String uuid)
          Returns the number of message-boards messages where uuid = ?.
 MBMessage create(long messageId)
          Creates a new message-boards message with the primary key.
 void destroy()
           
 MBMessage fetchByC_C_First(long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where classNameId = ? and classPK = ?.
 MBMessage fetchByC_C_Last(long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where classNameId = ? and classPK = ?.
 MBMessage fetchByC_C_S_First(long classNameId, long classPK, int status, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where classNameId = ? and classPK = ? and status = ?.
 MBMessage fetchByC_C_S_Last(long classNameId, long classPK, int status, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where classNameId = ? and classPK = ? and status = ?.
 MBMessage fetchByC_S_First(long companyId, int status, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where companyId = ? and status = ?.
 MBMessage fetchByC_S_Last(long companyId, int status, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where companyId = ? and status = ?.
 MBMessage fetchByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where companyId = ?.
 MBMessage fetchByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where companyId = ?.
 MBMessage fetchByG_C_First(long groupId, long categoryId, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ?.
 MBMessage fetchByG_C_Last(long groupId, long categoryId, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ?.
 MBMessage fetchByG_C_S_First(long groupId, long categoryId, int status, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ? and status = ?.
 MBMessage fetchByG_C_S_Last(long groupId, long categoryId, int status, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ? and status = ?.
 MBMessage fetchByG_C_T_A_First(long groupId, long categoryId, long threadId, boolean answer, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and answer = ?.
 MBMessage fetchByG_C_T_A_Last(long groupId, long categoryId, long threadId, boolean answer, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and answer = ?.
 MBMessage fetchByG_C_T_First(long groupId, long categoryId, long threadId, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ?.
 MBMessage fetchByG_C_T_Last(long groupId, long categoryId, long threadId, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ?.
 MBMessage fetchByG_C_T_S_First(long groupId, long categoryId, long threadId, int status, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and status = ?.
 MBMessage fetchByG_C_T_S_Last(long groupId, long categoryId, long threadId, int status, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and status = ?.
 MBMessage fetchByG_S_First(long groupId, int status, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where groupId = ? and status = ?.
 MBMessage fetchByG_S_Last(long groupId, int status, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where groupId = ? and status = ?.
 MBMessage fetchByG_U_First(long groupId, long userId, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where groupId = ? and userId = ?.
 MBMessage fetchByG_U_Last(long groupId, long userId, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where groupId = ? and userId = ?.
 MBMessage fetchByG_U_S_First(long groupId, long userId, int status, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where groupId = ? and userId = ? and status = ?.
 MBMessage fetchByG_U_S_Last(long groupId, long userId, int status, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where groupId = ? and userId = ? and status = ?.
 MBMessage fetchByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where groupId = ?.
 MBMessage fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where groupId = ?.
 MBMessage fetchByPrimaryKey(long messageId)
          Returns the message-boards message with the primary key or returns null if it could not be found.
 MBMessage fetchByPrimaryKey(Serializable primaryKey)
          Returns the message-boards message with the primary key or returns null if it could not be found.
 MBMessage fetchByT_A_First(long threadId, boolean answer, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where threadId = ? and answer = ?.
 MBMessage fetchByT_A_Last(long threadId, boolean answer, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where threadId = ? and answer = ?.
 MBMessage fetchByT_P_First(long threadId, long parentMessageId, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where threadId = ? and parentMessageId = ?.
 MBMessage fetchByT_P_Last(long threadId, long parentMessageId, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where threadId = ? and parentMessageId = ?.
 MBMessage fetchByT_S_First(long threadId, int status, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where threadId = ? and status = ?.
 MBMessage fetchByT_S_Last(long threadId, int status, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where threadId = ? and status = ?.
 MBMessage fetchByThreadId_First(long threadId, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where threadId = ?.
 MBMessage fetchByThreadId_Last(long threadId, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where threadId = ?.
 MBMessage fetchByThreadReplies_First(long threadId, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where threadId = ?.
 MBMessage fetchByThreadReplies_Last(long threadId, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where threadId = ?.
 MBMessage fetchByTR_S_First(long threadId, int status, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where threadId = ? and status = ?.
 MBMessage fetchByTR_S_Last(long threadId, int status, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where threadId = ? and status = ?.
 MBMessage fetchByU_C_C_First(long userId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ?.
 MBMessage fetchByU_C_C_Last(long userId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ?.
 MBMessage fetchByU_C_C_S_First(long userId, long classNameId, long classPK, int status, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ? and status = ?.
 MBMessage fetchByU_C_C_S_Last(long userId, long classNameId, long classPK, int status, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ? and status = ?.
 MBMessage fetchByU_C_First(long userId, long classNameId, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where userId = ? and classNameId = ?.
 MBMessage fetchByU_C_Last(long userId, long classNameId, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where userId = ? and classNameId = ?.
 MBMessage fetchByU_C_S_First(long userId, long classNameId, int status, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where userId = ? and classNameId = ? and status = ?.
 MBMessage fetchByU_C_S_Last(long userId, long classNameId, int status, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where userId = ? and classNameId = ? and status = ?.
 MBMessage fetchByUserId_First(long userId, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where userId = ?.
 MBMessage fetchByUserId_Last(long userId, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where userId = ?.
 MBMessage fetchByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where uuid = ? and companyId = ?.
 MBMessage fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where uuid = ? and companyId = ?.
 MBMessage fetchByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where uuid = ?.
 MBMessage fetchByUUID_G(String uuid, long groupId)
          Returns the message-boards message where uuid = ? and groupId = ? or returns null if it could not be found.
 MBMessage fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache)
          Returns the message-boards message where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
 MBMessage fetchByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where uuid = ?.
 int filterCountByG_C_S(long groupId, long categoryId, int status)
          Returns the number of message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and status = ?.
 int filterCountByG_C_T_A(long groupId, long categoryId, long threadId, boolean answer)
          Returns the number of message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ? and answer = ?.
 int filterCountByG_C_T_S(long groupId, long categoryId, long threadId, int status)
          Returns the number of message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ? and status = ?.
 int filterCountByG_C_T(long groupId, long categoryId, long threadId)
          Returns the number of message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ?.
 int filterCountByG_C(long groupId, long categoryId)
          Returns the number of message-boards messages that the user has permission to view where groupId = ? and categoryId = ?.
 int filterCountByG_S(long groupId, int status)
          Returns the number of message-boards messages that the user has permission to view where groupId = ? and status = ?.
 int filterCountByG_U_S(long groupId, long userId, int status)
          Returns the number of message-boards messages that the user has permission to view where groupId = ? and userId = ? and status = ?.
 int filterCountByG_U(long groupId, long userId)
          Returns the number of message-boards messages that the user has permission to view where groupId = ? and userId = ?.
 int filterCountByGroupId(long groupId)
          Returns the number of message-boards messages that the user has permission to view where groupId = ?.
 MBMessage[] filterFindByG_C_PrevAndNext(long messageId, long groupId, long categoryId, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = ? and categoryId = ?.
 MBMessage[] filterFindByG_C_S_PrevAndNext(long messageId, long groupId, long categoryId, int status, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and status = ?.
 List<MBMessage> filterFindByG_C_S(long groupId, long categoryId, int status)
          Returns all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and status = ?.
 List<MBMessage> filterFindByG_C_S(long groupId, long categoryId, int status, int start, int end)
          Returns a range of all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and status = ?.
 List<MBMessage> filterFindByG_C_S(long groupId, long categoryId, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = ? and categoryId = ? and status = ?.
 MBMessage[] filterFindByG_C_T_A_PrevAndNext(long messageId, long groupId, long categoryId, long threadId, boolean answer, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ? and answer = ?.
 List<MBMessage> filterFindByG_C_T_A(long groupId, long categoryId, long threadId, boolean answer)
          Returns all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ? and answer = ?.
 List<MBMessage> filterFindByG_C_T_A(long groupId, long categoryId, long threadId, boolean answer, int start, int end)
          Returns a range of all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ? and answer = ?.
 List<MBMessage> filterFindByG_C_T_A(long groupId, long categoryId, long threadId, boolean answer, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = ? and categoryId = ? and threadId = ? and answer = ?.
 MBMessage[] filterFindByG_C_T_PrevAndNext(long messageId, long groupId, long categoryId, long threadId, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ?.
 MBMessage[] filterFindByG_C_T_S_PrevAndNext(long messageId, long groupId, long categoryId, long threadId, int status, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ? and status = ?.
 List<MBMessage> filterFindByG_C_T_S(long groupId, long categoryId, long threadId, int status)
          Returns all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ? and status = ?.
 List<MBMessage> filterFindByG_C_T_S(long groupId, long categoryId, long threadId, int status, int start, int end)
          Returns a range of all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ? and status = ?.
 List<MBMessage> filterFindByG_C_T_S(long groupId, long categoryId, long threadId, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = ? and categoryId = ? and threadId = ? and status = ?.
 List<MBMessage> filterFindByG_C_T(long groupId, long categoryId, long threadId)
          Returns all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ?.
 List<MBMessage> filterFindByG_C_T(long groupId, long categoryId, long threadId, int start, int end)
          Returns a range of all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ?.
 List<MBMessage> filterFindByG_C_T(long groupId, long categoryId, long threadId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = ? and categoryId = ? and threadId = ?.
 List<MBMessage> filterFindByG_C(long groupId, long categoryId)
          Returns all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ?.
 List<MBMessage> filterFindByG_C(long groupId, long categoryId, int start, int end)
          Returns a range of all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ?.
 List<MBMessage> filterFindByG_C(long groupId, long categoryId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = ? and categoryId = ?.
 MBMessage[] filterFindByG_S_PrevAndNext(long messageId, long groupId, int status, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = ? and status = ?.
 List<MBMessage> filterFindByG_S(long groupId, int status)
          Returns all the message-boards messages that the user has permission to view where groupId = ? and status = ?.
 List<MBMessage> filterFindByG_S(long groupId, int status, int start, int end)
          Returns a range of all the message-boards messages that the user has permission to view where groupId = ? and status = ?.
 List<MBMessage> filterFindByG_S(long groupId, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = ? and status = ?.
 MBMessage[] filterFindByG_U_PrevAndNext(long messageId, long groupId, long userId, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = ? and userId = ?.
 MBMessage[] filterFindByG_U_S_PrevAndNext(long messageId, long groupId, long userId, int status, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = ? and userId = ? and status = ?.
 List<MBMessage> filterFindByG_U_S(long groupId, long userId, int status)
          Returns all the message-boards messages that the user has permission to view where groupId = ? and userId = ? and status = ?.
 List<MBMessage> filterFindByG_U_S(long groupId, long userId, int status, int start, int end)
          Returns a range of all the message-boards messages that the user has permission to view where groupId = ? and userId = ? and status = ?.
 List<MBMessage> filterFindByG_U_S(long groupId, long userId, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = ? and userId = ? and status = ?.
 List<MBMessage> filterFindByG_U(long groupId, long userId)
          Returns all the message-boards messages that the user has permission to view where groupId = ? and userId = ?.
 List<MBMessage> filterFindByG_U(long groupId, long userId, int start, int end)
          Returns a range of all the message-boards messages that the user has permission to view where groupId = ? and userId = ?.
 List<MBMessage> filterFindByG_U(long groupId, long userId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = ? and userId = ?.
 MBMessage[] filterFindByGroupId_PrevAndNext(long messageId, long groupId, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = ?.
 List<MBMessage> filterFindByGroupId(long groupId)
          Returns all the message-boards messages that the user has permission to view where groupId = ?.
 List<MBMessage> filterFindByGroupId(long groupId, int start, int end)
          Returns a range of all the message-boards messages that the user has permission to view where groupId = ?.
 List<MBMessage> filterFindByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = ?.
protected  MBMessage filterGetByG_C_PrevAndNext(Session session, MBMessage mbMessage, long groupId, long categoryId, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage filterGetByG_C_S_PrevAndNext(Session session, MBMessage mbMessage, long groupId, long categoryId, int status, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage filterGetByG_C_T_A_PrevAndNext(Session session, MBMessage mbMessage, long groupId, long categoryId, long threadId, boolean answer, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage filterGetByG_C_T_PrevAndNext(Session session, MBMessage mbMessage, long groupId, long categoryId, long threadId, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage filterGetByG_C_T_S_PrevAndNext(Session session, MBMessage mbMessage, long groupId, long categoryId, long threadId, int status, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage filterGetByG_S_PrevAndNext(Session session, MBMessage mbMessage, long groupId, int status, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage filterGetByG_U_PrevAndNext(Session session, MBMessage mbMessage, long groupId, long userId, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage filterGetByG_U_S_PrevAndNext(Session session, MBMessage mbMessage, long groupId, long userId, int status, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage filterGetByGroupId_PrevAndNext(Session session, MBMessage mbMessage, long groupId, OrderByComparator orderByComparator, boolean previous)
           
 List<MBMessage> findAll()
          Returns all the message-boards messages.
 List<MBMessage> findAll(int start, int end)
          Returns a range of all the message-boards messages.
 List<MBMessage> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages.
 MBMessage findByC_C_First(long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where classNameId = ? and classPK = ?.
 MBMessage findByC_C_Last(long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where classNameId = ? and classPK = ?.
 MBMessage[] findByC_C_PrevAndNext(long messageId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set where classNameId = ? and classPK = ?.
 MBMessage findByC_C_S_First(long classNameId, long classPK, int status, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where classNameId = ? and classPK = ? and status = ?.
 MBMessage findByC_C_S_Last(long classNameId, long classPK, int status, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where classNameId = ? and classPK = ? and status = ?.
 MBMessage[] findByC_C_S_PrevAndNext(long messageId, long classNameId, long classPK, int status, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set where classNameId = ? and classPK = ? and status = ?.
 List<MBMessage> findByC_C_S(long classNameId, long classPK, int status)
          Returns all the message-boards messages where classNameId = ? and classPK = ? and status = ?.
 List<MBMessage> findByC_C_S(long classNameId, long classPK, int status, int start, int end)
          Returns a range of all the message-boards messages where classNameId = ? and classPK = ? and status = ?.
 List<MBMessage> findByC_C_S(long classNameId, long classPK, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages where classNameId = ? and classPK = ? and status = ?.
 List<MBMessage> findByC_C(long classNameId, long classPK)
          Returns all the message-boards messages where classNameId = ? and classPK = ?.
 List<MBMessage> findByC_C(long classNameId, long classPK, int start, int end)
          Returns a range of all the message-boards messages where classNameId = ? and classPK = ?.
 List<MBMessage> findByC_C(long classNameId, long classPK, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages where classNameId = ? and classPK = ?.
 MBMessage findByC_S_First(long companyId, int status, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where companyId = ? and status = ?.
 MBMessage findByC_S_Last(long companyId, int status, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where companyId = ? and status = ?.
 MBMessage[] findByC_S_PrevAndNext(long messageId, long companyId, int status, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set where companyId = ? and status = ?.
 List<MBMessage> findByC_S(long companyId, int status)
          Returns all the message-boards messages where companyId = ? and status = ?.
 List<MBMessage> findByC_S(long companyId, int status, int start, int end)
          Returns a range of all the message-boards messages where companyId = ? and status = ?.
 List<MBMessage> findByC_S(long companyId, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages where companyId = ? and status = ?.
 MBMessage findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where companyId = ?.
 MBMessage findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where companyId = ?.
 MBMessage[] findByCompanyId_PrevAndNext(long messageId, long companyId, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set where companyId = ?.
 List<MBMessage> findByCompanyId(long companyId)
          Returns all the message-boards messages where companyId = ?.
 List<MBMessage> findByCompanyId(long companyId, int start, int end)
          Returns a range of all the message-boards messages where companyId = ?.
 List<MBMessage> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages where companyId = ?.
 MBMessage findByG_C_First(long groupId, long categoryId, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ?.
 MBMessage findByG_C_Last(long groupId, long categoryId, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ?.
 MBMessage[] findByG_C_PrevAndNext(long messageId, long groupId, long categoryId, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ? and categoryId = ?.
 MBMessage findByG_C_S_First(long groupId, long categoryId, int status, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ? and status = ?.
 MBMessage findByG_C_S_Last(long groupId, long categoryId, int status, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ? and status = ?.
 MBMessage[] findByG_C_S_PrevAndNext(long messageId, long groupId, long categoryId, int status, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ? and categoryId = ? and status = ?.
 List<MBMessage> findByG_C_S(long groupId, long categoryId, int status)
          Returns all the message-boards messages where groupId = ? and categoryId = ? and status = ?.
 List<MBMessage> findByG_C_S(long groupId, long categoryId, int status, int start, int end)
          Returns a range of all the message-boards messages where groupId = ? and categoryId = ? and status = ?.
 List<MBMessage> findByG_C_S(long groupId, long categoryId, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages where groupId = ? and categoryId = ? and status = ?.
 MBMessage findByG_C_T_A_First(long groupId, long categoryId, long threadId, boolean answer, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and answer = ?.
 MBMessage findByG_C_T_A_Last(long groupId, long categoryId, long threadId, boolean answer, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and answer = ?.
 MBMessage[] findByG_C_T_A_PrevAndNext(long messageId, long groupId, long categoryId, long threadId, boolean answer, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and answer = ?.
 List<MBMessage> findByG_C_T_A(long groupId, long categoryId, long threadId, boolean answer)
          Returns all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and answer = ?.
 List<MBMessage> findByG_C_T_A(long groupId, long categoryId, long threadId, boolean answer, int start, int end)
          Returns a range of all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and answer = ?.
 List<MBMessage> findByG_C_T_A(long groupId, long categoryId, long threadId, boolean answer, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and answer = ?.
 MBMessage findByG_C_T_First(long groupId, long categoryId, long threadId, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ?.
 MBMessage findByG_C_T_Last(long groupId, long categoryId, long threadId, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ?.
 MBMessage[] findByG_C_T_PrevAndNext(long messageId, long groupId, long categoryId, long threadId, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ?.
 MBMessage findByG_C_T_S_First(long groupId, long categoryId, long threadId, int status, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and status = ?.
 MBMessage findByG_C_T_S_Last(long groupId, long categoryId, long threadId, int status, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and status = ?.
 MBMessage[] findByG_C_T_S_PrevAndNext(long messageId, long groupId, long categoryId, long threadId, int status, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and status = ?.
 List<MBMessage> findByG_C_T_S(long groupId, long categoryId, long threadId, int status)
          Returns all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and status = ?.
 List<MBMessage> findByG_C_T_S(long groupId, long categoryId, long threadId, int status, int start, int end)
          Returns a range of all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and status = ?.
 List<MBMessage> findByG_C_T_S(long groupId, long categoryId, long threadId, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and status = ?.
 List<MBMessage> findByG_C_T(long groupId, long categoryId, long threadId)
          Returns all the message-boards messages where groupId = ? and categoryId = ? and threadId = ?.
 List<MBMessage> findByG_C_T(long groupId, long categoryId, long threadId, int start, int end)
          Returns a range of all the message-boards messages where groupId = ? and categoryId = ? and threadId = ?.
 List<MBMessage> findByG_C_T(long groupId, long categoryId, long threadId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages where groupId = ? and categoryId = ? and threadId = ?.
 List<MBMessage> findByG_C(long groupId, long categoryId)
          Returns all the message-boards messages where groupId = ? and categoryId = ?.
 List<MBMessage> findByG_C(long groupId, long categoryId, int start, int end)
          Returns a range of all the message-boards messages where groupId = ? and categoryId = ?.
 List<MBMessage> findByG_C(long groupId, long categoryId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages where groupId = ? and categoryId = ?.
 MBMessage findByG_S_First(long groupId, int status, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where groupId = ? and status = ?.
 MBMessage findByG_S_Last(long groupId, int status, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where groupId = ? and status = ?.
 MBMessage[] findByG_S_PrevAndNext(long messageId, long groupId, int status, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ? and status = ?.
 List<MBMessage> findByG_S(long groupId, int status)
          Returns all the message-boards messages where groupId = ? and status = ?.
 List<MBMessage> findByG_S(long groupId, int status, int start, int end)
          Returns a range of all the message-boards messages where groupId = ? and status = ?.
 List<MBMessage> findByG_S(long groupId, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages where groupId = ? and status = ?.
 MBMessage findByG_U_First(long groupId, long userId, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where groupId = ? and userId = ?.
 MBMessage findByG_U_Last(long groupId, long userId, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where groupId = ? and userId = ?.
 MBMessage[] findByG_U_PrevAndNext(long messageId, long groupId, long userId, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ? and userId = ?.
 MBMessage findByG_U_S_First(long groupId, long userId, int status, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where groupId = ? and userId = ? and status = ?.
 MBMessage findByG_U_S_Last(long groupId, long userId, int status, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where groupId = ? and userId = ? and status = ?.
 MBMessage[] findByG_U_S_PrevAndNext(long messageId, long groupId, long userId, int status, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ? and userId = ? and status = ?.
 List<MBMessage> findByG_U_S(long groupId, long userId, int status)
          Returns all the message-boards messages where groupId = ? and userId = ? and status = ?.
 List<MBMessage> findByG_U_S(long groupId, long userId, int status, int start, int end)
          Returns a range of all the message-boards messages where groupId = ? and userId = ? and status = ?.
 List<MBMessage> findByG_U_S(long groupId, long userId, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages where groupId = ? and userId = ? and status = ?.
 List<MBMessage> findByG_U(long groupId, long userId)
          Returns all the message-boards messages where groupId = ? and userId = ?.
 List<MBMessage> findByG_U(long groupId, long userId, int start, int end)
          Returns a range of all the message-boards messages where groupId = ? and userId = ?.
 List<MBMessage> findByG_U(long groupId, long userId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages where groupId = ? and userId = ?.
 MBMessage findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where groupId = ?.
 MBMessage findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where groupId = ?.
 MBMessage[] findByGroupId_PrevAndNext(long messageId, long groupId, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ?.
 List<MBMessage> findByGroupId(long groupId)
          Returns all the message-boards messages where groupId = ?.
 List<MBMessage> findByGroupId(long groupId, int start, int end)
          Returns a range of all the message-boards messages where groupId = ?.
 List<MBMessage> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages where groupId = ?.
 MBMessage findByPrimaryKey(long messageId)
          Returns the message-boards message with the primary key or throws a NoSuchMessageException if it could not be found.
 MBMessage findByPrimaryKey(Serializable primaryKey)
          Returns the message-boards message with the primary key or throws a NoSuchModelException if it could not be found.
 MBMessage findByT_A_First(long threadId, boolean answer, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where threadId = ? and answer = ?.
 MBMessage findByT_A_Last(long threadId, boolean answer, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where threadId = ? and answer = ?.
 MBMessage[] findByT_A_PrevAndNext(long messageId, long threadId, boolean answer, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set where threadId = ? and answer = ?.
 List<MBMessage> findByT_A(long threadId, boolean answer)
          Returns all the message-boards messages where threadId = ? and answer = ?.
 List<MBMessage> findByT_A(long threadId, boolean answer, int start, int end)
          Returns a range of all the message-boards messages where threadId = ? and answer = ?.
 List<MBMessage> findByT_A(long threadId, boolean answer, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages where threadId = ? and answer = ?.
 MBMessage findByT_P_First(long threadId, long parentMessageId, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where threadId = ? and parentMessageId = ?.
 MBMessage findByT_P_Last(long threadId, long parentMessageId, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where threadId = ? and parentMessageId = ?.
 MBMessage[] findByT_P_PrevAndNext(long messageId, long threadId, long parentMessageId, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set where threadId = ? and parentMessageId = ?.
 List<MBMessage> findByT_P(long threadId, long parentMessageId)
          Returns all the message-boards messages where threadId = ? and parentMessageId = ?.
 List<MBMessage> findByT_P(long threadId, long parentMessageId, int start, int end)
          Returns a range of all the message-boards messages where threadId = ? and parentMessageId = ?.
 List<MBMessage> findByT_P(long threadId, long parentMessageId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages where threadId = ? and parentMessageId = ?.
 MBMessage findByT_S_First(long threadId, int status, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where threadId = ? and status = ?.
 MBMessage findByT_S_Last(long threadId, int status, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where threadId = ? and status = ?.
 MBMessage[] findByT_S_PrevAndNext(long messageId, long threadId, int status, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set where threadId = ? and status = ?.
 List<MBMessage> findByT_S(long threadId, int status)
          Returns all the message-boards messages where threadId = ? and status = ?.
 List<MBMessage> findByT_S(long threadId, int status, int start, int end)
          Returns a range of all the message-boards messages where threadId = ? and status = ?.
 List<MBMessage> findByT_S(long threadId, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages where threadId = ? and status = ?.
 MBMessage findByThreadId_First(long threadId, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where threadId = ?.
 MBMessage findByThreadId_Last(long threadId, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where threadId = ?.
 MBMessage[] findByThreadId_PrevAndNext(long messageId, long threadId, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set where threadId = ?.
 List<MBMessage> findByThreadId(long threadId)
          Returns all the message-boards messages where threadId = ?.
 List<MBMessage> findByThreadId(long threadId, int start, int end)
          Returns a range of all the message-boards messages where threadId = ?.
 List<MBMessage> findByThreadId(long threadId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages where threadId = ?.
 MBMessage findByThreadReplies_First(long threadId, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where threadId = ?.
 MBMessage findByThreadReplies_Last(long threadId, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where threadId = ?.
 MBMessage[] findByThreadReplies_PrevAndNext(long messageId, long threadId, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set where threadId = ?.
 List<MBMessage> findByThreadReplies(long threadId)
          Returns all the message-boards messages where threadId = ?.
 List<MBMessage> findByThreadReplies(long threadId, int start, int end)
          Returns a range of all the message-boards messages where threadId = ?.
 List<MBMessage> findByThreadReplies(long threadId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages where threadId = ?.
 MBMessage findByTR_S_First(long threadId, int status, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where threadId = ? and status = ?.
 MBMessage findByTR_S_Last(long threadId, int status, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where threadId = ? and status = ?.
 MBMessage[] findByTR_S_PrevAndNext(long messageId, long threadId, int status, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set where threadId = ? and status = ?.
 List<MBMessage> findByTR_S(long threadId, int status)
          Returns all the message-boards messages where threadId = ? and status = ?.
 List<MBMessage> findByTR_S(long threadId, int status, int start, int end)
          Returns a range of all the message-boards messages where threadId = ? and status = ?.
 List<MBMessage> findByTR_S(long threadId, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages where threadId = ? and status = ?.
 MBMessage findByU_C_C_First(long userId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ?.
 MBMessage findByU_C_C_Last(long userId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ?.
 MBMessage[] findByU_C_C_PrevAndNext(long messageId, long userId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ?.
 MBMessage findByU_C_C_S_First(long userId, long classNameId, long classPK, int status, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ? and status = ?.
 MBMessage findByU_C_C_S_Last(long userId, long classNameId, long classPK, int status, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ? and status = ?.
 MBMessage[] findByU_C_C_S_PrevAndNext(long messageId, long userId, long classNameId, long classPK, int status, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ? and status = ?.
 List<MBMessage> findByU_C_C_S(long userId, long classNameId, long classPK, int status)
          Returns all the message-boards messages where userId = ? and classNameId = ? and classPK = ? and status = ?.
 List<MBMessage> findByU_C_C_S(long userId, long classNameId, long classPK, int status, int start, int end)
          Returns a range of all the message-boards messages where userId = ? and classNameId = ? and classPK = ? and status = ?.
 List<MBMessage> findByU_C_C_S(long userId, long classNameId, long classPK, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages where userId = ? and classNameId = ? and classPK = ? and status = ?.
 List<MBMessage> findByU_C_C(long userId, long classNameId, long classPK)
          Returns all the message-boards messages where userId = ? and classNameId = ? and classPK = ?.
 List<MBMessage> findByU_C_C(long userId, long classNameId, long classPK, int start, int end)
          Returns a range of all the message-boards messages where userId = ? and classNameId = ? and classPK = ?.
 List<MBMessage> findByU_C_C(long userId, long classNameId, long classPK, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages where userId = ? and classNameId = ? and classPK = ?.
 MBMessage findByU_C_First(long userId, long classNameId, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where userId = ? and classNameId = ?.
 MBMessage findByU_C_Last(long userId, long classNameId, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where userId = ? and classNameId = ?.
 MBMessage[] findByU_C_PrevAndNext(long messageId, long userId, long classNameId, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set where userId = ? and classNameId = ?.
 MBMessage findByU_C_S_First(long userId, long classNameId, int status, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where userId = ? and classNameId = ? and status = ?.
 MBMessage findByU_C_S_Last(long userId, long classNameId, int status, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where userId = ? and classNameId = ? and status = ?.
 MBMessage[] findByU_C_S_PrevAndNext(long messageId, long userId, long classNameId, int status, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set where userId = ? and classNameId = ? and status = ?.
 List<MBMessage> findByU_C_S(long userId, long[] classNameIds, int status)
          Returns all the message-boards messages where userId = ? and classNameId = any ? and status = ?.
 List<MBMessage> findByU_C_S(long userId, long[] classNameIds, int status, int start, int end)
          Returns a range of all the message-boards messages where userId = ? and classNameId = any ? and status = ?.
 List<MBMessage> findByU_C_S(long userId, long[] classNameIds, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages where userId = ? and classNameId = any ? and status = ?.
 List<MBMessage> findByU_C_S(long userId, long classNameId, int status)
          Returns all the message-boards messages where userId = ? and classNameId = ? and status = ?.
 List<MBMessage> findByU_C_S(long userId, long classNameId, int status, int start, int end)
          Returns a range of all the message-boards messages where userId = ? and classNameId = ? and status = ?.
 List<MBMessage> findByU_C_S(long userId, long classNameId, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages where userId = ? and classNameId = ? and status = ?.
 List<MBMessage> findByU_C(long userId, long classNameId)
          Returns all the message-boards messages where userId = ? and classNameId = ?.
 List<MBMessage> findByU_C(long userId, long[] classNameIds)
          Returns all the message-boards messages where userId = ? and classNameId = any ?.
 List<MBMessage> findByU_C(long userId, long[] classNameIds, int start, int end)
          Returns a range of all the message-boards messages where userId = ? and classNameId = any ?.
 List<MBMessage> findByU_C(long userId, long[] classNameIds, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages where userId = ? and classNameId = any ?.
 List<MBMessage> findByU_C(long userId, long classNameId, int start, int end)
          Returns a range of all the message-boards messages where userId = ? and classNameId = ?.
 List<MBMessage> findByU_C(long userId, long classNameId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages where userId = ? and classNameId = ?.
 MBMessage findByUserId_First(long userId, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where userId = ?.
 MBMessage findByUserId_Last(long userId, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where userId = ?.
 MBMessage[] findByUserId_PrevAndNext(long messageId, long userId, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set where userId = ?.
 List<MBMessage> findByUserId(long userId)
          Returns all the message-boards messages where userId = ?.
 List<MBMessage> findByUserId(long userId, int start, int end)
          Returns a range of all the message-boards messages where userId = ?.
 List<MBMessage> findByUserId(long userId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages where userId = ?.
 MBMessage findByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where uuid = ? and companyId = ?.
 MBMessage findByUuid_C_Last(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where uuid = ? and companyId = ?.
 MBMessage[] findByUuid_C_PrevAndNext(long messageId, String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set where uuid = ? and companyId = ?.
 List<MBMessage> findByUuid_C(String uuid, long companyId)
          Returns all the message-boards messages where uuid = ? and companyId = ?.
 List<MBMessage> findByUuid_C(String uuid, long companyId, int start, int end)
          Returns a range of all the message-boards messages where uuid = ? and companyId = ?.
 List<MBMessage> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages where uuid = ? and companyId = ?.
 MBMessage findByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first message-boards message in the ordered set where uuid = ?.
 MBMessage findByUUID_G(String uuid, long groupId)
          Returns the message-boards message where uuid = ? and groupId = ? or throws a NoSuchMessageException if it could not be found.
 MBMessage findByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last message-boards message in the ordered set where uuid = ?.
 MBMessage[] findByUuid_PrevAndNext(long messageId, String uuid, OrderByComparator orderByComparator)
          Returns the message-boards messages before and after the current message-boards message in the ordered set where uuid = ?.
 List<MBMessage> findByUuid(String uuid)
          Returns all the message-boards messages where uuid = ?.
 List<MBMessage> findByUuid(String uuid, int start, int end)
          Returns a range of all the message-boards messages where uuid = ?.
 List<MBMessage> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message-boards messages where uuid = ?.
protected  Set<String> getBadColumnNames()
           
protected  MBMessage getByC_C_PrevAndNext(Session session, MBMessage mbMessage, long classNameId, long classPK, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage getByC_C_S_PrevAndNext(Session session, MBMessage mbMessage, long classNameId, long classPK, int status, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage getByC_S_PrevAndNext(Session session, MBMessage mbMessage, long companyId, int status, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage getByCompanyId_PrevAndNext(Session session, MBMessage mbMessage, long companyId, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage getByG_C_PrevAndNext(Session session, MBMessage mbMessage, long groupId, long categoryId, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage getByG_C_S_PrevAndNext(Session session, MBMessage mbMessage, long groupId, long categoryId, int status, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage getByG_C_T_A_PrevAndNext(Session session, MBMessage mbMessage, long groupId, long categoryId, long threadId, boolean answer, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage getByG_C_T_PrevAndNext(Session session, MBMessage mbMessage, long groupId, long categoryId, long threadId, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage getByG_C_T_S_PrevAndNext(Session session, MBMessage mbMessage, long groupId, long categoryId, long threadId, int status, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage getByG_S_PrevAndNext(Session session, MBMessage mbMessage, long groupId, int status, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage getByG_U_PrevAndNext(Session session, MBMessage mbMessage, long groupId, long userId, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage getByG_U_S_PrevAndNext(Session session, MBMessage mbMessage, long groupId, long userId, int status, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage getByGroupId_PrevAndNext(Session session, MBMessage mbMessage, long groupId, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage getByT_A_PrevAndNext(Session session, MBMessage mbMessage, long threadId, boolean answer, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage getByT_P_PrevAndNext(Session session, MBMessage mbMessage, long threadId, long parentMessageId, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage getByT_S_PrevAndNext(Session session, MBMessage mbMessage, long threadId, int status, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage getByThreadId_PrevAndNext(Session session, MBMessage mbMessage, long threadId, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage getByThreadReplies_PrevAndNext(Session session, MBMessage mbMessage, long threadId, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage getByTR_S_PrevAndNext(Session session, MBMessage mbMessage, long threadId, int status, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage getByU_C_C_PrevAndNext(Session session, MBMessage mbMessage, long userId, long classNameId, long classPK, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage getByU_C_C_S_PrevAndNext(Session session, MBMessage mbMessage, long userId, long classNameId, long classPK, int status, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage getByU_C_PrevAndNext(Session session, MBMessage mbMessage, long userId, long classNameId, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage getByU_C_S_PrevAndNext(Session session, MBMessage mbMessage, long userId, long classNameId, int status, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage getByUserId_PrevAndNext(Session session, MBMessage mbMessage, long userId, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage getByUuid_C_PrevAndNext(Session session, MBMessage mbMessage, String uuid, long companyId, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessage getByUuid_PrevAndNext(Session session, MBMessage mbMessage, String uuid, OrderByComparator orderByComparator, boolean previous)
           
 MBMessage remove(long messageId)
          Removes the message-boards message with the primary key from the database.
 MBMessage remove(Serializable primaryKey)
          Removes the message-boards message with the primary key from the database.
 void removeAll()
          Removes all the message-boards messages from the database.
 void removeByC_C_S(long classNameId, long classPK, int status)
          Removes all the message-boards messages where classNameId = ? and classPK = ? and status = ? from the database.
 void removeByC_C(long classNameId, long classPK)
          Removes all the message-boards messages where classNameId = ? and classPK = ? from the database.
 void removeByC_S(long companyId, int status)
          Removes all the message-boards messages where companyId = ? and status = ? from the database.
 void removeByCompanyId(long companyId)
          Removes all the message-boards messages where companyId = ? from the database.
 void removeByG_C_S(long groupId, long categoryId, int status)
          Removes all the message-boards messages where groupId = ? and categoryId = ? and status = ? from the database.
 void removeByG_C_T_A(long groupId, long categoryId, long threadId, boolean answer)
          Removes all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and answer = ? from the database.
 void removeByG_C_T_S(long groupId, long categoryId, long threadId, int status)
          Removes all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and status = ? from the database.
 void removeByG_C_T(long groupId, long categoryId, long threadId)
          Removes all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? from the database.
 void removeByG_C(long groupId, long categoryId)
          Removes all the message-boards messages where groupId = ? and categoryId = ? from the database.
 void removeByG_S(long groupId, int status)
          Removes all the message-boards messages where groupId = ? and status = ? from the database.
 void removeByG_U_S(long groupId, long userId, int status)
          Removes all the message-boards messages where groupId = ? and userId = ? and status = ? from the database.
 void removeByG_U(long groupId, long userId)
          Removes all the message-boards messages where groupId = ? and userId = ? from the database.
 void removeByGroupId(long groupId)
          Removes all the message-boards messages where groupId = ? from the database.
 void removeByT_A(long threadId, boolean answer)
          Removes all the message-boards messages where threadId = ? and answer = ? from the database.
 void removeByT_P(long threadId, long parentMessageId)
          Removes all the message-boards messages where threadId = ? and parentMessageId = ? from the database.
 void removeByT_S(long threadId, int status)
          Removes all the message-boards messages where threadId = ? and status = ? from the database.
 void removeByThreadId(long threadId)
          Removes all the message-boards messages where threadId = ? from the database.
 void removeByThreadReplies(long threadId)
          Removes all the message-boards messages where threadId = ? from the database.
 void removeByTR_S(long threadId, int status)
          Removes all the message-boards messages where threadId = ? and status = ? from the database.
 void removeByU_C_C_S(long userId, long classNameId, long classPK, int status)
          Removes all the message-boards messages where userId = ? and classNameId = ? and classPK = ? and status = ? from the database.
 void removeByU_C_C(long userId, long classNameId, long classPK)
          Removes all the message-boards messages where userId = ? and classNameId = ? and classPK = ? from the database.
 void removeByU_C_S(long userId, long classNameId, int status)
          Removes all the message-boards messages where userId = ? and classNameId = ? and status = ? from the database.
 void removeByU_C(long userId, long classNameId)
          Removes all the message-boards messages where userId = ? and classNameId = ? from the database.
 void removeByUserId(long userId)
          Removes all the message-boards messages where userId = ? from the database.
 void removeByUuid_C(String uuid, long companyId)
          Removes all the message-boards messages where uuid = ? and companyId = ? from the database.
 MBMessage removeByUUID_G(String uuid, long groupId)
          Removes the message-boards message where uuid = ? and groupId = ? from the database.
 void removeByUuid(String uuid)
          Removes all the message-boards messages where uuid = ? from the database.
protected  MBMessage removeImpl(MBMessage mbMessage)
          Removes the model instance from the database.
protected  MBMessage toUnwrappedModel(MBMessage mbMessage)
           
 MBMessage updateImpl(MBMessage mbMessage)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID

FINDER_PATH_COUNT_BY_UUID

public static final FinderPath FINDER_PATH_COUNT_BY_UUID

FINDER_PATH_FETCH_BY_UUID_G

public static final FinderPath FINDER_PATH_FETCH_BY_UUID_G

FINDER_PATH_COUNT_BY_UUID_G

public static final FinderPath FINDER_PATH_COUNT_BY_UUID_G

FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C

FINDER_PATH_COUNT_BY_UUID_C

public static final FinderPath FINDER_PATH_COUNT_BY_UUID_C

FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_COUNT_BY_GROUPID

public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID

FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_COUNT_BY_COMPANYID

public static final FinderPath FINDER_PATH_COUNT_BY_COMPANYID

FINDER_PATH_WITH_PAGINATION_FIND_BY_THREADID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_THREADID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_THREADID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_THREADID

FINDER_PATH_COUNT_BY_THREADID

public static final FinderPath FINDER_PATH_COUNT_BY_THREADID

FINDER_PATH_WITH_PAGINATION_FIND_BY_THREADREPLIES

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_THREADREPLIES

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_THREADREPLIES

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_THREADREPLIES

FINDER_PATH_COUNT_BY_THREADREPLIES

public static final FinderPath FINDER_PATH_COUNT_BY_THREADREPLIES

FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID

FINDER_PATH_COUNT_BY_USERID

public static final FinderPath FINDER_PATH_COUNT_BY_USERID

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U

FINDER_PATH_COUNT_BY_G_U

public static final FinderPath FINDER_PATH_COUNT_BY_G_U

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C

FINDER_PATH_COUNT_BY_G_C

public static final FinderPath FINDER_PATH_COUNT_BY_G_C

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_S

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_S

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_S

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_S

FINDER_PATH_COUNT_BY_G_S

public static final FinderPath FINDER_PATH_COUNT_BY_G_S

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_S

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_S

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_S

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_S

FINDER_PATH_COUNT_BY_C_S

public static final FinderPath FINDER_PATH_COUNT_BY_C_S

FINDER_PATH_WITH_PAGINATION_FIND_BY_U_C

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U_C

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U_C

FINDER_PATH_COUNT_BY_U_C

public static final FinderPath FINDER_PATH_COUNT_BY_U_C

FINDER_PATH_WITH_PAGINATION_COUNT_BY_U_C

public static final FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_U_C

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_C

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_C

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_C

FINDER_PATH_COUNT_BY_C_C

public static final FinderPath FINDER_PATH_COUNT_BY_C_C

FINDER_PATH_WITH_PAGINATION_FIND_BY_T_P

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_T_P

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_T_P

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_T_P

FINDER_PATH_COUNT_BY_T_P

public static final FinderPath FINDER_PATH_COUNT_BY_T_P

FINDER_PATH_WITH_PAGINATION_FIND_BY_T_A

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_T_A

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_T_A

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_T_A

FINDER_PATH_COUNT_BY_T_A

public static final FinderPath FINDER_PATH_COUNT_BY_T_A

FINDER_PATH_WITH_PAGINATION_FIND_BY_T_S

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_T_S

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_T_S

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_T_S

FINDER_PATH_COUNT_BY_T_S

public static final FinderPath FINDER_PATH_COUNT_BY_T_S

FINDER_PATH_WITH_PAGINATION_FIND_BY_TR_S

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_TR_S

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TR_S

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TR_S

FINDER_PATH_COUNT_BY_TR_S

public static final FinderPath FINDER_PATH_COUNT_BY_TR_S

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U_S

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U_S

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U_S

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U_S

FINDER_PATH_COUNT_BY_G_U_S

public static final FinderPath FINDER_PATH_COUNT_BY_G_U_S

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_T

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_T

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_T

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_T

FINDER_PATH_COUNT_BY_G_C_T

public static final FinderPath FINDER_PATH_COUNT_BY_G_C_T

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_S

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_S

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_S

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_S

FINDER_PATH_COUNT_BY_G_C_S

public static final FinderPath FINDER_PATH_COUNT_BY_G_C_S

FINDER_PATH_WITH_PAGINATION_FIND_BY_U_C_C

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U_C_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U_C_C

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U_C_C

FINDER_PATH_COUNT_BY_U_C_C

public static final FinderPath FINDER_PATH_COUNT_BY_U_C_C

FINDER_PATH_WITH_PAGINATION_FIND_BY_U_C_S

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U_C_S

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U_C_S

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U_C_S

FINDER_PATH_COUNT_BY_U_C_S

public static final FinderPath FINDER_PATH_COUNT_BY_U_C_S

FINDER_PATH_WITH_PAGINATION_COUNT_BY_U_C_S

public static final FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_U_C_S

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_C_S

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_C_S

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_C_S

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_C_S

FINDER_PATH_COUNT_BY_C_C_S

public static final FinderPath FINDER_PATH_COUNT_BY_C_C_S

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_T_A

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_T_A

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_T_A

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_T_A

FINDER_PATH_COUNT_BY_G_C_T_A

public static final FinderPath FINDER_PATH_COUNT_BY_G_C_T_A

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_T_S

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_T_S

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_T_S

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_T_S

FINDER_PATH_COUNT_BY_G_C_T_S

public static final FinderPath FINDER_PATH_COUNT_BY_G_C_T_S

FINDER_PATH_WITH_PAGINATION_FIND_BY_U_C_C_S

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U_C_C_S

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U_C_C_S

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U_C_C_S

FINDER_PATH_COUNT_BY_U_C_C_S

public static final FinderPath FINDER_PATH_COUNT_BY_U_C_C_S
Constructor Detail

MBMessagePersistenceImpl

public MBMessagePersistenceImpl()
Method Detail

findByUuid

public List<MBMessage> findByUuid(String uuid)
                           throws SystemException
Returns all the message-boards messages where uuid = ?.

Specified by:
findByUuid in interface MBMessagePersistence
Parameters:
uuid - the uuid
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByUuid

public List<MBMessage> findByUuid(String uuid,
                                  int start,
                                  int end)
                           throws SystemException
Returns a range of all the message-boards messages where uuid = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUuid in interface MBMessagePersistence
Parameters:
uuid - the uuid
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByUuid

public List<MBMessage> findByUuid(String uuid,
                                  int start,
                                  int end,
                                  OrderByComparator orderByComparator)
                           throws SystemException
Returns an ordered range of all the message-boards messages where uuid = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUuid in interface MBMessagePersistence
Parameters:
uuid - the uuid
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByUuid_First

public MBMessage findByUuid_First(String uuid,
                                  OrderByComparator orderByComparator)
                           throws NoSuchMessageException,
                                  SystemException
Returns the first message-boards message in the ordered set where uuid = ?.

Specified by:
findByUuid_First in interface MBMessagePersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByUuid_First

public MBMessage fetchByUuid_First(String uuid,
                                   OrderByComparator orderByComparator)
                            throws SystemException
Returns the first message-boards message in the ordered set where uuid = ?.

Specified by:
fetchByUuid_First in interface MBMessagePersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_Last

public MBMessage findByUuid_Last(String uuid,
                                 OrderByComparator orderByComparator)
                          throws NoSuchMessageException,
                                 SystemException
Returns the last message-boards message in the ordered set where uuid = ?.

Specified by:
findByUuid_Last in interface MBMessagePersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByUuid_Last

public MBMessage fetchByUuid_Last(String uuid,
                                  OrderByComparator orderByComparator)
                           throws SystemException
Returns the last message-boards message in the ordered set where uuid = ?.

Specified by:
fetchByUuid_Last in interface MBMessagePersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_PrevAndNext

public MBMessage[] findByUuid_PrevAndNext(long messageId,
                                          String uuid,
                                          OrderByComparator orderByComparator)
                                   throws NoSuchMessageException,
                                          SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set where uuid = ?.

Specified by:
findByUuid_PrevAndNext in interface MBMessagePersistence
Parameters:
messageId - the primary key of the current message-boards message
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message-boards message
Throws:
NoSuchMessageException - if a message-boards message with the primary key could not be found
SystemException - if a system exception occurred

getByUuid_PrevAndNext

protected MBMessage getByUuid_PrevAndNext(Session session,
                                          MBMessage mbMessage,
                                          String uuid,
                                          OrderByComparator orderByComparator,
                                          boolean previous)

removeByUuid

public void removeByUuid(String uuid)
                  throws SystemException
Removes all the message-boards messages where uuid = ? from the database.

Specified by:
removeByUuid in interface MBMessagePersistence
Parameters:
uuid - the uuid
Throws:
SystemException - if a system exception occurred

countByUuid

public int countByUuid(String uuid)
                throws SystemException
Returns the number of message-boards messages where uuid = ?.

Specified by:
countByUuid in interface MBMessagePersistence
Parameters:
uuid - the uuid
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByUUID_G

public MBMessage findByUUID_G(String uuid,
                              long groupId)
                       throws NoSuchMessageException,
                              SystemException
Returns the message-boards message where uuid = ? and groupId = ? or throws a NoSuchMessageException if it could not be found.

Specified by:
findByUUID_G in interface MBMessagePersistence
Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByUUID_G

public MBMessage fetchByUUID_G(String uuid,
                               long groupId)
                        throws SystemException
Returns the message-boards message where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByUUID_G in interface MBMessagePersistence
Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the matching message-boards message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

fetchByUUID_G

public MBMessage fetchByUUID_G(String uuid,
                               long groupId,
                               boolean retrieveFromCache)
                        throws SystemException
Returns the message-boards message where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByUUID_G in interface MBMessagePersistence
Parameters:
uuid - the uuid
groupId - the group ID
retrieveFromCache - whether to use the finder cache
Returns:
the matching message-boards message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

removeByUUID_G

public MBMessage removeByUUID_G(String uuid,
                                long groupId)
                         throws NoSuchMessageException,
                                SystemException
Removes the message-boards message where uuid = ? and groupId = ? from the database.

Specified by:
removeByUUID_G in interface MBMessagePersistence
Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the message-boards message that was removed
Throws:
SystemException - if a system exception occurred
NoSuchMessageException

countByUUID_G

public int countByUUID_G(String uuid,
                         long groupId)
                  throws SystemException
Returns the number of message-boards messages where uuid = ? and groupId = ?.

Specified by:
countByUUID_G in interface MBMessagePersistence
Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByUuid_C

public List<MBMessage> findByUuid_C(String uuid,
                                    long companyId)
                             throws SystemException
Returns all the message-boards messages where uuid = ? and companyId = ?.

Specified by:
findByUuid_C in interface MBMessagePersistence
Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByUuid_C

public List<MBMessage> findByUuid_C(String uuid,
                                    long companyId,
                                    int start,
                                    int end)
                             throws SystemException
Returns a range of all the message-boards messages where uuid = ? and companyId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUuid_C in interface MBMessagePersistence
Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByUuid_C

public List<MBMessage> findByUuid_C(String uuid,
                                    long companyId,
                                    int start,
                                    int end,
                                    OrderByComparator orderByComparator)
                             throws SystemException
Returns an ordered range of all the message-boards messages where uuid = ? and companyId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUuid_C in interface MBMessagePersistence
Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByUuid_C_First

public MBMessage findByUuid_C_First(String uuid,
                                    long companyId,
                                    OrderByComparator orderByComparator)
                             throws NoSuchMessageException,
                                    SystemException
Returns the first message-boards message in the ordered set where uuid = ? and companyId = ?.

Specified by:
findByUuid_C_First in interface MBMessagePersistence
Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByUuid_C_First

public MBMessage fetchByUuid_C_First(String uuid,
                                     long companyId,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Returns the first message-boards message in the ordered set where uuid = ? and companyId = ?.

Specified by:
fetchByUuid_C_First in interface MBMessagePersistence
Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_C_Last

public MBMessage findByUuid_C_Last(String uuid,
                                   long companyId,
                                   OrderByComparator orderByComparator)
                            throws NoSuchMessageException,
                                   SystemException
Returns the last message-boards message in the ordered set where uuid = ? and companyId = ?.

Specified by:
findByUuid_C_Last in interface MBMessagePersistence
Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByUuid_C_Last

public MBMessage fetchByUuid_C_Last(String uuid,
                                    long companyId,
                                    OrderByComparator orderByComparator)
                             throws SystemException
Returns the last message-boards message in the ordered set where uuid = ? and companyId = ?.

Specified by:
fetchByUuid_C_Last in interface MBMessagePersistence
Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_C_PrevAndNext

public MBMessage[] findByUuid_C_PrevAndNext(long messageId,
                                            String uuid,
                                            long companyId,
                                            OrderByComparator orderByComparator)
                                     throws NoSuchMessageException,
                                            SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set where uuid = ? and companyId = ?.

Specified by:
findByUuid_C_PrevAndNext in interface MBMessagePersistence
Parameters:
messageId - the primary key of the current message-boards message
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message-boards message
Throws:
NoSuchMessageException - if a message-boards message with the primary key could not be found
SystemException - if a system exception occurred

getByUuid_C_PrevAndNext

protected MBMessage getByUuid_C_PrevAndNext(Session session,
                                            MBMessage mbMessage,
                                            String uuid,
                                            long companyId,
                                            OrderByComparator orderByComparator,
                                            boolean previous)

removeByUuid_C

public void removeByUuid_C(String uuid,
                           long companyId)
                    throws SystemException
Removes all the message-boards messages where uuid = ? and companyId = ? from the database.

Specified by:
removeByUuid_C in interface MBMessagePersistence
Parameters:
uuid - the uuid
companyId - the company ID
Throws:
SystemException - if a system exception occurred

countByUuid_C

public int countByUuid_C(String uuid,
                         long companyId)
                  throws SystemException
Returns the number of message-boards messages where uuid = ? and companyId = ?.

Specified by:
countByUuid_C in interface MBMessagePersistence
Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByGroupId

public List<MBMessage> findByGroupId(long groupId)
                              throws SystemException
Returns all the message-boards messages where groupId = ?.

Specified by:
findByGroupId in interface MBMessagePersistence
Parameters:
groupId - the group ID
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByGroupId

public List<MBMessage> findByGroupId(long groupId,
                                     int start,
                                     int end)
                              throws SystemException
Returns a range of all the message-boards messages 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByGroupId in interface MBMessagePersistence
Parameters:
groupId - the group ID
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByGroupId

public List<MBMessage> findByGroupId(long groupId,
                                     int start,
                                     int end,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Returns an ordered range of all the message-boards messages 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findByGroupId_First

public MBMessage findByGroupId_First(long groupId,
                                     OrderByComparator orderByComparator)
                              throws NoSuchMessageException,
                                     SystemException
Returns the first message-boards message in the ordered set where groupId = ?.

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

fetchByGroupId_First

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

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

findByGroupId_Last

public MBMessage findByGroupId_Last(long groupId,
                                    OrderByComparator orderByComparator)
                             throws NoSuchMessageException,
                                    SystemException
Returns the last message-boards message in the ordered set where groupId = ?.

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

fetchByGroupId_Last

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

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

findByGroupId_PrevAndNext

public MBMessage[] findByGroupId_PrevAndNext(long messageId,
                                             long groupId,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchMessageException,
                                             SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ?.

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

getByGroupId_PrevAndNext

protected MBMessage getByGroupId_PrevAndNext(Session session,
                                             MBMessage mbMessage,
                                             long groupId,
                                             OrderByComparator orderByComparator,
                                             boolean previous)

filterFindByGroupId

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

Specified by:
filterFindByGroupId in interface MBMessagePersistence
Parameters:
groupId - the group ID
Returns:
the matching message-boards messages that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

public List<MBMessage> filterFindByGroupId(long groupId,
                                           int start,
                                           int end)
                                    throws SystemException
Returns a range of all the message-boards messages 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

filterFindByGroupId

public List<MBMessage> filterFindByGroupId(long groupId,
                                           int start,
                                           int end,
                                           OrderByComparator orderByComparator)
                                    throws SystemException
Returns an ordered range of all the message-boards messages 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

filterFindByGroupId_PrevAndNext

public MBMessage[] filterFindByGroupId_PrevAndNext(long messageId,
                                                   long groupId,
                                                   OrderByComparator orderByComparator)
                                            throws NoSuchMessageException,
                                                   SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = ?.

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

filterGetByGroupId_PrevAndNext

protected MBMessage filterGetByGroupId_PrevAndNext(Session session,
                                                   MBMessage mbMessage,
                                                   long groupId,
                                                   OrderByComparator orderByComparator,
                                                   boolean previous)

removeByGroupId

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

Specified by:
removeByGroupId in interface MBMessagePersistence
Parameters:
groupId - the group ID
Throws:
SystemException - if a system exception occurred

countByGroupId

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

Specified by:
countByGroupId in interface MBMessagePersistence
Parameters:
groupId - the group ID
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

filterCountByGroupId

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

Specified by:
filterCountByGroupId in interface MBMessagePersistence
Parameters:
groupId - the group ID
Returns:
the number of matching message-boards messages that the user has permission to view
Throws:
SystemException - if a system exception occurred

findByCompanyId

public List<MBMessage> findByCompanyId(long companyId)
                                throws SystemException
Returns all the message-boards messages where companyId = ?.

Specified by:
findByCompanyId in interface MBMessagePersistence
Parameters:
companyId - the company ID
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByCompanyId

public List<MBMessage> findByCompanyId(long companyId,
                                       int start,
                                       int end)
                                throws SystemException
Returns a range of all the message-boards messages where companyId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByCompanyId in interface MBMessagePersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByCompanyId

public List<MBMessage> findByCompanyId(long companyId,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Returns an ordered range of all the message-boards messages where companyId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByCompanyId in interface MBMessagePersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByCompanyId_First

public MBMessage findByCompanyId_First(long companyId,
                                       OrderByComparator orderByComparator)
                                throws NoSuchMessageException,
                                       SystemException
Returns the first message-boards message in the ordered set where companyId = ?.

Specified by:
findByCompanyId_First in interface MBMessagePersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByCompanyId_First

public MBMessage fetchByCompanyId_First(long companyId,
                                        OrderByComparator orderByComparator)
                                 throws SystemException
Returns the first message-boards message in the ordered set where companyId = ?.

Specified by:
fetchByCompanyId_First in interface MBMessagePersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

findByCompanyId_Last

public MBMessage findByCompanyId_Last(long companyId,
                                      OrderByComparator orderByComparator)
                               throws NoSuchMessageException,
                                      SystemException
Returns the last message-boards message in the ordered set where companyId = ?.

Specified by:
findByCompanyId_Last in interface MBMessagePersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByCompanyId_Last

public MBMessage fetchByCompanyId_Last(long companyId,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Returns the last message-boards message in the ordered set where companyId = ?.

Specified by:
fetchByCompanyId_Last in interface MBMessagePersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

public MBMessage[] findByCompanyId_PrevAndNext(long messageId,
                                               long companyId,
                                               OrderByComparator orderByComparator)
                                        throws NoSuchMessageException,
                                               SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set where companyId = ?.

Specified by:
findByCompanyId_PrevAndNext in interface MBMessagePersistence
Parameters:
messageId - the primary key of the current message-boards message
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message-boards message
Throws:
NoSuchMessageException - if a message-boards message with the primary key could not be found
SystemException - if a system exception occurred

getByCompanyId_PrevAndNext

protected MBMessage getByCompanyId_PrevAndNext(Session session,
                                               MBMessage mbMessage,
                                               long companyId,
                                               OrderByComparator orderByComparator,
                                               boolean previous)

removeByCompanyId

public void removeByCompanyId(long companyId)
                       throws SystemException
Removes all the message-boards messages where companyId = ? from the database.

Specified by:
removeByCompanyId in interface MBMessagePersistence
Parameters:
companyId - the company ID
Throws:
SystemException - if a system exception occurred

countByCompanyId

public int countByCompanyId(long companyId)
                     throws SystemException
Returns the number of message-boards messages where companyId = ?.

Specified by:
countByCompanyId in interface MBMessagePersistence
Parameters:
companyId - the company ID
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByThreadId

public List<MBMessage> findByThreadId(long threadId)
                               throws SystemException
Returns all the message-boards messages where threadId = ?.

Specified by:
findByThreadId in interface MBMessagePersistence
Parameters:
threadId - the thread ID
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByThreadId

public List<MBMessage> findByThreadId(long threadId,
                                      int start,
                                      int end)
                               throws SystemException
Returns a range of all the message-boards messages where threadId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByThreadId in interface MBMessagePersistence
Parameters:
threadId - the thread ID
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByThreadId

public List<MBMessage> findByThreadId(long threadId,
                                      int start,
                                      int end,
                                      OrderByComparator orderByComparator)
                               throws SystemException
Returns an ordered range of all the message-boards messages where threadId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByThreadId in interface MBMessagePersistence
Parameters:
threadId - the thread ID
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByThreadId_First

public MBMessage findByThreadId_First(long threadId,
                                      OrderByComparator orderByComparator)
                               throws NoSuchMessageException,
                                      SystemException
Returns the first message-boards message in the ordered set where threadId = ?.

Specified by:
findByThreadId_First in interface MBMessagePersistence
Parameters:
threadId - the thread ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByThreadId_First

public MBMessage fetchByThreadId_First(long threadId,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Returns the first message-boards message in the ordered set where threadId = ?.

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

findByThreadId_Last

public MBMessage findByThreadId_Last(long threadId,
                                     OrderByComparator orderByComparator)
                              throws NoSuchMessageException,
                                     SystemException
Returns the last message-boards message in the ordered set where threadId = ?.

Specified by:
findByThreadId_Last in interface MBMessagePersistence
Parameters:
threadId - the thread ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByThreadId_Last

public MBMessage fetchByThreadId_Last(long threadId,
                                      OrderByComparator orderByComparator)
                               throws SystemException
Returns the last message-boards message in the ordered set where threadId = ?.

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

findByThreadId_PrevAndNext

public MBMessage[] findByThreadId_PrevAndNext(long messageId,
                                              long threadId,
                                              OrderByComparator orderByComparator)
                                       throws NoSuchMessageException,
                                              SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set where threadId = ?.

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

getByThreadId_PrevAndNext

protected MBMessage getByThreadId_PrevAndNext(Session session,
                                              MBMessage mbMessage,
                                              long threadId,
                                              OrderByComparator orderByComparator,
                                              boolean previous)

removeByThreadId

public void removeByThreadId(long threadId)
                      throws SystemException
Removes all the message-boards messages where threadId = ? from the database.

Specified by:
removeByThreadId in interface MBMessagePersistence
Parameters:
threadId - the thread ID
Throws:
SystemException - if a system exception occurred

countByThreadId

public int countByThreadId(long threadId)
                    throws SystemException
Returns the number of message-boards messages where threadId = ?.

Specified by:
countByThreadId in interface MBMessagePersistence
Parameters:
threadId - the thread ID
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByThreadReplies

public List<MBMessage> findByThreadReplies(long threadId)
                                    throws SystemException
Returns all the message-boards messages where threadId = ?.

Specified by:
findByThreadReplies in interface MBMessagePersistence
Parameters:
threadId - the thread ID
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByThreadReplies

public List<MBMessage> findByThreadReplies(long threadId,
                                           int start,
                                           int end)
                                    throws SystemException
Returns a range of all the message-boards messages where threadId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByThreadReplies in interface MBMessagePersistence
Parameters:
threadId - the thread ID
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByThreadReplies

public List<MBMessage> findByThreadReplies(long threadId,
                                           int start,
                                           int end,
                                           OrderByComparator orderByComparator)
                                    throws SystemException
Returns an ordered range of all the message-boards messages where threadId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByThreadReplies in interface MBMessagePersistence
Parameters:
threadId - the thread ID
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByThreadReplies_First

public MBMessage findByThreadReplies_First(long threadId,
                                           OrderByComparator orderByComparator)
                                    throws NoSuchMessageException,
                                           SystemException
Returns the first message-boards message in the ordered set where threadId = ?.

Specified by:
findByThreadReplies_First in interface MBMessagePersistence
Parameters:
threadId - the thread ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByThreadReplies_First

public MBMessage fetchByThreadReplies_First(long threadId,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Returns the first message-boards message in the ordered set where threadId = ?.

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

findByThreadReplies_Last

public MBMessage findByThreadReplies_Last(long threadId,
                                          OrderByComparator orderByComparator)
                                   throws NoSuchMessageException,
                                          SystemException
Returns the last message-boards message in the ordered set where threadId = ?.

Specified by:
findByThreadReplies_Last in interface MBMessagePersistence
Parameters:
threadId - the thread ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByThreadReplies_Last

public MBMessage fetchByThreadReplies_Last(long threadId,
                                           OrderByComparator orderByComparator)
                                    throws SystemException
Returns the last message-boards message in the ordered set where threadId = ?.

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

findByThreadReplies_PrevAndNext

public MBMessage[] findByThreadReplies_PrevAndNext(long messageId,
                                                   long threadId,
                                                   OrderByComparator orderByComparator)
                                            throws NoSuchMessageException,
                                                   SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set where threadId = ?.

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

getByThreadReplies_PrevAndNext

protected MBMessage getByThreadReplies_PrevAndNext(Session session,
                                                   MBMessage mbMessage,
                                                   long threadId,
                                                   OrderByComparator orderByComparator,
                                                   boolean previous)

removeByThreadReplies

public void removeByThreadReplies(long threadId)
                           throws SystemException
Removes all the message-boards messages where threadId = ? from the database.

Specified by:
removeByThreadReplies in interface MBMessagePersistence
Parameters:
threadId - the thread ID
Throws:
SystemException - if a system exception occurred

countByThreadReplies

public int countByThreadReplies(long threadId)
                         throws SystemException
Returns the number of message-boards messages where threadId = ?.

Specified by:
countByThreadReplies in interface MBMessagePersistence
Parameters:
threadId - the thread ID
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByUserId

public List<MBMessage> findByUserId(long userId)
                             throws SystemException
Returns all the message-boards messages where userId = ?.

Specified by:
findByUserId in interface MBMessagePersistence
Parameters:
userId - the user ID
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByUserId

public List<MBMessage> findByUserId(long userId,
                                    int start,
                                    int end)
                             throws SystemException
Returns a range of all the message-boards messages where userId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUserId in interface MBMessagePersistence
Parameters:
userId - the user ID
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByUserId

public List<MBMessage> findByUserId(long userId,
                                    int start,
                                    int end,
                                    OrderByComparator orderByComparator)
                             throws SystemException
Returns an ordered range of all the message-boards messages where userId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUserId in interface MBMessagePersistence
Parameters:
userId - the user ID
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByUserId_First

public MBMessage findByUserId_First(long userId,
                                    OrderByComparator orderByComparator)
                             throws NoSuchMessageException,
                                    SystemException
Returns the first message-boards message in the ordered set where userId = ?.

Specified by:
findByUserId_First in interface MBMessagePersistence
Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByUserId_First

public MBMessage fetchByUserId_First(long userId,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Returns the first message-boards message in the ordered set where userId = ?.

Specified by:
fetchByUserId_First in interface MBMessagePersistence
Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

findByUserId_Last

public MBMessage findByUserId_Last(long userId,
                                   OrderByComparator orderByComparator)
                            throws NoSuchMessageException,
                                   SystemException
Returns the last message-boards message in the ordered set where userId = ?.

Specified by:
findByUserId_Last in interface MBMessagePersistence
Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByUserId_Last

public MBMessage fetchByUserId_Last(long userId,
                                    OrderByComparator orderByComparator)
                             throws SystemException
Returns the last message-boards message in the ordered set where userId = ?.

Specified by:
fetchByUserId_Last in interface MBMessagePersistence
Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

findByUserId_PrevAndNext

public MBMessage[] findByUserId_PrevAndNext(long messageId,
                                            long userId,
                                            OrderByComparator orderByComparator)
                                     throws NoSuchMessageException,
                                            SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set where userId = ?.

Specified by:
findByUserId_PrevAndNext in interface MBMessagePersistence
Parameters:
messageId - the primary key of the current message-boards message
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message-boards message
Throws:
NoSuchMessageException - if a message-boards message with the primary key could not be found
SystemException - if a system exception occurred

getByUserId_PrevAndNext

protected MBMessage getByUserId_PrevAndNext(Session session,
                                            MBMessage mbMessage,
                                            long userId,
                                            OrderByComparator orderByComparator,
                                            boolean previous)

removeByUserId

public void removeByUserId(long userId)
                    throws SystemException
Removes all the message-boards messages where userId = ? from the database.

Specified by:
removeByUserId in interface MBMessagePersistence
Parameters:
userId - the user ID
Throws:
SystemException - if a system exception occurred

countByUserId

public int countByUserId(long userId)
                  throws SystemException
Returns the number of message-boards messages where userId = ?.

Specified by:
countByUserId in interface MBMessagePersistence
Parameters:
userId - the user ID
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByG_U

public List<MBMessage> findByG_U(long groupId,
                                 long userId)
                          throws SystemException
Returns all the message-boards messages where groupId = ? and userId = ?.

Specified by:
findByG_U in interface MBMessagePersistence
Parameters:
groupId - the group ID
userId - the user ID
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByG_U

public List<MBMessage> findByG_U(long groupId,
                                 long userId,
                                 int start,
                                 int end)
                          throws SystemException
Returns a range of all the message-boards messages where groupId = ? and userId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_U in interface MBMessagePersistence
Parameters:
groupId - the group ID
userId - the user ID
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByG_U

public List<MBMessage> findByG_U(long groupId,
                                 long userId,
                                 int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                          throws SystemException
Returns an ordered range of all the message-boards messages where groupId = ? and userId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findByG_U_First

public MBMessage findByG_U_First(long groupId,
                                 long userId,
                                 OrderByComparator orderByComparator)
                          throws NoSuchMessageException,
                                 SystemException
Returns the first message-boards message in the ordered set where groupId = ? and userId = ?.

Specified by:
findByG_U_First in interface MBMessagePersistence
Parameters:
groupId - the group ID
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByG_U_First

public MBMessage fetchByG_U_First(long groupId,
                                  long userId,
                                  OrderByComparator orderByComparator)
                           throws SystemException
Returns the first message-boards message in the ordered set where groupId = ? and userId = ?.

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

findByG_U_Last

public MBMessage findByG_U_Last(long groupId,
                                long userId,
                                OrderByComparator orderByComparator)
                         throws NoSuchMessageException,
                                SystemException
Returns the last message-boards message in the ordered set where groupId = ? and userId = ?.

Specified by:
findByG_U_Last in interface MBMessagePersistence
Parameters:
groupId - the group ID
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByG_U_Last

public MBMessage fetchByG_U_Last(long groupId,
                                 long userId,
                                 OrderByComparator orderByComparator)
                          throws SystemException
Returns the last message-boards message in the ordered set where groupId = ? and userId = ?.

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

findByG_U_PrevAndNext

public MBMessage[] findByG_U_PrevAndNext(long messageId,
                                         long groupId,
                                         long userId,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchMessageException,
                                         SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ? and userId = ?.

Specified by:
findByG_U_PrevAndNext in interface MBMessagePersistence
Parameters:
messageId - the primary key of the current message-boards message
groupId - the group ID
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message-boards message
Throws:
NoSuchMessageException - if a message-boards message with the primary key could not be found
SystemException - if a system exception occurred

getByG_U_PrevAndNext

protected MBMessage getByG_U_PrevAndNext(Session session,
                                         MBMessage mbMessage,
                                         long groupId,
                                         long userId,
                                         OrderByComparator orderByComparator,
                                         boolean previous)

filterFindByG_U

public List<MBMessage> filterFindByG_U(long groupId,
                                       long userId)
                                throws SystemException
Returns all the message-boards messages that the user has permission to view where groupId = ? and userId = ?.

Specified by:
filterFindByG_U in interface MBMessagePersistence
Parameters:
groupId - the group ID
userId - the user ID
Returns:
the matching message-boards messages that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_U

public List<MBMessage> filterFindByG_U(long groupId,
                                       long userId,
                                       int start,
                                       int end)
                                throws SystemException
Returns a range of all the message-boards messages that the user has permission to view where groupId = ? and userId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
filterFindByG_U in interface MBMessagePersistence
Parameters:
groupId - the group ID
userId - the user ID
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_U

public List<MBMessage> filterFindByG_U(long groupId,
                                       long userId,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = ? and userId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

filterFindByG_U_PrevAndNext

public MBMessage[] filterFindByG_U_PrevAndNext(long messageId,
                                               long groupId,
                                               long userId,
                                               OrderByComparator orderByComparator)
                                        throws NoSuchMessageException,
                                               SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = ? and userId = ?.

Specified by:
filterFindByG_U_PrevAndNext in interface MBMessagePersistence
Parameters:
messageId - the primary key of the current message-boards message
groupId - the group ID
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message-boards message
Throws:
NoSuchMessageException - if a message-boards message with the primary key could not be found
SystemException - if a system exception occurred

filterGetByG_U_PrevAndNext

protected MBMessage filterGetByG_U_PrevAndNext(Session session,
                                               MBMessage mbMessage,
                                               long groupId,
                                               long userId,
                                               OrderByComparator orderByComparator,
                                               boolean previous)

removeByG_U

public void removeByG_U(long groupId,
                        long userId)
                 throws SystemException
Removes all the message-boards messages where groupId = ? and userId = ? from the database.

Specified by:
removeByG_U in interface MBMessagePersistence
Parameters:
groupId - the group ID
userId - the user ID
Throws:
SystemException - if a system exception occurred

countByG_U

public int countByG_U(long groupId,
                      long userId)
               throws SystemException
Returns the number of message-boards messages where groupId = ? and userId = ?.

Specified by:
countByG_U in interface MBMessagePersistence
Parameters:
groupId - the group ID
userId - the user ID
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

filterCountByG_U

public int filterCountByG_U(long groupId,
                            long userId)
                     throws SystemException
Returns the number of message-boards messages that the user has permission to view where groupId = ? and userId = ?.

Specified by:
filterCountByG_U in interface MBMessagePersistence
Parameters:
groupId - the group ID
userId - the user ID
Returns:
the number of matching message-boards messages that the user has permission to view
Throws:
SystemException - if a system exception occurred

findByG_C

public List<MBMessage> findByG_C(long groupId,
                                 long categoryId)
                          throws SystemException
Returns all the message-boards messages where groupId = ? and categoryId = ?.

Specified by:
findByG_C in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByG_C

public List<MBMessage> findByG_C(long groupId,
                                 long categoryId,
                                 int start,
                                 int end)
                          throws SystemException
Returns a range of all the message-boards messages 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_C in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByG_C

public List<MBMessage> findByG_C(long groupId,
                                 long categoryId,
                                 int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                          throws SystemException
Returns an ordered range of all the message-boards messages 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findByG_C_First

public MBMessage findByG_C_First(long groupId,
                                 long categoryId,
                                 OrderByComparator orderByComparator)
                          throws NoSuchMessageException,
                                 SystemException
Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ?.

Specified by:
findByG_C_First in interface MBMessagePersistence
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 message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByG_C_First

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

Specified by:
fetchByG_C_First in interface MBMessagePersistence
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 message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

findByG_C_Last

public MBMessage findByG_C_Last(long groupId,
                                long categoryId,
                                OrderByComparator orderByComparator)
                         throws NoSuchMessageException,
                                SystemException
Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ?.

Specified by:
findByG_C_Last in interface MBMessagePersistence
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 message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByG_C_Last

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

Specified by:
fetchByG_C_Last in interface MBMessagePersistence
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 message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

findByG_C_PrevAndNext

public MBMessage[] findByG_C_PrevAndNext(long messageId,
                                         long groupId,
                                         long categoryId,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchMessageException,
                                         SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ? and categoryId = ?.

Specified by:
findByG_C_PrevAndNext in interface MBMessagePersistence
Parameters:
messageId - the primary key of the current message-boards message
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 message
Throws:
NoSuchMessageException - if a message-boards message with the primary key could not be found
SystemException - if a system exception occurred

getByG_C_PrevAndNext

protected MBMessage getByG_C_PrevAndNext(Session session,
                                         MBMessage mbMessage,
                                         long groupId,
                                         long categoryId,
                                         OrderByComparator orderByComparator,
                                         boolean previous)

filterFindByG_C

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

Specified by:
filterFindByG_C in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
Returns:
the matching message-boards messages that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_C

public List<MBMessage> filterFindByG_C(long groupId,
                                       long categoryId,
                                       int start,
                                       int end)
                                throws SystemException
Returns a range of all the message-boards messages 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

filterFindByG_C

public List<MBMessage> filterFindByG_C(long groupId,
                                       long categoryId,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Returns an ordered range of all the message-boards messages 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

filterFindByG_C_PrevAndNext

public MBMessage[] filterFindByG_C_PrevAndNext(long messageId,
                                               long groupId,
                                               long categoryId,
                                               OrderByComparator orderByComparator)
                                        throws NoSuchMessageException,
                                               SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = ? and categoryId = ?.

Specified by:
filterFindByG_C_PrevAndNext in interface MBMessagePersistence
Parameters:
messageId - the primary key of the current message-boards message
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 message
Throws:
NoSuchMessageException - if a message-boards message with the primary key could not be found
SystemException - if a system exception occurred

filterGetByG_C_PrevAndNext

protected MBMessage filterGetByG_C_PrevAndNext(Session session,
                                               MBMessage mbMessage,
                                               long groupId,
                                               long categoryId,
                                               OrderByComparator orderByComparator,
                                               boolean previous)

removeByG_C

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

Specified by:
removeByG_C in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
Throws:
SystemException - if a system exception occurred

countByG_C

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

Specified by:
countByG_C in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

filterCountByG_C

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

Specified by:
filterCountByG_C in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
Returns:
the number of matching message-boards messages that the user has permission to view
Throws:
SystemException - if a system exception occurred

findByG_S

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

Specified by:
findByG_S in interface MBMessagePersistence
Parameters:
groupId - the group ID
status - the status
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByG_S

public List<MBMessage> findByG_S(long groupId,
                                 int status,
                                 int start,
                                 int end)
                          throws SystemException
Returns a range of all the message-boards messages 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_S in interface MBMessagePersistence
Parameters:
groupId - the group ID
status - the status
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByG_S

public List<MBMessage> findByG_S(long groupId,
                                 int status,
                                 int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                          throws SystemException
Returns an ordered range of all the message-boards messages 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findByG_S_First

public MBMessage findByG_S_First(long groupId,
                                 int status,
                                 OrderByComparator orderByComparator)
                          throws NoSuchMessageException,
                                 SystemException
Returns the first message-boards message in the ordered set where groupId = ? and status = ?.

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

fetchByG_S_First

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

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

findByG_S_Last

public MBMessage findByG_S_Last(long groupId,
                                int status,
                                OrderByComparator orderByComparator)
                         throws NoSuchMessageException,
                                SystemException
Returns the last message-boards message in the ordered set where groupId = ? and status = ?.

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

fetchByG_S_Last

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

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

findByG_S_PrevAndNext

public MBMessage[] findByG_S_PrevAndNext(long messageId,
                                         long groupId,
                                         int status,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchMessageException,
                                         SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ? and status = ?.

Specified by:
findByG_S_PrevAndNext in interface MBMessagePersistence
Parameters:
messageId - the primary key of the current message-boards message
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 message
Throws:
NoSuchMessageException - if a message-boards message with the primary key could not be found
SystemException - if a system exception occurred

getByG_S_PrevAndNext

protected MBMessage getByG_S_PrevAndNext(Session session,
                                         MBMessage mbMessage,
                                         long groupId,
                                         int status,
                                         OrderByComparator orderByComparator,
                                         boolean previous)

filterFindByG_S

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

Specified by:
filterFindByG_S in interface MBMessagePersistence
Parameters:
groupId - the group ID
status - the status
Returns:
the matching message-boards messages that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_S

public List<MBMessage> filterFindByG_S(long groupId,
                                       int status,
                                       int start,
                                       int end)
                                throws SystemException
Returns a range of all the message-boards messages 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

filterFindByG_S

public List<MBMessage> filterFindByG_S(long groupId,
                                       int status,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Returns an ordered range of all the message-boards messages 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

filterFindByG_S_PrevAndNext

public MBMessage[] filterFindByG_S_PrevAndNext(long messageId,
                                               long groupId,
                                               int status,
                                               OrderByComparator orderByComparator)
                                        throws NoSuchMessageException,
                                               SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = ? and status = ?.

Specified by:
filterFindByG_S_PrevAndNext in interface MBMessagePersistence
Parameters:
messageId - the primary key of the current message-boards message
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 message
Throws:
NoSuchMessageException - if a message-boards message with the primary key could not be found
SystemException - if a system exception occurred

filterGetByG_S_PrevAndNext

protected MBMessage filterGetByG_S_PrevAndNext(Session session,
                                               MBMessage mbMessage,
                                               long groupId,
                                               int status,
                                               OrderByComparator orderByComparator,
                                               boolean previous)

removeByG_S

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

Specified by:
removeByG_S in interface MBMessagePersistence
Parameters:
groupId - the group ID
status - the status
Throws:
SystemException - if a system exception occurred

countByG_S

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

Specified by:
countByG_S in interface MBMessagePersistence
Parameters:
groupId - the group ID
status - the status
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

filterCountByG_S

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

Specified by:
filterCountByG_S in interface MBMessagePersistence
Parameters:
groupId - the group ID
status - the status
Returns:
the number of matching message-boards messages that the user has permission to view
Throws:
SystemException - if a system exception occurred

findByC_S

public List<MBMessage> findByC_S(long companyId,
                                 int status)
                          throws SystemException
Returns all the message-boards messages where companyId = ? and status = ?.

Specified by:
findByC_S in interface MBMessagePersistence
Parameters:
companyId - the company ID
status - the status
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByC_S

public List<MBMessage> findByC_S(long companyId,
                                 int status,
                                 int start,
                                 int end)
                          throws SystemException
Returns a range of all the message-boards messages where companyId = ? 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByC_S in interface MBMessagePersistence
Parameters:
companyId - the company ID
status - the status
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByC_S

public List<MBMessage> findByC_S(long companyId,
                                 int status,
                                 int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                          throws SystemException
Returns an ordered range of all the message-boards messages where companyId = ? 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByC_S in interface MBMessagePersistence
Parameters:
companyId - the company ID
status - the status
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByC_S_First

public MBMessage findByC_S_First(long companyId,
                                 int status,
                                 OrderByComparator orderByComparator)
                          throws NoSuchMessageException,
                                 SystemException
Returns the first message-boards message in the ordered set where companyId = ? and status = ?.

Specified by:
findByC_S_First in interface MBMessagePersistence
Parameters:
companyId - the company ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByC_S_First

public MBMessage fetchByC_S_First(long companyId,
                                  int status,
                                  OrderByComparator orderByComparator)
                           throws SystemException
Returns the first message-boards message in the ordered set where companyId = ? and status = ?.

Specified by:
fetchByC_S_First in interface MBMessagePersistence
Parameters:
companyId - the company ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

findByC_S_Last

public MBMessage findByC_S_Last(long companyId,
                                int status,
                                OrderByComparator orderByComparator)
                         throws NoSuchMessageException,
                                SystemException
Returns the last message-boards message in the ordered set where companyId = ? and status = ?.

Specified by:
findByC_S_Last in interface MBMessagePersistence
Parameters:
companyId - the company ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByC_S_Last

public MBMessage fetchByC_S_Last(long companyId,
                                 int status,
                                 OrderByComparator orderByComparator)
                          throws SystemException
Returns the last message-boards message in the ordered set where companyId = ? and status = ?.

Specified by:
fetchByC_S_Last in interface MBMessagePersistence
Parameters:
companyId - the company ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

findByC_S_PrevAndNext

public MBMessage[] findByC_S_PrevAndNext(long messageId,
                                         long companyId,
                                         int status,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchMessageException,
                                         SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set where companyId = ? and status = ?.

Specified by:
findByC_S_PrevAndNext in interface MBMessagePersistence
Parameters:
messageId - the primary key of the current message-boards message
companyId - the company ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message-boards message
Throws:
NoSuchMessageException - if a message-boards message with the primary key could not be found
SystemException - if a system exception occurred

getByC_S_PrevAndNext

protected MBMessage getByC_S_PrevAndNext(Session session,
                                         MBMessage mbMessage,
                                         long companyId,
                                         int status,
                                         OrderByComparator orderByComparator,
                                         boolean previous)

removeByC_S

public void removeByC_S(long companyId,
                        int status)
                 throws SystemException
Removes all the message-boards messages where companyId = ? and status = ? from the database.

Specified by:
removeByC_S in interface MBMessagePersistence
Parameters:
companyId - the company ID
status - the status
Throws:
SystemException - if a system exception occurred

countByC_S

public int countByC_S(long companyId,
                      int status)
               throws SystemException
Returns the number of message-boards messages where companyId = ? and status = ?.

Specified by:
countByC_S in interface MBMessagePersistence
Parameters:
companyId - the company ID
status - the status
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByU_C

public List<MBMessage> findByU_C(long userId,
                                 long classNameId)
                          throws SystemException
Returns all the message-boards messages where userId = ? and classNameId = ?.

Specified by:
findByU_C in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByU_C

public List<MBMessage> findByU_C(long userId,
                                 long classNameId,
                                 int start,
                                 int end)
                          throws SystemException
Returns a range of all the message-boards messages where userId = ? and classNameId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByU_C in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByU_C

public List<MBMessage> findByU_C(long userId,
                                 long classNameId,
                                 int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                          throws SystemException
Returns an ordered range of all the message-boards messages where userId = ? and classNameId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByU_C in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByU_C_First

public MBMessage findByU_C_First(long userId,
                                 long classNameId,
                                 OrderByComparator orderByComparator)
                          throws NoSuchMessageException,
                                 SystemException
Returns the first message-boards message in the ordered set where userId = ? and classNameId = ?.

Specified by:
findByU_C_First in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByU_C_First

public MBMessage fetchByU_C_First(long userId,
                                  long classNameId,
                                  OrderByComparator orderByComparator)
                           throws SystemException
Returns the first message-boards message in the ordered set where userId = ? and classNameId = ?.

Specified by:
fetchByU_C_First in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

findByU_C_Last

public MBMessage findByU_C_Last(long userId,
                                long classNameId,
                                OrderByComparator orderByComparator)
                         throws NoSuchMessageException,
                                SystemException
Returns the last message-boards message in the ordered set where userId = ? and classNameId = ?.

Specified by:
findByU_C_Last in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByU_C_Last

public MBMessage fetchByU_C_Last(long userId,
                                 long classNameId,
                                 OrderByComparator orderByComparator)
                          throws SystemException
Returns the last message-boards message in the ordered set where userId = ? and classNameId = ?.

Specified by:
fetchByU_C_Last in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

findByU_C_PrevAndNext

public MBMessage[] findByU_C_PrevAndNext(long messageId,
                                         long userId,
                                         long classNameId,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchMessageException,
                                         SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set where userId = ? and classNameId = ?.

Specified by:
findByU_C_PrevAndNext in interface MBMessagePersistence
Parameters:
messageId - the primary key of the current message-boards message
userId - the user ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message-boards message
Throws:
NoSuchMessageException - if a message-boards message with the primary key could not be found
SystemException - if a system exception occurred

getByU_C_PrevAndNext

protected MBMessage getByU_C_PrevAndNext(Session session,
                                         MBMessage mbMessage,
                                         long userId,
                                         long classNameId,
                                         OrderByComparator orderByComparator,
                                         boolean previous)

findByU_C

public List<MBMessage> findByU_C(long userId,
                                 long[] classNameIds)
                          throws SystemException
Returns all the message-boards messages where userId = ? and classNameId = 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByU_C in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameIds - the class name IDs
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByU_C

public List<MBMessage> findByU_C(long userId,
                                 long[] classNameIds,
                                 int start,
                                 int end)
                          throws SystemException
Returns a range of all the message-boards messages where userId = ? and classNameId = 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByU_C in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameIds - the class name IDs
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByU_C

public List<MBMessage> findByU_C(long userId,
                                 long[] classNameIds,
                                 int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                          throws SystemException
Returns an ordered range of all the message-boards messages where userId = ? and classNameId = 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByU_C in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameIds - the class name IDs
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

removeByU_C

public void removeByU_C(long userId,
                        long classNameId)
                 throws SystemException
Removes all the message-boards messages where userId = ? and classNameId = ? from the database.

Specified by:
removeByU_C in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
Throws:
SystemException - if a system exception occurred

countByU_C

public int countByU_C(long userId,
                      long classNameId)
               throws SystemException
Returns the number of message-boards messages where userId = ? and classNameId = ?.

Specified by:
countByU_C in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

countByU_C

public int countByU_C(long userId,
                      long[] classNameIds)
               throws SystemException
Returns the number of message-boards messages where userId = ? and classNameId = any ?.

Specified by:
countByU_C in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameIds - the class name IDs
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByC_C

public List<MBMessage> findByC_C(long classNameId,
                                 long classPK)
                          throws SystemException
Returns all the message-boards messages where classNameId = ? and classPK = ?.

Specified by:
findByC_C in interface MBMessagePersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByC_C

public List<MBMessage> findByC_C(long classNameId,
                                 long classPK,
                                 int start,
                                 int end)
                          throws SystemException
Returns a range of all the message-boards messages where classNameId = ? and classPK = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByC_C in interface MBMessagePersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByC_C

public List<MBMessage> findByC_C(long classNameId,
                                 long classPK,
                                 int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                          throws SystemException
Returns an ordered range of all the message-boards messages where classNameId = ? and classPK = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByC_C in interface MBMessagePersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByC_C_First

public MBMessage findByC_C_First(long classNameId,
                                 long classPK,
                                 OrderByComparator orderByComparator)
                          throws NoSuchMessageException,
                                 SystemException
Returns the first message-boards message in the ordered set where classNameId = ? and classPK = ?.

Specified by:
findByC_C_First in interface MBMessagePersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByC_C_First

public MBMessage fetchByC_C_First(long classNameId,
                                  long classPK,
                                  OrderByComparator orderByComparator)
                           throws SystemException
Returns the first message-boards message in the ordered set where classNameId = ? and classPK = ?.

Specified by:
fetchByC_C_First in interface MBMessagePersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

findByC_C_Last

public MBMessage findByC_C_Last(long classNameId,
                                long classPK,
                                OrderByComparator orderByComparator)
                         throws NoSuchMessageException,
                                SystemException
Returns the last message-boards message in the ordered set where classNameId = ? and classPK = ?.

Specified by:
findByC_C_Last in interface MBMessagePersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByC_C_Last

public MBMessage fetchByC_C_Last(long classNameId,
                                 long classPK,
                                 OrderByComparator orderByComparator)
                          throws SystemException
Returns the last message-boards message in the ordered set where classNameId = ? and classPK = ?.

Specified by:
fetchByC_C_Last in interface MBMessagePersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

findByC_C_PrevAndNext

public MBMessage[] findByC_C_PrevAndNext(long messageId,
                                         long classNameId,
                                         long classPK,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchMessageException,
                                         SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set where classNameId = ? and classPK = ?.

Specified by:
findByC_C_PrevAndNext in interface MBMessagePersistence
Parameters:
messageId - the primary key of the current message-boards message
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message-boards message
Throws:
NoSuchMessageException - if a message-boards message with the primary key could not be found
SystemException - if a system exception occurred

getByC_C_PrevAndNext

protected MBMessage getByC_C_PrevAndNext(Session session,
                                         MBMessage mbMessage,
                                         long classNameId,
                                         long classPK,
                                         OrderByComparator orderByComparator,
                                         boolean previous)

removeByC_C

public void removeByC_C(long classNameId,
                        long classPK)
                 throws SystemException
Removes all the message-boards messages where classNameId = ? and classPK = ? from the database.

Specified by:
removeByC_C in interface MBMessagePersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
Throws:
SystemException - if a system exception occurred

countByC_C

public int countByC_C(long classNameId,
                      long classPK)
               throws SystemException
Returns the number of message-boards messages where classNameId = ? and classPK = ?.

Specified by:
countByC_C in interface MBMessagePersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByT_P

public List<MBMessage> findByT_P(long threadId,
                                 long parentMessageId)
                          throws SystemException
Returns all the message-boards messages where threadId = ? and parentMessageId = ?.

Specified by:
findByT_P in interface MBMessagePersistence
Parameters:
threadId - the thread ID
parentMessageId - the parent message ID
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByT_P

public List<MBMessage> findByT_P(long threadId,
                                 long parentMessageId,
                                 int start,
                                 int end)
                          throws SystemException
Returns a range of all the message-boards messages where threadId = ? and parentMessageId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByT_P in interface MBMessagePersistence
Parameters:
threadId - the thread ID
parentMessageId - the parent message ID
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByT_P

public List<MBMessage> findByT_P(long threadId,
                                 long parentMessageId,
                                 int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                          throws SystemException
Returns an ordered range of all the message-boards messages where threadId = ? and parentMessageId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByT_P in interface MBMessagePersistence
Parameters:
threadId - the thread ID
parentMessageId - the parent message ID
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByT_P_First

public MBMessage findByT_P_First(long threadId,
                                 long parentMessageId,
                                 OrderByComparator orderByComparator)
                          throws NoSuchMessageException,
                                 SystemException
Returns the first message-boards message in the ordered set where threadId = ? and parentMessageId = ?.

Specified by:
findByT_P_First in interface MBMessagePersistence
Parameters:
threadId - the thread ID
parentMessageId - the parent message ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByT_P_First

public MBMessage fetchByT_P_First(long threadId,
                                  long parentMessageId,
                                  OrderByComparator orderByComparator)
                           throws SystemException
Returns the first message-boards message in the ordered set where threadId = ? and parentMessageId = ?.

Specified by:
fetchByT_P_First in interface MBMessagePersistence
Parameters:
threadId - the thread ID
parentMessageId - the parent message ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

findByT_P_Last

public MBMessage findByT_P_Last(long threadId,
                                long parentMessageId,
                                OrderByComparator orderByComparator)
                         throws NoSuchMessageException,
                                SystemException
Returns the last message-boards message in the ordered set where threadId = ? and parentMessageId = ?.

Specified by:
findByT_P_Last in interface MBMessagePersistence
Parameters:
threadId - the thread ID
parentMessageId - the parent message ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByT_P_Last

public MBMessage fetchByT_P_Last(long threadId,
                                 long parentMessageId,
                                 OrderByComparator orderByComparator)
                          throws SystemException
Returns the last message-boards message in the ordered set where threadId = ? and parentMessageId = ?.

Specified by:
fetchByT_P_Last in interface MBMessagePersistence
Parameters:
threadId - the thread ID
parentMessageId - the parent message ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

findByT_P_PrevAndNext

public MBMessage[] findByT_P_PrevAndNext(long messageId,
                                         long threadId,
                                         long parentMessageId,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchMessageException,
                                         SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set where threadId = ? and parentMessageId = ?.

Specified by:
findByT_P_PrevAndNext in interface MBMessagePersistence
Parameters:
messageId - the primary key of the current message-boards message
threadId - the thread ID
parentMessageId - the parent message ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message-boards message
Throws:
NoSuchMessageException - if a message-boards message with the primary key could not be found
SystemException - if a system exception occurred

getByT_P_PrevAndNext

protected MBMessage getByT_P_PrevAndNext(Session session,
                                         MBMessage mbMessage,
                                         long threadId,
                                         long parentMessageId,
                                         OrderByComparator orderByComparator,
                                         boolean previous)

removeByT_P

public void removeByT_P(long threadId,
                        long parentMessageId)
                 throws SystemException
Removes all the message-boards messages where threadId = ? and parentMessageId = ? from the database.

Specified by:
removeByT_P in interface MBMessagePersistence
Parameters:
threadId - the thread ID
parentMessageId - the parent message ID
Throws:
SystemException - if a system exception occurred

countByT_P

public int countByT_P(long threadId,
                      long parentMessageId)
               throws SystemException
Returns the number of message-boards messages where threadId = ? and parentMessageId = ?.

Specified by:
countByT_P in interface MBMessagePersistence
Parameters:
threadId - the thread ID
parentMessageId - the parent message ID
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByT_A

public List<MBMessage> findByT_A(long threadId,
                                 boolean answer)
                          throws SystemException
Returns all the message-boards messages where threadId = ? and answer = ?.

Specified by:
findByT_A in interface MBMessagePersistence
Parameters:
threadId - the thread ID
answer - the answer
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByT_A

public List<MBMessage> findByT_A(long threadId,
                                 boolean answer,
                                 int start,
                                 int end)
                          throws SystemException
Returns a range of all the message-boards messages where threadId = ? and answer = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByT_A in interface MBMessagePersistence
Parameters:
threadId - the thread ID
answer - the answer
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByT_A

public List<MBMessage> findByT_A(long threadId,
                                 boolean answer,
                                 int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                          throws SystemException
Returns an ordered range of all the message-boards messages where threadId = ? and answer = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByT_A in interface MBMessagePersistence
Parameters:
threadId - the thread ID
answer - the answer
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByT_A_First

public MBMessage findByT_A_First(long threadId,
                                 boolean answer,
                                 OrderByComparator orderByComparator)
                          throws NoSuchMessageException,
                                 SystemException
Returns the first message-boards message in the ordered set where threadId = ? and answer = ?.

Specified by:
findByT_A_First in interface MBMessagePersistence
Parameters:
threadId - the thread ID
answer - the answer
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByT_A_First

public MBMessage fetchByT_A_First(long threadId,
                                  boolean answer,
                                  OrderByComparator orderByComparator)
                           throws SystemException
Returns the first message-boards message in the ordered set where threadId = ? and answer = ?.

Specified by:
fetchByT_A_First in interface MBMessagePersistence
Parameters:
threadId - the thread ID
answer - the answer
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

findByT_A_Last

public MBMessage findByT_A_Last(long threadId,
                                boolean answer,
                                OrderByComparator orderByComparator)
                         throws NoSuchMessageException,
                                SystemException
Returns the last message-boards message in the ordered set where threadId = ? and answer = ?.

Specified by:
findByT_A_Last in interface MBMessagePersistence
Parameters:
threadId - the thread ID
answer - the answer
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByT_A_Last

public MBMessage fetchByT_A_Last(long threadId,
                                 boolean answer,
                                 OrderByComparator orderByComparator)
                          throws SystemException
Returns the last message-boards message in the ordered set where threadId = ? and answer = ?.

Specified by:
fetchByT_A_Last in interface MBMessagePersistence
Parameters:
threadId - the thread ID
answer - the answer
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

findByT_A_PrevAndNext

public MBMessage[] findByT_A_PrevAndNext(long messageId,
                                         long threadId,
                                         boolean answer,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchMessageException,
                                         SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set where threadId = ? and answer = ?.

Specified by:
findByT_A_PrevAndNext in interface MBMessagePersistence
Parameters:
messageId - the primary key of the current message-boards message
threadId - the thread ID
answer - the answer
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message-boards message
Throws:
NoSuchMessageException - if a message-boards message with the primary key could not be found
SystemException - if a system exception occurred

getByT_A_PrevAndNext

protected MBMessage getByT_A_PrevAndNext(Session session,
                                         MBMessage mbMessage,
                                         long threadId,
                                         boolean answer,
                                         OrderByComparator orderByComparator,
                                         boolean previous)

removeByT_A

public void removeByT_A(long threadId,
                        boolean answer)
                 throws SystemException
Removes all the message-boards messages where threadId = ? and answer = ? from the database.

Specified by:
removeByT_A in interface MBMessagePersistence
Parameters:
threadId - the thread ID
answer - the answer
Throws:
SystemException - if a system exception occurred

countByT_A

public int countByT_A(long threadId,
                      boolean answer)
               throws SystemException
Returns the number of message-boards messages where threadId = ? and answer = ?.

Specified by:
countByT_A in interface MBMessagePersistence
Parameters:
threadId - the thread ID
answer - the answer
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByT_S

public List<MBMessage> findByT_S(long threadId,
                                 int status)
                          throws SystemException
Returns all the message-boards messages where threadId = ? and status = ?.

Specified by:
findByT_S in interface MBMessagePersistence
Parameters:
threadId - the thread ID
status - the status
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByT_S

public List<MBMessage> findByT_S(long threadId,
                                 int status,
                                 int start,
                                 int end)
                          throws SystemException
Returns a range of all the message-boards messages where threadId = ? 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByT_S in interface MBMessagePersistence
Parameters:
threadId - the thread ID
status - the status
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByT_S

public List<MBMessage> findByT_S(long threadId,
                                 int status,
                                 int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                          throws SystemException
Returns an ordered range of all the message-boards messages where threadId = ? 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByT_S in interface MBMessagePersistence
Parameters:
threadId - the thread ID
status - the status
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByT_S_First

public MBMessage findByT_S_First(long threadId,
                                 int status,
                                 OrderByComparator orderByComparator)
                          throws NoSuchMessageException,
                                 SystemException
Returns the first message-boards message in the ordered set where threadId = ? and status = ?.

Specified by:
findByT_S_First in interface MBMessagePersistence
Parameters:
threadId - the thread ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByT_S_First

public MBMessage fetchByT_S_First(long threadId,
                                  int status,
                                  OrderByComparator orderByComparator)
                           throws SystemException
Returns the first message-boards message in the ordered set where threadId = ? and status = ?.

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

findByT_S_Last

public MBMessage findByT_S_Last(long threadId,
                                int status,
                                OrderByComparator orderByComparator)
                         throws NoSuchMessageException,
                                SystemException
Returns the last message-boards message in the ordered set where threadId = ? and status = ?.

Specified by:
findByT_S_Last in interface MBMessagePersistence
Parameters:
threadId - the thread ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByT_S_Last

public MBMessage fetchByT_S_Last(long threadId,
                                 int status,
                                 OrderByComparator orderByComparator)
                          throws SystemException
Returns the last message-boards message in the ordered set where threadId = ? and status = ?.

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

findByT_S_PrevAndNext

public MBMessage[] findByT_S_PrevAndNext(long messageId,
                                         long threadId,
                                         int status,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchMessageException,
                                         SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set where threadId = ? and status = ?.

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

getByT_S_PrevAndNext

protected MBMessage getByT_S_PrevAndNext(Session session,
                                         MBMessage mbMessage,
                                         long threadId,
                                         int status,
                                         OrderByComparator orderByComparator,
                                         boolean previous)

removeByT_S

public void removeByT_S(long threadId,
                        int status)
                 throws SystemException
Removes all the message-boards messages where threadId = ? and status = ? from the database.

Specified by:
removeByT_S in interface MBMessagePersistence
Parameters:
threadId - the thread ID
status - the status
Throws:
SystemException - if a system exception occurred

countByT_S

public int countByT_S(long threadId,
                      int status)
               throws SystemException
Returns the number of message-boards messages where threadId = ? and status = ?.

Specified by:
countByT_S in interface MBMessagePersistence
Parameters:
threadId - the thread ID
status - the status
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByTR_S

public List<MBMessage> findByTR_S(long threadId,
                                  int status)
                           throws SystemException
Returns all the message-boards messages where threadId = ? and status = ?.

Specified by:
findByTR_S in interface MBMessagePersistence
Parameters:
threadId - the thread ID
status - the status
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByTR_S

public List<MBMessage> findByTR_S(long threadId,
                                  int status,
                                  int start,
                                  int end)
                           throws SystemException
Returns a range of all the message-boards messages where threadId = ? 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByTR_S in interface MBMessagePersistence
Parameters:
threadId - the thread ID
status - the status
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByTR_S

public List<MBMessage> findByTR_S(long threadId,
                                  int status,
                                  int start,
                                  int end,
                                  OrderByComparator orderByComparator)
                           throws SystemException
Returns an ordered range of all the message-boards messages where threadId = ? 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByTR_S in interface MBMessagePersistence
Parameters:
threadId - the thread ID
status - the status
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByTR_S_First

public MBMessage findByTR_S_First(long threadId,
                                  int status,
                                  OrderByComparator orderByComparator)
                           throws NoSuchMessageException,
                                  SystemException
Returns the first message-boards message in the ordered set where threadId = ? and status = ?.

Specified by:
findByTR_S_First in interface MBMessagePersistence
Parameters:
threadId - the thread ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByTR_S_First

public MBMessage fetchByTR_S_First(long threadId,
                                   int status,
                                   OrderByComparator orderByComparator)
                            throws SystemException
Returns the first message-boards message in the ordered set where threadId = ? and status = ?.

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

findByTR_S_Last

public MBMessage findByTR_S_Last(long threadId,
                                 int status,
                                 OrderByComparator orderByComparator)
                          throws NoSuchMessageException,
                                 SystemException
Returns the last message-boards message in the ordered set where threadId = ? and status = ?.

Specified by:
findByTR_S_Last in interface MBMessagePersistence
Parameters:
threadId - the thread ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByTR_S_Last

public MBMessage fetchByTR_S_Last(long threadId,
                                  int status,
                                  OrderByComparator orderByComparator)
                           throws SystemException
Returns the last message-boards message in the ordered set where threadId = ? and status = ?.

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

findByTR_S_PrevAndNext

public MBMessage[] findByTR_S_PrevAndNext(long messageId,
                                          long threadId,
                                          int status,
                                          OrderByComparator orderByComparator)
                                   throws NoSuchMessageException,
                                          SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set where threadId = ? and status = ?.

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

getByTR_S_PrevAndNext

protected MBMessage getByTR_S_PrevAndNext(Session session,
                                          MBMessage mbMessage,
                                          long threadId,
                                          int status,
                                          OrderByComparator orderByComparator,
                                          boolean previous)

removeByTR_S

public void removeByTR_S(long threadId,
                         int status)
                  throws SystemException
Removes all the message-boards messages where threadId = ? and status = ? from the database.

Specified by:
removeByTR_S in interface MBMessagePersistence
Parameters:
threadId - the thread ID
status - the status
Throws:
SystemException - if a system exception occurred

countByTR_S

public int countByTR_S(long threadId,
                       int status)
                throws SystemException
Returns the number of message-boards messages where threadId = ? and status = ?.

Specified by:
countByTR_S in interface MBMessagePersistence
Parameters:
threadId - the thread ID
status - the status
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByG_U_S

public List<MBMessage> findByG_U_S(long groupId,
                                   long userId,
                                   int status)
                            throws SystemException
Returns all the message-boards messages where groupId = ? and userId = ? and status = ?.

Specified by:
findByG_U_S in interface MBMessagePersistence
Parameters:
groupId - the group ID
userId - the user ID
status - the status
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByG_U_S

public List<MBMessage> findByG_U_S(long groupId,
                                   long userId,
                                   int status,
                                   int start,
                                   int end)
                            throws SystemException
Returns a range of all the message-boards messages where groupId = ? and userId = ? 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_U_S in interface MBMessagePersistence
Parameters:
groupId - the group ID
userId - the user ID
status - the status
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByG_U_S

public List<MBMessage> findByG_U_S(long groupId,
                                   long userId,
                                   int status,
                                   int start,
                                   int end,
                                   OrderByComparator orderByComparator)
                            throws SystemException
Returns an ordered range of all the message-boards messages where groupId = ? and userId = ? 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findByG_U_S_First

public MBMessage findByG_U_S_First(long groupId,
                                   long userId,
                                   int status,
                                   OrderByComparator orderByComparator)
                            throws NoSuchMessageException,
                                   SystemException
Returns the first message-boards message in the ordered set where groupId = ? and userId = ? and status = ?.

Specified by:
findByG_U_S_First in interface MBMessagePersistence
Parameters:
groupId - the group ID
userId - the user ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByG_U_S_First

public MBMessage fetchByG_U_S_First(long groupId,
                                    long userId,
                                    int status,
                                    OrderByComparator orderByComparator)
                             throws SystemException
Returns the first message-boards message in the ordered set where groupId = ? and userId = ? and status = ?.

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

findByG_U_S_Last

public MBMessage findByG_U_S_Last(long groupId,
                                  long userId,
                                  int status,
                                  OrderByComparator orderByComparator)
                           throws NoSuchMessageException,
                                  SystemException
Returns the last message-boards message in the ordered set where groupId = ? and userId = ? and status = ?.

Specified by:
findByG_U_S_Last in interface MBMessagePersistence
Parameters:
groupId - the group ID
userId - the user ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByG_U_S_Last

public MBMessage fetchByG_U_S_Last(long groupId,
                                   long userId,
                                   int status,
                                   OrderByComparator orderByComparator)
                            throws SystemException
Returns the last message-boards message in the ordered set where groupId = ? and userId = ? and status = ?.

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

findByG_U_S_PrevAndNext

public MBMessage[] findByG_U_S_PrevAndNext(long messageId,
                                           long groupId,
                                           long userId,
                                           int status,
                                           OrderByComparator orderByComparator)
                                    throws NoSuchMessageException,
                                           SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ? and userId = ? and status = ?.

Specified by:
findByG_U_S_PrevAndNext in interface MBMessagePersistence
Parameters:
messageId - the primary key of the current message-boards message
groupId - the group ID
userId - the user ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message-boards message
Throws:
NoSuchMessageException - if a message-boards message with the primary key could not be found
SystemException - if a system exception occurred

getByG_U_S_PrevAndNext

protected MBMessage getByG_U_S_PrevAndNext(Session session,
                                           MBMessage mbMessage,
                                           long groupId,
                                           long userId,
                                           int status,
                                           OrderByComparator orderByComparator,
                                           boolean previous)

filterFindByG_U_S

public List<MBMessage> filterFindByG_U_S(long groupId,
                                         long userId,
                                         int status)
                                  throws SystemException
Returns all the message-boards messages that the user has permission to view where groupId = ? and userId = ? and status = ?.

Specified by:
filterFindByG_U_S in interface MBMessagePersistence
Parameters:
groupId - the group ID
userId - the user ID
status - the status
Returns:
the matching message-boards messages that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_U_S

public List<MBMessage> filterFindByG_U_S(long groupId,
                                         long userId,
                                         int status,
                                         int start,
                                         int end)
                                  throws SystemException
Returns a range of all the message-boards messages that the user has permission to view where groupId = ? and userId = ? 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

filterFindByG_U_S

public List<MBMessage> filterFindByG_U_S(long groupId,
                                         long userId,
                                         int status,
                                         int start,
                                         int end,
                                         OrderByComparator orderByComparator)
                                  throws SystemException
Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = ? and userId = ? 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

filterFindByG_U_S_PrevAndNext

public MBMessage[] filterFindByG_U_S_PrevAndNext(long messageId,
                                                 long groupId,
                                                 long userId,
                                                 int status,
                                                 OrderByComparator orderByComparator)
                                          throws NoSuchMessageException,
                                                 SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = ? and userId = ? and status = ?.

Specified by:
filterFindByG_U_S_PrevAndNext in interface MBMessagePersistence
Parameters:
messageId - the primary key of the current message-boards message
groupId - the group ID
userId - the user ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message-boards message
Throws:
NoSuchMessageException - if a message-boards message with the primary key could not be found
SystemException - if a system exception occurred

filterGetByG_U_S_PrevAndNext

protected MBMessage filterGetByG_U_S_PrevAndNext(Session session,
                                                 MBMessage mbMessage,
                                                 long groupId,
                                                 long userId,
                                                 int status,
                                                 OrderByComparator orderByComparator,
                                                 boolean previous)

removeByG_U_S

public void removeByG_U_S(long groupId,
                          long userId,
                          int status)
                   throws SystemException
Removes all the message-boards messages where groupId = ? and userId = ? and status = ? from the database.

Specified by:
removeByG_U_S in interface MBMessagePersistence
Parameters:
groupId - the group ID
userId - the user ID
status - the status
Throws:
SystemException - if a system exception occurred

countByG_U_S

public int countByG_U_S(long groupId,
                        long userId,
                        int status)
                 throws SystemException
Returns the number of message-boards messages where groupId = ? and userId = ? and status = ?.

Specified by:
countByG_U_S in interface MBMessagePersistence
Parameters:
groupId - the group ID
userId - the user ID
status - the status
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

filterCountByG_U_S

public int filterCountByG_U_S(long groupId,
                              long userId,
                              int status)
                       throws SystemException
Returns the number of message-boards messages that the user has permission to view where groupId = ? and userId = ? and status = ?.

Specified by:
filterCountByG_U_S in interface MBMessagePersistence
Parameters:
groupId - the group ID
userId - the user ID
status - the status
Returns:
the number of matching message-boards messages that the user has permission to view
Throws:
SystemException - if a system exception occurred

findByG_C_T

public List<MBMessage> findByG_C_T(long groupId,
                                   long categoryId,
                                   long threadId)
                            throws SystemException
Returns all the message-boards messages where groupId = ? and categoryId = ? and threadId = ?.

Specified by:
findByG_C_T in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
threadId - the thread ID
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByG_C_T

public List<MBMessage> findByG_C_T(long groupId,
                                   long categoryId,
                                   long threadId,
                                   int start,
                                   int end)
                            throws SystemException
Returns a range of all the message-boards messages where groupId = ? and categoryId = ? and threadId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_C_T in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
threadId - the thread ID
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByG_C_T

public List<MBMessage> findByG_C_T(long groupId,
                                   long categoryId,
                                   long threadId,
                                   int start,
                                   int end,
                                   OrderByComparator orderByComparator)
                            throws SystemException
Returns an ordered range of all the message-boards messages where groupId = ? and categoryId = ? and threadId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findByG_C_T_First

public MBMessage findByG_C_T_First(long groupId,
                                   long categoryId,
                                   long threadId,
                                   OrderByComparator orderByComparator)
                            throws NoSuchMessageException,
                                   SystemException
Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ?.

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

fetchByG_C_T_First

public MBMessage fetchByG_C_T_First(long groupId,
                                    long categoryId,
                                    long threadId,
                                    OrderByComparator orderByComparator)
                             throws SystemException
Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ?.

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

findByG_C_T_Last

public MBMessage findByG_C_T_Last(long groupId,
                                  long categoryId,
                                  long threadId,
                                  OrderByComparator orderByComparator)
                           throws NoSuchMessageException,
                                  SystemException
Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ?.

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

fetchByG_C_T_Last

public MBMessage fetchByG_C_T_Last(long groupId,
                                   long categoryId,
                                   long threadId,
                                   OrderByComparator orderByComparator)
                            throws SystemException
Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ?.

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

findByG_C_T_PrevAndNext

public MBMessage[] findByG_C_T_PrevAndNext(long messageId,
                                           long groupId,
                                           long categoryId,
                                           long threadId,
                                           OrderByComparator orderByComparator)
                                    throws NoSuchMessageException,
                                           SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ?.

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

getByG_C_T_PrevAndNext

protected MBMessage getByG_C_T_PrevAndNext(Session session,
                                           MBMessage mbMessage,
                                           long groupId,
                                           long categoryId,
                                           long threadId,
                                           OrderByComparator orderByComparator,
                                           boolean previous)

filterFindByG_C_T

public List<MBMessage> filterFindByG_C_T(long groupId,
                                         long categoryId,
                                         long threadId)
                                  throws SystemException
Returns all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ?.

Specified by:
filterFindByG_C_T in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
threadId - the thread ID
Returns:
the matching message-boards messages that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_C_T

public List<MBMessage> filterFindByG_C_T(long groupId,
                                         long categoryId,
                                         long threadId,
                                         int start,
                                         int end)
                                  throws SystemException
Returns a range of all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
filterFindByG_C_T in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
threadId - the thread ID
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_C_T

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

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

filterFindByG_C_T_PrevAndNext

public MBMessage[] filterFindByG_C_T_PrevAndNext(long messageId,
                                                 long groupId,
                                                 long categoryId,
                                                 long threadId,
                                                 OrderByComparator orderByComparator)
                                          throws NoSuchMessageException,
                                                 SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ?.

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

filterGetByG_C_T_PrevAndNext

protected MBMessage filterGetByG_C_T_PrevAndNext(Session session,
                                                 MBMessage mbMessage,
                                                 long groupId,
                                                 long categoryId,
                                                 long threadId,
                                                 OrderByComparator orderByComparator,
                                                 boolean previous)

removeByG_C_T

public void removeByG_C_T(long groupId,
                          long categoryId,
                          long threadId)
                   throws SystemException
Removes all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? from the database.

Specified by:
removeByG_C_T in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
threadId - the thread ID
Throws:
SystemException - if a system exception occurred

countByG_C_T

public int countByG_C_T(long groupId,
                        long categoryId,
                        long threadId)
                 throws SystemException
Returns the number of message-boards messages where groupId = ? and categoryId = ? and threadId = ?.

Specified by:
countByG_C_T in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
threadId - the thread ID
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

filterCountByG_C_T

public int filterCountByG_C_T(long groupId,
                              long categoryId,
                              long threadId)
                       throws SystemException
Returns the number of message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ?.

Specified by:
filterCountByG_C_T in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
threadId - the thread ID
Returns:
the number of matching message-boards messages that the user has permission to view
Throws:
SystemException - if a system exception occurred

findByG_C_S

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

Specified by:
findByG_C_S in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByG_C_S

public List<MBMessage> findByG_C_S(long groupId,
                                   long categoryId,
                                   int status,
                                   int start,
                                   int end)
                            throws SystemException
Returns a range of all the message-boards messages 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findByG_C_S

public List<MBMessage> 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 messages 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findByG_C_S_First

public MBMessage findByG_C_S_First(long groupId,
                                   long categoryId,
                                   int status,
                                   OrderByComparator orderByComparator)
                            throws NoSuchMessageException,
                                   SystemException
Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ? and status = ?.

Specified by:
findByG_C_S_First in interface MBMessagePersistence
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 message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByG_C_S_First

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

Specified by:
fetchByG_C_S_First in interface MBMessagePersistence
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 message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

findByG_C_S_Last

public MBMessage findByG_C_S_Last(long groupId,
                                  long categoryId,
                                  int status,
                                  OrderByComparator orderByComparator)
                           throws NoSuchMessageException,
                                  SystemException
Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ? and status = ?.

Specified by:
findByG_C_S_Last in interface MBMessagePersistence
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 message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByG_C_S_Last

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

Specified by:
fetchByG_C_S_Last in interface MBMessagePersistence
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 message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

findByG_C_S_PrevAndNext

public MBMessage[] findByG_C_S_PrevAndNext(long messageId,
                                           long groupId,
                                           long categoryId,
                                           int status,
                                           OrderByComparator orderByComparator)
                                    throws NoSuchMessageException,
                                           SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ? and categoryId = ? and status = ?.

Specified by:
findByG_C_S_PrevAndNext in interface MBMessagePersistence
Parameters:
messageId - the primary key of the current message-boards message
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 message
Throws:
NoSuchMessageException - if a message-boards message with the primary key could not be found
SystemException - if a system exception occurred

getByG_C_S_PrevAndNext

protected MBMessage getByG_C_S_PrevAndNext(Session session,
                                           MBMessage mbMessage,
                                           long groupId,
                                           long categoryId,
                                           int status,
                                           OrderByComparator orderByComparator,
                                           boolean previous)

filterFindByG_C_S

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

Specified by:
filterFindByG_C_S in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
Returns:
the matching message-boards messages that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_C_S

public List<MBMessage> filterFindByG_C_S(long groupId,
                                         long categoryId,
                                         int status,
                                         int start,
                                         int end)
                                  throws SystemException
Returns a range of all the message-boards messages 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

filterFindByG_C_S

public List<MBMessage> 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 messages 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

filterFindByG_C_S_PrevAndNext

public MBMessage[] filterFindByG_C_S_PrevAndNext(long messageId,
                                                 long groupId,
                                                 long categoryId,
                                                 int status,
                                                 OrderByComparator orderByComparator)
                                          throws NoSuchMessageException,
                                                 SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and status = ?.

Specified by:
filterFindByG_C_S_PrevAndNext in interface MBMessagePersistence
Parameters:
messageId - the primary key of the current message-boards message
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 message
Throws:
NoSuchMessageException - if a message-boards message with the primary key could not be found
SystemException - if a system exception occurred

filterGetByG_C_S_PrevAndNext

protected MBMessage filterGetByG_C_S_PrevAndNext(Session session,
                                                 MBMessage mbMessage,
                                                 long groupId,
                                                 long categoryId,
                                                 int status,
                                                 OrderByComparator orderByComparator,
                                                 boolean previous)

removeByG_C_S

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

Specified by:
removeByG_C_S in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
Throws:
SystemException - if a system exception occurred

countByG_C_S

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

Specified by:
countByG_C_S in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

filterCountByG_C_S

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

Specified by:
filterCountByG_C_S in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
status - the status
Returns:
the number of matching message-boards messages that the user has permission to view
Throws:
SystemException - if a system exception occurred

findByU_C_C

public List<MBMessage> findByU_C_C(long userId,
                                   long classNameId,
                                   long classPK)
                            throws SystemException
Returns all the message-boards messages where userId = ? and classNameId = ? and classPK = ?.

Specified by:
findByU_C_C in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
classPK - the class p k
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByU_C_C

public List<MBMessage> findByU_C_C(long userId,
                                   long classNameId,
                                   long classPK,
                                   int start,
                                   int end)
                            throws SystemException
Returns a range of all the message-boards messages where userId = ? and classNameId = ? and classPK = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByU_C_C in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByU_C_C

public List<MBMessage> findByU_C_C(long userId,
                                   long classNameId,
                                   long classPK,
                                   int start,
                                   int end,
                                   OrderByComparator orderByComparator)
                            throws SystemException
Returns an ordered range of all the message-boards messages where userId = ? and classNameId = ? and classPK = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByU_C_C in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByU_C_C_First

public MBMessage findByU_C_C_First(long userId,
                                   long classNameId,
                                   long classPK,
                                   OrderByComparator orderByComparator)
                            throws NoSuchMessageException,
                                   SystemException
Returns the first message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ?.

Specified by:
findByU_C_C_First in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByU_C_C_First

public MBMessage fetchByU_C_C_First(long userId,
                                    long classNameId,
                                    long classPK,
                                    OrderByComparator orderByComparator)
                             throws SystemException
Returns the first message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ?.

Specified by:
fetchByU_C_C_First in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

findByU_C_C_Last

public MBMessage findByU_C_C_Last(long userId,
                                  long classNameId,
                                  long classPK,
                                  OrderByComparator orderByComparator)
                           throws NoSuchMessageException,
                                  SystemException
Returns the last message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ?.

Specified by:
findByU_C_C_Last in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByU_C_C_Last

public MBMessage fetchByU_C_C_Last(long userId,
                                   long classNameId,
                                   long classPK,
                                   OrderByComparator orderByComparator)
                            throws SystemException
Returns the last message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ?.

Specified by:
fetchByU_C_C_Last in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

findByU_C_C_PrevAndNext

public MBMessage[] findByU_C_C_PrevAndNext(long messageId,
                                           long userId,
                                           long classNameId,
                                           long classPK,
                                           OrderByComparator orderByComparator)
                                    throws NoSuchMessageException,
                                           SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ?.

Specified by:
findByU_C_C_PrevAndNext in interface MBMessagePersistence
Parameters:
messageId - the primary key of the current message-boards message
userId - the user ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message-boards message
Throws:
NoSuchMessageException - if a message-boards message with the primary key could not be found
SystemException - if a system exception occurred

getByU_C_C_PrevAndNext

protected MBMessage getByU_C_C_PrevAndNext(Session session,
                                           MBMessage mbMessage,
                                           long userId,
                                           long classNameId,
                                           long classPK,
                                           OrderByComparator orderByComparator,
                                           boolean previous)

removeByU_C_C

public void removeByU_C_C(long userId,
                          long classNameId,
                          long classPK)
                   throws SystemException
Removes all the message-boards messages where userId = ? and classNameId = ? and classPK = ? from the database.

Specified by:
removeByU_C_C in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
classPK - the class p k
Throws:
SystemException - if a system exception occurred

countByU_C_C

public int countByU_C_C(long userId,
                        long classNameId,
                        long classPK)
                 throws SystemException
Returns the number of message-boards messages where userId = ? and classNameId = ? and classPK = ?.

Specified by:
countByU_C_C in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
classPK - the class p k
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByU_C_S

public List<MBMessage> findByU_C_S(long userId,
                                   long classNameId,
                                   int status)
                            throws SystemException
Returns all the message-boards messages where userId = ? and classNameId = ? and status = ?.

Specified by:
findByU_C_S in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
status - the status
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByU_C_S

public List<MBMessage> findByU_C_S(long userId,
                                   long classNameId,
                                   int status,
                                   int start,
                                   int end)
                            throws SystemException
Returns a range of all the message-boards messages where userId = ? and classNameId = ? 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByU_C_S in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
status - the status
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByU_C_S

public List<MBMessage> findByU_C_S(long userId,
                                   long classNameId,
                                   int status,
                                   int start,
                                   int end,
                                   OrderByComparator orderByComparator)
                            throws SystemException
Returns an ordered range of all the message-boards messages where userId = ? and classNameId = ? 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByU_C_S in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
status - the status
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByU_C_S_First

public MBMessage findByU_C_S_First(long userId,
                                   long classNameId,
                                   int status,
                                   OrderByComparator orderByComparator)
                            throws NoSuchMessageException,
                                   SystemException
Returns the first message-boards message in the ordered set where userId = ? and classNameId = ? and status = ?.

Specified by:
findByU_C_S_First in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByU_C_S_First

public MBMessage fetchByU_C_S_First(long userId,
                                    long classNameId,
                                    int status,
                                    OrderByComparator orderByComparator)
                             throws SystemException
Returns the first message-boards message in the ordered set where userId = ? and classNameId = ? and status = ?.

Specified by:
fetchByU_C_S_First in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

findByU_C_S_Last

public MBMessage findByU_C_S_Last(long userId,
                                  long classNameId,
                                  int status,
                                  OrderByComparator orderByComparator)
                           throws NoSuchMessageException,
                                  SystemException
Returns the last message-boards message in the ordered set where userId = ? and classNameId = ? and status = ?.

Specified by:
findByU_C_S_Last in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByU_C_S_Last

public MBMessage fetchByU_C_S_Last(long userId,
                                   long classNameId,
                                   int status,
                                   OrderByComparator orderByComparator)
                            throws SystemException
Returns the last message-boards message in the ordered set where userId = ? and classNameId = ? and status = ?.

Specified by:
fetchByU_C_S_Last in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

findByU_C_S_PrevAndNext

public MBMessage[] findByU_C_S_PrevAndNext(long messageId,
                                           long userId,
                                           long classNameId,
                                           int status,
                                           OrderByComparator orderByComparator)
                                    throws NoSuchMessageException,
                                           SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set where userId = ? and classNameId = ? and status = ?.

Specified by:
findByU_C_S_PrevAndNext in interface MBMessagePersistence
Parameters:
messageId - the primary key of the current message-boards message
userId - the user ID
classNameId - the class name ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message-boards message
Throws:
NoSuchMessageException - if a message-boards message with the primary key could not be found
SystemException - if a system exception occurred

getByU_C_S_PrevAndNext

protected MBMessage getByU_C_S_PrevAndNext(Session session,
                                           MBMessage mbMessage,
                                           long userId,
                                           long classNameId,
                                           int status,
                                           OrderByComparator orderByComparator,
                                           boolean previous)

findByU_C_S

public List<MBMessage> findByU_C_S(long userId,
                                   long[] classNameIds,
                                   int status)
                            throws SystemException
Returns all the message-boards messages where userId = ? and classNameId = 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByU_C_S in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameIds - the class name IDs
status - the status
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByU_C_S

public List<MBMessage> findByU_C_S(long userId,
                                   long[] classNameIds,
                                   int status,
                                   int start,
                                   int end)
                            throws SystemException
Returns a range of all the message-boards messages where userId = ? and classNameId = 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByU_C_S in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameIds - the class name IDs
status - the status
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByU_C_S

public List<MBMessage> findByU_C_S(long userId,
                                   long[] classNameIds,
                                   int status,
                                   int start,
                                   int end,
                                   OrderByComparator orderByComparator)
                            throws SystemException
Returns an ordered range of all the message-boards messages where userId = ? and classNameId = 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByU_C_S in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameIds - the class name IDs
status - the status
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

removeByU_C_S

public void removeByU_C_S(long userId,
                          long classNameId,
                          int status)
                   throws SystemException
Removes all the message-boards messages where userId = ? and classNameId = ? and status = ? from the database.

Specified by:
removeByU_C_S in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
status - the status
Throws:
SystemException - if a system exception occurred

countByU_C_S

public int countByU_C_S(long userId,
                        long classNameId,
                        int status)
                 throws SystemException
Returns the number of message-boards messages where userId = ? and classNameId = ? and status = ?.

Specified by:
countByU_C_S in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
status - the status
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

countByU_C_S

public int countByU_C_S(long userId,
                        long[] classNameIds,
                        int status)
                 throws SystemException
Returns the number of message-boards messages where userId = ? and classNameId = any ? and status = ?.

Specified by:
countByU_C_S in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameIds - the class name IDs
status - the status
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByC_C_S

public List<MBMessage> findByC_C_S(long classNameId,
                                   long classPK,
                                   int status)
                            throws SystemException
Returns all the message-boards messages where classNameId = ? and classPK = ? and status = ?.

Specified by:
findByC_C_S in interface MBMessagePersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
status - the status
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByC_C_S

public List<MBMessage> findByC_C_S(long classNameId,
                                   long classPK,
                                   int status,
                                   int start,
                                   int end)
                            throws SystemException
Returns a range of all the message-boards messages where classNameId = ? and classPK = ? 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByC_C_S in interface MBMessagePersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
status - the status
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByC_C_S

public List<MBMessage> findByC_C_S(long classNameId,
                                   long classPK,
                                   int status,
                                   int start,
                                   int end,
                                   OrderByComparator orderByComparator)
                            throws SystemException
Returns an ordered range of all the message-boards messages where classNameId = ? and classPK = ? 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByC_C_S in interface MBMessagePersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
status - the status
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByC_C_S_First

public MBMessage findByC_C_S_First(long classNameId,
                                   long classPK,
                                   int status,
                                   OrderByComparator orderByComparator)
                            throws NoSuchMessageException,
                                   SystemException
Returns the first message-boards message in the ordered set where classNameId = ? and classPK = ? and status = ?.

Specified by:
findByC_C_S_First in interface MBMessagePersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByC_C_S_First

public MBMessage fetchByC_C_S_First(long classNameId,
                                    long classPK,
                                    int status,
                                    OrderByComparator orderByComparator)
                             throws SystemException
Returns the first message-boards message in the ordered set where classNameId = ? and classPK = ? and status = ?.

Specified by:
fetchByC_C_S_First in interface MBMessagePersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

findByC_C_S_Last

public MBMessage findByC_C_S_Last(long classNameId,
                                  long classPK,
                                  int status,
                                  OrderByComparator orderByComparator)
                           throws NoSuchMessageException,
                                  SystemException
Returns the last message-boards message in the ordered set where classNameId = ? and classPK = ? and status = ?.

Specified by:
findByC_C_S_Last in interface MBMessagePersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByC_C_S_Last

public MBMessage fetchByC_C_S_Last(long classNameId,
                                   long classPK,
                                   int status,
                                   OrderByComparator orderByComparator)
                            throws SystemException
Returns the last message-boards message in the ordered set where classNameId = ? and classPK = ? and status = ?.

Specified by:
fetchByC_C_S_Last in interface MBMessagePersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

findByC_C_S_PrevAndNext

public MBMessage[] findByC_C_S_PrevAndNext(long messageId,
                                           long classNameId,
                                           long classPK,
                                           int status,
                                           OrderByComparator orderByComparator)
                                    throws NoSuchMessageException,
                                           SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set where classNameId = ? and classPK = ? and status = ?.

Specified by:
findByC_C_S_PrevAndNext in interface MBMessagePersistence
Parameters:
messageId - the primary key of the current message-boards message
classNameId - the class name ID
classPK - the class p k
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message-boards message
Throws:
NoSuchMessageException - if a message-boards message with the primary key could not be found
SystemException - if a system exception occurred

getByC_C_S_PrevAndNext

protected MBMessage getByC_C_S_PrevAndNext(Session session,
                                           MBMessage mbMessage,
                                           long classNameId,
                                           long classPK,
                                           int status,
                                           OrderByComparator orderByComparator,
                                           boolean previous)

removeByC_C_S

public void removeByC_C_S(long classNameId,
                          long classPK,
                          int status)
                   throws SystemException
Removes all the message-boards messages where classNameId = ? and classPK = ? and status = ? from the database.

Specified by:
removeByC_C_S in interface MBMessagePersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
status - the status
Throws:
SystemException - if a system exception occurred

countByC_C_S

public int countByC_C_S(long classNameId,
                        long classPK,
                        int status)
                 throws SystemException
Returns the number of message-boards messages where classNameId = ? and classPK = ? and status = ?.

Specified by:
countByC_C_S in interface MBMessagePersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
status - the status
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByG_C_T_A

public List<MBMessage> findByG_C_T_A(long groupId,
                                     long categoryId,
                                     long threadId,
                                     boolean answer)
                              throws SystemException
Returns all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and answer = ?.

Specified by:
findByG_C_T_A in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
threadId - the thread ID
answer - the answer
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByG_C_T_A

public List<MBMessage> findByG_C_T_A(long groupId,
                                     long categoryId,
                                     long threadId,
                                     boolean answer,
                                     int start,
                                     int end)
                              throws SystemException
Returns a range of all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and answer = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_C_T_A in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
threadId - the thread ID
answer - the answer
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByG_C_T_A

public List<MBMessage> findByG_C_T_A(long groupId,
                                     long categoryId,
                                     long threadId,
                                     boolean answer,
                                     int start,
                                     int end,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Returns an ordered range of all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and answer = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findByG_C_T_A_First

public MBMessage findByG_C_T_A_First(long groupId,
                                     long categoryId,
                                     long threadId,
                                     boolean answer,
                                     OrderByComparator orderByComparator)
                              throws NoSuchMessageException,
                                     SystemException
Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and answer = ?.

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

fetchByG_C_T_A_First

public MBMessage fetchByG_C_T_A_First(long groupId,
                                      long categoryId,
                                      long threadId,
                                      boolean answer,
                                      OrderByComparator orderByComparator)
                               throws SystemException
Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and answer = ?.

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

findByG_C_T_A_Last

public MBMessage findByG_C_T_A_Last(long groupId,
                                    long categoryId,
                                    long threadId,
                                    boolean answer,
                                    OrderByComparator orderByComparator)
                             throws NoSuchMessageException,
                                    SystemException
Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and answer = ?.

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

fetchByG_C_T_A_Last

public MBMessage fetchByG_C_T_A_Last(long groupId,
                                     long categoryId,
                                     long threadId,
                                     boolean answer,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and answer = ?.

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

findByG_C_T_A_PrevAndNext

public MBMessage[] findByG_C_T_A_PrevAndNext(long messageId,
                                             long groupId,
                                             long categoryId,
                                             long threadId,
                                             boolean answer,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchMessageException,
                                             SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and answer = ?.

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

getByG_C_T_A_PrevAndNext

protected MBMessage getByG_C_T_A_PrevAndNext(Session session,
                                             MBMessage mbMessage,
                                             long groupId,
                                             long categoryId,
                                             long threadId,
                                             boolean answer,
                                             OrderByComparator orderByComparator,
                                             boolean previous)

filterFindByG_C_T_A

public List<MBMessage> filterFindByG_C_T_A(long groupId,
                                           long categoryId,
                                           long threadId,
                                           boolean answer)
                                    throws SystemException
Returns all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ? and answer = ?.

Specified by:
filterFindByG_C_T_A in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
threadId - the thread ID
answer - the answer
Returns:
the matching message-boards messages that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_C_T_A

public List<MBMessage> filterFindByG_C_T_A(long groupId,
                                           long categoryId,
                                           long threadId,
                                           boolean answer,
                                           int start,
                                           int end)
                                    throws SystemException
Returns a range of all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ? and answer = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
filterFindByG_C_T_A in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
threadId - the thread ID
answer - the answer
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_C_T_A

public List<MBMessage> filterFindByG_C_T_A(long groupId,
                                           long categoryId,
                                           long threadId,
                                           boolean answer,
                                           int start,
                                           int end,
                                           OrderByComparator orderByComparator)
                                    throws SystemException
Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = ? and categoryId = ? and threadId = ? and answer = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

filterFindByG_C_T_A_PrevAndNext

public MBMessage[] filterFindByG_C_T_A_PrevAndNext(long messageId,
                                                   long groupId,
                                                   long categoryId,
                                                   long threadId,
                                                   boolean answer,
                                                   OrderByComparator orderByComparator)
                                            throws NoSuchMessageException,
                                                   SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ? and answer = ?.

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

filterGetByG_C_T_A_PrevAndNext

protected MBMessage filterGetByG_C_T_A_PrevAndNext(Session session,
                                                   MBMessage mbMessage,
                                                   long groupId,
                                                   long categoryId,
                                                   long threadId,
                                                   boolean answer,
                                                   OrderByComparator orderByComparator,
                                                   boolean previous)

removeByG_C_T_A

public void removeByG_C_T_A(long groupId,
                            long categoryId,
                            long threadId,
                            boolean answer)
                     throws SystemException
Removes all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and answer = ? from the database.

Specified by:
removeByG_C_T_A in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
threadId - the thread ID
answer - the answer
Throws:
SystemException - if a system exception occurred

countByG_C_T_A

public int countByG_C_T_A(long groupId,
                          long categoryId,
                          long threadId,
                          boolean answer)
                   throws SystemException
Returns the number of message-boards messages where groupId = ? and categoryId = ? and threadId = ? and answer = ?.

Specified by:
countByG_C_T_A in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
threadId - the thread ID
answer - the answer
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

filterCountByG_C_T_A

public int filterCountByG_C_T_A(long groupId,
                                long categoryId,
                                long threadId,
                                boolean answer)
                         throws SystemException
Returns the number of message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ? and answer = ?.

Specified by:
filterCountByG_C_T_A in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
threadId - the thread ID
answer - the answer
Returns:
the number of matching message-boards messages that the user has permission to view
Throws:
SystemException - if a system exception occurred

findByG_C_T_S

public List<MBMessage> findByG_C_T_S(long groupId,
                                     long categoryId,
                                     long threadId,
                                     int status)
                              throws SystemException
Returns all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and status = ?.

Specified by:
findByG_C_T_S in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
threadId - the thread ID
status - the status
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByG_C_T_S

public List<MBMessage> findByG_C_T_S(long groupId,
                                     long categoryId,
                                     long threadId,
                                     int status,
                                     int start,
                                     int end)
                              throws SystemException
Returns a range of all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_C_T_S in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
threadId - the thread ID
status - the status
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByG_C_T_S

public List<MBMessage> findByG_C_T_S(long groupId,
                                     long categoryId,
                                     long threadId,
                                     int status,
                                     int start,
                                     int end,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Returns an ordered range of all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findByG_C_T_S_First

public MBMessage findByG_C_T_S_First(long groupId,
                                     long categoryId,
                                     long threadId,
                                     int status,
                                     OrderByComparator orderByComparator)
                              throws NoSuchMessageException,
                                     SystemException
Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and status = ?.

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

fetchByG_C_T_S_First

public MBMessage fetchByG_C_T_S_First(long groupId,
                                      long categoryId,
                                      long threadId,
                                      int status,
                                      OrderByComparator orderByComparator)
                               throws SystemException
Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and status = ?.

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

findByG_C_T_S_Last

public MBMessage findByG_C_T_S_Last(long groupId,
                                    long categoryId,
                                    long threadId,
                                    int status,
                                    OrderByComparator orderByComparator)
                             throws NoSuchMessageException,
                                    SystemException
Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and status = ?.

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

fetchByG_C_T_S_Last

public MBMessage fetchByG_C_T_S_Last(long groupId,
                                     long categoryId,
                                     long threadId,
                                     int status,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and status = ?.

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

findByG_C_T_S_PrevAndNext

public MBMessage[] findByG_C_T_S_PrevAndNext(long messageId,
                                             long groupId,
                                             long categoryId,
                                             long threadId,
                                             int status,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchMessageException,
                                             SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and status = ?.

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

getByG_C_T_S_PrevAndNext

protected MBMessage getByG_C_T_S_PrevAndNext(Session session,
                                             MBMessage mbMessage,
                                             long groupId,
                                             long categoryId,
                                             long threadId,
                                             int status,
                                             OrderByComparator orderByComparator,
                                             boolean previous)

filterFindByG_C_T_S

public List<MBMessage> filterFindByG_C_T_S(long groupId,
                                           long categoryId,
                                           long threadId,
                                           int status)
                                    throws SystemException
Returns all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ? and status = ?.

Specified by:
filterFindByG_C_T_S in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
threadId - the thread ID
status - the status
Returns:
the matching message-boards messages that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_C_T_S

public List<MBMessage> filterFindByG_C_T_S(long groupId,
                                           long categoryId,
                                           long threadId,
                                           int status,
                                           int start,
                                           int end)
                                    throws SystemException
Returns a range of all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ? 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
filterFindByG_C_T_S in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
threadId - the thread ID
status - the status
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_C_T_S

public List<MBMessage> filterFindByG_C_T_S(long groupId,
                                           long categoryId,
                                           long threadId,
                                           int status,
                                           int start,
                                           int end,
                                           OrderByComparator orderByComparator)
                                    throws SystemException
Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = ? and categoryId = ? and threadId = ? 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

filterFindByG_C_T_S_PrevAndNext

public MBMessage[] filterFindByG_C_T_S_PrevAndNext(long messageId,
                                                   long groupId,
                                                   long categoryId,
                                                   long threadId,
                                                   int status,
                                                   OrderByComparator orderByComparator)
                                            throws NoSuchMessageException,
                                                   SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ? and status = ?.

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

filterGetByG_C_T_S_PrevAndNext

protected MBMessage filterGetByG_C_T_S_PrevAndNext(Session session,
                                                   MBMessage mbMessage,
                                                   long groupId,
                                                   long categoryId,
                                                   long threadId,
                                                   int status,
                                                   OrderByComparator orderByComparator,
                                                   boolean previous)

removeByG_C_T_S

public void removeByG_C_T_S(long groupId,
                            long categoryId,
                            long threadId,
                            int status)
                     throws SystemException
Removes all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and status = ? from the database.

Specified by:
removeByG_C_T_S in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
threadId - the thread ID
status - the status
Throws:
SystemException - if a system exception occurred

countByG_C_T_S

public int countByG_C_T_S(long groupId,
                          long categoryId,
                          long threadId,
                          int status)
                   throws SystemException
Returns the number of message-boards messages where groupId = ? and categoryId = ? and threadId = ? and status = ?.

Specified by:
countByG_C_T_S in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
threadId - the thread ID
status - the status
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

filterCountByG_C_T_S

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

Specified by:
filterCountByG_C_T_S in interface MBMessagePersistence
Parameters:
groupId - the group ID
categoryId - the category ID
threadId - the thread ID
status - the status
Returns:
the number of matching message-boards messages that the user has permission to view
Throws:
SystemException - if a system exception occurred

findByU_C_C_S

public List<MBMessage> findByU_C_C_S(long userId,
                                     long classNameId,
                                     long classPK,
                                     int status)
                              throws SystemException
Returns all the message-boards messages where userId = ? and classNameId = ? and classPK = ? and status = ?.

Specified by:
findByU_C_C_S in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
classPK - the class p k
status - the status
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByU_C_C_S

public List<MBMessage> findByU_C_C_S(long userId,
                                     long classNameId,
                                     long classPK,
                                     int status,
                                     int start,
                                     int end)
                              throws SystemException
Returns a range of all the message-boards messages where userId = ? and classNameId = ? and classPK = ? 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByU_C_C_S in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
classPK - the class p k
status - the status
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByU_C_C_S

public List<MBMessage> findByU_C_C_S(long userId,
                                     long classNameId,
                                     long classPK,
                                     int status,
                                     int start,
                                     int end,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Returns an ordered range of all the message-boards messages where userId = ? and classNameId = ? and classPK = ? 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByU_C_C_S in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
classPK - the class p k
status - the status
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByU_C_C_S_First

public MBMessage findByU_C_C_S_First(long userId,
                                     long classNameId,
                                     long classPK,
                                     int status,
                                     OrderByComparator orderByComparator)
                              throws NoSuchMessageException,
                                     SystemException
Returns the first message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ? and status = ?.

Specified by:
findByU_C_C_S_First in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
classPK - the class p k
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByU_C_C_S_First

public MBMessage fetchByU_C_C_S_First(long userId,
                                      long classNameId,
                                      long classPK,
                                      int status,
                                      OrderByComparator orderByComparator)
                               throws SystemException
Returns the first message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ? and status = ?.

Specified by:
fetchByU_C_C_S_First in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
classPK - the class p k
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message-boards message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

findByU_C_C_S_Last

public MBMessage findByU_C_C_S_Last(long userId,
                                    long classNameId,
                                    long classPK,
                                    int status,
                                    OrderByComparator orderByComparator)
                             throws NoSuchMessageException,
                                    SystemException
Returns the last message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ? and status = ?.

Specified by:
findByU_C_C_S_Last in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
classPK - the class p k
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message
Throws:
NoSuchMessageException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

fetchByU_C_C_S_Last

public MBMessage fetchByU_C_C_S_Last(long userId,
                                     long classNameId,
                                     long classPK,
                                     int status,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Returns the last message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ? and status = ?.

Specified by:
fetchByU_C_C_S_Last in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
classPK - the class p k
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message-boards message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

findByU_C_C_S_PrevAndNext

public MBMessage[] findByU_C_C_S_PrevAndNext(long messageId,
                                             long userId,
                                             long classNameId,
                                             long classPK,
                                             int status,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchMessageException,
                                             SystemException
Returns the message-boards messages before and after the current message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ? and status = ?.

Specified by:
findByU_C_C_S_PrevAndNext in interface MBMessagePersistence
Parameters:
messageId - the primary key of the current message-boards message
userId - the user ID
classNameId - the class name ID
classPK - the class p k
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message-boards message
Throws:
NoSuchMessageException - if a message-boards message with the primary key could not be found
SystemException - if a system exception occurred

getByU_C_C_S_PrevAndNext

protected MBMessage getByU_C_C_S_PrevAndNext(Session session,
                                             MBMessage mbMessage,
                                             long userId,
                                             long classNameId,
                                             long classPK,
                                             int status,
                                             OrderByComparator orderByComparator,
                                             boolean previous)

removeByU_C_C_S

public void removeByU_C_C_S(long userId,
                            long classNameId,
                            long classPK,
                            int status)
                     throws SystemException
Removes all the message-boards messages where userId = ? and classNameId = ? and classPK = ? and status = ? from the database.

Specified by:
removeByU_C_C_S in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
classPK - the class p k
status - the status
Throws:
SystemException - if a system exception occurred

countByU_C_C_S

public int countByU_C_C_S(long userId,
                          long classNameId,
                          long classPK,
                          int status)
                   throws SystemException
Returns the number of message-boards messages where userId = ? and classNameId = ? and classPK = ? and status = ?.

Specified by:
countByU_C_C_S in interface MBMessagePersistence
Parameters:
userId - the user ID
classNameId - the class name ID
classPK - the class p k
status - the status
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

cacheResult

public void cacheResult(MBMessage mbMessage)
Caches the message-boards message in the entity cache if it is enabled.

Specified by:
cacheResult in interface MBMessagePersistence
Parameters:
mbMessage - the message-boards message

cacheResult

public void cacheResult(List<MBMessage> mbMessages)
Caches the message-boards messages in the entity cache if it is enabled.

Specified by:
cacheResult in interface MBMessagePersistence
Parameters:
mbMessages - the message-boards messages

clearCache

public void clearCache()
Clears the cache for all message-boards messages.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<MBMessage>
Overrides:
clearCache in class BasePersistenceImpl<MBMessage>

clearCache

public void clearCache(MBMessage mbMessage)
Clears the cache for the message-boards message.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<MBMessage>
Overrides:
clearCache in class BasePersistenceImpl<MBMessage>
Parameters:
mbMessage - the instance of this model to clear the cache for

clearCache

public void clearCache(List<MBMessage> mbMessages)
Description copied from interface: BasePersistence
Clears the cache for a List instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<MBMessage>
Overrides:
clearCache in class BasePersistenceImpl<MBMessage>
Parameters:
mbMessages - the List instances of this model to clear the cache for

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(MBMessage mbMessage)

clearUniqueFindersCache

protected void clearUniqueFindersCache(MBMessage mbMessage)

create

public MBMessage create(long messageId)
Creates a new message-boards message with the primary key. Does not add the message-boards message to the database.

Specified by:
create in interface MBMessagePersistence
Parameters:
messageId - the primary key for the new message-boards message
Returns:
the new message-boards message

remove

public MBMessage remove(long messageId)
                 throws NoSuchMessageException,
                        SystemException
Removes the message-boards message with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface MBMessagePersistence
Parameters:
messageId - the primary key of the message-boards message
Returns:
the message-boards message that was removed
Throws:
NoSuchMessageException - if a message-boards message with the primary key could not be found
SystemException - if a system exception occurred

remove

public MBMessage remove(Serializable primaryKey)
                 throws NoSuchMessageException,
                        SystemException
Removes the message-boards message with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<MBMessage>
Overrides:
remove in class BasePersistenceImpl<MBMessage>
Parameters:
primaryKey - the primary key of the message-boards message
Returns:
the message-boards message that was removed
Throws:
NoSuchMessageException - if a message-boards message with the primary key could not be found
SystemException - if a system exception occurred

removeImpl

protected MBMessage removeImpl(MBMessage mbMessage)
                        throws SystemException
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<MBMessage>
Parameters:
mbMessage - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public MBMessage updateImpl(MBMessage mbMessage)
                     throws SystemException
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface MBMessagePersistence
Overrides:
updateImpl in class BasePersistenceImpl<MBMessage>
Parameters:
mbMessage - the model instance to update
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected MBMessage toUnwrappedModel(MBMessage mbMessage)

findByPrimaryKey

public MBMessage findByPrimaryKey(Serializable primaryKey)
                           throws NoSuchMessageException,
                                  SystemException
Returns the message-boards message with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<MBMessage>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<MBMessage>
Parameters:
primaryKey - the primary key of the message-boards message
Returns:
the message-boards message
Throws:
NoSuchMessageException - if a message-boards message with the primary key could not be found
SystemException - if a system exception occurred

findByPrimaryKey

public MBMessage findByPrimaryKey(long messageId)
                           throws NoSuchMessageException,
                                  SystemException
Returns the message-boards message with the primary key or throws a NoSuchMessageException if it could not be found.

Specified by:
findByPrimaryKey in interface MBMessagePersistence
Parameters:
messageId - the primary key of the message-boards message
Returns:
the message-boards message
Throws:
NoSuchMessageException - if a message-boards message with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public MBMessage fetchByPrimaryKey(Serializable primaryKey)
                            throws SystemException
Returns the message-boards message with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<MBMessage>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<MBMessage>
Parameters:
primaryKey - the primary key of the message-boards message
Returns:
the message-boards message, or null if a message-boards message with the primary key could not be found
Throws:
SystemException - if a system exception occurred

fetchByPrimaryKey

public MBMessage fetchByPrimaryKey(long messageId)
                            throws SystemException
Returns the message-boards message with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface MBMessagePersistence
Parameters:
messageId - the primary key of the message-boards message
Returns:
the message-boards message, or null if a message-boards message with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findAll

public List<MBMessage> findAll()
                        throws SystemException
Returns all the message-boards messages.

Specified by:
findAll in interface MBMessagePersistence
Returns:
the message-boards messages
Throws:
SystemException - if a system exception occurred

findAll

public List<MBMessage> findAll(int start,
                               int end)
                        throws SystemException
Returns a range of all the message-boards messages.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findAll in interface MBMessagePersistence
Parameters:
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of message-boards messages
Throws:
SystemException - if a system exception occurred

findAll

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

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

removeAll

public void removeAll()
               throws SystemException
Removes all the message-boards messages from the database.

Specified by:
removeAll in interface MBMessagePersistence
Throws:
SystemException - if a system exception occurred

countAll

public int countAll()
             throws SystemException
Returns the number of message-boards messages.

Specified by:
countAll in interface MBMessagePersistence
Returns:
the number of message-boards messages
Throws:
SystemException - if a system exception occurred

getBadColumnNames

protected Set<String> getBadColumnNames()
Overrides:
getBadColumnNames in class BasePersistenceImpl<MBMessage>

afterPropertiesSet

public void afterPropertiesSet()
Initializes the message-boards message persistence.


destroy

public void destroy()

Liferay 6.2-ce-ga5