Liferay 6.0.3

com.liferay.portlet.messageboards.service.persistence
Class MBBanPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<MBBan>
      extended by com.liferay.portlet.messageboards.service.persistence.MBBanPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<MBBan>, MBBanPersistence

public class MBBanPersistenceImpl
extends BasePersistenceImpl<MBBan>
implements MBBanPersistence

See Also:
MBBanPersistence, MBBanUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Field Summary
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_BANUSERID
           
static FinderPath FINDER_PATH_COUNT_BY_G_B
           
static FinderPath FINDER_PATH_COUNT_BY_GROUPID
           
static FinderPath FINDER_PATH_COUNT_BY_USERID
           
static FinderPath FINDER_PATH_FETCH_BY_G_B
           
static FinderPath FINDER_PATH_FIND_ALL
           
static FinderPath FINDER_PATH_FIND_BY_BANUSERID
           
static FinderPath FINDER_PATH_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_FIND_BY_USERID
           
protected  MBBanPersistence mbBanPersistence
           
protected  MBCategoryPersistence mbCategoryPersistence
           
protected  MBDiscussionPersistence mbDiscussionPersistence
           
protected  MBMailingListPersistence mbMailingListPersistence
           
protected  MBMessageFlagPersistence mbMessageFlagPersistence
           
protected  MBMessagePersistence mbMessagePersistence
           
protected  MBStatsUserPersistence mbStatsUserPersistence
           
protected  MBThreadPersistence mbThreadPersistence
           
protected  ResourcePersistence resourcePersistence
           
protected  UserPersistence userPersistence
           
 
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

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST

public static final String FINDER_CLASS_NAME_LIST

FINDER_PATH_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_FIND_BY_GROUPID

FINDER_PATH_COUNT_BY_GROUPID

public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID

FINDER_PATH_FIND_BY_USERID

public static final FinderPath FINDER_PATH_FIND_BY_USERID

FINDER_PATH_COUNT_BY_USERID

public static final FinderPath FINDER_PATH_COUNT_BY_USERID

FINDER_PATH_FIND_BY_BANUSERID

public static final FinderPath FINDER_PATH_FIND_BY_BANUSERID

FINDER_PATH_COUNT_BY_BANUSERID

public static final FinderPath FINDER_PATH_COUNT_BY_BANUSERID

FINDER_PATH_FETCH_BY_G_B

public static final FinderPath FINDER_PATH_FETCH_BY_G_B

FINDER_PATH_COUNT_BY_G_B

public static final FinderPath FINDER_PATH_COUNT_BY_G_B

FINDER_PATH_FIND_ALL

public static final FinderPath FINDER_PATH_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

mbBanPersistence

@BeanReference(type=MBBanPersistence.class)
protected MBBanPersistence mbBanPersistence

mbCategoryPersistence

@BeanReference(type=MBCategoryPersistence.class)
protected MBCategoryPersistence mbCategoryPersistence

mbDiscussionPersistence

@BeanReference(type=MBDiscussionPersistence.class)
protected MBDiscussionPersistence mbDiscussionPersistence

mbMailingListPersistence

@BeanReference(type=MBMailingListPersistence.class)
protected MBMailingListPersistence mbMailingListPersistence

mbMessagePersistence

@BeanReference(type=MBMessagePersistence.class)
protected MBMessagePersistence mbMessagePersistence

mbMessageFlagPersistence

@BeanReference(type=MBMessageFlagPersistence.class)
protected MBMessageFlagPersistence mbMessageFlagPersistence

mbStatsUserPersistence

@BeanReference(type=MBStatsUserPersistence.class)
protected MBStatsUserPersistence mbStatsUserPersistence

mbThreadPersistence

@BeanReference(type=MBThreadPersistence.class)
protected MBThreadPersistence mbThreadPersistence

resourcePersistence

@BeanReference(type=ResourcePersistence.class)
protected ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=UserPersistence.class)
protected UserPersistence userPersistence
Constructor Detail

