Liferay 6.2-ce-ga5

com.liferay.portlet.messageboards.service.persistence
Interface MBMessagePersistence

All Superinterfaces:
BasePersistence<MBMessage>

@ProviderType
public interface MBMessagePersistence
extends BasePersistence<MBMessage>

The persistence interface for the message-boards message service.

Caching information and settings can be found in portal.properties

See Also:
MBMessagePersistenceImpl, MBMessageUtil

Method Summary
 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.
 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.
 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 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 = ?.
 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 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 = ?.
 MBMessage remove(long messageId)
          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.
 MBMessage updateImpl(MBMessage mbMessage)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update
 

Method Detail

findByUuid

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

Parameters:
uuid - the uuid
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByUuid

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.

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

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.

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

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

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

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

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

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

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

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

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

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

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

removeByUuid

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

Parameters:
uuid - the uuid
Throws:
SystemException - if a system exception occurred

countByUuid

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

Parameters:
uuid - the uuid
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByUUID_G

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

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

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.

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

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.

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

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

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

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

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

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

Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByUuid_C

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.

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

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.

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

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

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

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 = ?.

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

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

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

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 = ?.

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

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

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

removeByUuid_C

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

Parameters:
uuid - the uuid
companyId - the company ID
Throws:
SystemException - if a system exception occurred

countByUuid_C

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

Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByGroupId

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

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

findByGroupId

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.

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

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.

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

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

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

fetchByGroupId_First

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

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

findByGroupId_Last

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

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

fetchByGroupId_Last

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

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

findByGroupId_PrevAndNext

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

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

filterFindByGroupId

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

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

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.

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

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.

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

MBMessage[] filterFindByGroupId_PrevAndNext(long messageId,
                                            long groupId,
                                            OrderByComparator orderByComparator)
                                            throws SystemException,
                                                   NoSuchMessageException
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 = ?.

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

removeByGroupId

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

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

countByGroupId

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

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

filterCountByGroupId

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

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

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

Parameters:
companyId - the company ID
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByCompanyId

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.

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

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.

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

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

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

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

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

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

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

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

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

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

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

removeByCompanyId

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

Parameters:
companyId - the company ID
Throws:
SystemException - if a system exception occurred

countByCompanyId

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

Parameters:
companyId - the company ID
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByThreadId

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

Parameters:
threadId - the thread ID
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByThreadId

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.

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

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.

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

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

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

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

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

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

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

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

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

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

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

removeByThreadId

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

Parameters:
threadId - the thread ID
Throws:
SystemException - if a system exception occurred

countByThreadId

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

Parameters:
threadId - the thread ID
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByThreadReplies

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

Parameters:
threadId - the thread ID
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByThreadReplies

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.

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

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.

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

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

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

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

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

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

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

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

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

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

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

removeByThreadReplies

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

Parameters:
threadId - the thread ID
Throws:
SystemException - if a system exception occurred

countByThreadReplies

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

Parameters:
threadId - the thread ID
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByUserId

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

Parameters:
userId - the user ID
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByUserId

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.

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

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.

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

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

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

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

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

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

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

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

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

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

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

removeByUserId

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

Parameters:
userId - the user ID
Throws:
SystemException - if a system exception occurred

countByUserId

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

Parameters:
userId - the user ID
Returns:
the number of matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByG_U

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

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

findByG_U

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.

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

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.

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

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

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

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 = ?.

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

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

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

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 = ?.

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

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

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

filterFindByG_U

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 = ?.

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

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.

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

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.

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

MBMessage[] filterFindByG_U_PrevAndNext(long messageId,
                                        long groupId,
                                        long userId,
                                        OrderByComparator orderByComparator)
                                        throws SystemException,
                                               NoSuchMessageException
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 = ?.

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

removeByG_U

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

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

countByG_U

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

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

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 = ?.

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

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

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

findByG_C

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.

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

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.

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

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

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

fetchByG_C_First

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 = ?.

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

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

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

fetchByG_C_Last

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 = ?.

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

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

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

filterFindByG_C

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 = ?.

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

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.

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

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.

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

MBMessage[] filterFindByG_C_PrevAndNext(long messageId,
                                        long groupId,
                                        long categoryId,
                                        OrderByComparator orderByComparator)
                                        throws SystemException,
                                               NoSuchMessageException
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 = ?.

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

