Liferay 6.0.5

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

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

public class MBThreadPersistenceImpl
extends BasePersistenceImpl<MBThread>
implements MBThreadPersistence

The persistence implementation for the message boards thread service.

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

Caching information and settings can be found in portal.properties

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

Field Summary
protected  AssetEntryPersistence assetEntryPersistence
           
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_C_P
           
static FinderPath FINDER_PATH_COUNT_BY_G_C
           
static FinderPath FINDER_PATH_COUNT_BY_G_C_L
           
static FinderPath FINDER_PATH_COUNT_BY_G_C_S
           
static FinderPath FINDER_PATH_COUNT_BY_G_NOTC
           
static FinderPath FINDER_PATH_COUNT_BY_G_NOTC_S
           
static FinderPath FINDER_PATH_COUNT_BY_G_S
           
static FinderPath FINDER_PATH_COUNT_BY_GROUPID
           
static FinderPath FINDER_PATH_FIND_ALL
           
static FinderPath FINDER_PATH_FIND_BY_C_P
           
static FinderPath FINDER_PATH_FIND_BY_G_C
           
static FinderPath FINDER_PATH_FIND_BY_G_C_L
           
static FinderPath FINDER_PATH_FIND_BY_G_C_S
           
static FinderPath FINDER_PATH_FIND_BY_G_NOTC
           
static FinderPath FINDER_PATH_FIND_BY_G_NOTC_S
           
static FinderPath FINDER_PATH_FIND_BY_G_S
           
static FinderPath FINDER_PATH_FIND_BY_GROUPID
           
protected  LockPersistence lockPersistence
           
protected  MBBanPersistence mbBanPersistence
           
protected  MBCategoryPersistence mbCategoryPersistence
           
protected  MBDiscussionPersistence mbDiscussionPersistence
           
protected  MBMailingListPersistence mbMailingListPersistence
           
protected  MBMessageFlagPersistence mbMessageFlagPersistence
           
protected  MBMessagePersistence mbMessagePersistence
           
protected  MBStatsUserPersistence mbStatsUserPersistence
           
protected  MBThreadPersistence mbThreadPersistence
           
protected  RatingsStatsPersistence ratingsStatsPersistence
           
protected  ResourcePersistence resourcePersistence
           
protected  SocialActivityPersistence socialActivityPersistence
           
protected  UserPersistence userPersistence
           
protected  WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
MBThreadPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the message boards thread persistence.
 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.
 void clearCache()
          Clears the cache for all message boards threads.
 void clearCache(MBThread mbThread)
          Clears the cache for the message boards thread.
 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.
 MBThread fetchByPrimaryKey(Serializable primaryKey)
          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 findByPrimaryKey(Serializable primaryKey)
          Finds the message boards thread with the primary key or throws a NoSuchModelException if it could not be found.
protected  MBThread getByC_P_PrevAndNext(Session session, MBThread mbThread, long categoryId, double priority, OrderByComparator orderByComparator, boolean previous)
           
protected  MBThread getByG_C_L_PrevAndNext(Session session, MBThread mbThread, long groupId, long categoryId, Date lastPostDate, OrderByComparator orderByComparator, boolean previous)
           
protected  MBThread getByG_C_PrevAndNext(Session session, MBThread mbThread, long groupId, long categoryId, OrderByComparator orderByComparator, boolean previous)
           
protected  MBThread getByG_C_S_PrevAndNext(Session session, MBThread mbThread, long groupId, long categoryId, int status, OrderByComparator orderByComparator, boolean previous)
           
protected  MBThread getByG_NotC_PrevAndNext(Session session, MBThread mbThread, long groupId, long categoryId, OrderByComparator orderByComparator, boolean previous)
           
protected  MBThread getByG_NotC_S_PrevAndNext(Session session, MBThread mbThread, long groupId, long categoryId, int status, OrderByComparator orderByComparator, boolean previous)
           
protected  MBThread getByG_S_PrevAndNext(Session session, MBThread mbThread, long groupId, int status, OrderByComparator orderByComparator, boolean previous)
           
protected  MBThread getByGroupId_PrevAndNext(Session session, MBThread mbThread, long groupId, OrderByComparator orderByComparator, boolean previous)
           
 MBThread remove(long threadId)
          Removes the message boards thread with the primary key from the database.
 MBThread remove(Serializable primaryKey)
          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.
protected  MBThread removeImpl(MBThread mbThread)
          Removes the model instance from the database.
protected  MBThread toUnwrappedModel(MBThread mbThread)
           
 MBThread updateImpl(MBThread mbThread, boolean merge)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST

public static final String FINDER_CLASS_NAME_LIST

FINDER_PATH_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_FIND_BY_GROUPID

FINDER_PATH_COUNT_BY_GROUPID

public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID

FINDER_PATH_FIND_BY_G_C

public static final FinderPath FINDER_PATH_FIND_BY_G_C

FINDER_PATH_COUNT_BY_G_C

public static final FinderPath FINDER_PATH_COUNT_BY_G_C

FINDER_PATH_FIND_BY_G_NOTC

public static final FinderPath FINDER_PATH_FIND_BY_G_NOTC

FINDER_PATH_COUNT_BY_G_NOTC

public static final FinderPath FINDER_PATH_COUNT_BY_G_NOTC

FINDER_PATH_FIND_BY_G_S

public static final FinderPath FINDER_PATH_FIND_BY_G_S

FINDER_PATH_COUNT_BY_G_S

public static final FinderPath FINDER_PATH_COUNT_BY_G_S

FINDER_PATH_FIND_BY_C_P

public static final FinderPath FINDER_PATH_FIND_BY_C_P

FINDER_PATH_COUNT_BY_C_P

public static final FinderPath FINDER_PATH_COUNT_BY_C_P

FINDER_PATH_FIND_BY_G_C_L

public static final FinderPath FINDER_PATH_FIND_BY_G_C_L

FINDER_PATH_COUNT_BY_G_C_L

public static final FinderPath FINDER_PATH_COUNT_BY_G_C_L

FINDER_PATH_FIND_BY_G_C_S

public static final FinderPath FINDER_PATH_FIND_BY_G_C_S

FINDER_PATH_COUNT_BY_G_C_S

public static final FinderPath FINDER_PATH_COUNT_BY_G_C_S

FINDER_PATH_FIND_BY_G_NOTC_S

public static final FinderPath FINDER_PATH_FIND_BY_G_NOTC_S

FINDER_PATH_COUNT_BY_G_NOTC_S

public static final FinderPath FINDER_PATH_COUNT_BY_G_NOTC_S

FINDER_PATH_FIND_ALL

public static final FinderPath FINDER_PATH_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

mbBanPersistence

@BeanReference(type=MBBanPersistence.class)
protected MBBanPersistence mbBanPersistence

mbCategoryPersistence

@BeanReference(type=MBCategoryPersistence.class)
protected MBCategoryPersistence mbCategoryPersistence

mbDiscussionPersistence

@BeanReference(type=MBDiscussionPersistence.class)
protected MBDiscussionPersistence mbDiscussionPersistence

mbMailingListPersistence

@BeanReference(type=MBMailingListPersistence.class)
protected MBMailingListPersistence mbMailingListPersistence

mbMessagePersistence

@BeanReference(type=MBMessagePersistence.class)
protected MBMessagePersistence mbMessagePersistence

mbMessageFlagPersistence

@BeanReference(type=MBMessageFlagPersistence.class)
protected MBMessageFlagPersistence mbMessageFlagPersistence

mbStatsUserPersistence

@BeanReference(type=MBStatsUserPersistence.class)
protected MBStatsUserPersistence mbStatsUserPersistence

mbThreadPersistence

@BeanReference(type=MBThreadPersistence.class)
protected MBThreadPersistence mbThreadPersistence

lockPersistence

@BeanReference(type=LockPersistence.class)
protected LockPersistence lockPersistence

resourcePersistence

@BeanReference(type=ResourcePersistence.class)
protected ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=UserPersistence.class)
protected UserPersistence userPersistence

workflowInstanceLinkPersistence

@BeanReference(type=WorkflowInstanceLinkPersistence.class)
protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence

assetEntryPersistence

@BeanReference(type=AssetEntryPersistence.class)
protected AssetEntryPersistence assetEntryPersistence

ratingsStatsPersistence

@BeanReference(type=RatingsStatsPersistence.class)
protected RatingsStatsPersistence ratingsStatsPersistence

socialActivityPersistence

@BeanReference(type=SocialActivityPersistence.class)
protected SocialActivityPersistence socialActivityPersistence
Constructor Detail

MBThreadPersistenceImpl

public MBThreadPersistenceImpl()
Method Detail

cacheResult

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

Specified by:
cacheResult in interface MBThreadPersistence
Parameters:
mbThread - the message boards thread to cache

cacheResult

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

Specified by:
cacheResult in interface MBThreadPersistence
Parameters:
mbThreads - the message boards threads to cache

clearCache

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

The EntityCache and FinderCache are both cleared by this method.

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

clearCache

public void clearCache(MBThread mbThread)
Clears the cache for the message boards thread.

The EntityCache and FinderCache are both cleared by this method.

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

create

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

Specified by:
create in interface MBThreadPersistence
Parameters:
threadId - the primary key for the new message boards thread
Returns:
the new message boards thread

remove

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

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

remove

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

Specified by:
remove in interface MBThreadPersistence
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

removeImpl

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

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

updateImpl

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

Specified by:
updateImpl in interface MBThreadPersistence
Overrides:
updateImpl in class BasePersistenceImpl<MBThread>
Parameters:
mbThread - the model instance to update
merge - whether to merge the model instance with the current session. See BatchSession.update( com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean) for an explanation.
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected MBThread toUnwrappedModel(MBThread mbThread)

findByPrimaryKey

public MBThread findByPrimaryKey(Serializable primaryKey)
                          throws NoSuchModelException,
                                 SystemException
Finds the message boards thread with the primary key or throws a NoSuchModelException if it could not be found.

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

findByPrimaryKey

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

Specified by:
findByPrimaryKey in interface MBThreadPersistence
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

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

Specified by:
fetchByPrimaryKey in interface BasePersistence<MBThread>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<MBThread>
Parameters:
primaryKey - 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

fetchByPrimaryKey

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

Specified by:
fetchByPrimaryKey in interface MBThreadPersistence
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

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

Specified by:
findByGroupId in interface MBThreadPersistence
Parameters:
groupId - the group id to search with
Returns:
the matching message boards threads
Throws:
SystemException - if a system exception occurred

findByGroupId

public 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.

Specified by:
findByGroupId in interface MBThreadPersistence
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

public 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.

Specified by:
findByGroupId in interface MBThreadPersistence
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

public MBThread findByGroupId_First(long groupId,
                                    OrderByComparator orderByComparator)
                             throws NoSuchThreadException,
                                    SystemException
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.

Specified by:
findByGroupId_First in interface MBThreadPersistence
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

public MBThread findByGroupId_Last(long groupId,
                                   OrderByComparator orderByComparator)
                            throws NoSuchThreadException,
                                   SystemException
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.

Specified by:
findByGroupId_Last in interface MBThreadPersistence
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

public MBThread[] findByGroupId_PrevAndNext(long threadId,
                                            long groupId,
                                            OrderByComparator orderByComparator)
                                     throws NoSuchThreadException,
                                            SystemException
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.

Specified by:
findByGroupId_PrevAndNext in interface MBThreadPersistence
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

getByGroupId_PrevAndNext

protected MBThread getByGroupId_PrevAndNext(Session session,
                                            MBThread mbThread,
                                            long groupId,
                                            OrderByComparator orderByComparator,
                                            boolean previous)

findByG_C

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

Specified by:
findByG_C in interface MBThreadPersistence
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

public 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.

