/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ package com.liferay.message.boards.kernel.service.persistence; import aQute.bnd.annotation.ProviderType; import com.liferay.message.boards.kernel.exception.NoSuchMessageException; import com.liferay.message.boards.kernel.model.MBMessage; import com.liferay.portal.kernel.service.persistence.BasePersistence; /** * The persistence interface for the message-boards message service. * * <p> * Caching information and settings can be found in <code>portal.properties</code> * </p> * * @author Brian Wing Shun Chan * @see com.liferay.portlet.messageboards.service.persistence.impl.MBMessagePersistenceImpl * @see MBMessageUtil * @generated */ @ProviderType public interface MBMessagePersistence extends BasePersistence<MBMessage> { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link MBMessageUtil} to access the message-boards message persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. */ /** * Returns all the message-boards messages where uuid = ?. * * @param uuid the uuid * @return the matching message-boards messages */ public java.util.List<MBMessage> findByUuid(java.lang.String uuid); /** * Returns a range of all the message-boards messages where uuid = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param uuid the uuid * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages */ public java.util.List<MBMessage> findByUuid(java.lang.String uuid, int start, int end); /** * Returns an ordered range of all the message-boards messages where uuid = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param uuid the uuid * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns an ordered range of all the message-boards messages where uuid = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param uuid the uuid * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator, boolean retrieveFromCache); /** * Returns the first message-boards message in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the first message-boards message in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the last message-boards message in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the last message-boards message in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the message-boards messages before and after the current message-boards message in the ordered set where uuid = ?. * * @param messageId the primary key of the current message-boards message * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] findByUuid_PrevAndNext(long messageId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Removes all the message-boards messages where uuid = ? from the database. * * @param uuid the uuid */ public void removeByUuid(java.lang.String uuid); /** * Returns the number of message-boards messages where uuid = ?. * * @param uuid the uuid * @return the number of matching message-boards messages */ public int countByUuid(java.lang.String uuid); /** * Returns the message-boards message where uuid = ? and groupId = ? or throws a {@link NoSuchMessageException} if it could not be found. * * @param uuid the uuid * @param groupId the group ID * @return the matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchMessageException; /** * Returns the message-boards message where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. * * @param uuid the uuid * @param groupId the group ID * @return the matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByUUID_G(java.lang.String uuid, long groupId); /** * Returns the message-boards message where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. * * @param uuid the uuid * @param groupId the group ID * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByUUID_G(java.lang.String uuid, long groupId, boolean retrieveFromCache); /** * Removes the message-boards message where uuid = ? and groupId = ? from the database. * * @param uuid the uuid * @param groupId the group ID * @return the message-boards message that was removed */ public MBMessage removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchMessageException; /** * Returns the number of message-boards messages where uuid = ? and groupId = ?. * * @param uuid the uuid * @param groupId the group ID * @return the number of matching message-boards messages */ public int countByUUID_G(java.lang.String uuid, long groupId); /** * Returns all the message-boards messages where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the matching message-boards messages */ public java.util.List<MBMessage> findByUuid_C(java.lang.String uuid, long companyId); /** * Returns a range of all the message-boards messages where uuid = ? and companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages */ public java.util.List<MBMessage> findByUuid_C(java.lang.String uuid, long companyId, int start, int end); /** * Returns an ordered range of all the message-boards messages where uuid = ? and companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns an ordered range of all the message-boards messages where uuid = ? and companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator, boolean retrieveFromCache); /** * Returns the first message-boards message in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the first message-boards message in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the last message-boards message in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the last message-boards message in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the message-boards messages before and after the current message-boards message in the ordered set where uuid = ? and companyId = ?. * * @param messageId the primary key of the current message-boards message * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] findByUuid_C_PrevAndNext(long messageId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Removes all the message-boards messages where uuid = ? and companyId = ? from the database. * * @param uuid the uuid * @param companyId the company ID */ public void removeByUuid_C(java.lang.String uuid, long companyId); /** * Returns the number of message-boards messages where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the number of matching message-boards messages */ public int countByUuid_C(java.lang.String uuid, long companyId); /** * Returns all the message-boards messages where groupId = ?. * * @param groupId the group ID * @return the matching message-boards messages */ public java.util.List<MBMessage> findByGroupId(long groupId); /** * Returns a range of all the message-boards messages where groupId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages */ public java.util.List<MBMessage> findByGroupId(long groupId, int start, int end); /** * Returns an ordered range of all the message-boards messages where groupId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns an ordered range of all the message-boards messages where groupId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator, boolean retrieveFromCache); /** * Returns the first message-boards message in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the first message-boards message in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the last message-boards message in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the last message-boards message in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ?. * * @param messageId the primary key of the current message-boards message * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] findByGroupId_PrevAndNext(long messageId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns all the message-boards messages that the user has permission to view where groupId = ?. * * @param groupId the group ID * @return the matching message-boards messages that the user has permission to view */ public java.util.List<MBMessage> filterFindByGroupId(long groupId); /** * Returns a range of all the message-boards messages that the user has permission to view where groupId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages that the user has permission to view */ public java.util.List<MBMessage> filterFindByGroupId(long groupId, int start, int end); /** * Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages that the user has permission to view */ public java.util.List<MBMessage> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> 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 = ?. * * @param messageId the primary key of the current message-boards message * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] filterFindByGroupId_PrevAndNext(long messageId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Removes all the message-boards messages where groupId = ? from the database. * * @param groupId the group ID */ public void removeByGroupId(long groupId); /** * Returns the number of message-boards messages where groupId = ?. * * @param groupId the group ID * @return the number of matching message-boards messages */ public int countByGroupId(long groupId); /** * Returns the number of message-boards messages that the user has permission to view where groupId = ?. * * @param groupId the group ID * @return the number of matching message-boards messages that the user has permission to view */ public int filterCountByGroupId(long groupId); /** * Returns all the message-boards messages where companyId = ?. * * @param companyId the company ID * @return the matching message-boards messages */ public java.util.List<MBMessage> findByCompanyId(long companyId); /** * Returns a range of all the message-boards messages where companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param companyId the company ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages */ public java.util.List<MBMessage> findByCompanyId(long companyId, int start, int end); /** * Returns an ordered range of all the message-boards messages where companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param companyId the company ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns an ordered range of all the message-boards messages where companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param companyId the company ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator, boolean retrieveFromCache); /** * Returns the first message-boards message in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the first message-boards message in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the last message-boards message in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the last message-boards message in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the message-boards messages before and after the current message-boards message in the ordered set where companyId = ?. * * @param messageId the primary key of the current message-boards message * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] findByCompanyId_PrevAndNext(long messageId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Removes all the message-boards messages where companyId = ? from the database. * * @param companyId the company ID */ public void removeByCompanyId(long companyId); /** * Returns the number of message-boards messages where companyId = ?. * * @param companyId the company ID * @return the number of matching message-boards messages */ public int countByCompanyId(long companyId); /** * Returns all the message-boards messages where userId = ?. * * @param userId the user ID * @return the matching message-boards messages */ public java.util.List<MBMessage> findByUserId(long userId); /** * Returns a range of all the message-boards messages where userId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param userId the user ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages */ public java.util.List<MBMessage> findByUserId(long userId, int start, int end); /** * Returns an ordered range of all the message-boards messages where userId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param userId the user ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns an ordered range of all the message-boards messages where userId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param userId the user ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator, boolean retrieveFromCache); /** * Returns the first message-boards message in the ordered set where userId = ?. * * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the first message-boards message in the ordered set where userId = ?. * * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the last message-boards message in the ordered set where userId = ?. * * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the last message-boards message in the ordered set where userId = ?. * * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the message-boards messages before and after the current message-boards message in the ordered set where userId = ?. * * @param messageId the primary key of the current message-boards message * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] findByUserId_PrevAndNext(long messageId, long userId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Removes all the message-boards messages where userId = ? from the database. * * @param userId the user ID */ public void removeByUserId(long userId); /** * Returns the number of message-boards messages where userId = ?. * * @param userId the user ID * @return the number of matching message-boards messages */ public int countByUserId(long userId); /** * Returns all the message-boards messages where threadId = ?. * * @param threadId the thread ID * @return the matching message-boards messages */ public java.util.List<MBMessage> findByThreadId(long threadId); /** * Returns a range of all the message-boards messages where threadId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param threadId the thread ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages */ public java.util.List<MBMessage> findByThreadId(long threadId, int start, int end); /** * Returns an ordered range of all the message-boards messages where threadId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param threadId the thread ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByThreadId(long threadId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns an ordered range of all the message-boards messages where threadId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param threadId the thread ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByThreadId(long threadId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator, boolean retrieveFromCache); /** * Returns the first message-boards message in the ordered set where threadId = ?. * * @param threadId the thread ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByThreadId_First(long threadId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the first message-boards message in the ordered set where threadId = ?. * * @param threadId the thread ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByThreadId_First(long threadId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the last message-boards message in the ordered set where threadId = ?. * * @param threadId the thread ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByThreadId_Last(long threadId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the last message-boards message in the ordered set where threadId = ?. * * @param threadId the thread ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByThreadId_Last(long threadId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the message-boards messages before and after the current message-boards message in the ordered set where threadId = ?. * * @param messageId the primary key of the current message-boards message * @param threadId the thread ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] findByThreadId_PrevAndNext(long messageId, long threadId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Removes all the message-boards messages where threadId = ? from the database. * * @param threadId the thread ID */ public void removeByThreadId(long threadId); /** * Returns the number of message-boards messages where threadId = ?. * * @param threadId the thread ID * @return the number of matching message-boards messages */ public int countByThreadId(long threadId); /** * Returns all the message-boards messages where threadId = ?. * * @param threadId the thread ID * @return the matching message-boards messages */ public java.util.List<MBMessage> findByThreadReplies(long threadId); /** * Returns a range of all the message-boards messages where threadId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param threadId the thread ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages */ public java.util.List<MBMessage> findByThreadReplies(long threadId, int start, int end); /** * Returns an ordered range of all the message-boards messages where threadId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param threadId the thread ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByThreadReplies(long threadId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns an ordered range of all the message-boards messages where threadId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param threadId the thread ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByThreadReplies(long threadId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator, boolean retrieveFromCache); /** * Returns the first message-boards message in the ordered set where threadId = ?. * * @param threadId the thread ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByThreadReplies_First(long threadId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the first message-boards message in the ordered set where threadId = ?. * * @param threadId the thread ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByThreadReplies_First(long threadId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the last message-boards message in the ordered set where threadId = ?. * * @param threadId the thread ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByThreadReplies_Last(long threadId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the last message-boards message in the ordered set where threadId = ?. * * @param threadId the thread ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByThreadReplies_Last(long threadId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the message-boards messages before and after the current message-boards message in the ordered set where threadId = ?. * * @param messageId the primary key of the current message-boards message * @param threadId the thread ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] findByThreadReplies_PrevAndNext(long messageId, long threadId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Removes all the message-boards messages where threadId = ? from the database. * * @param threadId the thread ID */ public void removeByThreadReplies(long threadId); /** * Returns the number of message-boards messages where threadId = ?. * * @param threadId the thread ID * @return the number of matching message-boards messages */ public int countByThreadReplies(long threadId); /** * Returns all the message-boards messages where groupId = ? and userId = ?. * * @param groupId the group ID * @param userId the user ID * @return the matching message-boards messages */ public java.util.List<MBMessage> findByG_U(long groupId, long userId); /** * Returns a range of all the message-boards messages where groupId = ? and userId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param userId the user ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages */ public java.util.List<MBMessage> findByG_U(long groupId, long userId, int start, int end); /** * Returns an ordered range of all the message-boards messages where groupId = ? and userId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param userId the user ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByG_U(long groupId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns an ordered range of all the message-boards messages where groupId = ? and userId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param userId the user ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByG_U(long groupId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator, boolean retrieveFromCache); /** * Returns the first message-boards message in the ordered set where groupId = ? and userId = ?. * * @param groupId the group ID * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByG_U_First(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the first message-boards message in the ordered set where groupId = ? and userId = ?. * * @param groupId the group ID * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByG_U_First(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the last message-boards message in the ordered set where groupId = ? and userId = ?. * * @param groupId the group ID * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByG_U_Last(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the last message-boards message in the ordered set where groupId = ? and userId = ?. * * @param groupId the group ID * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByG_U_Last(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ? and userId = ?. * * @param messageId the primary key of the current message-boards message * @param groupId the group ID * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] findByG_U_PrevAndNext(long messageId, long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns all the message-boards messages that the user has permission to view where groupId = ? and userId = ?. * * @param groupId the group ID * @param userId the user ID * @return the matching message-boards messages that the user has permission to view */ public java.util.List<MBMessage> filterFindByG_U(long groupId, long userId); /** * Returns a range of all the message-boards messages that the user has permission to view where groupId = ? and userId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param userId the user ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages that the user has permission to view */ public java.util.List<MBMessage> filterFindByG_U(long groupId, long userId, int start, int end); /** * Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = ? and userId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param userId the user ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages that the user has permission to view */ public java.util.List<MBMessage> filterFindByG_U(long groupId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> 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 = ?. * * @param messageId the primary key of the current message-boards message * @param groupId the group ID * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] filterFindByG_U_PrevAndNext(long messageId, long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Removes all the message-boards messages where groupId = ? and userId = ? from the database. * * @param groupId the group ID * @param userId the user ID */ public void removeByG_U(long groupId, long userId); /** * Returns the number of message-boards messages where groupId = ? and userId = ?. * * @param groupId the group ID * @param userId the user ID * @return the number of matching message-boards messages */ public int countByG_U(long groupId, long userId); /** * Returns the number of message-boards messages that the user has permission to view where groupId = ? and userId = ?. * * @param groupId the group ID * @param userId the user ID * @return the number of matching message-boards messages that the user has permission to view */ public int filterCountByG_U(long groupId, long userId); /** * Returns all the message-boards messages where groupId = ? and categoryId = ?. * * @param groupId the group ID * @param categoryId the category ID * @return the matching message-boards messages */ public java.util.List<MBMessage> findByG_C(long groupId, long categoryId); /** * Returns a range of all the message-boards messages where groupId = ? and categoryId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param categoryId the category ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages */ public java.util.List<MBMessage> findByG_C(long groupId, long categoryId, int start, int end); /** * Returns an ordered range of all the message-boards messages where groupId = ? and categoryId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param categoryId the category ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByG_C(long groupId, long categoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns an ordered range of all the message-boards messages where groupId = ? and categoryId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param categoryId the category ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByG_C(long groupId, long categoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator, boolean retrieveFromCache); /** * Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ?. * * @param groupId the group ID * @param categoryId the category ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByG_C_First(long groupId, long categoryId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ?. * * @param groupId the group ID * @param categoryId the category ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByG_C_First(long groupId, long categoryId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ?. * * @param groupId the group ID * @param categoryId the category ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByG_C_Last(long groupId, long categoryId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ?. * * @param groupId the group ID * @param categoryId the category ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByG_C_Last(long groupId, long categoryId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ? and categoryId = ?. * * @param messageId the primary key of the current message-boards message * @param groupId the group ID * @param categoryId the category ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] findByG_C_PrevAndNext(long messageId, long groupId, long categoryId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ?. * * @param groupId the group ID * @param categoryId the category ID * @return the matching message-boards messages that the user has permission to view */ public java.util.List<MBMessage> filterFindByG_C(long groupId, long categoryId); /** * Returns a range of all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param categoryId the category ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages that the user has permission to view */ public java.util.List<MBMessage> filterFindByG_C(long groupId, long categoryId, int start, int end); /** * Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = ? and categoryId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param categoryId the category ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages that the user has permission to view */ public java.util.List<MBMessage> filterFindByG_C(long groupId, long categoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> 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 = ?. * * @param messageId the primary key of the current message-boards message * @param groupId the group ID * @param categoryId the category ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] filterFindByG_C_PrevAndNext(long messageId, long groupId, long categoryId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Removes all the message-boards messages where groupId = ? and categoryId = ? from the database. * * @param groupId the group ID * @param categoryId the category ID */ public void removeByG_C(long groupId, long categoryId); /** * Returns the number of message-boards messages where groupId = ? and categoryId = ?. * * @param groupId the group ID * @param categoryId the category ID * @return the number of matching message-boards messages */ public int countByG_C(long groupId, long categoryId); /** * Returns the number of message-boards messages that the user has permission to view where groupId = ? and categoryId = ?. * * @param groupId the group ID * @param categoryId the category ID * @return the number of matching message-boards messages that the user has permission to view */ public int filterCountByG_C(long groupId, long categoryId); /** * Returns all the message-boards messages where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @return the matching message-boards messages */ public java.util.List<MBMessage> findByG_S(long groupId, int status); /** * Returns a range of all the message-boards messages where groupId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages */ public java.util.List<MBMessage> findByG_S(long groupId, int status, int start, int end); /** * Returns an ordered range of all the message-boards messages where groupId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns an ordered range of all the message-boards messages where groupId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator, boolean retrieveFromCache); /** * Returns the first message-boards message in the ordered set where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the first message-boards message in the ordered set where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the last message-boards message in the ordered set where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByG_S_Last(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the last message-boards message in the ordered set where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByG_S_Last(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ? and status = ?. * * @param messageId the primary key of the current message-boards message * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] findByG_S_PrevAndNext(long messageId, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns all the message-boards messages that the user has permission to view where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @return the matching message-boards messages that the user has permission to view */ public java.util.List<MBMessage> filterFindByG_S(long groupId, int status); /** * Returns a range of all the message-boards messages that the user has permission to view where groupId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages that the user has permission to view */ public java.util.List<MBMessage> filterFindByG_S(long groupId, int status, int start, int end); /** * Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages that the user has permission to view */ public java.util.List<MBMessage> filterFindByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> 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 = ?. * * @param messageId the primary key of the current message-boards message * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] filterFindByG_S_PrevAndNext(long messageId, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Removes all the message-boards messages where groupId = ? and status = ? from the database. * * @param groupId the group ID * @param status the status */ public void removeByG_S(long groupId, int status); /** * Returns the number of message-boards messages where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @return the number of matching message-boards messages */ public int countByG_S(long groupId, int status); /** * Returns the number of message-boards messages that the user has permission to view where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @return the number of matching message-boards messages that the user has permission to view */ public int filterCountByG_S(long groupId, int status); /** * Returns all the message-boards messages where companyId = ? and status = ?. * * @param companyId the company ID * @param status the status * @return the matching message-boards messages */ public java.util.List<MBMessage> findByC_S(long companyId, int status); /** * Returns a range of all the message-boards messages where companyId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param companyId the company ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages */ public java.util.List<MBMessage> findByC_S(long companyId, int status, int start, int end); /** * Returns an ordered range of all the message-boards messages where companyId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param companyId the company ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByC_S(long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns an ordered range of all the message-boards messages where companyId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param companyId the company ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByC_S(long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator, boolean retrieveFromCache); /** * Returns the first message-boards message in the ordered set where companyId = ? and status = ?. * * @param companyId the company ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByC_S_First(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the first message-boards message in the ordered set where companyId = ? and status = ?. * * @param companyId the company ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByC_S_First(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the last message-boards message in the ordered set where companyId = ? and status = ?. * * @param companyId the company ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByC_S_Last(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the last message-boards message in the ordered set where companyId = ? and status = ?. * * @param companyId the company ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByC_S_Last(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the message-boards messages before and after the current message-boards message in the ordered set where companyId = ? and status = ?. * * @param messageId the primary key of the current message-boards message * @param companyId the company ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] findByC_S_PrevAndNext(long messageId, long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Removes all the message-boards messages where companyId = ? and status = ? from the database. * * @param companyId the company ID * @param status the status */ public void removeByC_S(long companyId, int status); /** * Returns the number of message-boards messages where companyId = ? and status = ?. * * @param companyId the company ID * @param status the status * @return the number of matching message-boards messages */ public int countByC_S(long companyId, int status); /** * Returns all the message-boards messages where userId = ? and classNameId = ?. * * @param userId the user ID * @param classNameId the class name ID * @return the matching message-boards messages */ public java.util.List<MBMessage> findByU_C(long userId, long classNameId); /** * Returns a range of all the message-boards messages where userId = ? and classNameId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param userId the user ID * @param classNameId the class name ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages */ public java.util.List<MBMessage> findByU_C(long userId, long classNameId, int start, int end); /** * Returns an ordered range of all the message-boards messages where userId = ? and classNameId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param userId the user ID * @param classNameId the class name ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByU_C(long userId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns an ordered range of all the message-boards messages where userId = ? and classNameId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param userId the user ID * @param classNameId the class name ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByU_C(long userId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator, boolean retrieveFromCache); /** * Returns the first message-boards message in the ordered set where userId = ? and classNameId = ?. * * @param userId the user ID * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByU_C_First(long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the first message-boards message in the ordered set where userId = ? and classNameId = ?. * * @param userId the user ID * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByU_C_First(long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the last message-boards message in the ordered set where userId = ? and classNameId = ?. * * @param userId the user ID * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByU_C_Last(long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the last message-boards message in the ordered set where userId = ? and classNameId = ?. * * @param userId the user ID * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByU_C_Last(long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the message-boards messages before and after the current message-boards message in the ordered set where userId = ? and classNameId = ?. * * @param messageId the primary key of the current message-boards message * @param userId the user ID * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] findByU_C_PrevAndNext(long messageId, long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns all the message-boards messages where userId = ? and classNameId = any ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param userId the user ID * @param classNameIds the class name IDs * @return the matching message-boards messages */ public java.util.List<MBMessage> findByU_C(long userId, long[] classNameIds); /** * Returns a range of all the message-boards messages where userId = ? and classNameId = any ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param userId the user ID * @param classNameIds the class name IDs * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages */ public java.util.List<MBMessage> findByU_C(long userId, long[] classNameIds, int start, int end); /** * Returns an ordered range of all the message-boards messages where userId = ? and classNameId = any ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param userId the user ID * @param classNameIds the class name IDs * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByU_C(long userId, long[] classNameIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns an ordered range of all the message-boards messages where userId = ? and classNameId = ?, optionally using the finder cache. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param userId the user ID * @param classNameId the class name ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByU_C(long userId, long[] classNameIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator, boolean retrieveFromCache); /** * Removes all the message-boards messages where userId = ? and classNameId = ? from the database. * * @param userId the user ID * @param classNameId the class name ID */ public void removeByU_C(long userId, long classNameId); /** * Returns the number of message-boards messages where userId = ? and classNameId = ?. * * @param userId the user ID * @param classNameId the class name ID * @return the number of matching message-boards messages */ public int countByU_C(long userId, long classNameId); /** * Returns the number of message-boards messages where userId = ? and classNameId = any ?. * * @param userId the user ID * @param classNameIds the class name IDs * @return the number of matching message-boards messages */ public int countByU_C(long userId, long[] classNameIds); /** * Returns all the message-boards messages where classNameId = ? and classPK = ?. * * @param classNameId the class name ID * @param classPK the class pk * @return the matching message-boards messages */ public java.util.List<MBMessage> findByC_C(long classNameId, long classPK); /** * Returns a range of all the message-boards messages where classNameId = ? and classPK = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param classNameId the class name ID * @param classPK the class pk * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages */ public java.util.List<MBMessage> findByC_C(long classNameId, long classPK, int start, int end); /** * Returns an ordered range of all the message-boards messages where classNameId = ? and classPK = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param classNameId the class name ID * @param classPK the class pk * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns an ordered range of all the message-boards messages where classNameId = ? and classPK = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param classNameId the class name ID * @param classPK the class pk * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator, boolean retrieveFromCache); /** * Returns the first message-boards message in the ordered set where classNameId = ? and classPK = ?. * * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the first message-boards message in the ordered set where classNameId = ? and classPK = ?. * * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the last message-boards message in the ordered set where classNameId = ? and classPK = ?. * * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the last message-boards message in the ordered set where classNameId = ? and classPK = ?. * * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the message-boards messages before and after the current message-boards message in the ordered set where classNameId = ? and classPK = ?. * * @param messageId the primary key of the current message-boards message * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] findByC_C_PrevAndNext(long messageId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Removes all the message-boards messages where classNameId = ? and classPK = ? from the database. * * @param classNameId the class name ID * @param classPK the class pk */ public void removeByC_C(long classNameId, long classPK); /** * Returns the number of message-boards messages where classNameId = ? and classPK = ?. * * @param classNameId the class name ID * @param classPK the class pk * @return the number of matching message-boards messages */ public int countByC_C(long classNameId, long classPK); /** * Returns all the message-boards messages where threadId = ? and parentMessageId = ?. * * @param threadId the thread ID * @param parentMessageId the parent message ID * @return the matching message-boards messages */ public java.util.List<MBMessage> findByT_P(long threadId, long parentMessageId); /** * Returns a range of all the message-boards messages where threadId = ? and parentMessageId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param threadId the thread ID * @param parentMessageId the parent message ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages */ public java.util.List<MBMessage> findByT_P(long threadId, long parentMessageId, int start, int end); /** * Returns an ordered range of all the message-boards messages where threadId = ? and parentMessageId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param threadId the thread ID * @param parentMessageId the parent message ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByT_P(long threadId, long parentMessageId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns an ordered range of all the message-boards messages where threadId = ? and parentMessageId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param threadId the thread ID * @param parentMessageId the parent message ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByT_P(long threadId, long parentMessageId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator, boolean retrieveFromCache); /** * Returns the first message-boards message in the ordered set where threadId = ? and parentMessageId = ?. * * @param threadId the thread ID * @param parentMessageId the parent message ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByT_P_First(long threadId, long parentMessageId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the first message-boards message in the ordered set where threadId = ? and parentMessageId = ?. * * @param threadId the thread ID * @param parentMessageId the parent message ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByT_P_First(long threadId, long parentMessageId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the last message-boards message in the ordered set where threadId = ? and parentMessageId = ?. * * @param threadId the thread ID * @param parentMessageId the parent message ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByT_P_Last(long threadId, long parentMessageId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the last message-boards message in the ordered set where threadId = ? and parentMessageId = ?. * * @param threadId the thread ID * @param parentMessageId the parent message ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByT_P_Last(long threadId, long parentMessageId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the message-boards messages before and after the current message-boards message in the ordered set where threadId = ? and parentMessageId = ?. * * @param messageId the primary key of the current message-boards message * @param threadId the thread ID * @param parentMessageId the parent message ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] findByT_P_PrevAndNext(long messageId, long threadId, long parentMessageId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Removes all the message-boards messages where threadId = ? and parentMessageId = ? from the database. * * @param threadId the thread ID * @param parentMessageId the parent message ID */ public void removeByT_P(long threadId, long parentMessageId); /** * Returns the number of message-boards messages where threadId = ? and parentMessageId = ?. * * @param threadId the thread ID * @param parentMessageId the parent message ID * @return the number of matching message-boards messages */ public int countByT_P(long threadId, long parentMessageId); /** * Returns all the message-boards messages where threadId = ? and answer = ?. * * @param threadId the thread ID * @param answer the answer * @return the matching message-boards messages */ public java.util.List<MBMessage> findByT_A(long threadId, boolean answer); /** * Returns a range of all the message-boards messages where threadId = ? and answer = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param threadId the thread ID * @param answer the answer * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages */ public java.util.List<MBMessage> findByT_A(long threadId, boolean answer, int start, int end); /** * Returns an ordered range of all the message-boards messages where threadId = ? and answer = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param threadId the thread ID * @param answer the answer * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByT_A(long threadId, boolean answer, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns an ordered range of all the message-boards messages where threadId = ? and answer = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param threadId the thread ID * @param answer the answer * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByT_A(long threadId, boolean answer, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator, boolean retrieveFromCache); /** * Returns the first message-boards message in the ordered set where threadId = ? and answer = ?. * * @param threadId the thread ID * @param answer the answer * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByT_A_First(long threadId, boolean answer, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the first message-boards message in the ordered set where threadId = ? and answer = ?. * * @param threadId the thread ID * @param answer the answer * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByT_A_First(long threadId, boolean answer, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the last message-boards message in the ordered set where threadId = ? and answer = ?. * * @param threadId the thread ID * @param answer the answer * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByT_A_Last(long threadId, boolean answer, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the last message-boards message in the ordered set where threadId = ? and answer = ?. * * @param threadId the thread ID * @param answer the answer * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByT_A_Last(long threadId, boolean answer, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the message-boards messages before and after the current message-boards message in the ordered set where threadId = ? and answer = ?. * * @param messageId the primary key of the current message-boards message * @param threadId the thread ID * @param answer the answer * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] findByT_A_PrevAndNext(long messageId, long threadId, boolean answer, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Removes all the message-boards messages where threadId = ? and answer = ? from the database. * * @param threadId the thread ID * @param answer the answer */ public void removeByT_A(long threadId, boolean answer); /** * Returns the number of message-boards messages where threadId = ? and answer = ?. * * @param threadId the thread ID * @param answer the answer * @return the number of matching message-boards messages */ public int countByT_A(long threadId, boolean answer); /** * Returns all the message-boards messages where threadId = ? and status = ?. * * @param threadId the thread ID * @param status the status * @return the matching message-boards messages */ public java.util.List<MBMessage> findByT_S(long threadId, int status); /** * Returns a range of all the message-boards messages where threadId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param threadId the thread ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages */ public java.util.List<MBMessage> findByT_S(long threadId, int status, int start, int end); /** * Returns an ordered range of all the message-boards messages where threadId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param threadId the thread ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByT_S(long threadId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns an ordered range of all the message-boards messages where threadId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param threadId the thread ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByT_S(long threadId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator, boolean retrieveFromCache); /** * Returns the first message-boards message in the ordered set where threadId = ? and status = ?. * * @param threadId the thread ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByT_S_First(long threadId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the first message-boards message in the ordered set where threadId = ? and status = ?. * * @param threadId the thread ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByT_S_First(long threadId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the last message-boards message in the ordered set where threadId = ? and status = ?. * * @param threadId the thread ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByT_S_Last(long threadId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the last message-boards message in the ordered set where threadId = ? and status = ?. * * @param threadId the thread ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByT_S_Last(long threadId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the message-boards messages before and after the current message-boards message in the ordered set where threadId = ? and status = ?. * * @param messageId the primary key of the current message-boards message * @param threadId the thread ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] findByT_S_PrevAndNext(long messageId, long threadId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Removes all the message-boards messages where threadId = ? and status = ? from the database. * * @param threadId the thread ID * @param status the status */ public void removeByT_S(long threadId, int status); /** * Returns the number of message-boards messages where threadId = ? and status = ?. * * @param threadId the thread ID * @param status the status * @return the number of matching message-boards messages */ public int countByT_S(long threadId, int status); /** * Returns all the message-boards messages where threadId = ? and status = ?. * * @param threadId the thread ID * @param status the status * @return the matching message-boards messages */ public java.util.List<MBMessage> findByTR_S(long threadId, int status); /** * Returns a range of all the message-boards messages where threadId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param threadId the thread ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages */ public java.util.List<MBMessage> findByTR_S(long threadId, int status, int start, int end); /** * Returns an ordered range of all the message-boards messages where threadId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param threadId the thread ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByTR_S(long threadId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns an ordered range of all the message-boards messages where threadId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param threadId the thread ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByTR_S(long threadId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator, boolean retrieveFromCache); /** * Returns the first message-boards message in the ordered set where threadId = ? and status = ?. * * @param threadId the thread ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByTR_S_First(long threadId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the first message-boards message in the ordered set where threadId = ? and status = ?. * * @param threadId the thread ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByTR_S_First(long threadId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the last message-boards message in the ordered set where threadId = ? and status = ?. * * @param threadId the thread ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByTR_S_Last(long threadId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the last message-boards message in the ordered set where threadId = ? and status = ?. * * @param threadId the thread ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByTR_S_Last(long threadId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the message-boards messages before and after the current message-boards message in the ordered set where threadId = ? and status = ?. * * @param messageId the primary key of the current message-boards message * @param threadId the thread ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] findByTR_S_PrevAndNext(long messageId, long threadId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Removes all the message-boards messages where threadId = ? and status = ? from the database. * * @param threadId the thread ID * @param status the status */ public void removeByTR_S(long threadId, int status); /** * Returns the number of message-boards messages where threadId = ? and status = ?. * * @param threadId the thread ID * @param status the status * @return the number of matching message-boards messages */ public int countByTR_S(long threadId, int status); /** * Returns all the message-boards messages where groupId = ? and userId = ? and status = ?. * * @param groupId the group ID * @param userId the user ID * @param status the status * @return the matching message-boards messages */ public java.util.List<MBMessage> findByG_U_S(long groupId, long userId, int status); /** * Returns a range of all the message-boards messages where groupId = ? and userId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param userId the user ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages */ public java.util.List<MBMessage> findByG_U_S(long groupId, long userId, int status, int start, int end); /** * Returns an ordered range of all the message-boards messages where groupId = ? and userId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param userId the user ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByG_U_S(long groupId, long userId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns an ordered range of all the message-boards messages where groupId = ? and userId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param userId the user ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByG_U_S(long groupId, long userId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator, boolean retrieveFromCache); /** * Returns the first message-boards message in the ordered set where groupId = ? and userId = ? and status = ?. * * @param groupId the group ID * @param userId the user ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByG_U_S_First(long groupId, long userId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the first message-boards message in the ordered set where groupId = ? and userId = ? and status = ?. * * @param groupId the group ID * @param userId the user ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByG_U_S_First(long groupId, long userId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the last message-boards message in the ordered set where groupId = ? and userId = ? and status = ?. * * @param groupId the group ID * @param userId the user ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByG_U_S_Last(long groupId, long userId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the last message-boards message in the ordered set where groupId = ? and userId = ? and status = ?. * * @param groupId the group ID * @param userId the user ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByG_U_S_Last(long groupId, long userId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ? and userId = ? and status = ?. * * @param messageId the primary key of the current message-boards message * @param groupId the group ID * @param userId the user ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] findByG_U_S_PrevAndNext(long messageId, long groupId, long userId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns all the message-boards messages that the user has permission to view where groupId = ? and userId = ? and status = ?. * * @param groupId the group ID * @param userId the user ID * @param status the status * @return the matching message-boards messages that the user has permission to view */ public java.util.List<MBMessage> filterFindByG_U_S(long groupId, long userId, int status); /** * Returns a range of all the message-boards messages that the user has permission to view where groupId = ? and userId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param userId the user ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages that the user has permission to view */ public java.util.List<MBMessage> filterFindByG_U_S(long groupId, long userId, int status, int start, int end); /** * Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = ? and userId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param userId the user ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages that the user has permission to view */ public java.util.List<MBMessage> filterFindByG_U_S(long groupId, long userId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> 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 = ?. * * @param messageId the primary key of the current message-boards message * @param groupId the group ID * @param userId the user ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] filterFindByG_U_S_PrevAndNext(long messageId, long groupId, long userId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Removes all the message-boards messages where groupId = ? and userId = ? and status = ? from the database. * * @param groupId the group ID * @param userId the user ID * @param status the status */ public void removeByG_U_S(long groupId, long userId, int status); /** * Returns the number of message-boards messages where groupId = ? and userId = ? and status = ?. * * @param groupId the group ID * @param userId the user ID * @param status the status * @return the number of matching message-boards messages */ public int countByG_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 = ?. * * @param groupId the group ID * @param userId the user ID * @param status the status * @return the number of matching message-boards messages that the user has permission to view */ public int filterCountByG_U_S(long groupId, long userId, int status); /** * Returns all the message-boards messages where groupId = ? and categoryId = ? and threadId = ?. * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @return the matching message-boards messages */ public java.util.List<MBMessage> findByG_C_T(long groupId, long categoryId, long threadId); /** * Returns a range of all the message-boards messages where groupId = ? and categoryId = ? and threadId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages */ public java.util.List<MBMessage> findByG_C_T(long groupId, long categoryId, long threadId, int start, int end); /** * Returns an ordered range of all the message-boards messages where groupId = ? and categoryId = ? and threadId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByG_C_T(long groupId, long categoryId, long threadId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns an ordered range of all the message-boards messages where groupId = ? and categoryId = ? and threadId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByG_C_T(long groupId, long categoryId, long threadId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator, boolean retrieveFromCache); /** * Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ?. * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByG_C_T_First(long groupId, long categoryId, long threadId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ?. * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByG_C_T_First(long groupId, long categoryId, long threadId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ?. * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByG_C_T_Last(long groupId, long categoryId, long threadId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ?. * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByG_C_T_Last(long groupId, long categoryId, long threadId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ?. * * @param messageId the primary key of the current message-boards message * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] findByG_C_T_PrevAndNext(long messageId, long groupId, long categoryId, long threadId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ?. * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @return the matching message-boards messages that the user has permission to view */ public java.util.List<MBMessage> filterFindByG_C_T(long groupId, long categoryId, long threadId); /** * Returns a range of all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages that the user has permission to view */ public java.util.List<MBMessage> filterFindByG_C_T(long groupId, long categoryId, long threadId, int start, int end); /** * Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = ? and categoryId = ? and threadId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages that the user has permission to view */ public java.util.List<MBMessage> filterFindByG_C_T(long groupId, long categoryId, long threadId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> 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 = ?. * * @param messageId the primary key of the current message-boards message * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] filterFindByG_C_T_PrevAndNext(long messageId, long groupId, long categoryId, long threadId, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Removes all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? from the database. * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID */ public void removeByG_C_T(long groupId, long categoryId, long threadId); /** * Returns the number of message-boards messages where groupId = ? and categoryId = ? and threadId = ?. * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @return the number of matching message-boards messages */ public int countByG_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 = ?. * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @return the number of matching message-boards messages that the user has permission to view */ public int filterCountByG_C_T(long groupId, long categoryId, long threadId); /** * Returns all the message-boards messages where groupId = ? and categoryId = ? and status = ?. * * @param groupId the group ID * @param categoryId the category ID * @param status the status * @return the matching message-boards messages */ public java.util.List<MBMessage> findByG_C_S(long groupId, long categoryId, int status); /** * Returns a range of all the message-boards messages where groupId = ? and categoryId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param categoryId the category ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages */ public java.util.List<MBMessage> findByG_C_S(long groupId, long categoryId, int status, int start, int end); /** * Returns an ordered range of all the message-boards messages where groupId = ? and categoryId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param categoryId the category ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByG_C_S(long groupId, long categoryId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns an ordered range of all the message-boards messages where groupId = ? and categoryId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param categoryId the category ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByG_C_S(long groupId, long categoryId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator, boolean retrieveFromCache); /** * Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ? and status = ?. * * @param groupId the group ID * @param categoryId the category ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByG_C_S_First(long groupId, long categoryId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ? and status = ?. * * @param groupId the group ID * @param categoryId the category ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByG_C_S_First(long groupId, long categoryId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ? and status = ?. * * @param groupId the group ID * @param categoryId the category ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByG_C_S_Last(long groupId, long categoryId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ? and status = ?. * * @param groupId the group ID * @param categoryId the category ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByG_C_S_Last(long groupId, long categoryId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ? and categoryId = ? and status = ?. * * @param messageId the primary key of the current message-boards message * @param groupId the group ID * @param categoryId the category ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] findByG_C_S_PrevAndNext(long messageId, long groupId, long categoryId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and status = ?. * * @param groupId the group ID * @param categoryId the category ID * @param status the status * @return the matching message-boards messages that the user has permission to view */ public java.util.List<MBMessage> filterFindByG_C_S(long groupId, long categoryId, int status); /** * Returns a range of all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param categoryId the category ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages that the user has permission to view */ public java.util.List<MBMessage> filterFindByG_C_S(long groupId, long categoryId, int status, int start, int end); /** * Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = ? and categoryId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param categoryId the category ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages that the user has permission to view */ public java.util.List<MBMessage> filterFindByG_C_S(long groupId, long categoryId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> 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 = ?. * * @param messageId the primary key of the current message-boards message * @param groupId the group ID * @param categoryId the category ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] filterFindByG_C_S_PrevAndNext(long messageId, long groupId, long categoryId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Removes all the message-boards messages where groupId = ? and categoryId = ? and status = ? from the database. * * @param groupId the group ID * @param categoryId the category ID * @param status the status */ public void removeByG_C_S(long groupId, long categoryId, int status); /** * Returns the number of message-boards messages where groupId = ? and categoryId = ? and status = ?. * * @param groupId the group ID * @param categoryId the category ID * @param status the status * @return the number of matching message-boards messages */ public int countByG_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 = ?. * * @param groupId the group ID * @param categoryId the category ID * @param status the status * @return the number of matching message-boards messages that the user has permission to view */ public int filterCountByG_C_S(long groupId, long categoryId, int status); /** * Returns all the message-boards messages where userId = ? and classNameId = ? and classPK = ?. * * @param userId the user ID * @param classNameId the class name ID * @param classPK the class pk * @return the matching message-boards messages */ public java.util.List<MBMessage> findByU_C_C(long userId, long classNameId, long classPK); /** * Returns a range of all the message-boards messages where userId = ? and classNameId = ? and classPK = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param userId the user ID * @param classNameId the class name ID * @param classPK the class pk * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages */ public java.util.List<MBMessage> findByU_C_C(long userId, long classNameId, long classPK, int start, int end); /** * Returns an ordered range of all the message-boards messages where userId = ? and classNameId = ? and classPK = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param userId the user ID * @param classNameId the class name ID * @param classPK the class pk * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByU_C_C(long userId, long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns an ordered range of all the message-boards messages where userId = ? and classNameId = ? and classPK = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param userId the user ID * @param classNameId the class name ID * @param classPK the class pk * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByU_C_C(long userId, long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator, boolean retrieveFromCache); /** * Returns the first message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ?. * * @param userId the user ID * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByU_C_C_First(long userId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the first message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ?. * * @param userId the user ID * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByU_C_C_First(long userId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the last message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ?. * * @param userId the user ID * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByU_C_C_Last(long userId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the last message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ?. * * @param userId the user ID * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByU_C_C_Last(long userId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the message-boards messages before and after the current message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ?. * * @param messageId the primary key of the current message-boards message * @param userId the user ID * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] findByU_C_C_PrevAndNext(long messageId, long userId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Removes all the message-boards messages where userId = ? and classNameId = ? and classPK = ? from the database. * * @param userId the user ID * @param classNameId the class name ID * @param classPK the class pk */ public void removeByU_C_C(long userId, long classNameId, long classPK); /** * Returns the number of message-boards messages where userId = ? and classNameId = ? and classPK = ?. * * @param userId the user ID * @param classNameId the class name ID * @param classPK the class pk * @return the number of matching message-boards messages */ public int countByU_C_C(long userId, long classNameId, long classPK); /** * Returns all the message-boards messages where userId = ? and classNameId = ? and status = ?. * * @param userId the user ID * @param classNameId the class name ID * @param status the status * @return the matching message-boards messages */ public java.util.List<MBMessage> findByU_C_S(long userId, long classNameId, int status); /** * Returns a range of all the message-boards messages where userId = ? and classNameId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param userId the user ID * @param classNameId the class name ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages */ public java.util.List<MBMessage> findByU_C_S(long userId, long classNameId, int status, int start, int end); /** * Returns an ordered range of all the message-boards messages where userId = ? and classNameId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param userId the user ID * @param classNameId the class name ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByU_C_S(long userId, long classNameId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns an ordered range of all the message-boards messages where userId = ? and classNameId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param userId the user ID * @param classNameId the class name ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByU_C_S(long userId, long classNameId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator, boolean retrieveFromCache); /** * Returns the first message-boards message in the ordered set where userId = ? and classNameId = ? and status = ?. * * @param userId the user ID * @param classNameId the class name ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByU_C_S_First(long userId, long classNameId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the first message-boards message in the ordered set where userId = ? and classNameId = ? and status = ?. * * @param userId the user ID * @param classNameId the class name ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByU_C_S_First(long userId, long classNameId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the last message-boards message in the ordered set where userId = ? and classNameId = ? and status = ?. * * @param userId the user ID * @param classNameId the class name ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByU_C_S_Last(long userId, long classNameId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the last message-boards message in the ordered set where userId = ? and classNameId = ? and status = ?. * * @param userId the user ID * @param classNameId the class name ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByU_C_S_Last(long userId, long classNameId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the message-boards messages before and after the current message-boards message in the ordered set where userId = ? and classNameId = ? and status = ?. * * @param messageId the primary key of the current message-boards message * @param userId the user ID * @param classNameId the class name ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] findByU_C_S_PrevAndNext(long messageId, long userId, long classNameId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns all the message-boards messages where userId = ? and classNameId = any ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param userId the user ID * @param classNameIds the class name IDs * @param status the status * @return the matching message-boards messages */ public java.util.List<MBMessage> findByU_C_S(long userId, long[] classNameIds, int status); /** * Returns a range of all the message-boards messages where userId = ? and classNameId = any ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param userId the user ID * @param classNameIds the class name IDs * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages */ public java.util.List<MBMessage> findByU_C_S(long userId, long[] classNameIds, int status, int start, int end); /** * Returns an ordered range of all the message-boards messages where userId = ? and classNameId = any ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param userId the user ID * @param classNameIds the class name IDs * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByU_C_S(long userId, long[] classNameIds, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns an ordered range of all the message-boards messages where userId = ? and classNameId = ? and status = ?, optionally using the finder cache. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param userId the user ID * @param classNameId the class name ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByU_C_S(long userId, long[] classNameIds, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator, boolean retrieveFromCache); /** * Removes all the message-boards messages where userId = ? and classNameId = ? and status = ? from the database. * * @param userId the user ID * @param classNameId the class name ID * @param status the status */ public void removeByU_C_S(long userId, long classNameId, int status); /** * Returns the number of message-boards messages where userId = ? and classNameId = ? and status = ?. * * @param userId the user ID * @param classNameId the class name ID * @param status the status * @return the number of matching message-boards messages */ public int countByU_C_S(long userId, long classNameId, int status); /** * Returns the number of message-boards messages where userId = ? and classNameId = any ? and status = ?. * * @param userId the user ID * @param classNameIds the class name IDs * @param status the status * @return the number of matching message-boards messages */ public int countByU_C_S(long userId, long[] classNameIds, int status); /** * Returns all the message-boards messages where classNameId = ? and classPK = ? and status = ?. * * @param classNameId the class name ID * @param classPK the class pk * @param status the status * @return the matching message-boards messages */ public java.util.List<MBMessage> findByC_C_S(long classNameId, long classPK, int status); /** * Returns a range of all the message-boards messages where classNameId = ? and classPK = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param classNameId the class name ID * @param classPK the class pk * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages */ public java.util.List<MBMessage> findByC_C_S(long classNameId, long classPK, int status, int start, int end); /** * Returns an ordered range of all the message-boards messages where classNameId = ? and classPK = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param classNameId the class name ID * @param classPK the class pk * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByC_C_S(long classNameId, long classPK, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns an ordered range of all the message-boards messages where classNameId = ? and classPK = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param classNameId the class name ID * @param classPK the class pk * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByC_C_S(long classNameId, long classPK, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator, boolean retrieveFromCache); /** * Returns the first message-boards message in the ordered set where classNameId = ? and classPK = ? and status = ?. * * @param classNameId the class name ID * @param classPK the class pk * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByC_C_S_First(long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the first message-boards message in the ordered set where classNameId = ? and classPK = ? and status = ?. * * @param classNameId the class name ID * @param classPK the class pk * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByC_C_S_First(long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the last message-boards message in the ordered set where classNameId = ? and classPK = ? and status = ?. * * @param classNameId the class name ID * @param classPK the class pk * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByC_C_S_Last(long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the last message-boards message in the ordered set where classNameId = ? and classPK = ? and status = ?. * * @param classNameId the class name ID * @param classPK the class pk * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByC_C_S_Last(long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the message-boards messages before and after the current message-boards message in the ordered set where classNameId = ? and classPK = ? and status = ?. * * @param messageId the primary key of the current message-boards message * @param classNameId the class name ID * @param classPK the class pk * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] findByC_C_S_PrevAndNext(long messageId, long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Removes all the message-boards messages where classNameId = ? and classPK = ? and status = ? from the database. * * @param classNameId the class name ID * @param classPK the class pk * @param status the status */ public void removeByC_C_S(long classNameId, long classPK, int status); /** * Returns the number of message-boards messages where classNameId = ? and classPK = ? and status = ?. * * @param classNameId the class name ID * @param classPK the class pk * @param status the status * @return the number of matching message-boards messages */ public int countByC_C_S(long classNameId, long classPK, int status); /** * Returns all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and answer = ?. * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param answer the answer * @return the matching message-boards messages */ public java.util.List<MBMessage> findByG_C_T_A(long groupId, long categoryId, long threadId, boolean answer); /** * Returns a range of all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and answer = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param answer the answer * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages */ public java.util.List<MBMessage> findByG_C_T_A(long groupId, long categoryId, long threadId, boolean answer, int start, int end); /** * Returns an ordered range of all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and answer = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param answer the answer * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByG_C_T_A(long groupId, long categoryId, long threadId, boolean answer, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns an ordered range of all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and answer = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param answer the answer * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByG_C_T_A(long groupId, long categoryId, long threadId, boolean answer, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator, boolean retrieveFromCache); /** * Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and answer = ?. * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param answer the answer * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByG_C_T_A_First(long groupId, long categoryId, long threadId, boolean answer, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and answer = ?. * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param answer the answer * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByG_C_T_A_First(long groupId, long categoryId, long threadId, boolean answer, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and answer = ?. * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param answer the answer * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByG_C_T_A_Last(long groupId, long categoryId, long threadId, boolean answer, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and answer = ?. * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param answer the answer * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByG_C_T_A_Last(long groupId, long categoryId, long threadId, boolean answer, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> 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 = ?. * * @param messageId the primary key of the current message-boards message * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param answer the answer * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] findByG_C_T_A_PrevAndNext(long messageId, long groupId, long categoryId, long threadId, boolean answer, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ? and answer = ?. * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param answer the answer * @return the matching message-boards messages that the user has permission to view */ public java.util.List<MBMessage> filterFindByG_C_T_A(long groupId, long categoryId, long threadId, boolean answer); /** * Returns a range of all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ? and answer = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param answer the answer * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages that the user has permission to view */ public java.util.List<MBMessage> filterFindByG_C_T_A(long groupId, long categoryId, long threadId, boolean answer, int start, int end); /** * 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 = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param answer the answer * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages that the user has permission to view */ public java.util.List<MBMessage> filterFindByG_C_T_A(long groupId, long categoryId, long threadId, boolean answer, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> 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 = ?. * * @param messageId the primary key of the current message-boards message * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param answer the answer * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] filterFindByG_C_T_A_PrevAndNext(long messageId, long groupId, long categoryId, long threadId, boolean answer, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Removes all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and answer = ? from the database. * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param answer the answer */ public void removeByG_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 = ?. * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param answer the answer * @return the number of matching message-boards messages */ public int countByG_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 = ?. * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param answer the answer * @return the number of matching message-boards messages that the user has permission to view */ public int filterCountByG_C_T_A(long groupId, long categoryId, long threadId, boolean answer); /** * Returns all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and status = ?. * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param status the status * @return the matching message-boards messages */ public java.util.List<MBMessage> findByG_C_T_S(long groupId, long categoryId, long threadId, int status); /** * Returns a range of all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages */ public java.util.List<MBMessage> findByG_C_T_S(long groupId, long categoryId, long threadId, int status, int start, int end); /** * Returns an ordered range of all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByG_C_T_S(long groupId, long categoryId, long threadId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns an ordered range of all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByG_C_T_S(long groupId, long categoryId, long threadId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator, boolean retrieveFromCache); /** * Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and status = ?. * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByG_C_T_S_First(long groupId, long categoryId, long threadId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and status = ?. * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByG_C_T_S_First(long groupId, long categoryId, long threadId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and status = ?. * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByG_C_T_S_Last(long groupId, long categoryId, long threadId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and status = ?. * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByG_C_T_S_Last(long groupId, long categoryId, long threadId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> 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 = ?. * * @param messageId the primary key of the current message-boards message * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] findByG_C_T_S_PrevAndNext(long messageId, long groupId, long categoryId, long threadId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ? and status = ?. * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param status the status * @return the matching message-boards messages that the user has permission to view */ public java.util.List<MBMessage> filterFindByG_C_T_S(long groupId, long categoryId, long threadId, int status); /** * Returns a range of all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages that the user has permission to view */ public java.util.List<MBMessage> filterFindByG_C_T_S(long groupId, long categoryId, long threadId, int status, int start, int end); /** * 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 = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages that the user has permission to view */ public java.util.List<MBMessage> filterFindByG_C_T_S(long groupId, long categoryId, long threadId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> 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 = ?. * * @param messageId the primary key of the current message-boards message * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] filterFindByG_C_T_S_PrevAndNext(long messageId, long groupId, long categoryId, long threadId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Removes all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and status = ? from the database. * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param status the status */ public void removeByG_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 = ?. * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param status the status * @return the number of matching message-boards messages */ public int countByG_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 = ?. * * @param groupId the group ID * @param categoryId the category ID * @param threadId the thread ID * @param status the status * @return the number of matching message-boards messages that the user has permission to view */ public int filterCountByG_C_T_S(long groupId, long categoryId, long threadId, int status); /** * Returns all the message-boards messages where userId = ? and classNameId = ? and classPK = ? and status = ?. * * @param userId the user ID * @param classNameId the class name ID * @param classPK the class pk * @param status the status * @return the matching message-boards messages */ public java.util.List<MBMessage> findByU_C_C_S(long userId, long classNameId, long classPK, int status); /** * Returns a range of all the message-boards messages where userId = ? and classNameId = ? and classPK = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param userId the user ID * @param classNameId the class name ID * @param classPK the class pk * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of matching message-boards messages */ public java.util.List<MBMessage> findByU_C_C_S(long userId, long classNameId, long classPK, int status, int start, int end); /** * Returns an ordered range of all the message-boards messages where userId = ? and classNameId = ? and classPK = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param userId the user ID * @param classNameId the class name ID * @param classPK the class pk * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByU_C_C_S(long userId, long classNameId, long classPK, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns an ordered range of all the message-boards messages where userId = ? and classNameId = ? and classPK = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param userId the user ID * @param classNameId the class name ID * @param classPK the class pk * @param status the status * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching message-boards messages */ public java.util.List<MBMessage> findByU_C_C_S(long userId, long classNameId, long classPK, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator, boolean retrieveFromCache); /** * Returns the first message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ? and status = ?. * * @param userId the user ID * @param classNameId the class name ID * @param classPK the class pk * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByU_C_C_S_First(long userId, long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the first message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ? and status = ?. * * @param userId the user ID * @param classNameId the class name ID * @param classPK the class pk * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByU_C_C_S_First(long userId, long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns the last message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ? and status = ?. * * @param userId the user ID * @param classNameId the class name ID * @param classPK the class pk * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message * @throws NoSuchMessageException if a matching message-boards message could not be found */ public MBMessage findByU_C_C_S_Last(long userId, long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Returns the last message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ? and status = ?. * * @param userId the user ID * @param classNameId the class name ID * @param classPK the class pk * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found */ public MBMessage fetchByU_C_C_S_Last(long userId, long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> 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 = ?. * * @param messageId the primary key of the current message-boards message * @param userId the user ID * @param classNameId the class name ID * @param classPK the class pk * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage[] findByU_C_C_S_PrevAndNext(long messageId, long userId, long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) throws NoSuchMessageException; /** * Removes all the message-boards messages where userId = ? and classNameId = ? and classPK = ? and status = ? from the database. * * @param userId the user ID * @param classNameId the class name ID * @param classPK the class pk * @param status the status */ public void removeByU_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 = ?. * * @param userId the user ID * @param classNameId the class name ID * @param classPK the class pk * @param status the status * @return the number of matching message-boards messages */ public int countByU_C_C_S(long userId, long classNameId, long classPK, int status); /** * Caches the message-boards message in the entity cache if it is enabled. * * @param mbMessage the message-boards message */ public void cacheResult(MBMessage mbMessage); /** * Caches the message-boards messages in the entity cache if it is enabled. * * @param mbMessages the message-boards messages */ public void cacheResult(java.util.List<MBMessage> mbMessages); /** * Creates a new message-boards message with the primary key. Does not add the message-boards message to the database. * * @param messageId the primary key for the new message-boards message * @return the new message-boards message */ public MBMessage create(long messageId); /** * Removes the message-boards message with the primary key from the database. Also notifies the appropriate model listeners. * * @param messageId the primary key of the message-boards message * @return the message-boards message that was removed * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage remove(long messageId) throws NoSuchMessageException; public MBMessage updateImpl(MBMessage mbMessage); /** * Returns the message-boards message with the primary key or throws a {@link NoSuchMessageException} if it could not be found. * * @param messageId the primary key of the message-boards message * @return the message-boards message * @throws NoSuchMessageException if a message-boards message with the primary key could not be found */ public MBMessage findByPrimaryKey(long messageId) throws NoSuchMessageException; /** * Returns the message-boards message with the primary key or returns <code>null</code> if it could not be found. * * @param messageId the primary key of the message-boards message * @return the message-boards message, or <code>null</code> if a message-boards message with the primary key could not be found */ public MBMessage fetchByPrimaryKey(long messageId); @Override public java.util.Map<java.io.Serializable, MBMessage> fetchByPrimaryKeys( java.util.Set<java.io.Serializable> primaryKeys); /** * Returns all the message-boards messages. * * @return the message-boards messages */ public java.util.List<MBMessage> findAll(); /** * Returns a range of all the message-boards messages. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @return the range of message-boards messages */ public java.util.List<MBMessage> findAll(int start, int end); /** * Returns an ordered range of all the message-boards messages. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of message-boards messages */ public java.util.List<MBMessage> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator); /** * Returns an ordered range of all the message-boards messages. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMessageModelImpl}. If both <code>orderByComparator</code> 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. * </p> * * @param start the lower bound of the range of message-boards messages * @param end the upper bound of the range of message-boards messages (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of message-boards messages */ public java.util.List<MBMessage> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator, boolean retrieveFromCache); /** * Removes all the message-boards messages from the database. */ public void removeAll(); /** * Returns the number of message-boards messages. * * @return the number of message-boards messages */ public int countAll(); @Override public java.util.Set<java.lang.String> getBadColumnNames(); }