removeByG_C

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

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

countByG_C

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

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

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 = ?.

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

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

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

findByG_S

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.

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

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.

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

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

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

fetchByG_S_First

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 = ?.

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

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

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

fetchByG_S_Last

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 = ?.

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

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

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

filterFindByG_S

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 = ?.

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

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.

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

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.

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

MBMessage[] filterFindByG_S_PrevAndNext(long messageId,
                                        long groupId,
                                        int status,
                                        OrderByComparator orderByComparator)
                                        throws SystemException,
                                               NoSuchMessageException
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 = ?.

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

removeByG_S

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

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

countByG_S

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

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

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 = ?.

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

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

Parameters:
companyId - the company ID
status - the status
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByC_S

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.

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

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.

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

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

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

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 = ?.

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

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

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

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 = ?.

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

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

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

removeByC_S

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

Parameters:
companyId - the company ID
status - the status
Throws:
SystemException - if a system exception occurred

countByC_S

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

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

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

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

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.

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

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.

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

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

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

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 = ?.

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

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

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

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 = ?.

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

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

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

findByU_C

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.

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

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.

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

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.

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

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

Parameters:
userId - the user ID
classNameId - the class name ID
Throws:
SystemException - if a system exception occurred

countByU_C

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

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

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

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

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

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

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.

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

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.

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

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

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

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 = ?.

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

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

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

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 = ?.

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

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

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

removeByC_C

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

Parameters:
classNameId - the class name ID
classPK - the class p k
Throws:
SystemException - if a system exception occurred

countByC_C

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

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

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

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

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.

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

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.

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

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

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

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 = ?.

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

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

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

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 = ?.

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

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

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

removeByT_P

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

Parameters:
threadId - the thread ID
parentMessageId - the parent message ID
Throws:
SystemException - if a system exception occurred

countByT_P

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

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

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

Parameters:
threadId - the thread ID
answer - the answer
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByT_A

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.

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

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.

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

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

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

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 = ?.

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

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

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

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 = ?.

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

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

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

removeByT_A

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

Parameters:
threadId - the thread ID
answer - the answer
Throws:
SystemException - if a system exception occurred

countByT_A

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

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

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

Parameters:
threadId - the thread ID
status - the status
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByT_S

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.

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

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.

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

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

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

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 = ?.

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

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

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

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 = ?.

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

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

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

removeByT_S

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

Parameters:
threadId - the thread ID
status - the status
Throws:
SystemException - if a system exception occurred

countByT_S

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

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

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

Parameters:
threadId - the thread ID
status - the status
Returns:
the matching message-boards messages
Throws:
SystemException - if a system exception occurred

findByTR_S

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.

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

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.

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

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

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

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 = ?.

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

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

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

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 = ?.

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

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

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

removeByTR_S

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

Parameters:
threadId - the thread ID
status - the status
Throws:
SystemException - if a system exception occurred

countByTR_S

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

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

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 = ?.

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

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.

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

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.

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

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

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

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 = ?.

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

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

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

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 = ?.

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

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

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

filterFindByG_U_S

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 = ?.

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

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.

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

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.

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

MBMessage[] filterFindByG_U_S_PrevAndNext(long messageId,
                                          long groupId,
                                          long userId,
                                          int status,
                                          OrderByComparator orderByComparator)
                                          throws SystemException,
                                                 NoSuchMessageException
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 = ?.

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

removeByG_U_S

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.

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

countByG_U_S

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 = ?.

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

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 = ?.

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

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 = ?.

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

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.

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

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.

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

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

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

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 = ?.

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

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

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

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 = ?.

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

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

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

filterFindByG_C_T

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 = ?.

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

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.

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

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.

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

MBMessage[] filterFindByG_C_T_PrevAndNext(long messageId,
                                          long groupId,
                                          long categoryId,
                                          long threadId,
                                          OrderByComparator orderByComparator)
                                          throws SystemException,
                                                 NoSuchMessageException
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 = ?.

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

removeByG_C_T

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.

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

countByG_C_T

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 = ?.

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

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 = ?.

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

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 = ?.

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

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.

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

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.

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

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

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