Specified by:
findByG_C in interface MBThreadPersistence
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

public 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.

Specified by:
findByG_C in interface MBThreadPersistence
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

public MBThread findByG_C_First(long groupId,
                                long categoryId,
                                OrderByComparator orderByComparator)
                         throws NoSuchThreadException,
                                SystemException
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.

Specified by:
findByG_C_First in interface MBThreadPersistence
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

public MBThread findByG_C_Last(long groupId,
                               long categoryId,
                               OrderByComparator orderByComparator)
                        throws NoSuchThreadException,
                               SystemException
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.

Specified by:
findByG_C_Last in interface MBThreadPersistence
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

public MBThread[] findByG_C_PrevAndNext(long threadId,
                                        long groupId,
                                        long categoryId,
                                        OrderByComparator orderByComparator)
                                 throws NoSuchThreadException,
                                        SystemException
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.

Specified by:
findByG_C_PrevAndNext in interface MBThreadPersistence
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

getByG_C_PrevAndNext

protected MBThread getByG_C_PrevAndNext(Session session,
                                        MBThread mbThread,
                                        long groupId,
                                        long categoryId,
                                        OrderByComparator orderByComparator,
                                        boolean previous)

findByG_C

public 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.

Specified by:
findByG_C in interface MBThreadPersistence
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

public 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.

Specified by:
findByG_C in interface MBThreadPersistence
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

public 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.

Specified by:
findByG_C in interface MBThreadPersistence
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

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

Specified by:
findByG_NotC in interface MBThreadPersistence
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

public 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.

Specified by:
findByG_NotC in interface MBThreadPersistence
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

public 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.

Specified by:
findByG_NotC in interface MBThreadPersistence
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

public MBThread findByG_NotC_First(long groupId,
                                   long categoryId,
                                   OrderByComparator orderByComparator)
                            throws NoSuchThreadException,
                                   SystemException
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.

Specified by:
findByG_NotC_First in interface MBThreadPersistence
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

public MBThread findByG_NotC_Last(long groupId,
                                  long categoryId,
                                  OrderByComparator orderByComparator)
                           throws NoSuchThreadException,
                                  SystemException
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.

Specified by:
findByG_NotC_Last in interface MBThreadPersistence
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

public MBThread[] findByG_NotC_PrevAndNext(long threadId,
                                           long groupId,
                                           long categoryId,
                                           OrderByComparator orderByComparator)
                                    throws NoSuchThreadException,
                                           SystemException
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.

Specified by:
findByG_NotC_PrevAndNext in interface MBThreadPersistence
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

getByG_NotC_PrevAndNext

protected MBThread getByG_NotC_PrevAndNext(Session session,
                                           MBThread mbThread,
                                           long groupId,
                                           long categoryId,
                                           OrderByComparator orderByComparator,
                                           boolean previous)

findByG_S

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

Specified by:
findByG_S in interface MBThreadPersistence
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

public 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.

Specified by:
findByG_S in interface MBThreadPersistence
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

public 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.

Specified by:
findByG_S in interface MBThreadPersistence
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

public MBThread findByG_S_First(long groupId,
                                int status,
                                OrderByComparator orderByComparator)
                         throws NoSuchThreadException,
                                SystemException
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.

Specified by:
findByG_S_First in interface MBThreadPersistence
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

public MBThread findByG_S_Last(long groupId,
                               int status,
                               OrderByComparator orderByComparator)
                        throws NoSuchThreadException,
                               SystemException
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.

Specified by:
findByG_S_Last in interface MBThreadPersistence
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

public MBThread[] findByG_S_PrevAndNext(long threadId,
                                        long groupId,
                                        int status,
                                        OrderByComparator orderByComparator)
                                 throws NoSuchThreadException,
                                        SystemException
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.

Specified by:
findByG_S_PrevAndNext in interface MBThreadPersistence
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

getByG_S_PrevAndNext

protected MBThread getByG_S_PrevAndNext(Session session,
                                        MBThread mbThread,
                                        long groupId,
                                        int status,
                                        OrderByComparator orderByComparator,
                                        boolean previous)

