Liferay 6.0.3

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

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<MBMessageFlag>
      extended by com.liferay.portlet.messageboards.service.persistence.MBMessageFlagPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<MBMessageFlag>, MBMessageFlagPersistence

public class MBMessageFlagPersistenceImpl
extends BasePersistenceImpl<MBMessageFlag>
implements MBMessageFlagPersistence

See Also:
MBMessageFlagPersistence, MBMessageFlagUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Field Summary
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_M_F
           
static FinderPath FINDER_PATH_COUNT_BY_MESSAGEID
           
static FinderPath FINDER_PATH_COUNT_BY_T_F
           
static FinderPath FINDER_PATH_COUNT_BY_THREADID
           
static FinderPath FINDER_PATH_COUNT_BY_U_M_F
           
static FinderPath FINDER_PATH_COUNT_BY_U_T_F
           
static FinderPath FINDER_PATH_COUNT_BY_USERID
           
static FinderPath FINDER_PATH_FETCH_BY_U_M_F
           
static FinderPath FINDER_PATH_FIND_ALL
           
static FinderPath FINDER_PATH_FIND_BY_M_F
           
static FinderPath FINDER_PATH_FIND_BY_MESSAGEID
           
static FinderPath FINDER_PATH_FIND_BY_T_F
           
static FinderPath FINDER_PATH_FIND_BY_THREADID
           
static FinderPath FINDER_PATH_FIND_BY_U_T_F
           
static FinderPath FINDER_PATH_FIND_BY_USERID
           
protected  MBBanPersistence mbBanPersistence
           
protected  MBCategoryPersistence mbCategoryPersistence
           
protected  MBDiscussionPersistence mbDiscussionPersistence
           
protected  MBMailingListPersistence mbMailingListPersistence
           
protected  MBMessageFlagPersistence mbMessageFlagPersistence
           
protected  MBMessagePersistence mbMessagePersistence
           
protected  MBStatsUserPersistence mbStatsUserPersistence
           
protected  MBThreadPersistence mbThreadPersistence
           
protected  ResourcePersistence resourcePersistence
           
