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

All Superinterfaces:
BasePersistence

public interface MBThreadPersistence
extends BasePersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 void cacheResult(java.util.List<MBThread> mbThreads)
           
 void cacheResult(MBThread mbThread)
           
 void clearCache()
           
 int countAll()
           
 int countByC_L(long categoryId, java.util.Date lastPostDate)
           
 int countByCategoryId(long categoryId)
           
 int countByGroupId(long groupId)
           
 MBThread create(long threadId)
           
 MBThread fetchByPrimaryKey(long threadId)
           
 java.util.List<MBThread> findAll()
           
 java.util.List<MBThread> findAll(int start, int end)
           
 java.util.List<MBThread> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBThread findByC_L_First(long categoryId, java.util.Date lastPostDate, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBThread findByC_L_Last(long categoryId, java.util.Date lastPostDate, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBThread[] findByC_L_PrevAndNext(long threadId, long categoryId, java.util.Date lastPostDate, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<MBThread> findByC_L(long categoryId, java.util.Date lastPostDate)
           
 java.util.List<MBThread> findByC_L(long categoryId, java.util.Date lastPostDate, int start, int end)
           
 java.util.List<MBThread> findByC_L(long categoryId, java.util.Date lastPostDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBThread findByCategoryId_First(long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBThread findByCategoryId_Last(long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBThread[] findByCategoryId_PrevAndNext(long threadId, long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<MBThread> findByCategoryId(long categoryId)
           
 java.util.List<MBThread> findByCategoryId(long categoryId, int start, int end)
           
 java.util.List<MBThread> findByCategoryId(long categoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBThread findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBThread findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBThread[] findByGroupId_PrevAndNext(long threadId, long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<MBThread> findByGroupId(long groupId)
           
 java.util.List<MBThread> findByGroupId(long groupId, int start, int end)
           
 java.util.List<MBThread> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBThread findByPrimaryKey(long threadId)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 MBThread remove(long threadId)
           
 MBThread remove(MBThread mbThread)
           
 void removeAll()
           
 void removeByC_L(long categoryId, java.util.Date lastPostDate)
           
 void removeByCategoryId(long categoryId)
           
 void removeByGroupId(long groupId)
           
 MBThread update(MBThread mbThread)
          Deprecated. Use update(MBThread mbThread, boolean merge).
 MBThread update(MBThread mbThread, boolean merge)
          Add, update, or merge, the entity.
 MBThread updateImpl(MBThread mbThread, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

cacheResult

void cacheResult(MBThread mbThread)

cacheResult

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

clearCache

void clearCache()
Specified by:
clearCache in interface BasePersistence

create

MBThread create(long threadId)

remove

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

remove

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

update

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

Throws:
com.liferay.portal.SystemException

update

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

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

findByPrimaryKey

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

fetchByPrimaryKey

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

findByGroupId

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

findByGroupId

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

findByGroupId

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

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

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

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

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

findByCategoryId

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

findByCategoryId

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

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

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

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

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

findByC_L

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

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

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

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

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

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

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

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

findAll

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

findAll

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

void removeByGroupId(long groupId)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByCategoryId

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

removeByC_L

void removeByC_L(long categoryId,
                 java.util.Date lastPostDate)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeAll

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

countByGroupId

int countByGroupId(long groupId)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByCategoryId

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

countByC_L

int countByC_L(long categoryId,
               java.util.Date lastPostDate)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

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