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

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

public class MBMailingListUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
MBMailingListUtil()
           
 
Method Summary
static int countAll()
           
static int countByActive(boolean active)
           
static int countByCategoryId(long categoryId)
           
static int countByUUID_G(java.lang.String uuid, long groupId)
           
static int countByUuid(java.lang.String uuid)
           
static MBMailingList create(long mailingListId)
           
static MBMailingList fetchByCategoryId(long categoryId)
           
static MBMailingList fetchByPrimaryKey(long mailingListId)
           
static MBMailingList fetchByUUID_G(java.lang.String uuid, long groupId)
           
static java.util.List<MBMailingList> findAll()
           
static java.util.List<MBMailingList> findAll(int start, int end)
           
static java.util.List<MBMailingList> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static MBMailingList findByActive_First(boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static MBMailingList findByActive_Last(boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static MBMailingList[] findByActive_PrevAndNext(long mailingListId, boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<MBMailingList> findByActive(boolean active)
           
static java.util.List<MBMailingList> findByActive(boolean active, int start, int end)
           
static java.util.List<MBMailingList> findByActive(boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static MBMailingList findByCategoryId(long categoryId)
           
static MBMailingList findByPrimaryKey(long mailingListId)
           
static MBMailingList findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static MBMailingList findByUUID_G(java.lang.String uuid, long groupId)
           
static MBMailingList findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static MBMailingList[] findByUuid_PrevAndNext(long mailingListId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<MBMailingList> findByUuid(java.lang.String uuid)
           
static java.util.List<MBMailingList> findByUuid(java.lang.String uuid, int start, int end)
           
static java.util.List<MBMailingList> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
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 MBMailingListPersistence getPersistence()
           
static MBMailingList remove(long mailingListId)
           
static MBMailingList remove(MBMailingList mbMailingList)
           
static void removeAll()
           
static void removeByActive(boolean active)
           
static void removeByCategoryId(long categoryId)
           
static void removeByUUID_G(java.lang.String uuid, long groupId)
           
static void removeByUuid(java.lang.String uuid)
           
 void setPersistence(MBMailingListPersistence persistence)
           
static MBMailingList update(MBMailingList mbMailingList)
          Deprecated. Use update(MBMailingList mbMailingList, boolean merge).
static MBMailingList update(MBMailingList mbMailingList, boolean merge)
          Add, update, or merge, the entity.
static MBMailingList updateImpl(MBMailingList mbMailingList, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBMailingListUtil

public MBMailingListUtil()
Method Detail

create

public static MBMailingList create(long mailingListId)

remove

public static MBMailingList remove(long mailingListId)
                            throws com.liferay.portal.SystemException,
                                   NoSuchMailingListException
Throws:
com.liferay.portal.SystemException
NoSuchMailingListException

remove

public static MBMailingList remove(MBMailingList mbMailingList)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static MBMailingList update(MBMailingList mbMailingList)
                            throws com.liferay.portal.SystemException
Deprecated. Use update(MBMailingList mbMailingList, boolean merge).

Throws:
com.liferay.portal.SystemException

update

public static MBMailingList update(MBMailingList mbMailingList,
                                   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:
mbMailingList - 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 mbMailingList 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

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

findByPrimaryKey

public static MBMailingList findByPrimaryKey(long mailingListId)
                                      throws com.liferay.portal.SystemException,
                                             NoSuchMailingListException
Throws:
com.liferay.portal.SystemException
NoSuchMailingListException

fetchByPrimaryKey

public static MBMailingList fetchByPrimaryKey(long mailingListId)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid

public static java.util.List<MBMailingList> findByUuid(java.lang.String uuid)
                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid

public static java.util.List<MBMailingList> findByUuid(java.lang.String uuid,
                                                       int start,
                                                       int end)
                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid

public static java.util.List<MBMailingList> findByUuid(java.lang.String uuid,
                                                       int start,
                                                       int end,
                                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid_First

public static MBMailingList findByUuid_First(java.lang.String uuid,
                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws com.liferay.portal.SystemException,
                                             NoSuchMailingListException
Throws:
com.liferay.portal.SystemException
NoSuchMailingListException

findByUuid_Last

public static MBMailingList findByUuid_Last(java.lang.String uuid,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws com.liferay.portal.SystemException,
                                            NoSuchMailingListException
Throws:
com.liferay.portal.SystemException
NoSuchMailingListException

findByUuid_PrevAndNext

public static MBMailingList[] findByUuid_PrevAndNext(long mailingListId,
                                                     java.lang.String uuid,
                                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                              throws com.liferay.portal.SystemException,
                                                     NoSuchMailingListException
Throws:
com.liferay.portal.SystemException
NoSuchMailingListException

findByUUID_G

public static MBMailingList findByUUID_G(java.lang.String uuid,
                                         long groupId)
                                  throws com.liferay.portal.SystemException,
                                         NoSuchMailingListException
Throws:
com.liferay.portal.SystemException
NoSuchMailingListException

fetchByUUID_G

public static MBMailingList fetchByUUID_G(java.lang.String uuid,
                                          long groupId)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCategoryId

public static MBMailingList findByCategoryId(long categoryId)
                                      throws com.liferay.portal.SystemException,
                                             NoSuchMailingListException
Throws:
com.liferay.portal.SystemException
NoSuchMailingListException

fetchByCategoryId

public static MBMailingList fetchByCategoryId(long categoryId)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByActive

public static java.util.List<MBMailingList> findByActive(boolean active)
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByActive

public static java.util.List<MBMailingList> findByActive(boolean active,
                                                         int start,
                                                         int end)
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByActive

public static java.util.List<MBMailingList> findByActive(boolean active,
                                                         int start,
                                                         int end,
                                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByActive_First

public static MBMailingList findByActive_First(boolean active,
                                               com.liferay.portal.kernel.util.OrderByComparator obc)
                                        throws com.liferay.portal.SystemException,
                                               NoSuchMailingListException
Throws:
com.liferay.portal.SystemException
NoSuchMailingListException

findByActive_Last

public static MBMailingList findByActive_Last(boolean active,
                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.SystemException,
                                              NoSuchMailingListException
Throws:
com.liferay.portal.SystemException
NoSuchMailingListException

findByActive_PrevAndNext

public static MBMailingList[] findByActive_PrevAndNext(long mailingListId,
                                                       boolean active,
                                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                                throws com.liferay.portal.SystemException,
                                                       NoSuchMailingListException
Throws:
com.liferay.portal.SystemException
NoSuchMailingListException

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

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

findAll

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

findAll

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

findAll

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

removeByUuid

public static void removeByUuid(java.lang.String uuid)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByUUID_G

public static void removeByUUID_G(java.lang.String uuid,
                                  long groupId)
                           throws com.liferay.portal.SystemException,
                                  NoSuchMailingListException
Throws:
com.liferay.portal.SystemException
NoSuchMailingListException

removeByCategoryId

public static void removeByCategoryId(long categoryId)
                               throws com.liferay.portal.SystemException,
                                      NoSuchMailingListException
Throws:
com.liferay.portal.SystemException
NoSuchMailingListException

removeByActive

public static void removeByActive(boolean active)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeAll

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

countByUuid

public static int countByUuid(java.lang.String uuid)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByUUID_G

public static int countByUUID_G(java.lang.String uuid,
                                long groupId)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByCategoryId

public static int countByCategoryId(long categoryId)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByActive

public static int countByActive(boolean active)
                         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 MBMailingListPersistence getPersistence()

setPersistence

public void setPersistence(MBMailingListPersistence persistence)