findByC_P

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

Specified by:
findByC_P in interface MBThreadPersistence
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

public 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.

Specified by:
findByC_P in interface MBThreadPersistence
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

public 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.

Specified by:
findByC_P in interface MBThreadPersistence
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

public MBThread findByC_P_First(long categoryId,
                                double priority,
                                OrderByComparator orderByComparator)
                         throws NoSuchThreadException,
                                SystemException
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.

Specified by:
findByC_P_First in interface MBThreadPersistence
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

public MBThread findByC_P_Last(long categoryId,
                               double priority,
                               OrderByComparator orderByComparator)
                        throws NoSuchThreadException,
                               SystemException
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.

Specified by:
findByC_P_Last in interface MBThreadPersistence
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

public MBThread[] findByC_P_PrevAndNext(long threadId,
                                        long categoryId,
                                        double priority,
                                        OrderByComparator orderByComparator)
                                 throws NoSuchThreadException,
                                        SystemException
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.

Specified by:
findByC_P_PrevAndNext in interface MBThreadPersistence
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

getByC_P_PrevAndNext

protected MBThread getByC_P_PrevAndNext(Session session,
                                        MBThread mbThread,
                                        long categoryId,
                                        double priority,
                                        OrderByComparator orderByComparator,
                                        boolean previous)

findByG_C_L

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

Specified by:
findByG_C_L in interface MBThreadPersistence
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

public 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.

Specified by:
findByG_C_L in interface MBThreadPersistence
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

public 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.

Specified by:
findByG_C_L in interface MBThreadPersistence
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

public MBThread findByG_C_L_First(long groupId,
                                  long categoryId,
                                  Date lastPostDate,
                                  OrderByComparator orderByComparator)
                           throws NoSuchThreadException,
                                  SystemException
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.

Specified by:
findByG_C_L_First in interface MBThreadPersistence
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

public MBThread findByG_C_L_Last(long groupId,
                                 long categoryId,
                                 Date lastPostDate,
                                 OrderByComparator orderByComparator)
                          throws NoSuchThreadException,
                                 SystemException
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.

Specified by:
findByG_C_L_Last in interface MBThreadPersistence
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

public MBThread[] findByG_C_L_PrevAndNext(long threadId,
                                          long groupId,
                                          long categoryId,
                                          Date lastPostDate,
                                          OrderByComparator orderByComparator)
                                   throws NoSuchThreadException,
                                          SystemException
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.

Specified by:
findByG_C_L_PrevAndNext in interface MBThreadPersistence
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

getByG_C_L_PrevAndNext

protected MBThread getByG_C_L_PrevAndNext(Session session,
                                          MBThread mbThread,
                                          long groupId,
                                          long categoryId,
                                          Date lastPostDate,
                                          OrderByComparator orderByComparator,
                                          boolean previous)

findByG_C_S

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

Specified by:
findByG_C_S in interface MBThreadPersistence
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

public 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.

Specified by:
findByG_C_S in interface MBThreadPersistence
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

public 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.

Specified by:
findByG_C_S in interface MBThreadPersistence
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

public MBThread findByG_C_S_First(long groupId,
                                  long categoryId,
                                  int status,
                                  OrderByComparator orderByComparator)
                           throws NoSuchThreadException,
                                  SystemException
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.

Specified by:
findByG_C_S_First in interface MBThreadPersistence
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

public MBThread findByG_C_S_Last(long groupId,
                                 long categoryId,
                                 int status,
                                 OrderByComparator orderByComparator)
                          throws NoSuchThreadException,
                                 SystemException
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.

Specified by:
findByG_C_S_Last in interface MBThreadPersistence
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

public MBThread[] findByG_C_S_PrevAndNext(long threadId,
                                          long groupId,
                                          long categoryId,
                                          int status,
                                          OrderByComparator orderByComparator)
                                   throws NoSuchThreadException,
                                          SystemException
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.

