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

All Superinterfaces:
BasePersistence<MBDiscussion>

public interface MBDiscussionPersistence
extends BasePersistence<MBDiscussion>

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Author:
Brian Wing Shun Chan
See Also:
MBDiscussionPersistenceImpl, MBDiscussionUtil
Generated:

Method Summary
 void cacheResult(java.util.List<MBDiscussion> mbDiscussions)
           
 void cacheResult(MBDiscussion mbDiscussion)
           
 int countAll()
           
 int countByC_C(long classNameId, long classPK)
           
 int countByClassNameId(long classNameId)
           
 int countByThreadId(long threadId)
           
 MBDiscussion create(long discussionId)
           
 MBDiscussion fetchByC_C(long classNameId, long classPK)
           
 MBDiscussion fetchByC_C(long classNameId, long classPK, boolean retrieveFromCache)
           
 MBDiscussion fetchByPrimaryKey(long discussionId)
           
 MBDiscussion fetchByThreadId(long threadId)
           
 MBDiscussion fetchByThreadId(long threadId, boolean retrieveFromCache)
           
 java.util.List<MBDiscussion> findAll()
           
 java.util.List<MBDiscussion> findAll(int start, int end)
           
 java.util.List<MBDiscussion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBDiscussion findByC_C(long classNameId, long classPK)
           
 MBDiscussion findByClassNameId_First(long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBDiscussion findByClassNameId_Last(long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBDiscussion[] findByClassNameId_PrevAndNext(long discussionId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<MBDiscussion> findByClassNameId(long classNameId)
           
 java.util.List<MBDiscussion> findByClassNameId(long classNameId, int start, int end)
           
 java.util.List<MBDiscussion> findByClassNameId(long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBDiscussion findByPrimaryKey(long discussionId)
           
 MBDiscussion findByThreadId(long threadId)
           
 MBDiscussion remove(long discussionId)
           
 void removeAll()
           
 void removeByC_C(long classNameId, long classPK)
           
 void removeByClassNameId(long classNameId)
           
 void removeByThreadId(long threadId)
           
 MBDiscussion updateImpl(MBDiscussion mbDiscussion, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, getListeners, registerListener, remove, remove, unregisterListener, update
 

Method Detail

cacheResult

void cacheResult(MBDiscussion mbDiscussion)

cacheResult

void cacheResult(java.util.List<MBDiscussion> mbDiscussions)

create

MBDiscussion create(long discussionId)

remove

MBDiscussion remove(long discussionId)
                    throws com.liferay.portal.kernel.exception.SystemException,
                           NoSuchDiscussionException
Throws:
com.liferay.portal.kernel.exception.SystemException
NoSuchDiscussionException

updateImpl

MBDiscussion updateImpl(MBDiscussion mbDiscussion,
                        boolean merge)
                        throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findByPrimaryKey

MBDiscussion findByPrimaryKey(long discussionId)
                              throws com.liferay.portal.kernel.exception.SystemException,
                                     NoSuchDiscussionException
Throws:
com.liferay.portal.kernel.exception.SystemException
NoSuchDiscussionException

fetchByPrimaryKey

MBDiscussion fetchByPrimaryKey(long discussionId)
                               throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findByClassNameId

java.util.List<MBDiscussion> findByClassNameId(long classNameId)
                                               throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findByClassNameId

java.util.List<MBDiscussion> findByClassNameId(long classNameId,
                                               int start,
                                               int end)
                                               throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findByClassNameId

java.util.List<MBDiscussion> findByClassNameId(long classNameId,
                                               int start,
                                               int end,
                                               com.liferay.portal.kernel.util.OrderByComparator obc)
                                               throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findByClassNameId_First

MBDiscussion findByClassNameId_First(long classNameId,
                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws com.liferay.portal.kernel.exception.SystemException,
                                            NoSuchDiscussionException
Throws:
com.liferay.portal.kernel.exception.SystemException
NoSuchDiscussionException

findByClassNameId_Last

MBDiscussion findByClassNameId_Last(long classNameId,
                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                    throws com.liferay.portal.kernel.exception.SystemException,
                                           NoSuchDiscussionException
Throws:
com.liferay.portal.kernel.exception.SystemException
NoSuchDiscussionException

findByClassNameId_PrevAndNext

MBDiscussion[] findByClassNameId_PrevAndNext(long discussionId,
                                             long classNameId,
                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                             throws com.liferay.portal.kernel.exception.SystemException,
                                                    NoSuchDiscussionException
Throws:
com.liferay.portal.kernel.exception.SystemException
NoSuchDiscussionException

findByThreadId

MBDiscussion findByThreadId(long threadId)
                            throws com.liferay.portal.kernel.exception.SystemException,
                                   NoSuchDiscussionException
Throws:
com.liferay.portal.kernel.exception.SystemException
NoSuchDiscussionException

fetchByThreadId

MBDiscussion fetchByThreadId(long threadId)
                             throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

fetchByThreadId

MBDiscussion fetchByThreadId(long threadId,
                             boolean retrieveFromCache)
                             throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findByC_C

MBDiscussion findByC_C(long classNameId,
                       long classPK)
                       throws com.liferay.portal.kernel.exception.SystemException,
                              NoSuchDiscussionException
Throws:
com.liferay.portal.kernel.exception.SystemException
NoSuchDiscussionException

fetchByC_C

MBDiscussion fetchByC_C(long classNameId,
                        long classPK)
                        throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

fetchByC_C

MBDiscussion fetchByC_C(long classNameId,
                        long classPK,
                        boolean retrieveFromCache)
                        throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findAll

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

findAll

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

findAll

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

removeByClassNameId

void removeByClassNameId(long classNameId)
                         throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

removeByThreadId

void removeByThreadId(long threadId)
                      throws com.liferay.portal.kernel.exception.SystemException,
                             NoSuchDiscussionException
Throws:
com.liferay.portal.kernel.exception.SystemException
NoSuchDiscussionException

removeByC_C

void removeByC_C(long classNameId,
                 long classPK)
                 throws com.liferay.portal.kernel.exception.SystemException,
                        NoSuchDiscussionException
Throws:
com.liferay.portal.kernel.exception.SystemException
NoSuchDiscussionException

removeAll

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

countByClassNameId

int countByClassNameId(long classNameId)
                       throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

countByThreadId

int countByThreadId(long threadId)
                    throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

countByC_C

int countByC_C(long classNameId,
               long classPK)
               throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

countAll

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