MBBanPersistenceImpl

public MBBanPersistenceImpl()
Method Detail

cacheResult

public void cacheResult(MBBan mbBan)
Specified by:
cacheResult in interface MBBanPersistence

cacheResult

public void cacheResult(List<MBBan> mbBans)
Specified by:
cacheResult in interface MBBanPersistence

clearCache

public void clearCache()
Description copied from interface: BasePersistence
Clears the cache for all instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Caching information and settings can be found in portal.properties

Specified by:
clearCache in interface BasePersistence<MBBan>
Overrides:
clearCache in class BasePersistenceImpl<MBBan>

clearCache

public void clearCache(MBBan mbBan)
Description copied from interface: BasePersistence
Clears the cache for one instance of this model.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<MBBan>
Overrides:
clearCache in class BasePersistenceImpl<MBBan>
Parameters:
mbBan - the instance of this model to clear the cache for

create

public MBBan create(long banId)
Specified by:
create in interface MBBanPersistence

remove

public MBBan remove(Serializable primaryKey)
             throws NoSuchModelException,
                    SystemException
Description copied from interface: BasePersistence
Removes the model instance identified by the primary key from the database, and notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<MBBan>
Overrides:
remove in class BasePersistenceImpl<MBBan>
Parameters:
primaryKey - the primary key of the model instance to remove
Returns:
the model instance that was removed
Throws:
NoSuchModelException - if an instance of this model with the primary key does not exist
SystemException - if a system exception occurred

remove

public MBBan remove(long banId)
             throws NoSuchBanException,
                    SystemException
Specified by:
remove in interface MBBanPersistence
Throws:
NoSuchBanException
SystemException

removeImpl

protected MBBan removeImpl(MBBan mbBan)
                    throws SystemException
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<MBBan>
Parameters:
mbBan - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public MBBan updateImpl(MBBan mbBan,
                        boolean merge)
                 throws SystemException
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface MBBanPersistence
Overrides:
updateImpl in class BasePersistenceImpl<MBBan>
Parameters:
mbBan - the model instance to update
merge - 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.
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected MBBan toUnwrappedModel(MBBan mbBan)

findByPrimaryKey

public MBBan findByPrimaryKey(Serializable primaryKey)
                       throws NoSuchModelException,
                              SystemException
Description copied from interface: BasePersistence
Finds an instance of this model by its primary key, or throw an exception if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<MBBan>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<MBBan>
Parameters:
primaryKey - the primary key of the model instance to find
Returns:
the model instance
Throws:
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

findByPrimaryKey

public MBBan findByPrimaryKey(long banId)
                       throws NoSuchBanException,
                              SystemException
Specified by:
findByPrimaryKey in interface MBBanPersistence
Throws:
NoSuchBanException
SystemException

fetchByPrimaryKey

public MBBan fetchByPrimaryKey(Serializable primaryKey)
                        throws SystemException
Description copied from interface: BasePersistence
Finds an instance of this model by its primary key, or return null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<MBBan>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<MBBan>
Parameters:
primaryKey - the primary key of the model instance to find
Returns:
the model instance, or null if an instance of this model with the primary key does not exist
Throws:
SystemException - if the primary key is null, or if a system exception occurred

fetchByPrimaryKey

public MBBan fetchByPrimaryKey(long banId)
                        throws SystemException
Specified by:
fetchByPrimaryKey in interface MBBanPersistence
Throws:
SystemException

findByGroupId

public List<MBBan> findByGroupId(long groupId)
                          throws SystemException
Specified by:
findByGroupId in interface MBBanPersistence
Throws:
SystemException

findByGroupId

public List<MBBan> findByGroupId(long groupId,
                                 int start,
                                 int end)
                          throws SystemException
Specified by:
findByGroupId in interface MBBanPersistence
Throws:
SystemException

findByGroupId

