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

java.lang.Object
  extended bycom.liferay.portlet.messageboards.service.persistence.MBMessageFlagUtil

public class MBMessageFlagUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
MBMessageFlagUtil()
           
 
Method Summary
static int countAll()
           
static int countByMessageId(long messageId)
           
static int countByU_M(long userId, long messageId)
           
static int countByUserId(long userId)
           
static com.liferay.portlet.messageboards.model.MBMessageFlag create(long messageFlagId)
           
static com.liferay.portlet.messageboards.model.MBMessageFlag fetchByPrimaryKey(long messageFlagId)
           
static com.liferay.portlet.messageboards.model.MBMessageFlag fetchByU_M(long userId, long messageId)
           
static java.util.List findAll()
           
static java.util.List findAll(int begin, int end)
           
static java.util.List findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_First(long messageId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_Last(long messageId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByMessageId_PrevAndNext(long messageFlagId, long messageId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List findByMessageId(long messageId)
           
static java.util.List findByMessageId(long messageId, int begin, int end)
           
static java.util.List findByMessageId(long messageId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.messageboards.model.MBMessageFlag findByPrimaryKey(long messageFlagId)
           
static com.liferay.portlet.messageboards.model.MBMessageFlag findByU_M(long userId, long messageId)
           
static com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByUserId_PrevAndNext(long messageFlagId, long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List findByUserId(long userId)
           
static java.util.List findByUserId(long userId, int begin, int end)
           
static java.util.List findByUserId(long userId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
static MBMessageFlagPersistence getPersistence()
           
static com.liferay.portlet.messageboards.model.MBMessageFlag remove(long messageFlagId)
           
static com.liferay.portlet.messageboards.model.MBMessageFlag remove(com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
           
static void removeAll()
           
static void removeByMessageId(long messageId)
           
static void removeByU_M(long userId, long messageId)
           
static void removeByUserId(long userId)
           
 void setPersistence(MBMessageFlagPersistence persistence)
           
static com.liferay.portlet.messageboards.model.MBMessageFlag update(com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
           
static com.liferay.portlet.messageboards.model.MBMessageFlag update(com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBMessageFlagUtil

public MBMessageFlagUtil()
Method Detail

create

public static com.liferay.portlet.messageboards.model.MBMessageFlag create(long messageFlagId)

remove

public static com.liferay.portlet.messageboards.model.MBMessageFlag remove(long messageFlagId)
                                                                    throws com.liferay.portal.SystemException,
                                                                           com.liferay.portlet.messageboards.NoSuchMessageFlagException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchMessageFlagException

remove

public static com.liferay.portlet.messageboards.model.MBMessageFlag remove(com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
                                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static com.liferay.portlet.messageboards.model.MBMessageFlag update(com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
                                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static com.liferay.portlet.messageboards.model.MBMessageFlag update(com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag,
                                                                           boolean merge)
                                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public static com.liferay.portlet.messageboards.model.MBMessageFlag findByPrimaryKey(long messageFlagId)
                                                                              throws com.liferay.portal.SystemException,
                                                                                     com.liferay.portlet.messageboards.NoSuchMessageFlagException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchMessageFlagException

fetchByPrimaryKey

public static com.liferay.portlet.messageboards.model.MBMessageFlag fetchByPrimaryKey(long messageFlagId)
                                                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

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

findByUserId

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

findByUserId

public static java.util.List findByUserId(long userId,
                                          int begin,
                                          int end,
                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId_First

public static com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_First(long userId,
                                                                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                                throws com.liferay.portal.SystemException,
                                                                                       com.liferay.portlet.messageboards.NoSuchMessageFlagException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchMessageFlagException

findByUserId_Last

public static com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_Last(long userId,
                                                                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                               throws com.liferay.portal.SystemException,
                                                                                      com.liferay.portlet.messageboards.NoSuchMessageFlagException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchMessageFlagException

findByUserId_PrevAndNext

public static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByUserId_PrevAndNext(long messageFlagId,
                                                                                               long userId,
                                                                                               com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                                        throws com.liferay.portal.SystemException,
                                                                                               com.liferay.portlet.messageboards.NoSuchMessageFlagException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchMessageFlagException

findByMessageId

public static java.util.List findByMessageId(long messageId)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByMessageId

public static java.util.List findByMessageId(long messageId,
                                             int begin,
                                             int end)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByMessageId

public static java.util.List findByMessageId(long messageId,
                                             int begin,
                                             int end,
                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByMessageId_First

public static com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_First(long messageId,
                                                                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                                   throws com.liferay.portal.SystemException,
                                                                                          com.liferay.portlet.messageboards.NoSuchMessageFlagException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchMessageFlagException

findByMessageId_Last

public static com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_Last(long messageId,
                                                                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                                  throws com.liferay.portal.SystemException,
                                                                                         com.liferay.portlet.messageboards.NoSuchMessageFlagException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchMessageFlagException

findByMessageId_PrevAndNext

public static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByMessageId_PrevAndNext(long messageFlagId,
                                                                                                  long messageId,
                                                                                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                                           throws com.liferay.portal.SystemException,
                                                                                                  com.liferay.portlet.messageboards.NoSuchMessageFlagException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchMessageFlagException

findByU_M

public static com.liferay.portlet.messageboards.model.MBMessageFlag findByU_M(long userId,
                                                                              long messageId)
                                                                       throws com.liferay.portal.SystemException,
                                                                              com.liferay.portlet.messageboards.NoSuchMessageFlagException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchMessageFlagException

fetchByU_M

public static com.liferay.portlet.messageboards.model.MBMessageFlag fetchByU_M(long userId,
                                                                               long messageId)
                                                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                                  int begin,
                                                  int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

public static java.util.List findAll(int begin,
                                     int end)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List findAll(int begin,
                                     int end,
                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                              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

removeByMessageId

public static void removeByMessageId(long messageId)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByU_M

public static void removeByU_M(long userId,
                               long messageId)
                        throws com.liferay.portal.SystemException,
                               com.liferay.portlet.messageboards.NoSuchMessageFlagException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchMessageFlagException

removeAll

public static void removeAll()
                      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

countByMessageId

public static int countByMessageId(long messageId)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByU_M

public static int countByU_M(long userId,
                             long messageId)
                      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 MBMessageFlagPersistence getPersistence()

setPersistence

public void setPersistence(MBMessageFlagPersistence persistence)