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 MBMessageFlag create(long messageFlagId)
           
static MBMessageFlag fetchByPrimaryKey(long messageFlagId)
           
static 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 MBMessageFlag findByMessageId_First(long messageId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static MBMessageFlag findByMessageId_Last(long messageId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static 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 MBMessageFlag findByPrimaryKey(long messageFlagId)
           
static MBMessageFlag findByU_M(long userId, long messageId)
           
static MBMessageFlag findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static MBMessageFlag findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static 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 MBMessageFlag remove(long messageFlagId)
           
static MBMessageFlag remove(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 MBMessageFlag update(MBMessageFlag mbMessageFlag)
           
static MBMessageFlag update(MBMessageFlag mbMessageFlag, boolean merge)
           
static MBMessageFlag updateImpl(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 MBMessageFlag create(long messageFlagId)

remove

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

remove

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

update

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

update

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

updateImpl

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

findByPrimaryKey

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

fetchByPrimaryKey

public static 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 MBMessageFlag findByUserId_First(long userId,
                                               com.liferay.portal.kernel.util.OrderByComparator obc)
                                        throws com.liferay.portal.SystemException,
                                               NoSuchMessageFlagException
Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException

findByUserId_Last

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

findByUserId_PrevAndNext

public static MBMessageFlag[] findByUserId_PrevAndNext(long messageFlagId,
                                                       long userId,
                                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                                throws com.liferay.portal.SystemException,
                                                       NoSuchMessageFlagException
Throws:
com.liferay.portal.SystemException
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 MBMessageFlag findByMessageId_First(long messageId,
                                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                           throws com.liferay.portal.SystemException,
                                                  NoSuchMessageFlagException
Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException

findByMessageId_Last

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

findByMessageId_PrevAndNext

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

findByU_M

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

fetchByU_M

public static 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,
                               NoSuchMessageFlagException
Throws:
com.liferay.portal.SystemException
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)