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

All Superinterfaces:
BasePersistence

public interface MBMessageFlagPersistence
extends BasePersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 void cacheResult(java.util.List<MBMessageFlag> mbMessageFlags)
           
 void cacheResult(MBMessageFlag mbMessageFlag)
           
 void clearCache()
           
 int countAll()
           
 int countByM_F(long messageId, int flag)
           
 int countByMessageId(long messageId)
           
 int countByT_F(long threadId, int flag)
           
 int countByThreadId(long threadId)
           
 int countByU_M_F(long userId, long messageId, int flag)
           
 int countByU_T_F(long userId, long threadId, int flag)
           
 int countByUserId(long userId)
           
 MBMessageFlag create(long messageFlagId)
           
 MBMessageFlag fetchByPrimaryKey(long messageFlagId)
           
 MBMessageFlag fetchByU_M_F(long userId, long messageId, int flag)
           
 MBMessageFlag fetchByU_M_F(long userId, long messageId, int flag, boolean retrieveFromCache)
           
 java.util.List<MBMessageFlag> findAll()
           
 java.util.List<MBMessageFlag> findAll(int start, int end)
           
 java.util.List<MBMessageFlag> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBMessageFlag findByM_F_First(long messageId, int flag, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBMessageFlag findByM_F_Last(long messageId, int flag, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBMessageFlag[] findByM_F_PrevAndNext(long messageFlagId, long messageId, int flag, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<MBMessageFlag> findByM_F(long messageId, int flag)
           
 java.util.List<MBMessageFlag> findByM_F(long messageId, int flag, int start, int end)
           
 java.util.List<MBMessageFlag> findByM_F(long messageId, int flag, int start, 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<MBMessageFlag> findByMessageId(long messageId)
           
 java.util.List<MBMessageFlag> findByMessageId(long messageId, int start, int end)
           
 java.util.List<MBMessageFlag> findByMessageId(long messageId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBMessageFlag findByPrimaryKey(long messageFlagId)
           
 MBMessageFlag findByT_F_First(long threadId, int flag, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBMessageFlag findByT_F_Last(long threadId, int flag, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBMessageFlag[] findByT_F_PrevAndNext(long messageFlagId, long threadId, int flag, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<MBMessageFlag> findByT_F(long threadId, int flag)
           
 java.util.List<MBMessageFlag> findByT_F(long threadId, int flag, int start, int end)
           
 java.util.List<MBMessageFlag> findByT_F(long threadId, int flag, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBMessageFlag findByThreadId_First(long threadId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBMessageFlag findByThreadId_Last(long threadId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBMessageFlag[] findByThreadId_PrevAndNext(long messageFlagId, long threadId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<MBMessageFlag> findByThreadId(long threadId)
           
 java.util.List<MBMessageFlag> findByThreadId(long threadId, int start, int end)
           
 java.util.List<MBMessageFlag> findByThreadId(long threadId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBMessageFlag findByU_M_F(long userId, long messageId, int flag)
           
 MBMessageFlag findByU_T_F_First(long userId, long threadId, int flag, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBMessageFlag findByU_T_F_Last(long userId, long threadId, int flag, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBMessageFlag[] findByU_T_F_PrevAndNext(long messageFlagId, long userId, long threadId, int flag, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<MBMessageFlag> findByU_T_F(long userId, long threadId, int flag)
           
 java.util.List<MBMessageFlag> findByU_T_F(long userId, long threadId, int flag, int start, int end)
           
 java.util.List<MBMessageFlag> findByU_T_F(long userId, long threadId, int flag, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 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<MBMessageFlag> findByUserId(long userId)
           
 java.util.List<MBMessageFlag> findByUserId(long userId, int start, int end)
           
 java.util.List<MBMessageFlag> 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)
           
 MBMessageFlag remove(long messageFlagId)
           
 MBMessageFlag remove(MBMessageFlag mbMessageFlag)
           
 void removeAll()
           
 void removeByM_F(long messageId, int flag)
           
 void removeByMessageId(long messageId)
           
 void removeByT_F(long threadId, int flag)
           
 void removeByThreadId(long threadId)
           
 void removeByU_M_F(long userId, long messageId, int flag)
           
 void removeByU_T_F(long userId, long threadId, int flag)
           
 void removeByUserId(long userId)
           
 MBMessageFlag update(MBMessageFlag mbMessageFlag)
          Deprecated. Use update(MBMessageFlag mbMessageFlag, boolean merge).
 MBMessageFlag update(MBMessageFlag mbMessageFlag, boolean merge)
          Add, update, or merge, the entity.
 MBMessageFlag updateImpl(MBMessageFlag mbMessageFlag, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

cacheResult

void cacheResult(MBMessageFlag mbMessageFlag)

cacheResult

void cacheResult(java.util.List<MBMessageFlag> mbMessageFlags)

clearCache

void clearCache()
Specified by:
clearCache in interface BasePersistence

create

MBMessageFlag create(long messageFlagId)

remove

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

remove

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

update

MBMessageFlag update(MBMessageFlag mbMessageFlag)
                     throws com.liferay.portal.SystemException
Deprecated. Use update(MBMessageFlag mbMessageFlag, boolean merge).

Throws:
com.liferay.portal.SystemException

update

MBMessageFlag update(MBMessageFlag mbMessageFlag,
                     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:
mbMessageFlag - 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 mbMessageFlag 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

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

findByPrimaryKey

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

fetchByPrimaryKey

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

findByUserId

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

findByUserId

java.util.List<MBMessageFlag> findByUserId(long userId,
                                           int start,
                                           int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

java.util.List<MBMessageFlag> 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

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

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

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

findByThreadId

java.util.List<MBMessageFlag> findByThreadId(long threadId)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByThreadId

java.util.List<MBMessageFlag> findByThreadId(long threadId,
                                             int start,
                                             int end)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByThreadId

java.util.List<MBMessageFlag> findByThreadId(long threadId,
                                             int start,
                                             int end,
                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByThreadId_First

MBMessageFlag findByThreadId_First(long threadId,
                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                   throws com.liferay.portal.SystemException,
                                          NoSuchMessageFlagException
Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException

findByThreadId_Last

MBMessageFlag findByThreadId_Last(long threadId,
                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                  throws com.liferay.portal.SystemException,
                                         NoSuchMessageFlagException
Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException

findByThreadId_PrevAndNext

MBMessageFlag[] findByThreadId_PrevAndNext(long messageFlagId,
                                           long threadId,
                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                                           throws com.liferay.portal.SystemException,
                                                  NoSuchMessageFlagException
Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException

findByMessageId

java.util.List<MBMessageFlag> findByMessageId(long messageId)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByMessageId

java.util.List<MBMessageFlag> findByMessageId(long messageId,
                                              int start,
                                              int end)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByMessageId

java.util.List<MBMessageFlag> findByMessageId(long messageId,
                                              int start,
                                              int end,
                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByMessageId_First

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

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

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

findByT_F

java.util.List<MBMessageFlag> findByT_F(long threadId,
                                        int flag)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByT_F

java.util.List<MBMessageFlag> findByT_F(long threadId,
                                        int flag,
                                        int start,
                                        int end)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByT_F

java.util.List<MBMessageFlag> findByT_F(long threadId,
                                        int flag,
                                        int start,
                                        int end,
                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByT_F_First

MBMessageFlag findByT_F_First(long threadId,
                              int flag,
                              com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws com.liferay.portal.SystemException,
                                     NoSuchMessageFlagException
Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException

findByT_F_Last

MBMessageFlag findByT_F_Last(long threadId,
                             int flag,
                             com.liferay.portal.kernel.util.OrderByComparator obc)
                             throws com.liferay.portal.SystemException,
                                    NoSuchMessageFlagException
Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException

findByT_F_PrevAndNext

MBMessageFlag[] findByT_F_PrevAndNext(long messageFlagId,
                                      long threadId,
                                      int flag,
                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws com.liferay.portal.SystemException,
                                             NoSuchMessageFlagException
Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException

findByM_F

java.util.List<MBMessageFlag> findByM_F(long messageId,
                                        int flag)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByM_F

java.util.List<MBMessageFlag> findByM_F(long messageId,
                                        int flag,
                                        int start,
                                        int end)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByM_F

java.util.List<MBMessageFlag> findByM_F(long messageId,
                                        int flag,
                                        int start,
                                        int end,
                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByM_F_First

MBMessageFlag findByM_F_First(long messageId,
                              int flag,
                              com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws com.liferay.portal.SystemException,
                                     NoSuchMessageFlagException
Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException

findByM_F_Last

MBMessageFlag findByM_F_Last(long messageId,
                             int flag,
                             com.liferay.portal.kernel.util.OrderByComparator obc)
                             throws com.liferay.portal.SystemException,
                                    NoSuchMessageFlagException
Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException

findByM_F_PrevAndNext

MBMessageFlag[] findByM_F_PrevAndNext(long messageFlagId,
                                      long messageId,
                                      int flag,
                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws com.liferay.portal.SystemException,
                                             NoSuchMessageFlagException
Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException

findByU_T_F

java.util.List<MBMessageFlag> findByU_T_F(long userId,
                                          long threadId,
                                          int flag)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByU_T_F

java.util.List<MBMessageFlag> findByU_T_F(long userId,
                                          long threadId,
                                          int flag,
                                          int start,
                                          int end)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByU_T_F

java.util.List<MBMessageFlag> findByU_T_F(long userId,
                                          long threadId,
                                          int flag,
                                          int start,
                                          int end,
                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByU_T_F_First

MBMessageFlag findByU_T_F_First(long userId,
                                long threadId,
                                int flag,
                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                throws com.liferay.portal.SystemException,
                                       NoSuchMessageFlagException
Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException

findByU_T_F_Last

MBMessageFlag findByU_T_F_Last(long userId,
                               long threadId,
                               int flag,
                               com.liferay.portal.kernel.util.OrderByComparator obc)
                               throws com.liferay.portal.SystemException,
                                      NoSuchMessageFlagException
Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException

findByU_T_F_PrevAndNext

MBMessageFlag[] findByU_T_F_PrevAndNext(long messageFlagId,
                                        long userId,
                                        long threadId,
                                        int flag,
                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                        throws com.liferay.portal.SystemException,
                                               NoSuchMessageFlagException
Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException

findByU_M_F

MBMessageFlag findByU_M_F(long userId,
                          long messageId,
                          int flag)
                          throws com.liferay.portal.SystemException,
                                 NoSuchMessageFlagException
Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException

fetchByU_M_F

MBMessageFlag fetchByU_M_F(long userId,
                           long messageId,
                           int flag)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

fetchByU_M_F

MBMessageFlag fetchByU_M_F(long userId,
                           long messageId,
                           int flag,
                           boolean retrieveFromCache)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

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

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

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

findAll

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

findAll

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

removeByThreadId

void removeByThreadId(long threadId)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByMessageId

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

removeByT_F

void removeByT_F(long threadId,
                 int flag)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByM_F

void removeByM_F(long messageId,
                 int flag)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByU_T_F

void removeByU_T_F(long userId,
                   long threadId,
                   int flag)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByU_M_F

void removeByU_M_F(long userId,
                   long messageId,
                   int flag)
                   throws com.liferay.portal.SystemException,
                          NoSuchMessageFlagException
Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException

removeAll

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

countByUserId

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

countByThreadId

int countByThreadId(long threadId)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByMessageId

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

countByT_F

int countByT_F(long threadId,
               int flag)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByM_F

int countByM_F(long messageId,
               int flag)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByU_T_F

int countByU_T_F(long userId,
                 long threadId,
                 int flag)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByU_M_F

int countByU_M_F(long userId,
                 long messageId,
                 int flag)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

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