protected  UserPersistence userPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
MBMessageFlagPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
           
 void cacheResult(List<MBMessageFlag> mbMessageFlags)
           
 void cacheResult(MBMessageFlag mbMessageFlag)
           
 void clearCache()
          Clears the cache for all instances of this model.
 void clearCache(MBMessageFlag mbMessageFlag)
          Clears the cache for one instance of this model.
 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 fetchByPrimaryKey(Serializable primaryKey)
          Finds an instance of this model by its primary key, or return null if it could not be found.
 MBMessageFlag fetchByU_M_F(long userId, long messageId, int flag)
           
 MBMessageFlag fetchByU_M_F(long userId, long messageId, int flag, boolean retrieveFromCache)
           
 List<MBMessageFlag> findAll()
           
 List<MBMessageFlag> findAll(int start, int end)
           
 List<MBMessageFlag> findAll(int start, int end, OrderByComparator orderByComparator)
           
 MBMessageFlag findByM_F_First(long messageId, int flag, OrderByComparator orderByComparator)
           
 MBMessageFlag findByM_F_Last(long messageId, int flag, OrderByComparator orderByComparator)
           
 MBMessageFlag[] findByM_F_PrevAndNext(long messageFlagId, long messageId, int flag, OrderByComparator orderByComparator)
           
 List<MBMessageFlag> findByM_F(long messageId, int flag)
           
 List<MBMessageFlag> findByM_F(long messageId, int flag, int start, int end)
           
 List<MBMessageFlag> findByM_F(long messageId, int flag, int start, int end, OrderByComparator orderByComparator)
           
 MBMessageFlag findByMessageId_First(long messageId, OrderByComparator orderByComparator)
           
 MBMessageFlag findByMessageId_Last(long messageId, OrderByComparator orderByComparator)
           
 MBMessageFlag[] findByMessageId_PrevAndNext(long messageFlagId, long messageId, OrderByComparator orderByComparator)
           
 List<MBMessageFlag> findByMessageId(long messageId)
           
 List<MBMessageFlag> findByMessageId(long messageId, int start, int end)
           
 List<MBMessageFlag> findByMessageId(long messageId, int start, int end, OrderByComparator orderByComparator)
           
 MBMessageFlag findByPrimaryKey(long messageFlagId)
           
 MBMessageFlag findByPrimaryKey(Serializable primaryKey)
          Finds an instance of this model by its primary key, or throw an exception if it could not be found.
 MBMessageFlag findByT_F_First(long threadId, int flag, OrderByComparator orderByComparator)
           
 MBMessageFlag findByT_F_Last(long threadId, int flag, OrderByComparator orderByComparator)
           
 MBMessageFlag[] findByT_F_PrevAndNext(long messageFlagId, long threadId, int flag, OrderByComparator orderByComparator)
           
 List<MBMessageFlag> findByT_F(long threadId, int flag)
           
 List<MBMessageFlag> findByT_F(long threadId, int flag, int start, int end)
           
 List<MBMessageFlag> findByT_F(long threadId, int flag, int start, int end, OrderByComparator orderByComparator)
           
 MBMessageFlag findByThreadId_First(long threadId, OrderByComparator orderByComparator)
           
 MBMessageFlag findByThreadId_Last(long threadId, OrderByComparator orderByComparator)
           
 MBMessageFlag[] findByThreadId_PrevAndNext(long messageFlagId, long threadId, OrderByComparator orderByComparator)
           
 List<MBMessageFlag> findByThreadId(long threadId)
           
 List<MBMessageFlag> findByThreadId(long threadId, int start, int end)
           
 List<MBMessageFlag> findByThreadId(long threadId, int start, int end, OrderByComparator orderByComparator)
           
 MBMessageFlag findByU_M_F(long userId, long messageId, int flag)
           
 MBMessageFlag findByU_T_F_First(long userId, long threadId, int flag, OrderByComparator orderByComparator)
           
 MBMessageFlag findByU_T_F_Last(long userId, long threadId, int flag, OrderByComparator orderByComparator)
           
 MBMessageFlag[] findByU_T_F_PrevAndNext(long messageFlagId, long userId, long threadId, int flag, OrderByComparator orderByComparator)
           
 List<MBMessageFlag> findByU_T_F(long userId, long threadId, int flag)
           
 List<MBMessageFlag> findByU_T_F(long userId, long threadId, int flag, int start, int end)
           
 List<MBMessageFlag> findByU_T_F(long userId, long threadId, int flag, int start, int end, OrderByComparator orderByComparator)
           
 MBMessageFlag findByUserId_First(long userId, OrderByComparator orderByComparator)
           
 MBMessageFlag findByUserId_Last(long userId, OrderByComparator orderByComparator)
           
 MBMessageFlag[] findByUserId_PrevAndNext(long messageFlagId, long userId, OrderByComparator orderByComparator)
           
 List<MBMessageFlag> findByUserId(long userId)
           
 List<MBMessageFlag> findByUserId(long userId, int start, int end)
           
 List<MBMessageFlag> findByUserId(long userId, int start, int end, OrderByComparator orderByComparator)
           