Specified by:
findByG_C_S_PrevAndNext in interface MBThreadPersistence
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

getByG_C_S_PrevAndNext

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

findByG_C_S

public 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.

Specified by:
findByG_C_S in interface MBThreadPersistence
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

public 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.

Specified by:
findByG_C_S in interface MBThreadPersistence
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

public 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.

Specified by:
findByG_C_S in interface MBThreadPersistence
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

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

Specified by:
findByG_NotC_S in interface MBThreadPersistence
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

public 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.

Specified by:
findByG_NotC_S in interface MBThreadPersistence
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

public 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.

Specified by:
findByG_NotC_S in interface MBThreadPersistence
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

public MBThread findByG_NotC_S_First(long groupId,
                                     long categoryId,
                                     int status,
                                     OrderByComparator orderByComparator)
                              throws NoSuchThreadException,
                                     SystemException
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.

Specified by:
findByG_NotC_S_First in interface MBThreadPersistence
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

public MBThread findByG_NotC_S_Last(long groupId,
                                    long categoryId,
                                    int status,
                                    OrderByComparator orderByComparator)
                             throws NoSuchThreadException,
                                    SystemException
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.

Specified by:
findByG_NotC_S_Last in interface MBThreadPersistence
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

public MBThread[] findByG_NotC_S_PrevAndNext(long threadId,
                                             long groupId,
                                             long categoryId,
                                             int status,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchThreadException,
                                             SystemException
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.

Specified by:
findByG_NotC_S_PrevAndNext in interface MBThreadPersistence
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

getByG_NotC_S_PrevAndNext

protected MBThread getByG_NotC_S_PrevAndNext(Session session,
                                             MBThread mbThread,
                                             long groupId,
                                             long categoryId,
                                             int status,
                                             OrderByComparator orderByComparator,
                                             boolean previous)

findAll

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

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

findAll

public 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.

Specified by:
findAll in interface MBThreadPersistence
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

public 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.

Specified by:
findAll in interface MBThreadPersistence
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

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

Specified by:
removeByGroupId in interface MBThreadPersistence
Parameters:
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred

removeByG_C

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

Specified by:
removeByG_C in interface MBThreadPersistence
Parameters:
groupId - the group id to search with
categoryId - the category id to search with
Throws:
SystemException - if a system exception occurred

removeByG_NotC

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

Specified by:
removeByG_NotC in interface MBThreadPersistence
Parameters:
groupId - the group id to search with
categoryId - the category id to search with
Throws:
SystemException - if a system exception occurred

removeByG_S

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

Specified by:
removeByG_S in interface MBThreadPersistence
Parameters:
groupId - the group id to search with
status - the status to search with
Throws:
SystemException - if a system exception occurred

removeByC_P

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

Specified by:
removeByC_P in interface MBThreadPersistence
Parameters:
categoryId - the category id to search with
priority - the priority to search with
Throws:
SystemException - if a system exception occurred

removeByG_C_L

public 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.

Specified by:
removeByG_C_L in interface MBThreadPersistence
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

public 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.

Specified by:
removeByG_C_S in interface MBThreadPersistence
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

public 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.

Specified by:
removeByG_NotC_S in interface MBThreadPersistence
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

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

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

countByGroupId

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

Specified by:
countByGroupId in interface MBThreadPersistence
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

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

Specified by:
countByG_C in interface MBThreadPersistence
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

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

Specified by:
countByG_C in interface MBThreadPersistence
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

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

Specified by:
countByG_NotC in interface MBThreadPersistence
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

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

Specified by:
countByG_S in interface MBThreadPersistence
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

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

Specified by:
countByC_P in interface MBThreadPersistence
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

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

Specified by:
countByG_C_L in interface MBThreadPersistence
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

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

Specified by:
countByG_C_S in interface MBThreadPersistence
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

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

Specified by:
countByG_C_S in interface MBThreadPersistence
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

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

Specified by:
countByG_NotC_S in interface MBThreadPersistence
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

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

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

afterPropertiesSet

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


Liferay 6.0.5