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

java.lang.Object
  extended by com.liferay.portlet.messageboards.service.persistence.MBBanUtil

public class MBBanUtil
extends java.lang.Object

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:
MBBanPersistence, MBBanPersistenceImpl
Generated:

Constructor Summary
MBBanUtil()
           
 
Method Summary
static void cacheResult(java.util.List<MBBan> mbBans)
           
static void cacheResult(MBBan mbBan)
           
static void clearCache()
           
static void clearCache(MBBan mbBan)
           
static int countAll()
           
static int countByBanUserId(long banUserId)
           
static int countByG_B(long groupId, long banUserId)
           
static int countByGroupId(long groupId)
           
static int countByUserId(long userId)
           
 int countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static MBBan create(long banId)
           
static MBBan fetchByG_B(long groupId, long banUserId)
           
static MBBan fetchByG_B(long groupId, long banUserId, boolean retrieveFromCache)
           
static MBBan fetchByPrimaryKey(long banId)
           
static java.util.List<MBBan> findAll()
           
static java.util.List<MBBan> findAll(int start, int end)
           
static java.util.List<MBBan> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static MBBan findByBanUserId_First(long banUserId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static MBBan findByBanUserId_Last(long banUserId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static MBBan[] findByBanUserId_PrevAndNext(long banId, long banUserId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static java.util.List<MBBan> findByBanUserId(long banUserId)
           
static java.util.List<MBBan> findByBanUserId(long banUserId, int start, int end)
           
static java.util.List<MBBan> findByBanUserId(long banUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static MBBan findByG_B(long groupId, long banUserId)
           
static MBBan findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static MBBan findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static MBBan[] findByGroupId_PrevAndNext(long banId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static java.util.List<MBBan> findByGroupId(long groupId)
           
static java.util.List<MBBan> findByGroupId(long groupId, int start, int end)
           
static java.util.List<MBBan> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static MBBan findByPrimaryKey(long banId)
           
static MBBan findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static MBBan findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static MBBan[] findByUserId_PrevAndNext(long banId, long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static java.util.List<MBBan> findByUserId(long userId)
           
static java.util.List<MBBan> findByUserId(long userId, int start, int end)
           
static java.util.List<MBBan> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
static MBBanPersistence getPersistence()
           
static MBBan remove(long banId)
           
static MBBan remove(MBBan mbBan)
           
static void removeAll()
           
static void removeByBanUserId(long banUserId)
           
static void removeByG_B(long groupId, long banUserId)
           
static void removeByGroupId(long groupId)
           
static void removeByUserId(long userId)
           
 void setPersistence(MBBanPersistence persistence)
           
static MBBan update(MBBan mbBan)
          Deprecated. Use com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean).
static MBBan update(MBBan mbBan, boolean merge)
           
static MBBan updateImpl(MBBan mbBan, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBBanUtil

public MBBanUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(MBBan mbBan)
See Also:
com.liferay.portal.service.persistence.BasePersistence#clearCache(MBBan)

countWithDynamicQuery

public int countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static 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
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static 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
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

remove

public static MBBan remove(MBBan mbBan)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException
See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)

update

public static MBBan update(MBBan mbBan,
                           boolean merge)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

cacheResult

public static void cacheResult(MBBan mbBan)

cacheResult

public static void cacheResult(java.util.List<MBBan> mbBans)

create

public static MBBan create(long banId)

remove

public static MBBan remove(long banId)
                    throws com.liferay.portal.SystemException,
                           NoSuchBanException
Throws:
com.liferay.portal.SystemException
NoSuchBanException

update

public static MBBan update(MBBan mbBan)
                    throws com.liferay.portal.SystemException
Deprecated. Use com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean).

Throws:
com.liferay.portal.SystemException

updateImpl

public static MBBan updateImpl(MBBan mbBan,
                               boolean merge)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public static MBBan findByPrimaryKey(long banId)
                              throws com.liferay.portal.SystemException,
                                     NoSuchBanException
Throws:
com.liferay.portal.SystemException
NoSuchBanException

fetchByPrimaryKey

public static MBBan fetchByPrimaryKey(long banId)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

public static java.util.List<MBBan> findByGroupId(long groupId)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

public static java.util.List<MBBan> findByGroupId(long groupId,
                                                  int start,
                                                  int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

public static java.util.List<MBBan> findByGroupId(long groupId,
                                                  int start,
                                                  int end,
                                                  com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId_First

public static MBBan findByGroupId_First(long groupId,
                                        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                 throws com.liferay.portal.SystemException,
                                        NoSuchBanException
Throws:
com.liferay.portal.SystemException
NoSuchBanException

findByGroupId_Last

public static MBBan findByGroupId_Last(long groupId,
                                       com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                throws com.liferay.portal.SystemException,
                                       NoSuchBanException
Throws:
com.liferay.portal.SystemException
NoSuchBanException

findByGroupId_PrevAndNext

public static MBBan[] findByGroupId_PrevAndNext(long banId,
                                                long groupId,
                                                com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                         throws com.liferay.portal.SystemException,
                                                NoSuchBanException
Throws:
com.liferay.portal.SystemException
NoSuchBanException

findByUserId

public static java.util.List<MBBan> findByUserId(long userId)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

public static java.util.List<MBBan> findByUserId(long userId,
                                                 int start,
                                                 int end)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

public static java.util.List<MBBan> findByUserId(long userId,
                                                 int start,
                                                 int end,
                                                 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId_First

public static MBBan findByUserId_First(long userId,
                                       com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                throws com.liferay.portal.SystemException,
                                       NoSuchBanException
Throws:
com.liferay.portal.SystemException
NoSuchBanException

findByUserId_Last

public static MBBan findByUserId_Last(long userId,
                                      com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                               throws com.liferay.portal.SystemException,
                                      NoSuchBanException
Throws:
com.liferay.portal.SystemException
NoSuchBanException

findByUserId_PrevAndNext

public static MBBan[] findByUserId_PrevAndNext(long banId,
                                               long userId,
                                               com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                        throws com.liferay.portal.SystemException,
                                               NoSuchBanException
Throws:
com.liferay.portal.SystemException
NoSuchBanException

findByBanUserId

public static java.util.List<MBBan> findByBanUserId(long banUserId)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByBanUserId

public static java.util.List<MBBan> findByBanUserId(long banUserId,
                                                    int start,
                                                    int end)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByBanUserId

public static java.util.List<MBBan> findByBanUserId(long banUserId,
                                                    int start,
                                                    int end,
                                                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByBanUserId_First

public static MBBan findByBanUserId_First(long banUserId,
                                          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                   throws com.liferay.portal.SystemException,
                                          NoSuchBanException
Throws:
com.liferay.portal.SystemException
NoSuchBanException

findByBanUserId_Last

public static MBBan findByBanUserId_Last(long banUserId,
                                         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                  throws com.liferay.portal.SystemException,
                                         NoSuchBanException
Throws:
com.liferay.portal.SystemException
NoSuchBanException

findByBanUserId_PrevAndNext

public static MBBan[] findByBanUserId_PrevAndNext(long banId,
                                                  long banUserId,
                                                  com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                           throws com.liferay.portal.SystemException,
                                                  NoSuchBanException
Throws:
com.liferay.portal.SystemException
NoSuchBanException

findByG_B

public static MBBan findByG_B(long groupId,
                              long banUserId)
                       throws com.liferay.portal.SystemException,
                              NoSuchBanException
Throws:
com.liferay.portal.SystemException
NoSuchBanException

fetchByG_B

public static MBBan fetchByG_B(long groupId,
                               long banUserId)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

fetchByG_B

public static MBBan fetchByG_B(long groupId,
                               long banUserId,
                               boolean retrieveFromCache)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<MBBan> findAll()
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<MBBan> findAll(int start,
                                            int end)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<MBBan> findAll(int start,
                                            int end,
                                            com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByGroupId

public static void removeByGroupId(long groupId)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByUserId

public static void removeByUserId(long userId)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByBanUserId

public static void removeByBanUserId(long banUserId)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByG_B

public static void removeByG_B(long groupId,
                               long banUserId)
                        throws com.liferay.portal.SystemException,
                               NoSuchBanException
Throws:
com.liferay.portal.SystemException
NoSuchBanException

removeAll

public static void removeAll()
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByGroupId

public static int countByGroupId(long groupId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByUserId

public static int countByUserId(long userId)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByBanUserId

public static int countByBanUserId(long banUserId)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_B

public static int countByG_B(long groupId,
                             long banUserId)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

public static int countAll()
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPersistence

public static MBBanPersistence getPersistence()

setPersistence

public void setPersistence(MBBanPersistence persistence)