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

java.lang.Object
  extended bycom.liferay.portlet.messageboards.service.persistence.MBThreadUtil

public class MBThreadUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
MBThreadUtil()
           
 
Method Summary
static int countAll()
           
static int countByCategoryId(long categoryId)
           
static com.liferay.portlet.messageboards.model.MBThread create(long threadId)
           
static com.liferay.portlet.messageboards.model.MBThread fetchByPrimaryKey(long threadId)
           
static java.util.List findAll()
           
static java.util.List findAll(int begin, int end)
           
static java.util.List findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.messageboards.model.MBThread findByCategoryId_First(long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.messageboards.model.MBThread findByCategoryId_Last(long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.messageboards.model.MBThread[] findByCategoryId_PrevAndNext(long threadId, long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List findByCategoryId(long categoryId)
           
static java.util.List findByCategoryId(long categoryId, int begin, int end)
           
static java.util.List findByCategoryId(long categoryId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.messageboards.model.MBThread findByPrimaryKey(long threadId)
           
static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
static MBThreadPersistence getPersistence()
           
static com.liferay.portlet.messageboards.model.MBThread remove(long threadId)
           
static com.liferay.portlet.messageboards.model.MBThread remove(com.liferay.portlet.messageboards.model.MBThread mbThread)
           
static void removeAll()
           
static void removeByCategoryId(long categoryId)
           
 void setPersistence(MBThreadPersistence persistence)
           
static com.liferay.portlet.messageboards.model.MBThread update(com.liferay.portlet.messageboards.model.MBThread mbThread)
           
static com.liferay.portlet.messageboards.model.MBThread update(com.liferay.portlet.messageboards.model.MBThread mbThread, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBThreadUtil

public MBThreadUtil()
Method Detail

create

public static com.liferay.portlet.messageboards.model.MBThread create(long threadId)

remove

public static com.liferay.portlet.messageboards.model.MBThread remove(long threadId)
                                                               throws com.liferay.portal.SystemException,
                                                                      com.liferay.portlet.messageboards.NoSuchThreadException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchThreadException

remove

public static com.liferay.portlet.messageboards.model.MBThread remove(com.liferay.portlet.messageboards.model.MBThread mbThread)
                                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static com.liferay.portlet.messageboards.model.MBThread update(com.liferay.portlet.messageboards.model.MBThread mbThread)
                                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static com.liferay.portlet.messageboards.model.MBThread update(com.liferay.portlet.messageboards.model.MBThread mbThread,
                                                                      boolean merge)
                                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public static com.liferay.portlet.messageboards.model.MBThread findByPrimaryKey(long threadId)
                                                                         throws com.liferay.portal.SystemException,
                                                                                com.liferay.portlet.messageboards.NoSuchThreadException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchThreadException

fetchByPrimaryKey

public static com.liferay.portlet.messageboards.model.MBThread fetchByPrimaryKey(long threadId)
                                                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCategoryId

public static java.util.List findByCategoryId(long categoryId)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCategoryId

public static java.util.List findByCategoryId(long categoryId,
                                              int begin,
                                              int end)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCategoryId

public static java.util.List findByCategoryId(long categoryId,
                                              int begin,
                                              int end,
                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCategoryId_First

public static com.liferay.portlet.messageboards.model.MBThread findByCategoryId_First(long categoryId,
                                                                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                               throws com.liferay.portal.SystemException,
                                                                                      com.liferay.portlet.messageboards.NoSuchThreadException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchThreadException

findByCategoryId_Last

public static com.liferay.portlet.messageboards.model.MBThread findByCategoryId_Last(long categoryId,
                                                                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                              throws com.liferay.portal.SystemException,
                                                                                     com.liferay.portlet.messageboards.NoSuchThreadException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchThreadException

findByCategoryId_PrevAndNext

public static com.liferay.portlet.messageboards.model.MBThread[] findByCategoryId_PrevAndNext(long threadId,
                                                                                              long categoryId,
                                                                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                                       throws com.liferay.portal.SystemException,
                                                                                              com.liferay.portlet.messageboards.NoSuchThreadException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchThreadException

findWithDynamicQuery

public static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                                  int begin,
                                                  int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List findAll()
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List findAll(int begin,
                                     int end)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List findAll(int begin,
                                     int end,
                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByCategoryId

public static void removeByCategoryId(long categoryId)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeAll

public static void removeAll()
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByCategoryId

public static int countByCategoryId(long categoryId)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

public static int countAll()
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPersistence

public static MBThreadPersistence getPersistence()

setPersistence

public void setPersistence(MBThreadPersistence persistence)