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

java.lang.Object
  extended by com.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 void cacheResult(java.util.List<MBThread> mbThreads)
           
static void cacheResult(MBThread mbThread)
           
static void clearCache()
           
static int countAll()
           
static int countByC_L(long categoryId, java.util.Date lastPostDate)
           
static int countByCategoryId(long categoryId)
           
static int countByGroupId(long groupId)
           
static MBThread create(long threadId)
           
static MBThread fetchByPrimaryKey(long threadId)
           
static java.util.List<MBThread> findAll()
           
static java.util.List<MBThread> findAll(int start, int end)
           
static java.util.List<MBThread> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static MBThread findByC_L_First(long categoryId, java.util.Date lastPostDate, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static MBThread findByC_L_Last(long categoryId, java.util.Date lastPostDate, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static MBThread[] findByC_L_PrevAndNext(long threadId, long categoryId, java.util.Date lastPostDate, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<MBThread> findByC_L(long categoryId, java.util.Date lastPostDate)
           
static java.util.List<MBThread> findByC_L(long categoryId, java.util.Date lastPostDate, int start, int end)
           
static java.util.List<MBThread> findByC_L(long categoryId, java.util.Date lastPostDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static MBThread findByCategoryId_First(long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static MBThread findByCategoryId_Last(long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static MBThread[] findByCategoryId_PrevAndNext(long threadId, long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<MBThread> findByCategoryId(long categoryId)
           
static java.util.List<MBThread> findByCategoryId(long categoryId, int start, int end)
           
static java.util.List<MBThread> findByCategoryId(long categoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static MBThread findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static MBThread findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static MBThread[] findByGroupId_PrevAndNext(long threadId, long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<MBThread> findByGroupId(long groupId)
           
static java.util.List<MBThread> findByGroupId(long groupId, int start, int end)
           
static java.util.List<MBThread> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static MBThread findByPrimaryKey(long threadId)
           
static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
static MBThreadPersistence getPersistence()
           
static MBThread remove(long threadId)
           
static MBThread remove(MBThread mbThread)
           
static void removeAll()
           
static void removeByC_L(long categoryId, java.util.Date lastPostDate)
           
static void removeByCategoryId(long categoryId)
           
static void removeByGroupId(long groupId)
           
 void setPersistence(MBThreadPersistence persistence)
           
static MBThread update(MBThread mbThread)
          Deprecated. Use update(MBThread mbThread, boolean merge).
static MBThread update(MBThread mbThread, boolean merge)
          Add, update, or merge, the entity.
static MBThread updateImpl(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

cacheResult

public static void cacheResult(MBThread mbThread)

cacheResult

public static void cacheResult(java.util.List<MBThread> mbThreads)

clearCache

public static void clearCache()

create

public static MBThread create(long threadId)

remove

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

remove

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

update

public static MBThread update(MBThread mbThread)
                       throws com.liferay.portal.SystemException
Deprecated. Use update(MBThread mbThread, boolean merge).

Throws:
com.liferay.portal.SystemException

update

public static MBThread update(MBThread mbThread,
                              boolean merge)
                       throws com.liferay.portal.SystemException
Add, update, or merge, the entity. This method also calls the model listeners to trigger the proper events associated with adding, deleting, or updating an entity.

Parameters:
mbThread - the entity to add, update, or merge
merge - boolean value for whether to merge the entity. The default value is false. Setting merge to true is more expensive and should only be true when mbThread is transient. See LEP-5473 for a detailed discussion of this method.
Returns:
true if the portlet can be displayed via Ajax
Throws:
com.liferay.portal.SystemException

updateImpl

public static MBThread updateImpl(MBThread mbThread,
                                  boolean merge)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

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

fetchByPrimaryKey

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

findByGroupId

public static java.util.List<MBThread> findByGroupId(long groupId)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

public static java.util.List<MBThread> findByGroupId(long groupId,
                                                     int start,
                                                     int end)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

public static java.util.List<MBThread> findByGroupId(long groupId,
                                                     int start,
                                                     int end,
                                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId_First

public static MBThread findByGroupId_First(long groupId,
                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                                    throws com.liferay.portal.SystemException,
                                           NoSuchThreadException
Throws:
com.liferay.portal.SystemException
NoSuchThreadException

findByGroupId_Last

public static MBThread findByGroupId_Last(long groupId,
                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                                   throws com.liferay.portal.SystemException,
                                          NoSuchThreadException
Throws:
com.liferay.portal.SystemException
NoSuchThreadException

findByGroupId_PrevAndNext

public static MBThread[] findByGroupId_PrevAndNext(long threadId,
                                                   long groupId,
                                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                            throws com.liferay.portal.SystemException,
                                                   NoSuchThreadException
Throws:
com.liferay.portal.SystemException
NoSuchThreadException

findByCategoryId

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

findByCategoryId

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

findByCategoryId

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

findByCategoryId_First

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

findByCategoryId_Last

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

findByCategoryId_PrevAndNext

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

findByC_L

public static java.util.List<MBThread> findByC_L(long categoryId,
                                                 java.util.Date lastPostDate)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_L

public static java.util.List<MBThread> findByC_L(long categoryId,
                                                 java.util.Date lastPostDate,
                                                 int start,
                                                 int end)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_L

public static java.util.List<MBThread> findByC_L(long categoryId,
                                                 java.util.Date lastPostDate,
                                                 int start,
                                                 int end,
                                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_L_First

public static MBThread findByC_L_First(long categoryId,
                                       java.util.Date lastPostDate,
                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                throws com.liferay.portal.SystemException,
                                       NoSuchThreadException
Throws:
com.liferay.portal.SystemException
NoSuchThreadException

findByC_L_Last

public static MBThread findByC_L_Last(long categoryId,
                                      java.util.Date lastPostDate,
                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                               throws com.liferay.portal.SystemException,
                                      NoSuchThreadException
Throws:
com.liferay.portal.SystemException
NoSuchThreadException

findByC_L_PrevAndNext

public static MBThread[] findByC_L_PrevAndNext(long threadId,
                                               long categoryId,
                                               java.util.Date lastPostDate,
                                               com.liferay.portal.kernel.util.OrderByComparator obc)
                                        throws com.liferay.portal.SystemException,
                                               NoSuchThreadException
Throws:
com.liferay.portal.SystemException
NoSuchThreadException

findWithDynamicQuery

public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                                    int start,
                                                                    int end)
                                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

public static java.util.List<MBThread> findAll(int start,
                                               int end)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

removeByGroupId

public static void removeByGroupId(long groupId)
                            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

removeByC_L

public static void removeByC_L(long categoryId,
                               java.util.Date lastPostDate)
                        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

countByGroupId

public static int countByGroupId(long groupId)
                          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

countByC_L

public static int countByC_L(long categoryId,
                             java.util.Date lastPostDate)
                      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)