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

All Superinterfaces:
BasePersistence

@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface MBThreadPersistence
extends BasePersistence

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 start, int end)
           
 java.util.List<MBThread> findAll(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 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 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)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBThread> findByCategoryId(long categoryId)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCategoryId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBThread> findByCategoryId(long categoryId,
                                                        int start,
                                                        int end)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCategoryId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBThread> findAll()
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBThread> findAll(int start,
                                               int end)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByCategoryId(long categoryId)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException