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


public interface MBMessageFlagPersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByMessageId(long messageId)
           
 int countByU_M(long userId, long messageId)
           
 int countByUserId(long userId)
           
 MBMessageFlag create(long messageFlagId)
           
 MBMessageFlag fetchByPrimaryKey(long messageFlagId)
           
 MBMessageFlag fetchByU_M(long userId, long messageId)
           
 java.util.List findAll()
           
 java.util.List findAll(int begin, int end)
           
 java.util.List findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBMessageFlag findByMessageId_First(long messageId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBMessageFlag findByMessageId_Last(long messageId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBMessageFlag[] findByMessageId_PrevAndNext(long messageFlagId, long messageId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List findByMessageId(long messageId)
           
 java.util.List findByMessageId(long messageId, int begin, int end)
           
 java.util.List findByMessageId(long messageId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBMessageFlag findByPrimaryKey(long messageFlagId)
           
 MBMessageFlag findByU_M(long userId, long messageId)
           
 MBMessageFlag findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBMessageFlag findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBMessageFlag[] findByUserId_PrevAndNext(long messageFlagId, long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List findByUserId(long userId)
           
 java.util.List findByUserId(long userId, int begin, int end)
           
 java.util.List findByUserId(long userId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
 MBMessageFlag remove(long messageFlagId)
           
 MBMessageFlag remove(MBMessageFlag mbMessageFlag)
           
 void removeAll()
           
 void removeByMessageId(long messageId)
           
 void removeByU_M(long userId, long messageId)
           
 void removeByUserId(long userId)
           
 MBMessageFlag update(MBMessageFlag mbMessageFlag)
           
 MBMessageFlag update(MBMessageFlag mbMessageFlag, boolean merge)
           
 MBMessageFlag updateImpl(MBMessageFlag mbMessageFlag, boolean merge)
           
 

Method Detail

create

public MBMessageFlag create(long messageFlagId)

remove

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

remove

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

update

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

update

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

updateImpl

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

findByPrimaryKey

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

fetchByPrimaryKey

public MBMessageFlag fetchByPrimaryKey(long messageFlagId)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

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

findByUserId

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

findByUserId

public 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 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 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 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 java.util.List findByMessageId(long messageId)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByMessageId

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

findByMessageId

public 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 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 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 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 MBMessageFlag findByU_M(long userId,
                               long messageId)
                        throws com.liferay.portal.SystemException,
                               NoSuchMessageFlagException
Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException

fetchByU_M

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

findWithDynamicQuery

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

findWithDynamicQuery

public 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 java.util.List findAll()
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

public 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 void removeByUserId(long userId)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByMessageId

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

removeByU_M

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

removeAll

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

countByUserId

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

countByMessageId

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

countByU_M

public int countByU_M(long userId,
                      long messageId)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

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