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


public interface MBThreadPersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByCategoryId(long categoryId)
           
 MBThread create(long threadId)
           
 MBThread fetchByPrimaryKey(long threadId)
           
 java.util.List<MBThread> findAll()
           
 java.util.List<MBThread> findAll(int begin, int end)
           
 java.util.List<MBThread> findAll(int begin, 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 begin, int end)
           
 java.util.List<MBThread> findByCategoryId(long categoryId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBThread findByPrimaryKey(long threadId)
           
 java.util.List<MBThread> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List<MBThread> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
 MBThread remove(long threadId)
           
 MBThread remove(MBThread mbThread)
           
 void removeAll()
           
 void removeByCategoryId(long categoryId)
           
 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)
           
 

Method Detail

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

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 begin,
                                          int end)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCategoryId

java.util.List<MBThread> 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

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

findWithDynamicQuery

java.util.List<MBThread> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

java.util.List<MBThread> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                              int begin,
                                              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 begin,
                                 int end)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<MBThread> findAll(int begin,
                                 int end,
                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                 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

removeAll

void removeAll()
               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

countAll

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