public List<MBBan> findByGroupId(long groupId,
                                 int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                          throws SystemException
Specified by:
findByGroupId in interface MBBanPersistence
Throws:
SystemException

findByGroupId_First

public MBBan findByGroupId_First(long groupId,
                                 OrderByComparator orderByComparator)
                          throws NoSuchBanException,
                                 SystemException
Specified by:
findByGroupId_First in interface MBBanPersistence
Throws:
NoSuchBanException
SystemException

findByGroupId_Last

public MBBan findByGroupId_Last(long groupId,
                                OrderByComparator orderByComparator)
                         throws NoSuchBanException,
                                SystemException
Specified by:
findByGroupId_Last in interface MBBanPersistence
Throws:
NoSuchBanException
SystemException

findByGroupId_PrevAndNext

public MBBan[] findByGroupId_PrevAndNext(long banId,
                                         long groupId,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchBanException,
                                         SystemException
Specified by:
findByGroupId_PrevAndNext in interface MBBanPersistence
Throws:
NoSuchBanException
SystemException

getByGroupId_PrevAndNext

protected MBBan getByGroupId_PrevAndNext(Session session,
                                         MBBan mbBan,
                                         long groupId,
                                         OrderByComparator orderByComparator,
                                         boolean previous)

findByUserId

public List<MBBan> findByUserId(long userId)
                         throws SystemException
Specified by:
findByUserId in interface MBBanPersistence
Throws:
SystemException

findByUserId

public List<MBBan> findByUserId(long userId,
                                int start,
                                int end)
                         throws SystemException
Specified by:
findByUserId in interface MBBanPersistence
Throws:
SystemException

findByUserId

public List<MBBan> findByUserId(long userId,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                         throws SystemException
Specified by:
findByUserId in interface MBBanPersistence
Throws:
SystemException

findByUserId_First

public MBBan findByUserId_First(long userId,
                                OrderByComparator orderByComparator)
                         throws NoSuchBanException,
                                SystemException
Specified by:
findByUserId_First in interface MBBanPersistence
Throws:
NoSuchBanException
SystemException

findByUserId_Last

public MBBan findByUserId_Last(long userId,
                               OrderByComparator orderByComparator)
                        throws NoSuchBanException,
                               SystemException
Specified by:
findByUserId_Last in interface MBBanPersistence
Throws:
NoSuchBanException
SystemException

findByUserId_PrevAndNext

public MBBan[] findByUserId_PrevAndNext(long banId,
                                        long userId,
                                        OrderByComparator orderByComparator)
                                 throws NoSuchBanException,
                                        SystemException
Specified by:
findByUserId_PrevAndNext in interface MBBanPersistence
Throws:
NoSuchBanException
SystemException

getByUserId_PrevAndNext

protected MBBan getByUserId_PrevAndNext(Session session,
                                        MBBan mbBan,
                                        long userId,
                                        OrderByComparator orderByComparator,
                                        boolean previous)

findByBanUserId

public List<MBBan> findByBanUserId(long banUserId)
                            throws SystemException
Specified by:
findByBanUserId in interface MBBanPersistence
Throws:
SystemException

findByBanUserId

public List<MBBan> findByBanUserId(long banUserId,
                                   int start,
                                   int end)
                            throws SystemException
Specified by:
findByBanUserId in interface MBBanPersistence
Throws:
SystemException

findByBanUserId

public List<MBBan> findByBanUserId(long banUserId,
                                   int start,
                                   int end,
                                   OrderByComparator orderByComparator)
                            throws SystemException
Specified by:
findByBanUserId in interface MBBanPersistence
Throws:
SystemException

findByBanUserId_First

public MBBan findByBanUserId_First(long banUserId,
                                   OrderByComparator orderByComparator)
                            throws NoSuchBanException,
                                   SystemException
Specified by:
findByBanUserId_First in interface MBBanPersistence
Throws:
NoSuchBanException
SystemException

findByBanUserId_Last

public MBBan findByBanUserId_Last(long banUserId,
                                  OrderByComparator orderByComparator)
                           throws NoSuchBanException,
                                  SystemException
Specified by:
findByBanUserId_Last in interface MBBanPersistence
Throws:
NoSuchBanException
SystemException

findByBanUserId_PrevAndNext

public MBBan[] findByBanUserId_PrevAndNext(long banId,
                                           long banUserId,
                                           OrderByComparator orderByComparator)
                                    throws NoSuchBanException,
                                           SystemException
Specified by:
findByBanUserId_PrevAndNext in interface MBBanPersistence
Throws:
NoSuchBanException
SystemException

getByBanUserId_PrevAndNext

protected MBBan getByBanUserId_PrevAndNext(Session session,
                                           MBBan mbBan,
                                           long banUserId,
                                           OrderByComparator orderByComparator,
                                           boolean previous)

findByG_B

public MBBan findByG_B(long groupId,
                       long banUserId)
                throws NoSuchBanException,
                       SystemException
Specified by:
findByG_B in interface MBBanPersistence
Throws:
NoSuchBanException
SystemException

fetchByG_B

public MBBan fetchByG_B(long groupId,
                        long banUserId)
                 throws SystemException
Specified by:
fetchByG_B in interface MBBanPersistence
Throws:
SystemException

fetchByG_B

public MBBan fetchByG_B(long groupId,
                        long banUserId,
                        boolean retrieveFromCache)
                 throws SystemException
Specified by:
fetchByG_B in interface MBBanPersistence
Throws:
SystemException

findAll

public List<MBBan> findAll()
                    throws SystemException
Specified by:
findAll in interface MBBanPersistence
Throws:
SystemException

findAll

public List<MBBan> findAll(int start,
                           int end)
                    throws SystemException
Specified by:
findAll in interface MBBanPersistence
Throws:
SystemException

findAll

public List<MBBan> findAll(int start,
                           int end,
                           OrderByComparator orderByComparator)
                    throws SystemException
Specified by:
findAll in interface MBBanPersistence
Throws:
SystemException

removeByGroupId

public void removeByGroupId(long groupId)
                     throws SystemException
Specified by:
removeByGroupId in interface MBBanPersistence
Throws:
SystemException

removeByUserId

public void removeByUserId(long userId)
                    throws SystemException
Specified by:
removeByUserId in interface MBBanPersistence
Throws:
SystemException

removeByBanUserId

public void removeByBanUserId(long banUserId)
                       throws SystemException
Specified by:
removeByBanUserId in interface MBBanPersistence
Throws:
SystemException

removeByG_B

public void removeByG_B(long groupId,
                        long banUserId)
                 throws NoSuchBanException,
                        SystemException
Specified by:
removeByG_B in interface MBBanPersistence
Throws:
NoSuchBanException
SystemException

removeAll

public void removeAll()
               throws SystemException
Specified by:
removeAll in interface MBBanPersistence
Throws:
SystemException

countByGroupId

public int countByGroupId(long groupId)
                   throws SystemException
Specified by:
countByGroupId in interface MBBanPersistence
Throws:
SystemException

countByUserId

public int countByUserId(long userId)
                  throws SystemException
Specified by:
countByUserId in interface MBBanPersistence
Throws:
SystemException

countByBanUserId

public int countByBanUserId(long banUserId)
                     throws SystemException
Specified by:
countByBanUserId in interface MBBanPersistence
Throws:
SystemException

countByG_B

public int countByG_B(long groupId,
                      long banUserId)
               throws SystemException
Specified by:
countByG_B in interface MBBanPersistence
Throws:
SystemException

countAll

public int countAll()
             throws SystemException
Specified by:
countAll in interface MBBanPersistence
Throws:
SystemException

afterPropertiesSet

public void afterPropertiesSet()

Liferay 6.0.3