fetchByG_C_S_First

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 = ?.

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

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

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

fetchByG_C_S_Last

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 = ?.

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

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

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

filterFindByG_C_S

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 = ?.

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

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.

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

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.

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

MBMessage[] filterFindByG_C_S_PrevAndNext(long messageId,
                                          long groupId,
                                          long categoryId,
                                          int status,
                                          OrderByComparator orderByComparator)
                                          throws SystemException,
                                                 NoSuchMessageException
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 = ?.

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

removeByG_C_S

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.

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

countByG_C_S

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 = ?.

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

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 = ?.

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

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 = ?.

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

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.

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

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.

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

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

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

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 = ?.

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

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

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

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 = ?.

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

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

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

removeByU_C_C

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.

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

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 = ?.

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

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 = ?.

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

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.

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

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.

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

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

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

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 = ?.

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

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

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

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 = ?.

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

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

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

findByU_C_S

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.

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

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.

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

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.

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

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.

Parameters:
userId - the user ID
classNameId - the class name ID
status - the status
Throws:
SystemException - if a system exception occurred

countByU_C_S

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 = ?.

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

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 = ?.

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

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 = ?.

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

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.

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

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.

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

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

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

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 = ?.

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

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

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

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 = ?.

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

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

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

removeByC_C_S

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.

Parameters:
classNameId - the class name ID
classPK - the class p k
status - the status
Throws:
SystemException - if a system exception occurred

countByC_C_S

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 = ?.

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

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 = ?.

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

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.

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

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.

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

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

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

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 = ?.

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

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

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

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 = ?.

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

MBMessage[] findByG_C_T_A_PrevAndNext(long messageId,
                                      long groupId,
                                      long categoryId,
                                      long threadId,
                                      boolean answer,
                                      OrderByComparator orderByComparator)
                                      throws SystemException,
                                             NoSuchMessageException
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 = ?.

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

filterFindByG_C_T_A

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 = ?.

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

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.

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

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.

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

MBMessage[] filterFindByG_C_T_A_PrevAndNext(long messageId,
                                            long groupId,
                                            long categoryId,
                                            long threadId,
                                            boolean answer,
                                            OrderByComparator orderByComparator)
                                            throws SystemException,
                                                   NoSuchMessageException
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 = ?.

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

removeByG_C_T_A

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.

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

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 = ?.

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

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 = ?.

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

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 = ?.

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

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.

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

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.

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

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

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

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 = ?.

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

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

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

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 = ?.

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

MBMessage[] findByG_C_T_S_PrevAndNext(long messageId,
                                      long groupId,
                                      long categoryId,
                                      long threadId,
                                      int status,
                                      OrderByComparator orderByComparator)
                                      throws SystemException,
                                             NoSuchMessageException
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 = ?.

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

filterFindByG_C_T_S

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 = ?.

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

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.

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

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.

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

MBMessage[] filterFindByG_C_T_S_PrevAndNext(long messageId,
                                            long groupId,
                                            long categoryId,
                                            long threadId,
                                            int status,
                                            OrderByComparator orderByComparator)
                                            throws SystemException,
                                                   NoSuchMessageException
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 = ?.

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

removeByG_C_T_S

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.

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

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 = ?.

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

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 = ?.

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

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 = ?.

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

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.

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

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.

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

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

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

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 = ?.

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

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

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

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 = ?.

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

MBMessage[] findByU_C_C_S_PrevAndNext(long messageId,
                                      long userId,
                                      long classNameId,
                                      long classPK,
                                      int status,
                                      OrderByComparator orderByComparator)
                                      throws SystemException,
                                             NoSuchMessageException
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 = ?.

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

removeByU_C_C_S

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.

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

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 = ?.

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

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

Parameters:
mbMessage - the message-boards message

cacheResult

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

Parameters:
mbMessages - the message-boards messages

create

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

Parameters:
messageId - the primary key for the new message-boards message
Returns:
the new message-boards message

remove

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

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

updateImpl

MBMessage updateImpl(MBMessage mbMessage)
                     throws SystemException
Throws:
SystemException

findByPrimaryKey

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

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

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

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

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

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

findAll

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.

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

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.

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

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

Throws:
SystemException - if a system exception occurred

countAll

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

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

Liferay 6.2-ce-ga5