protected  MBMessageFlag getByM_F_PrevAndNext(Session session, MBMessageFlag mbMessageFlag, long messageId, int flag, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessageFlag getByMessageId_PrevAndNext(Session session, MBMessageFlag mbMessageFlag, long messageId, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessageFlag getByT_F_PrevAndNext(Session session, MBMessageFlag mbMessageFlag, long threadId, int flag, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessageFlag getByThreadId_PrevAndNext(Session session, MBMessageFlag mbMessageFlag, long threadId, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessageFlag getByU_T_F_PrevAndNext(Session session, MBMessageFlag mbMessageFlag, long userId, long threadId, int flag, OrderByComparator orderByComparator, boolean previous)
           
protected  MBMessageFlag getByUserId_PrevAndNext(Session session, MBMessageFlag mbMessageFlag, long userId, OrderByComparator orderByComparator, boolean previous)
           
 MBMessageFlag remove(long messageFlagId)
           
 MBMessageFlag remove(Serializable primaryKey)
          Removes the model instance identified by the primary key from the database, and notifies the appropriate model listeners.
 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)
           
protected  MBMessageFlag removeImpl(MBMessageFlag mbMessageFlag)
          Removes the model instance from the database.
protected  MBMessageFlag toUnwrappedModel(MBMessageFlag mbMessageFlag)
           
 MBMessageFlag updateImpl(MBMessageFlag mbMessageFlag, boolean merge)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST

public static final String FINDER_CLASS_NAME_LIST

FINDER_PATH_FIND_BY_USERID

public static final FinderPath FINDER_PATH_FIND_BY_USERID

FINDER_PATH_COUNT_BY_USERID

public static final FinderPath FINDER_PATH_COUNT_BY_USERID

FINDER_PATH_FIND_BY_THREADID

public static final FinderPath FINDER_PATH_FIND_BY_THREADID

FINDER_PATH_COUNT_BY_THREADID

public static final FinderPath FINDER_PATH_COUNT_BY_THREADID

FINDER_PATH_FIND_BY_MESSAGEID

public static final FinderPath FINDER_PATH_FIND_BY_MESSAGEID

FINDER_PATH_COUNT_BY_MESSAGEID

public static final FinderPath FINDER_PATH_COUNT_BY_MESSAGEID

FINDER_PATH_FIND_BY_T_F

public static final FinderPath FINDER_PATH_FIND_BY_T_F

FINDER_PATH_COUNT_BY_T_F

public static final FinderPath FINDER_PATH_COUNT_BY_T_F

FINDER_PATH_FIND_BY_M_F

public static final FinderPath FINDER_PATH_FIND_BY_M_F

FINDER_PATH_COUNT_BY_M_F

public static final FinderPath FINDER_PATH_COUNT_BY_M_F

FINDER_PATH_FIND_BY_U_T_F

public static final FinderPath FINDER_PATH_FIND_BY_U_T_F

FINDER_PATH_COUNT_BY_U_T_F

public static final FinderPath FINDER_PATH_COUNT_BY_U_T_F

FINDER_PATH_FETCH_BY_U_M_F

public static final FinderPath FINDER_PATH_FETCH_BY_U_M_F

FINDER_PATH_COUNT_BY_U_M_F

public static final FinderPath FINDER_PATH_COUNT_BY_U_M_F

FINDER_PATH_FIND_ALL

public static final FinderPath FINDER_PATH_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

mbBanPersistence

@BeanReference(type=MBBanPersistence.class)
protected MBBanPersistence mbBanPersistence

mbCategoryPersistence

@BeanReference(type=MBCategoryPersistence.class)
protected MBCategoryPersistence mbCategoryPersistence

mbDiscussionPersistence

@BeanReference(type=MBDiscussionPersistence.class)
protected MBDiscussionPersistence mbDiscussionPersistence

mbMailingListPersistence

@BeanReference(type=MBMailingListPersistence.class)
protected MBMailingListPersistence mbMailingListPersistence

mbMessagePersistence

@BeanReference(type=MBMessagePersistence.class)
protected MBMessagePersistence mbMessagePersistence

mbMessageFlagPersistence

@BeanReference(type=MBMessageFlagPersistence.class)
protected MBMessageFlagPersistence mbMessageFlagPersistence

mbStatsUserPersistence

@BeanReference(type=MBStatsUserPersistence.class)
protected MBStatsUserPersistence mbStatsUserPersistence

mbThreadPersistence

@BeanReference(type=MBThreadPersistence.class)
protected MBThreadPersistence mbThreadPersistence

resourcePersistence

@BeanReference(type=ResourcePersistence.class)
protected ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=UserPersistence.class)
protected UserPersistence userPersistence
Constructor Detail

MBMessageFlagPersistenceImpl

public MBMessageFlagPersistenceImpl()
Method Detail

cacheResult

public void cacheResult(MBMessageFlag mbMessageFlag)
Specified by:
cacheResult in interface MBMessageFlagPersistence

cacheResult

public void cacheResult(List<MBMessageFlag> mbMessageFlags)
Specified by:
cacheResult in interface MBMessageFlagPersistence

clearCache

public void clearCache()
Description copied from interface: BasePersistence
Clears the cache for all instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Caching information and settings can be found in portal.properties

Specified by:
clearCache in interface BasePersistence<MBMessageFlag>
Overrides:
clearCache in class BasePersistenceImpl<MBMessageFlag>

clearCache

public void clearCache(MBMessageFlag mbMessageFlag)
Description copied from interface: BasePersistence
Clears the cache for one instance of this model.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<MBMessageFlag>
Overrides:
clearCache in class BasePersistenceImpl<MBMessageFlag>
Parameters:
mbMessageFlag - the instance of this model to clear the cache for

create

public MBMessageFlag create(long messageFlagId)
Specified by:
create in interface MBMessageFlagPersistence

remove

public MBMessageFlag remove(Serializable primaryKey)
                     throws NoSuchModelException,
                            SystemException
Description copied from interface: BasePersistence
Removes the model instance identified by the primary key from the database, and notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<MBMessageFlag>
Overrides:
remove in class BasePersistenceImpl<MBMessageFlag>
Parameters:
primaryKey - the primary key of the model instance to remove
Returns:
the model instance that was removed
Throws:
NoSuchModelException - if an instance of this model with the primary key does not exist
SystemException - if a system exception occurred

remove

public MBMessageFlag remove(long messageFlagId)
                     throws NoSuchMessageFlagException,
                            SystemException
Specified by:
remove in interface MBMessageFlagPersistence
Throws:
NoSuchMessageFlagException
SystemException

removeImpl

protected MBMessageFlag removeImpl(MBMessageFlag mbMessageFlag)
                            throws SystemException
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<MBMessageFlag>
Parameters:
mbMessageFlag - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public MBMessageFlag updateImpl(MBMessageFlag mbMessageFlag,
                                boolean merge)
                         throws SystemException
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface MBMessageFlagPersistence
Overrides:
updateImpl in class BasePersistenceImpl<MBMessageFlag>
Parameters:
mbMessageFlag - the model instance to update
merge - whether to merge the model instance with the current session. See BatchSession.update( com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean) for an explanation.
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected MBMessageFlag toUnwrappedModel(MBMessageFlag mbMessageFlag)

findByPrimaryKey

public MBMessageFlag findByPrimaryKey(Serializable primaryKey)
                               throws NoSuchModelException,
                                      SystemException
Description copied from interface: BasePersistence
Finds an instance of this model by its primary key, or throw an exception if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<MBMessageFlag>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<MBMessageFlag>
Parameters:
primaryKey - the primary key of the model instance to find
Returns:
the model instance
Throws:
NoSuchModelException - if an instance of this model with the primary key does not exist
SystemException - if the primary key is null, or if a system exception occurred

findByPrimaryKey

public MBMessageFlag findByPrimaryKey(long messageFlagId)
                               throws NoSuchMessageFlagException,
                                      SystemException
Specified by:
findByPrimaryKey in interface MBMessageFlagPersistence
Throws:
NoSuchMessageFlagException
SystemException

fetchByPrimaryKey

public MBMessageFlag fetchByPrimaryKey(Serializable primaryKey)
                                throws SystemException
Description copied from interface: BasePersistence
Finds an instance of this model by its primary key, or return null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<MBMessageFlag>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<MBMessageFlag>
Parameters:
primaryKey - the primary key of the model instance to find
Returns:
the model instance, or null if an instance of this model with the primary key does not exist
Throws:
SystemException - if the primary key is null, or if a system exception occurred

fetchByPrimaryKey

public MBMessageFlag fetchByPrimaryKey(long messageFlagId)
                                throws SystemException
Specified by:
fetchByPrimaryKey in interface MBMessageFlagPersistence
Throws:
SystemException

findByUserId

public List<MBMessageFlag> findByUserId(long userId)
                                 throws SystemException
Specified by:
findByUserId in interface MBMessageFlagPersistence
Throws:
SystemException

findByUserId

public List<MBMessageFlag> findByUserId(long userId,
                                        int start,
                                        int end)
                                 throws SystemException
Specified by:
findByUserId in interface MBMessageFlagPersistence
Throws:
SystemException

findByUserId

public List<MBMessageFlag> findByUserId(long userId,
                                        int start,
                                        int end,
                                        OrderByComparator orderByComparator)
                                 throws SystemException
Specified by:
findByUserId in interface MBMessageFlagPersistence
Throws:
SystemException

findByUserId_First

public MBMessageFlag findByUserId_First(long userId,
                                        OrderByComparator orderByComparator)
                                 throws NoSuchMessageFlagException,
                                        SystemException
Specified by:
findByUserId_First in interface MBMessageFlagPersistence
Throws:
NoSuchMessageFlagException
SystemException

findByUserId_Last

public MBMessageFlag findByUserId_Last(long userId,
                                       OrderByComparator orderByComparator)
                                throws NoSuchMessageFlagException,
                                       SystemException
Specified by:
findByUserId_Last in interface MBMessageFlagPersistence
Throws:
NoSuchMessageFlagException
SystemException

findByUserId_PrevAndNext

public MBMessageFlag[] findByUserId_PrevAndNext(long messageFlagId,
                                                long userId,
                                                OrderByComparator orderByComparator)
                                         throws NoSuchMessageFlagException,
                                                SystemException
Specified by:
findByUserId_PrevAndNext in interface MBMessageFlagPersistence
Throws:
NoSuchMessageFlagException
SystemException

getByUserId_PrevAndNext

protected MBMessageFlag getByUserId_PrevAndNext(Session session,
                                                MBMessageFlag mbMessageFlag,
                                                long userId,
                                                OrderByComparator orderByComparator,
                                                boolean previous)

findByThreadId

public List<MBMessageFlag> findByThreadId(long threadId)
                                   throws SystemException
Specified by:
findByThreadId in interface MBMessageFlagPersistence
Throws:
SystemException

findByThreadId

public List<MBMessageFlag> findByThreadId(long threadId,
                                          int start,
                                          int end)
                                   throws SystemException
Specified by:
findByThreadId in interface MBMessageFlagPersistence
Throws:
SystemException

findByThreadId

public List<MBMessageFlag> findByThreadId(long threadId,
                                          int start,
                                          int end,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Specified by:
findByThreadId in interface MBMessageFlagPersistence
Throws:
SystemException

findByThreadId_First

public MBMessageFlag findByThreadId_First(long threadId,
                                          OrderByComparator orderByComparator)
                                   throws NoSuchMessageFlagException,
                                          SystemException
Specified by:
findByThreadId_First in interface MBMessageFlagPersistence
Throws:
NoSuchMessageFlagException
SystemException

findByThreadId_Last

public MBMessageFlag findByThreadId_Last(long threadId,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchMessageFlagException,
                                         SystemException
Specified by:
findByThreadId_Last in interface MBMessageFlagPersistence
Throws:
NoSuchMessageFlagException
SystemException

findByThreadId_PrevAndNext

public MBMessageFlag[] findByThreadId_PrevAndNext(long messageFlagId,
                                                  long threadId,
                                                  OrderByComparator orderByComparator)
                                           throws NoSuchMessageFlagException,
                                                  SystemException
Specified by:
findByThreadId_PrevAndNext in interface MBMessageFlagPersistence
Throws:
NoSuchMessageFlagException
SystemException

getByThreadId_PrevAndNext

protected MBMessageFlag getByThreadId_PrevAndNext(Session session,
                                                  MBMessageFlag mbMessageFlag,
                                                  long threadId,
                                                  OrderByComparator orderByComparator,
                                                  boolean previous)

findByMessageId

public List<MBMessageFlag> findByMessageId(long messageId)
                                    throws SystemException
Specified by:
findByMessageId in interface MBMessageFlagPersistence
Throws:
SystemException

findByMessageId

public List<MBMessageFlag> findByMessageId(long messageId,
                                           int start,
                                           int end)
                                    throws SystemException
Specified by:
findByMessageId in interface MBMessageFlagPersistence
Throws:
SystemException

findByMessageId

public List<MBMessageFlag> findByMessageId(long messageId,
                                           int start,
                                           int end,
                                           OrderByComparator orderByComparator)
                                    throws SystemException
Specified by:
findByMessageId in interface MBMessageFlagPersistence
Throws:
SystemException

findByMessageId_First

public MBMessageFlag findByMessageId_First(long messageId,
                                           OrderByComparator orderByComparator)
                                    throws NoSuchMessageFlagException,
                                           SystemException
Specified by:
findByMessageId_First in interface MBMessageFlagPersistence
Throws:
NoSuchMessageFlagException
SystemException

findByMessageId_Last

public MBMessageFlag findByMessageId_Last(long messageId,
                                          OrderByComparator orderByComparator)
                                   throws NoSuchMessageFlagException,
                                          SystemException
Specified by:
findByMessageId_Last in interface MBMessageFlagPersistence
Throws:
NoSuchMessageFlagException
SystemException

findByMessageId_PrevAndNext

public MBMessageFlag[] findByMessageId_PrevAndNext(long messageFlagId,
                                                   long messageId,
                                                   OrderByComparator orderByComparator)
                                            throws NoSuchMessageFlagException,
                                                   SystemException
Specified by:
findByMessageId_PrevAndNext in interface MBMessageFlagPersistence
Throws:
NoSuchMessageFlagException
SystemException

getByMessageId_PrevAndNext

protected MBMessageFlag getByMessageId_PrevAndNext(Session session,
                                                   MBMessageFlag mbMessageFlag,
                                                   long messageId,
                                                   OrderByComparator orderByComparator,
                                                   boolean previous)

findByT_F

public List<MBMessageFlag> findByT_F(long threadId,
                                     int flag)
                              throws SystemException
Specified by:
findByT_F in interface MBMessageFlagPersistence
Throws:
SystemException

findByT_F

public List<MBMessageFlag> findByT_F(long threadId,
                                     int flag,
                                     int start,
                                     int end)
                              throws SystemException
Specified by:
findByT_F in interface MBMessageFlagPersistence
Throws:
SystemException

findByT_F

public List<MBMessageFlag> findByT_F(long threadId,
                                     int flag,
                                     int start,
                                     int end,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Specified by:
findByT_F in interface MBMessageFlagPersistence
Throws:
SystemException

findByT_F_First

public MBMessageFlag findByT_F_First(long threadId,
                                     int flag,
                                     OrderByComparator orderByComparator)
                              throws NoSuchMessageFlagException,
                                     SystemException
Specified by:
findByT_F_First in interface MBMessageFlagPersistence
Throws:
NoSuchMessageFlagException
SystemException

findByT_F_Last

public MBMessageFlag findByT_F_Last(long threadId,
                                    int flag,
                                    OrderByComparator orderByComparator)
                             throws NoSuchMessageFlagException,
                                    SystemException
Specified by:
findByT_F_Last in interface MBMessageFlagPersistence
Throws:
NoSuchMessageFlagException
SystemException

findByT_F_PrevAndNext

public MBMessageFlag[] findByT_F_PrevAndNext(long messageFlagId,
                                             long threadId,
                                             int flag,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchMessageFlagException,
                                             SystemException
Specified by:
findByT_F_PrevAndNext in interface MBMessageFlagPersistence
Throws:
NoSuchMessageFlagException
SystemException

getByT_F_PrevAndNext

protected MBMessageFlag getByT_F_PrevAndNext(Session session,
                                             MBMessageFlag mbMessageFlag,
                                             long threadId,
                                             int flag,
                                             OrderByComparator orderByComparator,
                                             boolean previous)

findByM_F

public List<MBMessageFlag> findByM_F(long messageId,
                                     int flag)
                              throws SystemException
Specified by:
findByM_F in interface MBMessageFlagPersistence
Throws:
SystemException

findByM_F

public List<MBMessageFlag> findByM_F(long messageId,
                                     int flag,
                                     int start,
                                     int end)
                              throws SystemException
Specified by:
findByM_F in interface MBMessageFlagPersistence
Throws:
SystemException

findByM_F

public List<MBMessageFlag> findByM_F(long messageId,
                                     int flag,
                                     int start,
                                     int end,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Specified by:
findByM_F in interface MBMessageFlagPersistence
Throws:
SystemException

findByM_F_First

public MBMessageFlag findByM_F_First(long messageId,
                                     int flag,
                                     OrderByComparator orderByComparator)
                              throws NoSuchMessageFlagException,
                                     SystemException
Specified by:
findByM_F_First in interface MBMessageFlagPersistence
Throws:
NoSuchMessageFlagException
SystemException

findByM_F_Last

public MBMessageFlag findByM_F_Last(long messageId,
                                    int flag,
                                    OrderByComparator orderByComparator)
                             throws NoSuchMessageFlagException,
                                    SystemException
Specified by:
findByM_F_Last in interface MBMessageFlagPersistence
Throws:
NoSuchMessageFlagException
SystemException

findByM_F_PrevAndNext

public MBMessageFlag[] findByM_F_PrevAndNext(long messageFlagId,
                                             long messageId,
                                             int flag,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchMessageFlagException,
                                             SystemException
Specified by:
findByM_F_PrevAndNext in interface MBMessageFlagPersistence
Throws:
NoSuchMessageFlagException
SystemException

getByM_F_PrevAndNext

protected MBMessageFlag getByM_F_PrevAndNext(Session session,
                                             MBMessageFlag mbMessageFlag,
                                             long messageId,
                                             int flag,
                                             OrderByComparator orderByComparator,
                                             boolean previous)

findByU_T_F

public List<MBMessageFlag> findByU_T_F(long userId,
                                       long threadId,
                                       int flag)
                                throws SystemException
Specified by:
findByU_T_F in interface MBMessageFlagPersistence
Throws:
SystemException

findByU_T_F

public List<MBMessageFlag> findByU_T_F(long userId,
                                       long threadId,
                                       int flag,
                                       int start,
                                       int end)
                                throws SystemException
Specified by:
findByU_T_F in interface MBMessageFlagPersistence
Throws:
SystemException

findByU_T_F

public List<MBMessageFlag> findByU_T_F(long userId,
                                       long threadId,
                                       int flag,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Specified by:
findByU_T_F in interface MBMessageFlagPersistence
Throws:
SystemException

findByU_T_F_First

public MBMessageFlag findByU_T_F_First(long userId,
                                       long threadId,
                                       int flag,
                                       OrderByComparator orderByComparator)
                                throws NoSuchMessageFlagException,
                                       SystemException
Specified by:
findByU_T_F_First in interface MBMessageFlagPersistence
Throws:
NoSuchMessageFlagException
SystemException

findByU_T_F_Last

public MBMessageFlag findByU_T_F_Last(long userId,
                                      long threadId,
                                      int flag,
                                      OrderByComparator orderByComparator)
                               throws NoSuchMessageFlagException,
                                      SystemException
Specified by:
findByU_T_F_Last in interface MBMessageFlagPersistence
Throws:
NoSuchMessageFlagException
SystemException

findByU_T_F_PrevAndNext

public MBMessageFlag[] findByU_T_F_PrevAndNext(long messageFlagId,
                                               long userId,
                                               long threadId,
                                               int flag,
                                               OrderByComparator orderByComparator)
                                        throws NoSuchMessageFlagException,
                                               SystemException
Specified by:
findByU_T_F_PrevAndNext in interface MBMessageFlagPersistence
Throws:
NoSuchMessageFlagException
SystemException

getByU_T_F_PrevAndNext

protected MBMessageFlag getByU_T_F_PrevAndNext(Session session,
                                               MBMessageFlag mbMessageFlag,
                                               long userId,
                                               long threadId,
                                               int flag,
                                               OrderByComparator orderByComparator,
                                               boolean previous)

findByU_M_F

public MBMessageFlag findByU_M_F(long userId,
                                 long messageId,
                                 int flag)
                          throws NoSuchMessageFlagException,
                                 SystemException
Specified by:
findByU_M_F in interface MBMessageFlagPersistence
Throws:
NoSuchMessageFlagException
SystemException

fetchByU_M_F

public MBMessageFlag fetchByU_M_F(long userId,
                                  long messageId,
                                  int flag)
                           throws SystemException
Specified by:
fetchByU_M_F in interface MBMessageFlagPersistence
Throws:
SystemException

fetchByU_M_F

public MBMessageFlag fetchByU_M_F(long userId,
                                  long messageId,
                                  int flag,
                                  boolean retrieveFromCache)
                           throws SystemException
Specified by:
fetchByU_M_F in interface MBMessageFlagPersistence
Throws:
SystemException

findAll

public List<MBMessageFlag> findAll()
                            throws SystemException
Specified by:
findAll in interface MBMessageFlagPersistence
Throws:
SystemException

findAll

public List<MBMessageFlag> findAll(int start,
                                   int end)
                            throws SystemException
Specified by:
findAll in interface MBMessageFlagPersistence
Throws:
SystemException

findAll

public List<MBMessageFlag> findAll(int start,
                                   int end,
                                   OrderByComparator orderByComparator)
                            throws SystemException
Specified by:
findAll in interface MBMessageFlagPersistence
Throws:
SystemException

removeByUserId

public void removeByUserId(long userId)
                    throws SystemException
Specified by:
removeByUserId in interface MBMessageFlagPersistence
Throws:
SystemException

removeByThreadId

public void removeByThreadId(long threadId)
                      throws SystemException
Specified by:
removeByThreadId in interface MBMessageFlagPersistence
Throws:
SystemException

removeByMessageId

public void removeByMessageId(long messageId)
                       throws SystemException
Specified by:
removeByMessageId in interface MBMessageFlagPersistence
Throws:
SystemException

removeByT_F

public void removeByT_F(long threadId,
                        int flag)
                 throws SystemException
Specified by:
removeByT_F in interface MBMessageFlagPersistence
Throws:
SystemException

removeByM_F

public void removeByM_F(long messageId,
                        int flag)
                 throws SystemException
Specified by:
removeByM_F in interface MBMessageFlagPersistence
Throws:
SystemException

removeByU_T_F

public void removeByU_T_F(long userId,
                          long threadId,
                          int flag)
                   throws SystemException
Specified by:
removeByU_T_F in interface MBMessageFlagPersistence
Throws:
SystemException

removeByU_M_F

public void removeByU_M_F(long userId,
                          long messageId,
                          int flag)
                   throws NoSuchMessageFlagException,
                          SystemException
Specified by:
removeByU_M_F in interface MBMessageFlagPersistence
Throws:
NoSuchMessageFlagException
SystemException

removeAll

public void removeAll()
               throws SystemException
Specified by:
removeAll in interface MBMessageFlagPersistence
Throws:
SystemException

countByUserId

public int countByUserId(long userId)
                  throws SystemException
Specified by:
countByUserId in interface MBMessageFlagPersistence
Throws:
SystemException

countByThreadId

public int countByThreadId(long threadId)
                    throws SystemException
Specified by:
countByThreadId in interface MBMessageFlagPersistence
Throws:
SystemException

countByMessageId

public int countByMessageId(long messageId)
                     throws SystemException
Specified by:
countByMessageId in interface MBMessageFlagPersistence
Throws:
SystemException

countByT_F

public int countByT_F(long threadId,
                      int flag)
               throws SystemException
Specified by:
countByT_F in interface MBMessageFlagPersistence
Throws:
SystemException

countByM_F

public int countByM_F(long messageId,
                      int flag)
               throws SystemException
Specified by:
countByM_F in interface MBMessageFlagPersistence
Throws:
SystemException

countByU_T_F

public int countByU_T_F(long userId,
                        long threadId,
                        int flag)
                 throws SystemException
Specified by:
countByU_T_F in interface MBMessageFlagPersistence
Throws:
SystemException

countByU_M_F

public int countByU_M_F(long userId,
                        long messageId,
                        int flag)
                 throws SystemException
Specified by:
countByU_M_F in interface MBMessageFlagPersistence
Throws:
SystemException

countAll

public int countAll()
             throws SystemException
Specified by:
countAll in interface MBMessageFlagPersistence
Throws:
SystemException

afterPropertiesSet

public void afterPropertiesSet()

Liferay 6.0.3