Liferay 6.0.5

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

All Superinterfaces:
BasePersistence<MBThread>
All Known Implementing Classes:
MBThreadPersistenceImpl

public interface MBThreadPersistence
extends BasePersistence<MBThread>

The persistence interface for the message boards thread service.

Never modify or reference this interface directly. Always use MBThreadUtil to access the message boards thread persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface.

Caching information and settings can be found in portal.properties

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

Method Summary
 void cacheResult(List<MBThread> mbThreads)
          Caches the message boards threads in the entity cache if it is enabled.
 void cacheResult(MBThread mbThread)
          Caches the message boards thread in the entity cache if it is enabled.
 int countAll()
          Counts all the message boards threads.
 int countByC_P(long categoryId, double priority)
          Counts all the message boards threads where categoryId = ? and priority = ?.
 int countByG_C_L(long groupId, long categoryId, Date lastPostDate)
          Counts all the message boards threads where groupId = ? and categoryId = ? and lastPostDate = ?.
 int countByG_C_S(long groupId, long[] categoryIds, int status)
          Counts all the message boards threads where groupId = ? and categoryId = any ? and status = ?.
 int countByG_C_S(long groupId, long categoryId, int status)
          Counts all the message boards threads where groupId = ? and categoryId = ? and status = ?.
 int countByG_C(long groupId, long categoryId)
          Counts all the message boards threads where groupId = ? and categoryId = ?.
 int countByG_C(long groupId, long[] categoryIds)
          Counts all the message boards threads where groupId = ? and categoryId = any ?.
 int countByG_NotC_S(long groupId, long categoryId, int status)
          Counts all the message boards threads where groupId = ? and categoryId ≠ ? and status = ?.
 int countByG_NotC(long groupId, long categoryId)
          Counts all the message boards threads where groupId = ? and categoryId ≠ ?.
 int countByG_S(long groupId, int status)
          Counts all the message boards threads where groupId = ? and status = ?.
 int countByGroupId(long groupId)
          Counts all the message boards threads where groupId = ?.
 MBThread create(long threadId)
          Creates a new message boards thread with the primary key.
 MBThread fetchByPrimaryKey(long threadId)
          Finds the message boards thread with the primary key or returns null if it could not be found.
 List<MBThread> findAll()
          Finds all the message boards threads.
 List<MBThread> findAll(int start, int end)
          Finds a range of all the message boards threads.
 List<MBThread> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the message boards threads.
 MBThread findByC_P_First(long categoryId, double priority, OrderByComparator orderByComparator)
          Finds the first message boards thread in the ordered set where categoryId = ? and priority = ?.
 MBThread findByC_P_Last(long categoryId, double priority, OrderByComparator orderByComparator)
          Finds the last message boards thread in the ordered set where categoryId = ? and priority = ?.
 MBThread[] findByC_P_PrevAndNext(long threadId, long categoryId, double priority, OrderByComparator orderByComparator)
          Finds the message boards threads before and after the current message boards thread in the ordered set where categoryId = ? and priority = ?.
 List<MBThread> findByC_P(long categoryId, double priority)
          Finds all the message boards threads where categoryId = ? and priority = ?.
 List<MBThread> findByC_P(long categoryId, double priority, int start, int end)
          Finds a range of all the message boards threads where categoryId = ? and priority = ?.
 List<MBThread> findByC_P(long categoryId, double priority, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the message boards threads where categoryId = ? and priority = ?.
 MBThread findByG_C_First(long groupId, long categoryId, OrderByComparator orderByComparator)
          Finds the first message boards thread in the ordered set where groupId = ? and categoryId = ?.
 MBThread findByG_C_L_First(long groupId, long categoryId, Date lastPostDate, OrderByComparator orderByComparator)
          Finds the first message boards thread in the ordered set where groupId = ? and categoryId = ? and lastPostDate = ?.
 MBThread findByG_C_L_Last(long groupId, long categoryId, Date lastPostDate, OrderByComparator orderByComparator)
          Finds the last message boards thread in the ordered set where groupId = ? and categoryId = ? and lastPostDate = ?.
 MBThread[] findByG_C_L_PrevAndNext(long threadId, long groupId, long categoryId, Date lastPostDate, OrderByComparator orderByComparator)
          Finds the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId = ? and lastPostDate = ?.
 List<MBThread> findByG_C_L(long groupId, long categoryId, Date lastPostDate)
          Finds all the message boards threads where groupId = ? and categoryId = ? and lastPostDate = ?.
 List<MBThread> findByG_C_L(long groupId, long categoryId, Date lastPostDate, int start, int end)
          Finds a range of all the message boards threads where groupId = ? and categoryId = ? and lastPostDate = ?.
 List<MBThread> findByG_C_L(long groupId, long categoryId, Date lastPostDate, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the message boards threads where groupId = ? and categoryId = ? and lastPostDate = ?.
 MBThread findByG_C_Last(long groupId, long categoryId, OrderByComparator orderByComparator)
          Finds the last message boards thread in the ordered set where groupId = ? and categoryId = ?.
 MBThread[] findByG_C_PrevAndNext(long threadId, long groupId, long categoryId, OrderByComparator orderByComparator)
          Finds the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId = ?.
 MBThread findByG_C_S_First(long groupId, long categoryId, int status, OrderByComparator orderByComparator)
          Finds the first message boards thread in the ordered set where groupId = ? and categoryId = ? and status = ?.
 MBThread findByG_C_S_Last(long groupId, long categoryId, int status, OrderByComparator orderByComparator)
          Finds the last message boards thread in the ordered set where groupId = ? and categoryId = ? and status = ?.
 MBThread[] findByG_C_S_PrevAndNext(long threadId, long groupId, long categoryId, int status, OrderByComparator orderByComparator)
          Finds the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId = ? and status = ?.
 List<MBThread> findByG_C_S(long groupId, long[] categoryIds, int status)
          Finds all the message boards threads where groupId = ? and categoryId = any ? and status = ?.
 List<MBThread> findByG_C_S(long groupId, long[] categoryIds, int status, int start, int end)
          Finds a range of all the message boards threads where groupId = ? and categoryId = any ? and status = ?.
 List<MBThread> findByG_C_S(long groupId, long[] categoryIds, int status, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the message boards threads where groupId = ? and categoryId = any ? and status = ?.
 List<MBThread> findByG_C_S(long groupId, long categoryId, int status)
          Finds all the message boards threads where groupId = ? and categoryId = ? and status = ?.
 List<MBThread> findByG_C_S(long groupId, long categoryId, int status, int start, int end)
          Finds a range of all the message boards threads where groupId = ? and categoryId = ? and status = ?.
 List<MBThread> findByG_C_S(long groupId, long categoryId, int status, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the message boards threads where groupId = ? and categoryId = ? and status = ?.
 List<MBThread> findByG_C(long groupId, long categoryId)
          Finds all the message boards threads where groupId = ? and categoryId = ?.
 List<MBThread> findByG_C(long groupId, long[] categoryIds)
          Finds all the message boards threads where groupId = ? and categoryId = any ?.
 List<MBThread> findByG_C(long groupId, long[] categoryIds, int start, int end)
          Finds a range of all the message boards threads where groupId = ? and categoryId = any ?.
 List<MBThread> findByG_C(long groupId, long[] categoryIds, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the message boards threads where groupId = ? and categoryId = any ?.
 List<MBThread> findByG_C(long groupId, long categoryId, int start, int end)
          Finds a range of all the message boards threads where groupId = ? and categoryId = ?.
 List<MBThread> findByG_C(long groupId, long categoryId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the message boards threads where groupId = ? and categoryId = ?.
 MBThread findByG_NotC_First(long groupId, long categoryId, OrderByComparator orderByComparator)
          Finds the first message boards thread in the ordered set where groupId = ? and categoryId ≠ ?.
 MBThread findByG_NotC_Last(long groupId, long categoryId, OrderByComparator orderByComparator)
          Finds the last message boards thread in the ordered set where groupId = ? and categoryId ≠ ?.
 MBThread[] findByG_NotC_PrevAndNext(long threadId, long groupId, long categoryId, OrderByComparator orderByComparator)
          Finds the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId ≠ ?.
 MBThread findByG_NotC_S_First(long groupId, long categoryId, int status, OrderByComparator orderByComparator)
          Finds the first message boards thread in the ordered set where groupId = ? and categoryId ≠ ? and status = ?.
 MBThread findByG_NotC_S_Last(long groupId, long categoryId, int status, OrderByComparator orderByComparator)
          Finds the last message boards thread in the ordered set where groupId = ? and categoryId ≠ ? and status = ?.
 MBThread[] findByG_NotC_S_PrevAndNext(long threadId, long groupId, long categoryId, int status, OrderByComparator orderByComparator)
          Finds the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId ≠ ? and status = ?.
 List<MBThread> findByG_NotC_S(long groupId, long categoryId, int status)
          Finds all the message boards threads where groupId = ? and categoryId ≠ ? and status = ?.
 List<MBThread> findByG_NotC_S(long groupId, long categoryId, int status, int start, int end)
          Finds a range of all the message boards threads where groupId = ? and categoryId ≠ ? and status = ?.
 List<MBThread> findByG_NotC_S(long groupId, long categoryId, int status, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the message boards threads where groupId = ? and categoryId ≠ ? and status = ?.
 List<MBThread> findByG_NotC(long groupId, long categoryId)
          Finds all the message boards threads where groupId = ? and categoryId ≠ ?.
 List<MBThread> findByG_NotC(long groupId, long categoryId, int start, int end)
          Finds a range of all the message boards threads where groupId = ? and categoryId ≠ ?.
 List<MBThread> findByG_NotC(long groupId, long categoryId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the message boards threads where groupId = ? and categoryId ≠ ?.
 MBThread findByG_S_First(long groupId, int status, OrderByComparator orderByComparator)
          Finds the first message boards thread in the ordered set where groupId = ? and status = ?.
 MBThread findByG_S_Last(long groupId, int status, OrderByComparator orderByComparator)
          Finds the last message boards thread in the ordered set where groupId = ? and status = ?.
 MBThread[] findByG_S_PrevAndNext(long threadId, long groupId, int status, OrderByComparator orderByComparator)
          Finds the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and status = ?.
 List<MBThread> findByG_S(long groupId, int status)
          Finds all the message boards threads where groupId = ? and status = ?.
 List<MBThread> findByG_S(long groupId, int status, int start, int end)
          Finds a range of all the message boards threads where groupId = ? and status = ?.
 List<MBThread> findByG_S(long groupId, int status, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the message boards threads where groupId = ? and status = ?.
 MBThread findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Finds the first message boards thread in the ordered set where groupId = ?.
 MBThread findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Finds the last message boards thread in the ordered set where groupId = ?.
 MBThread[] findByGroupId_PrevAndNext(long threadId, long groupId, OrderByComparator orderByComparator)
          Finds the message boards threads before and after the current message boards thread in the ordered set where groupId = ?.
 List<MBThread> findByGroupId(long groupId)
          Finds all the message boards threads where groupId = ?.
 List<MBThread> findByGroupId(long groupId, int start, int end)
          Finds a range of all the message boards threads where groupId = ?.
 List<MBThread> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the message boards threads where groupId = ?.
 MBThread findByPrimaryKey(long threadId)
          Finds the message boards thread with the primary key or throws a NoSuchThreadException if it could not be found.
 MBThread remove(long threadId)
          Removes the message boards thread with the primary key from the database.
 void removeAll()
          Removes all the message boards threads from the database.
 void removeByC_P(long categoryId, double priority)
          Removes all the message boards threads where categoryId = ? and priority = ? from the database.
 void removeByG_C_L(long groupId, long categoryId, Date lastPostDate)
          Removes all the message boards threads where groupId = ? and categoryId = ? and lastPostDate = ? from the database.
 void removeByG_C_S(long groupId, long categoryId, int status)
          Removes all the message boards threads where groupId = ? and categoryId = ? and status = ? from the database.
 void removeByG_C(long groupId, long categoryId)
          Removes all the message boards threads where groupId = ? and categoryId = ? from the database.
 void removeByG_NotC_S(long groupId, long categoryId, int status)
          Removes all the message boards threads where groupId = ? and categoryId ≠ ? and status = ? from the database.
 void removeByG_NotC(long groupId, long categoryId)
          Removes all the message boards threads where groupId = ? and categoryId ≠ ? from the database.
 void removeByG_S(long groupId, int status)
          Removes all the message boards threads where groupId = ? and status = ? from the database.
 void removeByGroupId(long groupId)
          Removes all the message boards threads where groupId = ? from the database.
 MBThread updateImpl(MBThread mbThread, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update, update
 

Method Detail

cacheResult

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

Parameters:
mbThread - the message boards thread to cache

cacheResult

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

Parameters:
mbThreads - the message boards threads to cache

create

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

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

remove

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

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

updateImpl

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

findByPrimaryKey

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

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

fetchByPrimaryKey

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

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

findByGroupId

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

Parameters:
groupId - the group id to search with
Returns:
the matching message boards threads
Throws:
SystemException - if a system exception occurred

findByGroupId

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

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

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

findByGroupId

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

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

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

findByGroupId_First

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

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

Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching message boards thread
Throws:
NoSuchThreadException - if a matching message boards thread could not be found
SystemException - if a system exception occurred

findByGroupId_Last

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

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

Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching message boards thread
Throws:
NoSuchThreadException - if a matching message boards thread could not be found
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

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

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

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

findByG_C

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

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

findByG_C

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

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

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

findByG_C

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

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

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

findByG_C_First

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

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

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

findByG_C_Last

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

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

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

findByG_C_PrevAndNext

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

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

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

findByG_C

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

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

Parameters:
groupId - the group id to search with
categoryIds - the category ids to search with
Returns:
the matching message boards threads
Throws:
SystemException - if a system exception occurred

findByG_C

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

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

Parameters:
groupId - the group id to search with
categoryIds - the category ids to search with
start - the lower bound of the range of message boards threads to return
end - the upper bound of the range of message boards threads to return (not inclusive)
Returns:
the range of matching message boards threads
Throws:
SystemException - if a system exception occurred

findByG_C

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

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

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

findByG_NotC

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

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

findByG_NotC

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

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

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

findByG_NotC

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

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

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

findByG_NotC_First

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

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

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

findByG_NotC_Last

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

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

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

findByG_NotC_PrevAndNext

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

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

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

findByG_S

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

Parameters:
groupId - the group id to search with
status - the status to search with
Returns:
the matching message boards threads
Throws:
SystemException - if a system exception occurred

findByG_S

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

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

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

findByG_S

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

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

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

findByG_S_First

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

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

Parameters:
groupId - the group id to search with
status - the status to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching message boards thread
Throws:
NoSuchThreadException - if a matching message boards thread could not be found
SystemException - if a system exception occurred

findByG_S_Last

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

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

Parameters:
groupId - the group id to search with
status - the status to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching message boards thread
Throws:
NoSuchThreadException - if a matching message boards thread could not be found
SystemException - if a system exception occurred

findByG_S_PrevAndNext

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

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

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

findByC_P

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

Parameters:
categoryId - the category id to search with
priority - the priority to search with
Returns:
the matching message boards threads
Throws:
SystemException - if a system exception occurred

findByC_P

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

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

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

findByC_P

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

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

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

findByC_P_First

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

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

Parameters:
categoryId - the category id to search with
priority - the priority to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching message boards thread
Throws:
NoSuchThreadException - if a matching message boards thread could not be found
SystemException - if a system exception occurred

findByC_P_Last

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

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

Parameters:
categoryId - the category id to search with
priority - the priority to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching message boards thread
Throws:
NoSuchThreadException - if a matching message boards thread could not be found
SystemException - if a system exception occurred

findByC_P_PrevAndNext

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

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

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

findByG_C_L

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

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

findByG_C_L

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

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

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

findByG_C_L

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

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

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

findByG_C_L_First

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

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

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

findByG_C_L_Last

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

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

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

findByG_C_L_PrevAndNext

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

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

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

findByG_C_S

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

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

findByG_C_S

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

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

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

findByG_C_S

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

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

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

findByG_C_S_First

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

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

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

findByG_C_S_Last

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

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

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

findByG_C_S_PrevAndNext

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

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

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

findByG_C_S

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

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

Parameters:
groupId - the group id to search with
categoryIds - the category ids to search with
status - the status to search with
Returns:
the matching message boards threads
Throws:
SystemException - if a system exception occurred

findByG_C_S

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

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

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

findByG_C_S

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

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

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

findByG_NotC_S

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

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

findByG_NotC_S

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

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

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

findByG_NotC_S

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

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

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

findByG_NotC_S_First

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

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

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

findByG_NotC_S_Last

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

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

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

findByG_NotC_S_PrevAndNext

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

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

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

findAll

List<MBThread> findAll()
                       throws SystemException
Finds all the message boards threads.

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

findAll

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

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

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

findAll

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

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

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

removeByGroupId

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

Parameters:
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred

removeByG_C

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

Parameters:
groupId - the group id to search with
categoryId - the category id to search with
Throws:
SystemException - if a system exception occurred

removeByG_NotC

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

Parameters:
groupId - the group id to search with
categoryId - the category id to search with
Throws:
SystemException - if a system exception occurred

removeByG_S

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

Parameters:
groupId - the group id to search with
status - the status to search with
Throws:
SystemException - if a system exception occurred

removeByC_P

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

Parameters:
categoryId - the category id to search with
priority - the priority to search with
Throws:
SystemException - if a system exception occurred

removeByG_C_L

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

Parameters:
groupId - the group id to search with
categoryId - the category id to search with
lastPostDate - the last post date to search with
Throws:
SystemException - if a system exception occurred

removeByG_C_S

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

Parameters:
groupId - the group id to search with
categoryId - the category id to search with
status - the status to search with
Throws:
SystemException - if a system exception occurred

removeByG_NotC_S

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

Parameters:
groupId - the group id to search with
categoryId - the category id to search with
status - the status to search with
Throws:
SystemException - if a system exception occurred

removeAll

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

Throws:
SystemException - if a system exception occurred

countByGroupId

int countByGroupId(long groupId)
                   throws SystemException
Counts all the message boards threads where groupId = ?.

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

countByG_C

int countByG_C(long groupId,
               long categoryId)
               throws SystemException
Counts all the message boards threads where groupId = ? and categoryId = ?.

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

countByG_C

int countByG_C(long groupId,
               long[] categoryIds)
               throws SystemException
Counts all the message boards threads where groupId = ? and categoryId = any ?.

Parameters:
groupId - the group id to search with
categoryIds - the category ids to search with
Returns:
the number of matching message boards threads
Throws:
SystemException - if a system exception occurred

countByG_NotC

int countByG_NotC(long groupId,
                  long categoryId)
                  throws SystemException
Counts all the message boards threads where groupId = ? and categoryId ≠ ?.

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

countByG_S

int countByG_S(long groupId,
               int status)
               throws SystemException
Counts all the message boards threads where groupId = ? and status = ?.

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

countByC_P

int countByC_P(long categoryId,
               double priority)
               throws SystemException
Counts all the message boards threads where categoryId = ? and priority = ?.

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

countByG_C_L

int countByG_C_L(long groupId,
                 long categoryId,
                 Date lastPostDate)
                 throws SystemException
Counts all the message boards threads where groupId = ? and categoryId = ? and lastPostDate = ?.

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

countByG_C_S

int countByG_C_S(long groupId,
                 long categoryId,
                 int status)
                 throws SystemException
Counts all the message boards threads where groupId = ? and categoryId = ? and status = ?.

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

countByG_C_S

int countByG_C_S(long groupId,
                 long[] categoryIds,
                 int status)
                 throws SystemException
Counts all the message boards threads where groupId = ? and categoryId = any ? and status = ?.

Parameters:
groupId - the group id to search with
categoryIds - the category ids to search with
status - the status to search with
Returns:
the number of matching message boards threads
Throws:
SystemException - if a system exception occurred

countByG_NotC_S

int countByG_NotC_S(long groupId,
                    long categoryId,
                    int status)
                    throws SystemException
Counts all the message boards threads where groupId = ? and categoryId ≠ ? and status = ?.

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

countAll

int countAll()
             throws SystemException
Counts all the message boards threads.

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

Liferay 6.0.5