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

All Superinterfaces:
BasePersistence

@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface MBBanPersistence
extends BasePersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 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 fetchByPrimaryKey(long banId)
           
 java.util.List<MBBan> findAll()
           
 java.util.List<MBBan> findAll(int start, int end)
           
 java.util.List<MBBan> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBBan findByBanUserId_First(long banUserId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBBan findByBanUserId_Last(long banUserId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBBan[] findByBanUserId_PrevAndNext(long banId, long banUserId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<MBBan> findByBanUserId(long banUserId)
           
 java.util.List<MBBan> findByBanUserId(long banUserId, int start, int end)
           
 java.util.List<MBBan> findByBanUserId(long banUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBBan findByG_B(long groupId, long banUserId)
           
 MBBan findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBBan findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBBan[] findByGroupId_PrevAndNext(long banId, long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<MBBan> findByGroupId(long groupId)
           
 java.util.List<MBBan> findByGroupId(long groupId, int start, int end)
           
 java.util.List<MBBan> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBBan findByPrimaryKey(long banId)
           
 MBBan findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBBan findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBBan[] findByUserId_PrevAndNext(long banId, long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<MBBan> findByUserId(long userId)
           
 java.util.List<MBBan> findByUserId(long userId, int start, int end)
           
 java.util.List<MBBan> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 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)
           
 MBBan remove(long banId)
           
 MBBan remove(MBBan mbBan)
           
 void removeAll()
           
 void removeByBanUserId(long banUserId)
           
 void removeByG_B(long groupId, long banUserId)
           
 void removeByGroupId(long groupId)
           
 void removeByUserId(long userId)
           
 MBBan update(MBBan mbBan)
          Deprecated. Use update(MBBan mbBan, boolean merge).
 MBBan update(MBBan mbBan, boolean merge)
          Add, update, or merge, the entity.
 MBBan updateImpl(MBBan mbBan, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

create

MBBan create(long banId)

remove

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

remove

MBBan remove(MBBan mbBan)
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

MBBan update(MBBan mbBan)
             throws com.liferay.portal.SystemException
Deprecated. Use update(MBBan mbBan, boolean merge).

Throws:
com.liferay.portal.SystemException

update

MBBan update(MBBan mbBan,
             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:
mbBan - the entity to add, update, or merge
merge - 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 mbBan 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

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

findByPrimaryKey

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBBan findByPrimaryKey(long banId)
                       throws com.liferay.portal.SystemException,
                              NoSuchBanException
Throws:
com.liferay.portal.SystemException
NoSuchBanException

fetchByPrimaryKey

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

findByGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBBan> findByGroupId(long groupId)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBBan> findByGroupId(long groupId,
                                                  int start,
                                                  int end)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBBan> findByGroupId(long groupId,
                                                  int start,
                                                  int end,
                                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBBan findByGroupId_First(long groupId,
                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                          throws com.liferay.portal.SystemException,
                                 NoSuchBanException
Throws:
com.liferay.portal.SystemException
NoSuchBanException

findByGroupId_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBBan findByGroupId_Last(long groupId,
                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                         throws com.liferay.portal.SystemException,
                                NoSuchBanException
Throws:
com.liferay.portal.SystemException
NoSuchBanException

findByGroupId_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBBan[] findByGroupId_PrevAndNext(long banId,
                                                long groupId,
                                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                  throws com.liferay.portal.SystemException,
                                         NoSuchBanException
Throws:
com.liferay.portal.SystemException
NoSuchBanException

findByUserId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBBan> findByUserId(long userId)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBBan> findByUserId(long userId,
                                                 int start,
                                                 int end)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBBan> findByUserId(long userId,
                                                 int start,
                                                 int end,
                                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBBan findByUserId_First(long userId,
                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                         throws com.liferay.portal.SystemException,
                                NoSuchBanException
Throws:
com.liferay.portal.SystemException
NoSuchBanException

findByUserId_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBBan findByUserId_Last(long userId,
                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                        throws com.liferay.portal.SystemException,
                               NoSuchBanException
Throws:
com.liferay.portal.SystemException
NoSuchBanException

findByUserId_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBBan[] findByUserId_PrevAndNext(long banId,
                                               long userId,
                                               com.liferay.portal.kernel.util.OrderByComparator obc)
                                 throws com.liferay.portal.SystemException,
                                        NoSuchBanException
Throws:
com.liferay.portal.SystemException
NoSuchBanException

findByBanUserId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBBan> findByBanUserId(long banUserId)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByBanUserId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBBan> findByBanUserId(long banUserId,
                                                    int start,
                                                    int end)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByBanUserId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBBan> findByBanUserId(long banUserId,
                                                    int start,
                                                    int end,
                                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByBanUserId_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBBan findByBanUserId_First(long banUserId,
                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                            throws com.liferay.portal.SystemException,
                                   NoSuchBanException
Throws:
com.liferay.portal.SystemException
NoSuchBanException

findByBanUserId_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBBan findByBanUserId_Last(long banUserId,
                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                           throws com.liferay.portal.SystemException,
                                  NoSuchBanException
Throws:
com.liferay.portal.SystemException
NoSuchBanException

findByBanUserId_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBBan[] findByBanUserId_PrevAndNext(long banId,
                                                  long banUserId,
                                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                    throws com.liferay.portal.SystemException,
                                           NoSuchBanException
Throws:
com.liferay.portal.SystemException
NoSuchBanException

findByG_B

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBBan findByG_B(long groupId,
                              long banUserId)
                throws com.liferay.portal.SystemException,
                       NoSuchBanException
Throws:
com.liferay.portal.SystemException
NoSuchBanException

fetchByG_B

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

findWithDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBBan> findAll()
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBBan> findAll(int start,
                                            int end)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBBan> findAll(int start,
                                            int end,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByGroupId

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

removeByUserId

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

removeByBanUserId

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

removeByG_B

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

removeAll

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

countByGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByGroupId(long groupId)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByUserId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByUserId(long userId)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByBanUserId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByBanUserId(long banUserId)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_B

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByG_B(long groupId,
                             long banUserId)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException