com.liferay.portlet.messageboards.service.persistence
Interface MBDiscussionPersistence
- All Superinterfaces:
- BasePersistence
public interface MBDiscussionPersistence
- extends BasePersistence
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
void |
cacheResult(java.util.List<MBDiscussion> mbDiscussions)
|
void |
cacheResult(MBDiscussion mbDiscussion)
|
void |
clearCache()
|
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)
|
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)
|
MBDiscussion |
remove(long discussionId)
|
MBDiscussion |
remove(MBDiscussion mbDiscussion)
|
void |
removeAll()
|
void |
removeByC_C(long classNameId,
long classPK)
|
void |
removeByClassNameId(long classNameId)
|
void |
removeByThreadId(long threadId)
|
MBDiscussion |
update(MBDiscussion mbDiscussion)
Deprecated. Use update(MBDiscussion mbDiscussion, boolean merge) . |
MBDiscussion |
update(MBDiscussion mbDiscussion,
boolean merge)
Add, update, or merge, the entity. |
MBDiscussion |
updateImpl(MBDiscussion mbDiscussion,
boolean merge)
|
cacheResult
void cacheResult(MBDiscussion mbDiscussion)
cacheResult
void cacheResult(java.util.List<MBDiscussion> mbDiscussions)
clearCache
void clearCache()
- Specified by:
clearCache
in interface BasePersistence
create
MBDiscussion create(long discussionId)
remove
MBDiscussion remove(long discussionId)
throws com.liferay.portal.SystemException,
NoSuchDiscussionException
- Throws:
com.liferay.portal.SystemException
NoSuchDiscussionException
remove
MBDiscussion remove(MBDiscussion mbDiscussion)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
MBDiscussion update(MBDiscussion mbDiscussion)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(MBDiscussion mbDiscussion, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
MBDiscussion update(MBDiscussion mbDiscussion,
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:
mbDiscussion
- the entity to add, update, or mergemerge
- 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 mbDiscussion 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
MBDiscussion updateImpl(MBDiscussion mbDiscussion,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
MBDiscussion findByPrimaryKey(long discussionId)
throws com.liferay.portal.SystemException,
NoSuchDiscussionException
- Throws:
com.liferay.portal.SystemException
NoSuchDiscussionException
fetchByPrimaryKey
MBDiscussion fetchByPrimaryKey(long discussionId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByClassNameId
java.util.List<MBDiscussion> findByClassNameId(long classNameId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByClassNameId
java.util.List<MBDiscussion> findByClassNameId(long classNameId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByClassNameId
java.util.List<MBDiscussion> findByClassNameId(long classNameId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByClassNameId_First
MBDiscussion findByClassNameId_First(long classNameId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchDiscussionException
- Throws:
com.liferay.portal.SystemException
NoSuchDiscussionException
findByClassNameId_Last
MBDiscussion findByClassNameId_Last(long classNameId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchDiscussionException
- Throws:
com.liferay.portal.SystemException
NoSuchDiscussionException
findByClassNameId_PrevAndNext
MBDiscussion[] findByClassNameId_PrevAndNext(long discussionId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchDiscussionException
- Throws:
com.liferay.portal.SystemException
NoSuchDiscussionException
findByThreadId
MBDiscussion findByThreadId(long threadId)
throws com.liferay.portal.SystemException,
NoSuchDiscussionException
- Throws:
com.liferay.portal.SystemException
NoSuchDiscussionException
fetchByThreadId
MBDiscussion fetchByThreadId(long threadId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
fetchByThreadId
MBDiscussion fetchByThreadId(long threadId,
boolean retrieveFromCache)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByC_C
MBDiscussion findByC_C(long classNameId,
long classPK)
throws com.liferay.portal.SystemException,
NoSuchDiscussionException
- Throws:
com.liferay.portal.SystemException
NoSuchDiscussionException
fetchByC_C
MBDiscussion fetchByC_C(long classNameId,
long classPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
fetchByC_C
MBDiscussion fetchByC_C(long classNameId,
long classPK,
boolean retrieveFromCache)
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)
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<MBDiscussion> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
java.util.List<MBDiscussion> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
java.util.List<MBDiscussion> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByClassNameId
void removeByClassNameId(long classNameId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByThreadId
void removeByThreadId(long threadId)
throws com.liferay.portal.SystemException,
NoSuchDiscussionException
- Throws:
com.liferay.portal.SystemException
NoSuchDiscussionException
removeByC_C
void removeByC_C(long classNameId,
long classPK)
throws com.liferay.portal.SystemException,
NoSuchDiscussionException
- Throws:
com.liferay.portal.SystemException
NoSuchDiscussionException
removeAll
void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByClassNameId
int countByClassNameId(long classNameId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByThreadId
int countByThreadId(long threadId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByC_C
int countByC_C(long classNameId,
long classPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countAll
int countAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException