|
Liferay 6.0.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<MBBan>
com.liferay.portlet.messageboards.service.persistence.MBBanPersistenceImpl
public class MBBanPersistenceImpl
MBBanPersistence,
MBBanUtil| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
COUNT_COLUMN_NAME, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR |
| Constructor Summary | |
|---|---|
MBBanPersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
void |
cacheResult(List<MBBan> mbBans)
|
void |
cacheResult(MBBan mbBan)
|
void |
clearCache()
Clears the cache for all instances of this model. |
void |
clearCache(MBBan mbBan)
Clears the cache for one instance of this model. |
int |
countAll()
|
int |
countByBanUserId(long banUserId)
|
int |
countByG_B(long groupId,
long banUserId)
|
int |
countByGroupId(long groupId)
|
int |
countByUserId(long userId)
|
MBBan |
create(long banId)
|
MBBan |
fetchByG_B(long groupId,
long banUserId)
|
MBBan |
fetchByG_B(long groupId,
long banUserId,
boolean retrieveFromCache)
|
MBBan |
fetchByPrimaryKey(long banId)
|
MBBan |
fetchByPrimaryKey(Serializable primaryKey)
Finds an instance of this model by its primary key, or return null if it could not be found. |
List<MBBan> |
findAll()
|
List<MBBan> |
findAll(int start,
int end)
|
List<MBBan> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
|
MBBan |
findByBanUserId_First(long banUserId,
OrderByComparator orderByComparator)
|
MBBan |
findByBanUserId_Last(long banUserId,
OrderByComparator orderByComparator)
|
MBBan[] |
findByBanUserId_PrevAndNext(long banId,
long banUserId,
OrderByComparator orderByComparator)
|
List<MBBan> |
findByBanUserId(long banUserId)
|
List<MBBan> |
findByBanUserId(long banUserId,
int start,
int end)
|
List<MBBan> |
findByBanUserId(long banUserId,
int start,
int end,
OrderByComparator orderByComparator)
|
MBBan |
findByG_B(long groupId,
long banUserId)
|
MBBan |
findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
|
MBBan |
findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
|
MBBan[] |
findByGroupId_PrevAndNext(long banId,
long groupId,
OrderByComparator orderByComparator)
|
List<MBBan> |
findByGroupId(long groupId)
|
List<MBBan> |
findByGroupId(long groupId,
int start,
int end)
|
List<MBBan> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
|
MBBan |
findByPrimaryKey(long banId)
|
MBBan |
findByPrimaryKey(Serializable primaryKey)
Finds an instance of this model by its primary key, or throw an exception if it could not be found. |
MBBan |
findByUserId_First(long userId,
OrderByComparator orderByComparator)
|
MBBan |
findByUserId_Last(long userId,
OrderByComparator orderByComparator)
|
MBBan[] |
findByUserId_PrevAndNext(long banId,
long userId,
OrderByComparator orderByComparator)
|
List<MBBan> |
findByUserId(long userId)
|
List<MBBan> |
findByUserId(long userId,
int start,
int end)
|
List<MBBan> |
findByUserId(long userId,
int start,
int end,
OrderByComparator orderByComparator)
|
protected MBBan |
getByBanUserId_PrevAndNext(Session session,
MBBan mbBan,
long banUserId,
OrderByComparator orderByComparator,
boolean previous)
|
protected MBBan |
getByGroupId_PrevAndNext(Session session,
MBBan mbBan,
long groupId,
OrderByComparator orderByComparator,
boolean previous)
|
protected MBBan |
getByUserId_PrevAndNext(Session session,
MBBan mbBan,
long userId,
OrderByComparator orderByComparator,
boolean previous)
|
MBBan |
remove(long banId)
|
MBBan |
remove(Serializable primaryKey)
Removes the model instance identified by the primary key from the database, and notifies the appropriate model listeners. |
void |
removeAll()
|
void |
removeByBanUserId(long banUserId)
|
void |
removeByG_B(long groupId,
long banUserId)
|
void |
removeByGroupId(long groupId)
|
void |
removeByUserId(long userId)
|
protected MBBan |
removeImpl(MBBan mbBan)
Removes the model instance from the database. |
protected MBBan |
toUnwrappedModel(MBBan mbBan)
|
MBBan |
updateImpl(MBBan mbBan,
boolean merge)
Updates the model instance in the database or adds it if it does not yet exist. |
| Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update |
| Field Detail |
|---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST
public static final FinderPath FINDER_PATH_FIND_BY_GROUPID
public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID
public static final FinderPath FINDER_PATH_FIND_BY_USERID
public static final FinderPath FINDER_PATH_COUNT_BY_USERID
public static final FinderPath FINDER_PATH_FIND_BY_BANUSERID
public static final FinderPath FINDER_PATH_COUNT_BY_BANUSERID
public static final FinderPath FINDER_PATH_FETCH_BY_G_B
public static final FinderPath FINDER_PATH_COUNT_BY_G_B
public static final FinderPath FINDER_PATH_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
@BeanReference(type=MBBanPersistence.class) protected MBBanPersistence mbBanPersistence
@BeanReference(type=MBCategoryPersistence.class) protected MBCategoryPersistence mbCategoryPersistence
@BeanReference(type=MBDiscussionPersistence.class) protected MBDiscussionPersistence mbDiscussionPersistence
@BeanReference(type=MBMailingListPersistence.class) protected MBMailingListPersistence mbMailingListPersistence
@BeanReference(type=MBMessagePersistence.class) protected MBMessagePersistence mbMessagePersistence
@BeanReference(type=MBMessageFlagPersistence.class) protected MBMessageFlagPersistence mbMessageFlagPersistence
@BeanReference(type=MBStatsUserPersistence.class) protected MBStatsUserPersistence mbStatsUserPersistence
@BeanReference(type=MBThreadPersistence.class) protected MBThreadPersistence mbThreadPersistence
@BeanReference(type=ResourcePersistence.class) protected ResourcePersistence resourcePersistence
@BeanReference(type=UserPersistence.class) protected UserPersistence userPersistence
| Constructor Detail |
|---|
public MBBanPersistenceImpl()
| Method Detail |
|---|
public void cacheResult(MBBan mbBan)
cacheResult in interface MBBanPersistencepublic void cacheResult(List<MBBan> mbBans)
cacheResult in interface MBBanPersistencepublic void clearCache()
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
Caching information and settings can be found in
portal.properties
clearCache in interface BasePersistence<MBBan>clearCache in class BasePersistenceImpl<MBBan>public void clearCache(MBBan mbBan)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<MBBan>clearCache in class BasePersistenceImpl<MBBan>mbBan - the instance of this model to clear the cache forpublic MBBan create(long banId)
create in interface MBBanPersistence
public MBBan remove(Serializable primaryKey)
throws NoSuchModelException,
SystemException
BasePersistence
remove in interface BasePersistence<MBBan>remove in class BasePersistenceImpl<MBBan>primaryKey - the primary key of the model instance to remove
NoSuchModelException - if an instance of this model with the
primary key does not exist
SystemException - if a system exception occurred
public MBBan remove(long banId)
throws NoSuchBanException,
SystemException
remove in interface MBBanPersistenceNoSuchBanException
SystemException
protected MBBan removeImpl(MBBan mbBan)
throws SystemException
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<MBBan>mbBan - the model instance to remove
SystemException - if a system exception occurred
public MBBan updateImpl(MBBan mbBan,
boolean merge)
throws SystemException
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface MBBanPersistenceupdateImpl in class BasePersistenceImpl<MBBan>mbBan - the model instance to updatemerge - whether to merge the model instance with the current
session. See BatchSession.update(
com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean)
for an explanation.
SystemException - if a system exception occurredprotected MBBan toUnwrappedModel(MBBan mbBan)
public MBBan findByPrimaryKey(Serializable primaryKey)
throws NoSuchModelException,
SystemException
BasePersistence
findByPrimaryKey in interface BasePersistence<MBBan>findByPrimaryKey in class BasePersistenceImpl<MBBan>primaryKey - the primary key of the model instance to find
NoSuchModelException - if an instance of this model with the
primary key does not exist
SystemException - if the primary key is null, or if a
system exception occurred
public MBBan findByPrimaryKey(long banId)
throws NoSuchBanException,
SystemException
findByPrimaryKey in interface MBBanPersistenceNoSuchBanException
SystemException
public MBBan fetchByPrimaryKey(Serializable primaryKey)
throws SystemException
BasePersistencenull if it could not be found.
fetchByPrimaryKey in interface BasePersistence<MBBan>fetchByPrimaryKey in class BasePersistenceImpl<MBBan>primaryKey - the primary key of the model instance to find
null if an instance of this
model with the primary key does not exist
SystemException - if the primary key is null, or if a
system exception occurred
public MBBan fetchByPrimaryKey(long banId)
throws SystemException
fetchByPrimaryKey in interface MBBanPersistenceSystemException
public List<MBBan> findByGroupId(long groupId)
throws SystemException
findByGroupId in interface MBBanPersistenceSystemException
public List<MBBan> findByGroupId(long groupId,
int start,
int end)
throws SystemException
findByGroupId in interface MBBanPersistenceSystemException
public List<MBBan> findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
findByGroupId in interface MBBanPersistenceSystemException
public MBBan findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
throws NoSuchBanException,
SystemException
findByGroupId_First in interface MBBanPersistenceNoSuchBanException
SystemException
public MBBan findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
throws NoSuchBanException,
SystemException
findByGroupId_Last in interface MBBanPersistenceNoSuchBanException
SystemException
public MBBan[] findByGroupId_PrevAndNext(long banId,
long groupId,
OrderByComparator orderByComparator)
throws NoSuchBanException,
SystemException
findByGroupId_PrevAndNext in interface MBBanPersistenceNoSuchBanException
SystemException
protected MBBan getByGroupId_PrevAndNext(Session session,
MBBan mbBan,
long groupId,
OrderByComparator orderByComparator,
boolean previous)
public List<MBBan> findByUserId(long userId)
throws SystemException
findByUserId in interface MBBanPersistenceSystemException
public List<MBBan> findByUserId(long userId,
int start,
int end)
throws SystemException
findByUserId in interface MBBanPersistenceSystemException
public List<MBBan> findByUserId(long userId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
findByUserId in interface MBBanPersistenceSystemException
public MBBan findByUserId_First(long userId,
OrderByComparator orderByComparator)
throws NoSuchBanException,
SystemException
findByUserId_First in interface MBBanPersistenceNoSuchBanException
SystemException
public MBBan findByUserId_Last(long userId,
OrderByComparator orderByComparator)
throws NoSuchBanException,
SystemException
findByUserId_Last in interface MBBanPersistenceNoSuchBanException
SystemException
public MBBan[] findByUserId_PrevAndNext(long banId,
long userId,
OrderByComparator orderByComparator)
throws NoSuchBanException,
SystemException
findByUserId_PrevAndNext in interface MBBanPersistenceNoSuchBanException
SystemException
protected MBBan getByUserId_PrevAndNext(Session session,
MBBan mbBan,
long userId,
OrderByComparator orderByComparator,
boolean previous)
public List<MBBan> findByBanUserId(long banUserId)
throws SystemException
findByBanUserId in interface MBBanPersistenceSystemException
public List<MBBan> findByBanUserId(long banUserId,
int start,
int end)
throws SystemException
findByBanUserId in interface MBBanPersistenceSystemException
public List<MBBan> findByBanUserId(long banUserId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
findByBanUserId in interface MBBanPersistenceSystemException
public MBBan findByBanUserId_First(long banUserId,
OrderByComparator orderByComparator)
throws NoSuchBanException,
SystemException
findByBanUserId_First in interface MBBanPersistenceNoSuchBanException
SystemException
public MBBan findByBanUserId_Last(long banUserId,
OrderByComparator orderByComparator)
throws NoSuchBanException,
SystemException
findByBanUserId_Last in interface MBBanPersistenceNoSuchBanException
SystemException
public MBBan[] findByBanUserId_PrevAndNext(long banId,
long banUserId,
OrderByComparator orderByComparator)
throws NoSuchBanException,
SystemException
findByBanUserId_PrevAndNext in interface MBBanPersistenceNoSuchBanException
SystemException
protected MBBan getByBanUserId_PrevAndNext(Session session,
MBBan mbBan,
long banUserId,
OrderByComparator orderByComparator,
boolean previous)
public MBBan findByG_B(long groupId,
long banUserId)
throws NoSuchBanException,
SystemException
findByG_B in interface MBBanPersistenceNoSuchBanException
SystemException
public MBBan fetchByG_B(long groupId,
long banUserId)
throws SystemException
fetchByG_B in interface MBBanPersistenceSystemException
public MBBan fetchByG_B(long groupId,
long banUserId,
boolean retrieveFromCache)
throws SystemException
fetchByG_B in interface MBBanPersistenceSystemException
public List<MBBan> findAll()
throws SystemException
findAll in interface MBBanPersistenceSystemException
public List<MBBan> findAll(int start,
int end)
throws SystemException
findAll in interface MBBanPersistenceSystemException
public List<MBBan> findAll(int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
findAll in interface MBBanPersistenceSystemException
public void removeByGroupId(long groupId)
throws SystemException
removeByGroupId in interface MBBanPersistenceSystemException
public void removeByUserId(long userId)
throws SystemException
removeByUserId in interface MBBanPersistenceSystemException
public void removeByBanUserId(long banUserId)
throws SystemException
removeByBanUserId in interface MBBanPersistenceSystemException
public void removeByG_B(long groupId,
long banUserId)
throws NoSuchBanException,
SystemException
removeByG_B in interface MBBanPersistenceNoSuchBanException
SystemException
public void removeAll()
throws SystemException
removeAll in interface MBBanPersistenceSystemException
public int countByGroupId(long groupId)
throws SystemException
countByGroupId in interface MBBanPersistenceSystemException
public int countByUserId(long userId)
throws SystemException
countByUserId in interface MBBanPersistenceSystemException
public int countByBanUserId(long banUserId)
throws SystemException
countByBanUserId in interface MBBanPersistenceSystemException
public int countByG_B(long groupId,
long banUserId)
throws SystemException
countByG_B in interface MBBanPersistenceSystemException
public int countAll()
throws SystemException
countAll in interface MBBanPersistenceSystemExceptionpublic void afterPropertiesSet()
|
Liferay 6.0.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||