/** * 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.NoSuchThreadException; import com.liferay.message.boards.kernel.model.MBThread; import com.liferay.portal.kernel.service.persistence.BasePersistence; import java.util.Date; /** * The persistence interface for the message boards thread 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.MBThreadPersistenceImpl * @see MBThreadUtil * @generated */ @ProviderType public interface MBThreadPersistence extends BasePersistence<MBThread> { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link MBThreadUtil} to access the message boards thread persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. */ /** * Returns all the message boards threads where uuid = ?. * * @param uuid the uuid * @return the matching message boards threads */ public java.util.List<MBThread> findByUuid(java.lang.String uuid); /** * Returns a range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @return the range of matching message boards threads */ public java.util.List<MBThread> findByUuid(java.lang.String uuid, int start, int end); /** * Returns an ordered range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message boards threads */ public java.util.List<MBThread> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns an ordered range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (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 threads */ public java.util.List<MBThread> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator, boolean retrieveFromCache); /** * Returns the first message boards thread 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 thread * @throws NoSuchThreadException if a matching message boards thread could not be found */ public MBThread findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns the first message boards thread 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 thread, or <code>null</code> if a matching message boards thread could not be found */ public MBThread fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the last message boards thread 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 thread * @throws NoSuchThreadException if a matching message boards thread could not be found */ public MBThread findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns the last message boards thread 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 thread, or <code>null</code> if a matching message boards thread could not be found */ public MBThread fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the message boards threads before and after the current message boards thread in the ordered set where uuid = ?. * * @param threadId the primary key of the current message boards thread * @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 thread * @throws NoSuchThreadException if a message boards thread with the primary key could not be found */ public MBThread[] findByUuid_PrevAndNext(long threadId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Removes all the message boards threads where uuid = ? from the database. * * @param uuid the uuid */ public void removeByUuid(java.lang.String uuid); /** * Returns the number of message boards threads where uuid = ?. * * @param uuid the uuid * @return the number of matching message boards threads */ public int countByUuid(java.lang.String uuid); /** * Returns the message boards thread where uuid = ? and groupId = ? or throws a {@link NoSuchThreadException} if it could not be found. * * @param uuid the uuid * @param groupId the group ID * @return the matching message boards thread * @throws NoSuchThreadException if a matching message boards thread could not be found */ public MBThread findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchThreadException; /** * Returns the message boards thread 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 thread, or <code>null</code> if a matching message boards thread could not be found */ public MBThread fetchByUUID_G(java.lang.String uuid, long groupId); /** * Returns the message boards thread 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 thread, or <code>null</code> if a matching message boards thread could not be found */ public MBThread fetchByUUID_G(java.lang.String uuid, long groupId, boolean retrieveFromCache); /** * Removes the message boards thread where uuid = ? and groupId = ? from the database. * * @param uuid the uuid * @param groupId the group ID * @return the message boards thread that was removed */ public MBThread removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchThreadException; /** * Returns the number of message boards threads where uuid = ? and groupId = ?. * * @param uuid the uuid * @param groupId the group ID * @return the number of matching message boards threads */ public int countByUUID_G(java.lang.String uuid, long groupId); /** * Returns all the message boards threads where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the matching message boards threads */ public java.util.List<MBThread> findByUuid_C(java.lang.String uuid, long companyId); /** * Returns a range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @return the range of matching message boards threads */ public java.util.List<MBThread> findByUuid_C(java.lang.String uuid, long companyId, int start, int end); /** * Returns an ordered range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message boards threads */ public java.util.List<MBThread> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns an ordered range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (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 threads */ public java.util.List<MBThread> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator, boolean retrieveFromCache); /** * Returns the first message boards thread 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 thread * @throws NoSuchThreadException if a matching message boards thread could not be found */ public MBThread findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns the first message boards thread 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 thread, or <code>null</code> if a matching message boards thread could not be found */ public MBThread fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the last message boards thread 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 thread * @throws NoSuchThreadException if a matching message boards thread could not be found */ public MBThread findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns the last message boards thread 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 thread, or <code>null</code> if a matching message boards thread could not be found */ public MBThread fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the message boards threads before and after the current message boards thread in the ordered set where uuid = ? and companyId = ?. * * @param threadId the primary key of the current message boards thread * @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 thread * @throws NoSuchThreadException if a message boards thread with the primary key could not be found */ public MBThread[] findByUuid_C_PrevAndNext(long threadId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Removes all the message boards threads 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 threads where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the number of matching message boards threads */ public int countByUuid_C(java.lang.String uuid, long companyId); /** * Returns all the message boards threads where groupId = ?. * * @param groupId the group ID * @return the matching message boards threads */ public java.util.List<MBThread> findByGroupId(long groupId); /** * Returns a range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @return the range of matching message boards threads */ public java.util.List<MBThread> findByGroupId(long groupId, int start, int end); /** * Returns an ordered range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message boards threads */ public java.util.List<MBThread> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns an ordered range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (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 threads */ public java.util.List<MBThread> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator, boolean retrieveFromCache); /** * Returns the first message boards thread 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 thread * @throws NoSuchThreadException if a matching message boards thread could not be found */ public MBThread findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns the first message boards thread 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 thread, or <code>null</code> if a matching message boards thread could not be found */ public MBThread fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the last message boards thread 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 thread * @throws NoSuchThreadException if a matching message boards thread could not be found */ public MBThread findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns the last message boards thread 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 thread, or <code>null</code> if a matching message boards thread could not be found */ public MBThread fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the message boards threads before and after the current message boards thread in the ordered set where groupId = ?. * * @param threadId the primary key of the current message boards thread * @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 thread * @throws NoSuchThreadException if a message boards thread with the primary key could not be found */ public MBThread[] findByGroupId_PrevAndNext(long threadId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns all the message boards threads that the user has permission to view where groupId = ?. * * @param groupId the group ID * @return the matching message boards threads that the user has permission to view */ public java.util.List<MBThread> filterFindByGroupId(long groupId); /** * Returns a range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @return the range of matching message boards threads that the user has permission to view */ public java.util.List<MBThread> filterFindByGroupId(long groupId, int start, int end); /** * Returns an ordered range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message boards threads that the user has permission to view */ public java.util.List<MBThread> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the message boards threads before and after the current message boards thread in the ordered set of message boards threads that the user has permission to view where groupId = ?. * * @param threadId the primary key of the current message boards thread * @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 thread * @throws NoSuchThreadException if a message boards thread with the primary key could not be found */ public MBThread[] filterFindByGroupId_PrevAndNext(long threadId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Removes all the message boards threads where groupId = ? from the database. * * @param groupId the group ID */ public void removeByGroupId(long groupId); /** * Returns the number of message boards threads where groupId = ?. * * @param groupId the group ID * @return the number of matching message boards threads */ public int countByGroupId(long groupId); /** * Returns the number of message boards threads that the user has permission to view where groupId = ?. * * @param groupId the group ID * @return the number of matching message boards threads that the user has permission to view */ public int filterCountByGroupId(long groupId); /** * Returns the message boards thread where rootMessageId = ? or throws a {@link NoSuchThreadException} if it could not be found. * * @param rootMessageId the root message ID * @return the matching message boards thread * @throws NoSuchThreadException if a matching message boards thread could not be found */ public MBThread findByRootMessageId(long rootMessageId) throws NoSuchThreadException; /** * Returns the message boards thread where rootMessageId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. * * @param rootMessageId the root message ID * @return the matching message boards thread, or <code>null</code> if a matching message boards thread could not be found */ public MBThread fetchByRootMessageId(long rootMessageId); /** * Returns the message boards thread where rootMessageId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. * * @param rootMessageId the root message ID * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching message boards thread, or <code>null</code> if a matching message boards thread could not be found */ public MBThread fetchByRootMessageId(long rootMessageId, boolean retrieveFromCache); /** * Removes the message boards thread where rootMessageId = ? from the database. * * @param rootMessageId the root message ID * @return the message boards thread that was removed */ public MBThread removeByRootMessageId(long rootMessageId) throws NoSuchThreadException; /** * Returns the number of message boards threads where rootMessageId = ?. * * @param rootMessageId the root message ID * @return the number of matching message boards threads */ public int countByRootMessageId(long rootMessageId); /** * Returns all the message boards threads where groupId = ? and categoryId = ?. * * @param groupId the group ID * @param categoryId the category ID * @return the matching message boards threads */ public java.util.List<MBThread> findByG_C(long groupId, long categoryId); /** * Returns a range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @return the range of matching message boards threads */ public java.util.List<MBThread> findByG_C(long groupId, long categoryId, int start, int end); /** * Returns an ordered range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message boards threads */ public java.util.List<MBThread> findByG_C(long groupId, long categoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns an ordered range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (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 threads */ public java.util.List<MBThread> findByG_C(long groupId, long categoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator, boolean retrieveFromCache); /** * Returns the first message boards thread 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 thread * @throws NoSuchThreadException if a matching message boards thread could not be found */ public MBThread findByG_C_First(long groupId, long categoryId, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns the first message boards thread 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 thread, or <code>null</code> if a matching message boards thread could not be found */ public MBThread fetchByG_C_First(long groupId, long categoryId, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the last message boards thread 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 thread * @throws NoSuchThreadException if a matching message boards thread could not be found */ public MBThread findByG_C_Last(long groupId, long categoryId, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns the last message boards thread 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 thread, or <code>null</code> if a matching message boards thread could not be found */ public MBThread fetchByG_C_Last(long groupId, long categoryId, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId = ?. * * @param threadId the primary key of the current message boards thread * @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 thread * @throws NoSuchThreadException if a message boards thread with the primary key could not be found */ public MBThread[] findByG_C_PrevAndNext(long threadId, long groupId, long categoryId, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns all the message boards threads 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 threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_C(long groupId, long categoryId); /** * Returns a range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @return the range of matching message boards threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_C(long groupId, long categoryId, int start, int end); /** * Returns an ordered range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message boards threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_C(long groupId, long categoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the message boards threads before and after the current message boards thread in the ordered set of message boards threads that the user has permission to view where groupId = ? and categoryId = ?. * * @param threadId the primary key of the current message boards thread * @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 thread * @throws NoSuchThreadException if a message boards thread with the primary key could not be found */ public MBThread[] filterFindByG_C_PrevAndNext(long threadId, long groupId, long categoryId, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns all the message boards threads that the user has permission to view where groupId = ? and categoryId = any ?. * * @param groupId the group ID * @param categoryIds the category IDs * @return the matching message boards threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_C(long groupId, long[] categoryIds); /** * Returns a range of all the message boards threads that the user has permission to view where groupId = ? and categoryId = 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 MBThreadModelImpl}. 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 categoryIds the category IDs * @param start the lower bound of the range of message boards threads * @param end the upper bound of the range of message boards threads (not inclusive) * @return the range of matching message boards threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_C(long groupId, long[] categoryIds, int start, int end); /** * Returns an ordered range of all the message boards threads that the user has permission to view where groupId = ? and categoryId = 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 MBThreadModelImpl}. 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 categoryIds the category IDs * @param start the lower bound of the range of message boards threads * @param end the upper bound of the range of message boards threads (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message boards threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_C(long groupId, long[] categoryIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns all the message boards threads where groupId = ? and categoryId = 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 MBThreadModelImpl}. 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 categoryIds the category IDs * @return the matching message boards threads */ public java.util.List<MBThread> findByG_C(long groupId, long[] categoryIds); /** * Returns a range of all the message boards threads where groupId = ? and categoryId = 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 MBThreadModelImpl}. 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 categoryIds the category IDs * @param start the lower bound of the range of message boards threads * @param end the upper bound of the range of message boards threads (not inclusive) * @return the range of matching message boards threads */ public java.util.List<MBThread> findByG_C(long groupId, long[] categoryIds, int start, int end); /** * Returns an ordered range of all the message boards threads where groupId = ? and categoryId = 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 MBThreadModelImpl}. 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 categoryIds the category IDs * @param start the lower bound of the range of message boards threads * @param end the upper bound of the range of message boards threads (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message boards threads */ public java.util.List<MBThread> findByG_C(long groupId, long[] categoryIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns an ordered range of all the message boards threads where groupId = ? and categoryId = ?, 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (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 threads */ public java.util.List<MBThread> findByG_C(long groupId, long[] categoryIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator, boolean retrieveFromCache); /** * Removes all the message boards threads 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 threads where groupId = ? and categoryId = ?. * * @param groupId the group ID * @param categoryId the category ID * @return the number of matching message boards threads */ public int countByG_C(long groupId, long categoryId); /** * Returns the number of message boards threads where groupId = ? and categoryId = any ?. * * @param groupId the group ID * @param categoryIds the category IDs * @return the number of matching message boards threads */ public int countByG_C(long groupId, long[] categoryIds); /** * Returns the number of message boards threads 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 threads that the user has permission to view */ public int filterCountByG_C(long groupId, long categoryId); /** * Returns the number of message boards threads that the user has permission to view where groupId = ? and categoryId = any ?. * * @param groupId the group ID * @param categoryIds the category IDs * @return the number of matching message boards threads that the user has permission to view */ public int filterCountByG_C(long groupId, long[] categoryIds); /** * Returns all the message boards threads where groupId = ? and categoryId ≠ ?. * * @param groupId the group ID * @param categoryId the category ID * @return the matching message boards threads */ public java.util.List<MBThread> findByG_NotC(long groupId, long categoryId); /** * Returns a range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @return the range of matching message boards threads */ public java.util.List<MBThread> findByG_NotC(long groupId, long categoryId, int start, int end); /** * Returns an ordered range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message boards threads */ public java.util.List<MBThread> findByG_NotC(long groupId, long categoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns an ordered range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (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 threads */ public java.util.List<MBThread> findByG_NotC(long groupId, long categoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator, boolean retrieveFromCache); /** * Returns the first message boards thread 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 thread * @throws NoSuchThreadException if a matching message boards thread could not be found */ public MBThread findByG_NotC_First(long groupId, long categoryId, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns the first message boards thread 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 thread, or <code>null</code> if a matching message boards thread could not be found */ public MBThread fetchByG_NotC_First(long groupId, long categoryId, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the last message boards thread 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 thread * @throws NoSuchThreadException if a matching message boards thread could not be found */ public MBThread findByG_NotC_Last(long groupId, long categoryId, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns the last message boards thread 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 thread, or <code>null</code> if a matching message boards thread could not be found */ public MBThread fetchByG_NotC_Last(long groupId, long categoryId, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId ≠ ?. * * @param threadId the primary key of the current message boards thread * @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 thread * @throws NoSuchThreadException if a message boards thread with the primary key could not be found */ public MBThread[] findByG_NotC_PrevAndNext(long threadId, long groupId, long categoryId, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns all the message boards threads 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 threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_NotC(long groupId, long categoryId); /** * Returns a range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @return the range of matching message boards threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_NotC(long groupId, long categoryId, int start, int end); /** * Returns an ordered range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message boards threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_NotC(long groupId, long categoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the message boards threads before and after the current message boards thread in the ordered set of message boards threads that the user has permission to view where groupId = ? and categoryId ≠ ?. * * @param threadId the primary key of the current message boards thread * @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 thread * @throws NoSuchThreadException if a message boards thread with the primary key could not be found */ public MBThread[] filterFindByG_NotC_PrevAndNext(long threadId, long groupId, long categoryId, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Removes all the message boards threads where groupId = ? and categoryId ≠ ? from the database. * * @param groupId the group ID * @param categoryId the category ID */ public void removeByG_NotC(long groupId, long categoryId); /** * Returns the number of message boards threads where groupId = ? and categoryId ≠ ?. * * @param groupId the group ID * @param categoryId the category ID * @return the number of matching message boards threads */ public int countByG_NotC(long groupId, long categoryId); /** * Returns the number of message boards threads 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 threads that the user has permission to view */ public int filterCountByG_NotC(long groupId, long categoryId); /** * Returns all the message boards threads where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @return the matching message boards threads */ public java.util.List<MBThread> findByG_S(long groupId, int status); /** * Returns a range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @return the range of matching message boards threads */ public java.util.List<MBThread> findByG_S(long groupId, int status, int start, int end); /** * Returns an ordered range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message boards threads */ public java.util.List<MBThread> findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns an ordered range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (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 threads */ public java.util.List<MBThread> findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator, boolean retrieveFromCache); /** * Returns the first message boards thread 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 thread * @throws NoSuchThreadException if a matching message boards thread could not be found */ public MBThread findByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns the first message boards thread 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 thread, or <code>null</code> if a matching message boards thread could not be found */ public MBThread fetchByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the last message boards thread 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 thread * @throws NoSuchThreadException if a matching message boards thread could not be found */ public MBThread findByG_S_Last(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns the last message boards thread 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 thread, or <code>null</code> if a matching message boards thread could not be found */ public MBThread fetchByG_S_Last(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and status = ?. * * @param threadId the primary key of the current message boards thread * @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 thread * @throws NoSuchThreadException if a message boards thread with the primary key could not be found */ public MBThread[] findByG_S_PrevAndNext(long threadId, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns all the message boards threads 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 threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_S(long groupId, int status); /** * Returns a range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @return the range of matching message boards threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_S(long groupId, int status, int start, int end); /** * Returns an ordered range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message boards threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the message boards threads before and after the current message boards thread in the ordered set of message boards threads that the user has permission to view where groupId = ? and status = ?. * * @param threadId the primary key of the current message boards thread * @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 thread * @throws NoSuchThreadException if a message boards thread with the primary key could not be found */ public MBThread[] filterFindByG_S_PrevAndNext(long threadId, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Removes all the message boards threads 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 threads where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @return the number of matching message boards threads */ public int countByG_S(long groupId, int status); /** * Returns the number of message boards threads 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 threads that the user has permission to view */ public int filterCountByG_S(long groupId, int status); /** * Returns all the message boards threads where categoryId = ? and priority = ?. * * @param categoryId the category ID * @param priority the priority * @return the matching message boards threads */ public java.util.List<MBThread> findByC_P(long categoryId, double priority); /** * Returns a range of all the message boards threads where categoryId = ? and priority = ?. * * <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 MBThreadModelImpl}. 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 categoryId the category ID * @param priority the priority * @param start the lower bound of the range of message boards threads * @param end the upper bound of the range of message boards threads (not inclusive) * @return the range of matching message boards threads */ public java.util.List<MBThread> findByC_P(long categoryId, double priority, int start, int end); /** * Returns an ordered range of all the message boards threads where categoryId = ? and priority = ?. * * <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 MBThreadModelImpl}. 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 categoryId the category ID * @param priority the priority * @param start the lower bound of the range of message boards threads * @param end the upper bound of the range of message boards threads (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message boards threads */ public java.util.List<MBThread> findByC_P(long categoryId, double priority, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns an ordered range of all the message boards threads where categoryId = ? and priority = ?. * * <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 MBThreadModelImpl}. 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 categoryId the category ID * @param priority the priority * @param start the lower bound of the range of message boards threads * @param end the upper bound of the range of message boards threads (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 threads */ public java.util.List<MBThread> findByC_P(long categoryId, double priority, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator, boolean retrieveFromCache); /** * Returns the first message boards thread in the ordered set where categoryId = ? and priority = ?. * * @param categoryId the category ID * @param priority the priority * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message boards thread * @throws NoSuchThreadException if a matching message boards thread could not be found */ public MBThread findByC_P_First(long categoryId, double priority, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns the first message boards thread in the ordered set where categoryId = ? and priority = ?. * * @param categoryId the category ID * @param priority the priority * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message boards thread, or <code>null</code> if a matching message boards thread could not be found */ public MBThread fetchByC_P_First(long categoryId, double priority, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the last message boards thread in the ordered set where categoryId = ? and priority = ?. * * @param categoryId the category ID * @param priority the priority * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message boards thread * @throws NoSuchThreadException if a matching message boards thread could not be found */ public MBThread findByC_P_Last(long categoryId, double priority, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns the last message boards thread in the ordered set where categoryId = ? and priority = ?. * * @param categoryId the category ID * @param priority the priority * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message boards thread, or <code>null</code> if a matching message boards thread could not be found */ public MBThread fetchByC_P_Last(long categoryId, double priority, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the message boards threads before and after the current message boards thread in the ordered set where categoryId = ? and priority = ?. * * @param threadId the primary key of the current message boards thread * @param categoryId the category ID * @param priority the priority * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message boards thread * @throws NoSuchThreadException if a message boards thread with the primary key could not be found */ public MBThread[] findByC_P_PrevAndNext(long threadId, long categoryId, double priority, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Removes all the message boards threads where categoryId = ? and priority = ? from the database. * * @param categoryId the category ID * @param priority the priority */ public void removeByC_P(long categoryId, double priority); /** * Returns the number of message boards threads where categoryId = ? and priority = ?. * * @param categoryId the category ID * @param priority the priority * @return the number of matching message boards threads */ public int countByC_P(long categoryId, double priority); /** * Returns all the message boards threads where lastPostDate = ? and priority = ?. * * @param lastPostDate the last post date * @param priority the priority * @return the matching message boards threads */ public java.util.List<MBThread> findByL_P(Date lastPostDate, double priority); /** * Returns a range of all the message boards threads where lastPostDate = ? and priority = ?. * * <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 MBThreadModelImpl}. 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 lastPostDate the last post date * @param priority the priority * @param start the lower bound of the range of message boards threads * @param end the upper bound of the range of message boards threads (not inclusive) * @return the range of matching message boards threads */ public java.util.List<MBThread> findByL_P(Date lastPostDate, double priority, int start, int end); /** * Returns an ordered range of all the message boards threads where lastPostDate = ? and priority = ?. * * <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 MBThreadModelImpl}. 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 lastPostDate the last post date * @param priority the priority * @param start the lower bound of the range of message boards threads * @param end the upper bound of the range of message boards threads (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message boards threads */ public java.util.List<MBThread> findByL_P(Date lastPostDate, double priority, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns an ordered range of all the message boards threads where lastPostDate = ? and priority = ?. * * <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 MBThreadModelImpl}. 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 lastPostDate the last post date * @param priority the priority * @param start the lower bound of the range of message boards threads * @param end the upper bound of the range of message boards threads (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 threads */ public java.util.List<MBThread> findByL_P(Date lastPostDate, double priority, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator, boolean retrieveFromCache); /** * Returns the first message boards thread in the ordered set where lastPostDate = ? and priority = ?. * * @param lastPostDate the last post date * @param priority the priority * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message boards thread * @throws NoSuchThreadException if a matching message boards thread could not be found */ public MBThread findByL_P_First(Date lastPostDate, double priority, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns the first message boards thread in the ordered set where lastPostDate = ? and priority = ?. * * @param lastPostDate the last post date * @param priority the priority * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message boards thread, or <code>null</code> if a matching message boards thread could not be found */ public MBThread fetchByL_P_First(Date lastPostDate, double priority, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the last message boards thread in the ordered set where lastPostDate = ? and priority = ?. * * @param lastPostDate the last post date * @param priority the priority * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message boards thread * @throws NoSuchThreadException if a matching message boards thread could not be found */ public MBThread findByL_P_Last(Date lastPostDate, double priority, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns the last message boards thread in the ordered set where lastPostDate = ? and priority = ?. * * @param lastPostDate the last post date * @param priority the priority * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message boards thread, or <code>null</code> if a matching message boards thread could not be found */ public MBThread fetchByL_P_Last(Date lastPostDate, double priority, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the message boards threads before and after the current message boards thread in the ordered set where lastPostDate = ? and priority = ?. * * @param threadId the primary key of the current message boards thread * @param lastPostDate the last post date * @param priority the priority * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message boards thread * @throws NoSuchThreadException if a message boards thread with the primary key could not be found */ public MBThread[] findByL_P_PrevAndNext(long threadId, Date lastPostDate, double priority, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Removes all the message boards threads where lastPostDate = ? and priority = ? from the database. * * @param lastPostDate the last post date * @param priority the priority */ public void removeByL_P(Date lastPostDate, double priority); /** * Returns the number of message boards threads where lastPostDate = ? and priority = ?. * * @param lastPostDate the last post date * @param priority the priority * @return the number of matching message boards threads */ public int countByL_P(Date lastPostDate, double priority); /** * Returns all the message boards threads where groupId = ? and categoryId = ? and lastPostDate = ?. * * @param groupId the group ID * @param categoryId the category ID * @param lastPostDate the last post date * @return the matching message boards threads */ public java.util.List<MBThread> findByG_C_L(long groupId, long categoryId, Date lastPostDate); /** * Returns a range of all the message boards threads where groupId = ? and categoryId = ? and lastPostDate = ?. * * <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 MBThreadModelImpl}. 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 lastPostDate the last post date * @param start the lower bound of the range of message boards threads * @param end the upper bound of the range of message boards threads (not inclusive) * @return the range of matching message boards threads */ public java.util.List<MBThread> findByG_C_L(long groupId, long categoryId, Date lastPostDate, int start, int end); /** * Returns an ordered range of all the message boards threads where groupId = ? and categoryId = ? and lastPostDate = ?. * * <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 MBThreadModelImpl}. 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 lastPostDate the last post date * @param start the lower bound of the range of message boards threads * @param end the upper bound of the range of message boards threads (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message boards threads */ public java.util.List<MBThread> findByG_C_L(long groupId, long categoryId, Date lastPostDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns an ordered range of all the message boards threads where groupId = ? and categoryId = ? and lastPostDate = ?. * * <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 MBThreadModelImpl}. 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 lastPostDate the last post date * @param start the lower bound of the range of message boards threads * @param end the upper bound of the range of message boards threads (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 threads */ public java.util.List<MBThread> findByG_C_L(long groupId, long categoryId, Date lastPostDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator, boolean retrieveFromCache); /** * Returns the first message boards thread in the ordered set where groupId = ? and categoryId = ? and lastPostDate = ?. * * @param groupId the group ID * @param categoryId the category ID * @param lastPostDate the last post date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message boards thread * @throws NoSuchThreadException if a matching message boards thread could not be found */ public MBThread findByG_C_L_First(long groupId, long categoryId, Date lastPostDate, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns the first message boards thread in the ordered set where groupId = ? and categoryId = ? and lastPostDate = ?. * * @param groupId the group ID * @param categoryId the category ID * @param lastPostDate the last post date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching message boards thread, or <code>null</code> if a matching message boards thread could not be found */ public MBThread fetchByG_C_L_First(long groupId, long categoryId, Date lastPostDate, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the last message boards thread in the ordered set where groupId = ? and categoryId = ? and lastPostDate = ?. * * @param groupId the group ID * @param categoryId the category ID * @param lastPostDate the last post date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message boards thread * @throws NoSuchThreadException if a matching message boards thread could not be found */ public MBThread findByG_C_L_Last(long groupId, long categoryId, Date lastPostDate, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns the last message boards thread in the ordered set where groupId = ? and categoryId = ? and lastPostDate = ?. * * @param groupId the group ID * @param categoryId the category ID * @param lastPostDate the last post date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching message boards thread, or <code>null</code> if a matching message boards thread could not be found */ public MBThread fetchByG_C_L_Last(long groupId, long categoryId, Date lastPostDate, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId = ? and lastPostDate = ?. * * @param threadId the primary key of the current message boards thread * @param groupId the group ID * @param categoryId the category ID * @param lastPostDate the last post date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message boards thread * @throws NoSuchThreadException if a message boards thread with the primary key could not be found */ public MBThread[] findByG_C_L_PrevAndNext(long threadId, long groupId, long categoryId, Date lastPostDate, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns all the message boards threads that the user has permission to view where groupId = ? and categoryId = ? and lastPostDate = ?. * * @param groupId the group ID * @param categoryId the category ID * @param lastPostDate the last post date * @return the matching message boards threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_C_L(long groupId, long categoryId, Date lastPostDate); /** * Returns a range of all the message boards threads that the user has permission to view where groupId = ? and categoryId = ? and lastPostDate = ?. * * <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 MBThreadModelImpl}. 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 lastPostDate the last post date * @param start the lower bound of the range of message boards threads * @param end the upper bound of the range of message boards threads (not inclusive) * @return the range of matching message boards threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_C_L(long groupId, long categoryId, Date lastPostDate, int start, int end); /** * Returns an ordered range of all the message boards threads that the user has permissions to view where groupId = ? and categoryId = ? and lastPostDate = ?. * * <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 MBThreadModelImpl}. 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 lastPostDate the last post date * @param start the lower bound of the range of message boards threads * @param end the upper bound of the range of message boards threads (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message boards threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_C_L(long groupId, long categoryId, Date lastPostDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the message boards threads before and after the current message boards thread in the ordered set of message boards threads that the user has permission to view where groupId = ? and categoryId = ? and lastPostDate = ?. * * @param threadId the primary key of the current message boards thread * @param groupId the group ID * @param categoryId the category ID * @param lastPostDate the last post date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next message boards thread * @throws NoSuchThreadException if a message boards thread with the primary key could not be found */ public MBThread[] filterFindByG_C_L_PrevAndNext(long threadId, long groupId, long categoryId, Date lastPostDate, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Removes all the message boards threads where groupId = ? and categoryId = ? and lastPostDate = ? from the database. * * @param groupId the group ID * @param categoryId the category ID * @param lastPostDate the last post date */ public void removeByG_C_L(long groupId, long categoryId, Date lastPostDate); /** * Returns the number of message boards threads where groupId = ? and categoryId = ? and lastPostDate = ?. * * @param groupId the group ID * @param categoryId the category ID * @param lastPostDate the last post date * @return the number of matching message boards threads */ public int countByG_C_L(long groupId, long categoryId, Date lastPostDate); /** * Returns the number of message boards threads that the user has permission to view where groupId = ? and categoryId = ? and lastPostDate = ?. * * @param groupId the group ID * @param categoryId the category ID * @param lastPostDate the last post date * @return the number of matching message boards threads that the user has permission to view */ public int filterCountByG_C_L(long groupId, long categoryId, Date lastPostDate); /** * Returns all the message boards threads 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 threads */ public java.util.List<MBThread> findByG_C_S(long groupId, long categoryId, int status); /** * Returns a range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @return the range of matching message boards threads */ public java.util.List<MBThread> findByG_C_S(long groupId, long categoryId, int status, int start, int end); /** * Returns an ordered range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message boards threads */ public java.util.List<MBThread> findByG_C_S(long groupId, long categoryId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns an ordered range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (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 threads */ public java.util.List<MBThread> findByG_C_S(long groupId, long categoryId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator, boolean retrieveFromCache); /** * Returns the first message boards thread 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 thread * @throws NoSuchThreadException if a matching message boards thread could not be found */ public MBThread findByG_C_S_First(long groupId, long categoryId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns the first message boards thread 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 thread, or <code>null</code> if a matching message boards thread could not be found */ public MBThread fetchByG_C_S_First(long groupId, long categoryId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the last message boards thread 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 thread * @throws NoSuchThreadException if a matching message boards thread could not be found */ public MBThread findByG_C_S_Last(long groupId, long categoryId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns the last message boards thread 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 thread, or <code>null</code> if a matching message boards thread could not be found */ public MBThread fetchByG_C_S_Last(long groupId, long categoryId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId = ? and status = ?. * * @param threadId the primary key of the current message boards thread * @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 thread * @throws NoSuchThreadException if a message boards thread with the primary key could not be found */ public MBThread[] findByG_C_S_PrevAndNext(long threadId, long groupId, long categoryId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns all the message boards threads 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 threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_C_S(long groupId, long categoryId, int status); /** * Returns a range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @return the range of matching message boards threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_C_S(long groupId, long categoryId, int status, int start, int end); /** * Returns an ordered range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message boards threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_C_S(long groupId, long categoryId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the message boards threads before and after the current message boards thread in the ordered set of message boards threads that the user has permission to view where groupId = ? and categoryId = ? and status = ?. * * @param threadId the primary key of the current message boards thread * @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 thread * @throws NoSuchThreadException if a message boards thread with the primary key could not be found */ public MBThread[] filterFindByG_C_S_PrevAndNext(long threadId, long groupId, long categoryId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns all the message boards threads that the user has permission to view where groupId = ? and categoryId = any ? and status = ?. * * @param groupId the group ID * @param categoryIds the category IDs * @param status the status * @return the matching message boards threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_C_S(long groupId, long[] categoryIds, int status); /** * Returns a range of all the message boards threads that the user has permission to view where groupId = ? and categoryId = 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 MBThreadModelImpl}. 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 categoryIds the category IDs * @param status the status * @param start the lower bound of the range of message boards threads * @param end the upper bound of the range of message boards threads (not inclusive) * @return the range of matching message boards threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_C_S(long groupId, long[] categoryIds, int status, int start, int end); /** * Returns an ordered range of all the message boards threads that the user has permission to view where groupId = ? and categoryId = 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 MBThreadModelImpl}. 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 categoryIds the category IDs * @param status the status * @param start the lower bound of the range of message boards threads * @param end the upper bound of the range of message boards threads (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message boards threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_C_S(long groupId, long[] categoryIds, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns all the message boards threads where groupId = ? and categoryId = 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 MBThreadModelImpl}. 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 categoryIds the category IDs * @param status the status * @return the matching message boards threads */ public java.util.List<MBThread> findByG_C_S(long groupId, long[] categoryIds, int status); /** * Returns a range of all the message boards threads where groupId = ? and categoryId = 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 MBThreadModelImpl}. 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 categoryIds the category IDs * @param status the status * @param start the lower bound of the range of message boards threads * @param end the upper bound of the range of message boards threads (not inclusive) * @return the range of matching message boards threads */ public java.util.List<MBThread> findByG_C_S(long groupId, long[] categoryIds, int status, int start, int end); /** * Returns an ordered range of all the message boards threads where groupId = ? and categoryId = 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 MBThreadModelImpl}. 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 categoryIds the category IDs * @param status the status * @param start the lower bound of the range of message boards threads * @param end the upper bound of the range of message boards threads (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message boards threads */ public java.util.List<MBThread> findByG_C_S(long groupId, long[] categoryIds, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns an ordered range of all the message boards threads where groupId = ? and categoryId = ? 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (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 threads */ public java.util.List<MBThread> findByG_C_S(long groupId, long[] categoryIds, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator, boolean retrieveFromCache); /** * Removes all the message boards threads 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 threads 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 threads */ public int countByG_C_S(long groupId, long categoryId, int status); /** * Returns the number of message boards threads where groupId = ? and categoryId = any ? and status = ?. * * @param groupId the group ID * @param categoryIds the category IDs * @param status the status * @return the number of matching message boards threads */ public int countByG_C_S(long groupId, long[] categoryIds, int status); /** * Returns the number of message boards threads that the user has permission to view where groupId = ? and categoryId = ? and status = ?. * * @param groupId the group ID * @param categoryId the category ID * @param status the status * @return the number of matching message boards threads that the user has permission to view */ public int filterCountByG_C_S(long groupId, long categoryId, int status); /** * Returns the number of message boards threads that the user has permission to view where groupId = ? and categoryId = any ? and status = ?. * * @param groupId the group ID * @param categoryIds the category IDs * @param status the status * @return the number of matching message boards threads that the user has permission to view */ public int filterCountByG_C_S(long groupId, long[] categoryIds, int status); /** * Returns all the message boards threads 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 threads */ public java.util.List<MBThread> findByG_C_NotS(long groupId, long categoryId, int status); /** * Returns a range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @return the range of matching message boards threads */ public java.util.List<MBThread> findByG_C_NotS(long groupId, long categoryId, int status, int start, int end); /** * Returns an ordered range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message boards threads */ public java.util.List<MBThread> findByG_C_NotS(long groupId, long categoryId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns an ordered range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (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 threads */ public java.util.List<MBThread> findByG_C_NotS(long groupId, long categoryId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator, boolean retrieveFromCache); /** * Returns the first message boards thread 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 thread * @throws NoSuchThreadException if a matching message boards thread could not be found */ public MBThread findByG_C_NotS_First(long groupId, long categoryId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns the first message boards thread 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 thread, or <code>null</code> if a matching message boards thread could not be found */ public MBThread fetchByG_C_NotS_First(long groupId, long categoryId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the last message boards thread 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 thread * @throws NoSuchThreadException if a matching message boards thread could not be found */ public MBThread findByG_C_NotS_Last(long groupId, long categoryId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns the last message boards thread 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 thread, or <code>null</code> if a matching message boards thread could not be found */ public MBThread fetchByG_C_NotS_Last(long groupId, long categoryId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId = ? and status ≠ ?. * * @param threadId the primary key of the current message boards thread * @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 thread * @throws NoSuchThreadException if a message boards thread with the primary key could not be found */ public MBThread[] findByG_C_NotS_PrevAndNext(long threadId, long groupId, long categoryId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns all the message boards threads 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 threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_C_NotS(long groupId, long categoryId, int status); /** * Returns a range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @return the range of matching message boards threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_C_NotS(long groupId, long categoryId, int status, int start, int end); /** * Returns an ordered range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message boards threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_C_NotS(long groupId, long categoryId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the message boards threads before and after the current message boards thread in the ordered set of message boards threads that the user has permission to view where groupId = ? and categoryId = ? and status ≠ ?. * * @param threadId the primary key of the current message boards thread * @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 thread * @throws NoSuchThreadException if a message boards thread with the primary key could not be found */ public MBThread[] filterFindByG_C_NotS_PrevAndNext(long threadId, long groupId, long categoryId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns all the message boards threads that the user has permission to view where groupId = ? and categoryId = any ? and status ≠ ?. * * @param groupId the group ID * @param categoryIds the category IDs * @param status the status * @return the matching message boards threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_C_NotS(long groupId, long[] categoryIds, int status); /** * Returns a range of all the message boards threads that the user has permission to view where groupId = ? and categoryId = 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 MBThreadModelImpl}. 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 categoryIds the category IDs * @param status the status * @param start the lower bound of the range of message boards threads * @param end the upper bound of the range of message boards threads (not inclusive) * @return the range of matching message boards threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_C_NotS(long groupId, long[] categoryIds, int status, int start, int end); /** * Returns an ordered range of all the message boards threads that the user has permission to view where groupId = ? and categoryId = 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 MBThreadModelImpl}. 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 categoryIds the category IDs * @param status the status * @param start the lower bound of the range of message boards threads * @param end the upper bound of the range of message boards threads (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message boards threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_C_NotS(long groupId, long[] categoryIds, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns all the message boards threads where groupId = ? and categoryId = 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 MBThreadModelImpl}. 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 categoryIds the category IDs * @param status the status * @return the matching message boards threads */ public java.util.List<MBThread> findByG_C_NotS(long groupId, long[] categoryIds, int status); /** * Returns a range of all the message boards threads where groupId = ? and categoryId = 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 MBThreadModelImpl}. 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 categoryIds the category IDs * @param status the status * @param start the lower bound of the range of message boards threads * @param end the upper bound of the range of message boards threads (not inclusive) * @return the range of matching message boards threads */ public java.util.List<MBThread> findByG_C_NotS(long groupId, long[] categoryIds, int status, int start, int end); /** * Returns an ordered range of all the message boards threads where groupId = ? and categoryId = 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 MBThreadModelImpl}. 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 categoryIds the category IDs * @param status the status * @param start the lower bound of the range of message boards threads * @param end the upper bound of the range of message boards threads (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message boards threads */ public java.util.List<MBThread> findByG_C_NotS(long groupId, long[] categoryIds, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns an ordered range of all the message boards threads where groupId = ? and categoryId = ? 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (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 threads */ public java.util.List<MBThread> findByG_C_NotS(long groupId, long[] categoryIds, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator, boolean retrieveFromCache); /** * Removes all the message boards threads 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_NotS(long groupId, long categoryId, int status); /** * Returns the number of message boards threads 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 threads */ public int countByG_C_NotS(long groupId, long categoryId, int status); /** * Returns the number of message boards threads where groupId = ? and categoryId = any ? and status ≠ ?. * * @param groupId the group ID * @param categoryIds the category IDs * @param status the status * @return the number of matching message boards threads */ public int countByG_C_NotS(long groupId, long[] categoryIds, int status); /** * Returns the number of message boards threads 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 threads that the user has permission to view */ public int filterCountByG_C_NotS(long groupId, long categoryId, int status); /** * Returns the number of message boards threads that the user has permission to view where groupId = ? and categoryId = any ? and status ≠ ?. * * @param groupId the group ID * @param categoryIds the category IDs * @param status the status * @return the number of matching message boards threads that the user has permission to view */ public int filterCountByG_C_NotS(long groupId, long[] categoryIds, int status); /** * Returns all the message boards threads 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 threads */ public java.util.List<MBThread> findByG_NotC_S(long groupId, long categoryId, int status); /** * Returns a range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @return the range of matching message boards threads */ public java.util.List<MBThread> findByG_NotC_S(long groupId, long categoryId, int status, int start, int end); /** * Returns an ordered range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message boards threads */ public java.util.List<MBThread> findByG_NotC_S(long groupId, long categoryId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns an ordered range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (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 threads */ public java.util.List<MBThread> findByG_NotC_S(long groupId, long categoryId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator, boolean retrieveFromCache); /** * Returns the first message boards thread 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 thread * @throws NoSuchThreadException if a matching message boards thread could not be found */ public MBThread findByG_NotC_S_First(long groupId, long categoryId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns the first message boards thread 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 thread, or <code>null</code> if a matching message boards thread could not be found */ public MBThread fetchByG_NotC_S_First(long groupId, long categoryId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the last message boards thread 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 thread * @throws NoSuchThreadException if a matching message boards thread could not be found */ public MBThread findByG_NotC_S_Last(long groupId, long categoryId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns the last message boards thread 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 thread, or <code>null</code> if a matching message boards thread could not be found */ public MBThread fetchByG_NotC_S_Last(long groupId, long categoryId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId ≠ ? and status = ?. * * @param threadId the primary key of the current message boards thread * @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 thread * @throws NoSuchThreadException if a message boards thread with the primary key could not be found */ public MBThread[] findByG_NotC_S_PrevAndNext(long threadId, long groupId, long categoryId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns all the message boards threads 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 threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_NotC_S(long groupId, long categoryId, int status); /** * Returns a range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @return the range of matching message boards threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_NotC_S(long groupId, long categoryId, int status, int start, int end); /** * Returns an ordered range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message boards threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_NotC_S(long groupId, long categoryId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the message boards threads before and after the current message boards thread in the ordered set of message boards threads that the user has permission to view where groupId = ? and categoryId ≠ ? and status = ?. * * @param threadId the primary key of the current message boards thread * @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 thread * @throws NoSuchThreadException if a message boards thread with the primary key could not be found */ public MBThread[] filterFindByG_NotC_S_PrevAndNext(long threadId, long groupId, long categoryId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Removes all the message boards threads 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_NotC_S(long groupId, long categoryId, int status); /** * Returns the number of message boards threads 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 threads */ public int countByG_NotC_S(long groupId, long categoryId, int status); /** * Returns the number of message boards threads that the user has permission to view where groupId = ? and categoryId ≠ ? and status = ?. * * @param groupId the group ID * @param categoryId the category ID * @param status the status * @return the number of matching message boards threads that the user has permission to view */ public int filterCountByG_NotC_S(long groupId, long categoryId, int status); /** * Returns all the message boards threads 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 threads */ public java.util.List<MBThread> findByG_NotC_NotS(long groupId, long categoryId, int status); /** * Returns a range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @return the range of matching message boards threads */ public java.util.List<MBThread> findByG_NotC_NotS(long groupId, long categoryId, int status, int start, int end); /** * Returns an ordered range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message boards threads */ public java.util.List<MBThread> findByG_NotC_NotS(long groupId, long categoryId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns an ordered range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (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 threads */ public java.util.List<MBThread> findByG_NotC_NotS(long groupId, long categoryId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator, boolean retrieveFromCache); /** * Returns the first message boards thread 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 thread * @throws NoSuchThreadException if a matching message boards thread could not be found */ public MBThread findByG_NotC_NotS_First(long groupId, long categoryId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns the first message boards thread 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 thread, or <code>null</code> if a matching message boards thread could not be found */ public MBThread fetchByG_NotC_NotS_First(long groupId, long categoryId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the last message boards thread 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 thread * @throws NoSuchThreadException if a matching message boards thread could not be found */ public MBThread findByG_NotC_NotS_Last(long groupId, long categoryId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns the last message boards thread 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 thread, or <code>null</code> if a matching message boards thread could not be found */ public MBThread fetchByG_NotC_NotS_Last(long groupId, long categoryId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId ≠ ? and status ≠ ?. * * @param threadId the primary key of the current message boards thread * @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 thread * @throws NoSuchThreadException if a message boards thread with the primary key could not be found */ public MBThread[] findByG_NotC_NotS_PrevAndNext(long threadId, long groupId, long categoryId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Returns all the message boards threads 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 threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_NotC_NotS(long groupId, long categoryId, int status); /** * Returns a range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @return the range of matching message boards threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_NotC_NotS(long groupId, long categoryId, int status, int start, int end); /** * Returns an ordered range of all the message boards threads 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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching message boards threads that the user has permission to view */ public java.util.List<MBThread> filterFindByG_NotC_NotS(long groupId, long categoryId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns the message boards threads before and after the current message boards thread in the ordered set of message boards threads that the user has permission to view where groupId = ? and categoryId ≠ ? and status ≠ ?. * * @param threadId the primary key of the current message boards thread * @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 thread * @throws NoSuchThreadException if a message boards thread with the primary key could not be found */ public MBThread[] filterFindByG_NotC_NotS_PrevAndNext(long threadId, long groupId, long categoryId, int status, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator) throws NoSuchThreadException; /** * Removes all the message boards threads 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_NotC_NotS(long groupId, long categoryId, int status); /** * Returns the number of message boards threads 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 threads */ public int countByG_NotC_NotS(long groupId, long categoryId, int status); /** * Returns the number of message boards threads that the user has permission to view where groupId = ? and categoryId ≠ ? and status ≠ ?. * * @param groupId the group ID * @param categoryId the category ID * @param status the status * @return the number of matching message boards threads that the user has permission to view */ public int filterCountByG_NotC_NotS(long groupId, long categoryId, int status); /** * Caches the message boards thread in the entity cache if it is enabled. * * @param mbThread the message boards thread */ public void cacheResult(MBThread mbThread); /** * Caches the message boards threads in the entity cache if it is enabled. * * @param mbThreads the message boards threads */ public void cacheResult(java.util.List<MBThread> mbThreads); /** * Creates a new message boards thread with the primary key. Does not add the message boards thread to the database. * * @param threadId the primary key for the new message boards thread * @return the new message boards thread */ public MBThread create(long threadId); /** * Removes the message boards thread with the primary key from the database. Also notifies the appropriate model listeners. * * @param threadId the primary key of the message boards thread * @return the message boards thread that was removed * @throws NoSuchThreadException if a message boards thread with the primary key could not be found */ public MBThread remove(long threadId) throws NoSuchThreadException; public MBThread updateImpl(MBThread mbThread); /** * Returns the message boards thread with the primary key or throws a {@link NoSuchThreadException} if it could not be found. * * @param threadId the primary key of the message boards thread * @return the message boards thread * @throws NoSuchThreadException if a message boards thread with the primary key could not be found */ public MBThread findByPrimaryKey(long threadId) throws NoSuchThreadException; /** * Returns the message boards thread with the primary key or returns <code>null</code> if it could not be found. * * @param threadId the primary key of the message boards thread * @return the message boards thread, or <code>null</code> if a message boards thread with the primary key could not be found */ public MBThread fetchByPrimaryKey(long threadId); @Override public java.util.Map<java.io.Serializable, MBThread> fetchByPrimaryKeys( java.util.Set<java.io.Serializable> primaryKeys); /** * Returns all the message boards threads. * * @return the message boards threads */ public java.util.List<MBThread> findAll(); /** * Returns a range of all the message boards threads. * * <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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @return the range of message boards threads */ public java.util.List<MBThread> findAll(int start, int end); /** * Returns an ordered range of all the message boards threads. * * <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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of message boards threads */ public java.util.List<MBThread> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator); /** * Returns an ordered range of all the message boards threads. * * <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 MBThreadModelImpl}. 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 threads * @param end the upper bound of the range of message boards threads (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 threads */ public java.util.List<MBThread> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator, boolean retrieveFromCache); /** * Removes all the message boards threads from the database. */ public void removeAll(); /** * Returns the number of message boards threads. * * @return the number of message boards threads */ public int countAll(); @Override public java.util.Set<java.lang.String> getBadColumnNames(); }