Liferay 6.0.5

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

The persistence implementation for the message boards message flag service.

Never modify or reference this class directly. Always use MBMessageFlagUtil to access the message boards message flag persistence. Modify service.xml and rerun ServiceBuilder to regenerate this class.

Caching information and settings can be found in portal.properties

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()
          Initializes the message boards message flag persistence.
 void cacheResult(List<MBMessageFlag> mbMessageFlags)
          Caches the message boards message flags in the entity cache if it is enabled.
 void cacheResult(MBMessageFlag mbMessageFlag)
          Caches the message boards message flag in the entity cache if it is enabled.
 void clearCache()
          Clears the cache for all message boards message flags.
 void clearCache(MBMessageFlag mbMessageFlag)
          Clears the cache for the message boards message flag.
 int countAll()
          Counts all the message boards message flags.
 int countByM_F(long messageId, int flag)
          Counts all the message boards message flags where messageId = ? and flag = ?.
 int countByMessageId(long messageId)
          Counts all the message boards message flags where messageId = ?.
 int countByT_F(long threadId, int flag)
          Counts all the message boards message flags where threadId = ? and flag = ?.
 int countByThreadId(long threadId)
          Counts all the message boards message flags where threadId = ?.
 int countByU_M_F(long userId, long messageId, int flag)
          Counts all the message boards message flags where userId = ? and messageId = ? and flag = ?.
 int countByU_T_F(long userId, long threadId, int flag)
          Counts all the message boards message flags where userId = ? and threadId = ? and flag = ?.
 int countByUserId(long userId)
          Counts all the message boards message flags where userId = ?.
 MBMessageFlag create(long messageFlagId)
          Creates a new message boards message flag with the primary key.
 MBMessageFlag fetchByPrimaryKey(long messageFlagId)
          Finds the message boards message flag with the primary key or returns null if it could not be found.
 MBMessageFlag fetchByPrimaryKey(Serializable primaryKey)
          Finds the message boards message flag with the primary key or returns null if it could not be found.
 MBMessageFlag fetchByU_M_F(long userId, long messageId, int flag)
          Finds the message boards message flag where userId = ? and messageId = ? and flag = ? or returns null if it could not be found.
 MBMessageFlag fetchByU_M_F(long userId, long messageId, int flag, boolean retrieveFromCache)
          Finds the message boards message flag where userId = ? and messageId = ? and flag = ? or returns null if it could not be found, optionally using the finder cache.
 List<MBMessageFlag> findAll()
          Finds all the message boards message flags.
 List<MBMessageFlag> findAll(int start, int end)
          Finds a range of all the message boards message flags.
 List<MBMessageFlag> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the message boards message flags.
 MBMessageFlag findByM_F_First(long messageId, int flag, OrderByComparator orderByComparator)
          Finds the first message boards message flag in the ordered set where messageId = ? and flag = ?.
 MBMessageFlag findByM_F_Last(long messageId, int flag, OrderByComparator orderByComparator)
          Finds the last message boards message flag in the ordered set where messageId = ? and flag = ?.
 MBMessageFlag[] findByM_F_PrevAndNext(long messageFlagId, long messageId, int flag, OrderByComparator orderByComparator)
          Finds the message boards message flags before and after the current message boards message flag in the ordered set where messageId = ? and flag = ?.
 List<MBMessageFlag> findByM_F(long messageId, int flag)
          Finds all the message boards message flags where messageId = ? and flag = ?.
 List<MBMessageFlag> findByM_F(long messageId, int flag, int start, int end)
          Finds a range of all the message boards message flags where messageId = ? and flag = ?.
 List<MBMessageFlag> findByM_F(long messageId, int flag, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the message boards message flags where messageId = ? and flag = ?.
 MBMessageFlag findByMessageId_First(long messageId, OrderByComparator orderByComparator)
          Finds the first message boards message flag in the ordered set where messageId = ?.
 MBMessageFlag findByMessageId_Last(long messageId, OrderByComparator orderByComparator)
          Finds the last message boards message flag in the ordered set where messageId = ?.
 MBMessageFlag[] findByMessageId_PrevAndNext(long messageFlagId, long messageId, OrderByComparator orderByComparator)
          Finds the message boards message flags before and after the current message boards message flag in the ordered set where messageId = ?.
 List<MBMessageFlag> findByMessageId(long messageId)
          Finds all the message boards message flags where messageId = ?.
 List<MBMessageFlag> findByMessageId(long messageId, int start, int end)
          Finds a range of all the message boards message flags where messageId = ?.
 List<MBMessageFlag> findByMessageId(long messageId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the message boards message flags where messageId = ?.
 MBMessageFlag findByPrimaryKey(long messageFlagId)
          Finds the message boards message flag with the primary key or throws a NoSuchMessageFlagException if it could not be found.
 MBMessageFlag findByPrimaryKey(Serializable primaryKey)
          Finds the message boards message flag with the primary key or throws a NoSuchModelException if it could not be found.
 MBMessageFlag findByT_F_First(long threadId, int flag, OrderByComparator orderByComparator)
          Finds the first message boards message flag in the ordered set where threadId = ? and flag = ?.
 MBMessageFlag findByT_F_Last(long threadId, int flag, OrderByComparator orderByComparator)
          Finds the last message boards message flag in the ordered set where threadId = ? and flag = ?.
 MBMessageFlag[] findByT_F_PrevAndNext(long messageFlagId, long threadId, int flag, OrderByComparator orderByComparator)
          Finds the message boards message flags before and after the current message boards message flag in the ordered set where threadId = ? and flag = ?.
 List<MBMessageFlag> findByT_F(long threadId, int flag)
          Finds all the message boards message flags where threadId = ? and flag = ?.
 List<MBMessageFlag> findByT_F(long threadId, int flag, int start, int end)
          Finds a range of all the message boards message flags where threadId = ? and flag = ?.
 List<MBMessageFlag> findByT_F(long threadId, int flag, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the message boards message flags where threadId = ? and flag = ?.
 MBMessageFlag findByThreadId_First(long threadId, OrderByComparator orderByComparator)
          Finds the first message boards message flag in the ordered set where threadId = ?.
 MBMessageFlag findByThreadId_Last(long threadId, OrderByComparator orderByComparator)
          Finds the last message boards message flag in the ordered set where threadId = ?.
 MBMessageFlag[] findByThreadId_PrevAndNext(long messageFlagId, long threadId, OrderByComparator orderByComparator)
          Finds the message boards message flags before and after the current message boards message flag in the ordered set where threadId = ?.
 List<MBMessageFlag> findByThreadId(long threadId)
          Finds all the message boards message flags where threadId = ?.
 List<MBMessageFlag> findByThreadId(long threadId, int start, int end)
          Finds a range of all the message boards message flags where threadId = ?.
 List<MBMessageFlag> findByThreadId(long threadId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the message boards message flags where threadId = ?.
 MBMessageFlag findByU_M_F(long userId, long messageId, int flag)
          Finds the message boards message flag where userId = ? and messageId = ? and flag = ? or throws a NoSuchMessageFlagException if it could not be found.
 MBMessageFlag findByU_T_F_First(long userId, long threadId, int flag, OrderByComparator orderByComparator)
          Finds the first message boards message flag in the ordered set where userId = ? and threadId = ? and flag = ?.
 MBMessageFlag findByU_T_F_Last(long userId, long threadId, int flag, OrderByComparator orderByComparator)
          Finds the last message boards message flag in the ordered set where userId = ? and threadId = ? and flag = ?.
 MBMessageFlag[] findByU_T_F_PrevAndNext(long messageFlagId, long userId, long threadId, int flag, OrderByComparator orderByComparator)
          Finds the message boards message flags before and after the current message boards message flag in the ordered set where userId = ? and threadId = ? and flag = ?.
 List<MBMessageFlag> findByU_T_F(long userId, long threadId, int flag)
          Finds all the message boards message flags where userId = ? and threadId = ? and flag = ?.
 List<MBMessageFlag> findByU_T_F(long userId, long threadId, int flag, int start, int end)
          Finds a range of all the message boards message flags where userId = ? and threadId = ? and flag = ?.
 List<MBMessageFlag> findByU_T_F(long userId, long threadId, int flag, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the message boards message flags where userId = ? and threadId = ? and flag = ?.
 MBMessageFlag findByUserId_First(long userId, OrderByComparator orderByComparator)
          Finds the first message boards message flag in the ordered set where userId = ?.
 MBMessageFlag findByUserId_Last(long userId, OrderByComparator orderByComparator)
          Finds the last message boards message flag in the ordered set where userId = ?.
 MBMessageFlag[] findByUserId_PrevAndNext(long messageFlagId, long userId, OrderByComparator orderByComparator)
          Finds the message boards message flags before and after the current message boards message flag in the ordered set where userId = ?.
 List<MBMessageFlag> findByUserId(long userId)
          Finds all the message boards message flags where userId = ?.
 List<MBMessageFlag> findByUserId(long userId, int start, int end)
          Finds a range of all the message boards message flags where userId = ?.
 List<MBMessageFlag> findByUserId(long userId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the message boards message flags where userId = ?.
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)
          Removes the message boards message flag with the primary key from the database.
 MBMessageFlag remove(Serializable primaryKey)
          Removes the message boards message flag with the primary key from the database.
 void removeAll()
          Removes all the message boards message flags from the database.
 void removeByM_F(long messageId, int flag)
          Removes all the message boards message flags where messageId = ? and flag = ? from the database.
 void removeByMessageId(long messageId)
          Removes all the message boards message flags where messageId = ? from the database.
 void removeByT_F(long threadId, int flag)
          Removes all the message boards message flags where threadId = ? and flag = ? from the database.
 void removeByThreadId(long threadId)
          Removes all the message boards message flags where threadId = ? from the database.
 void removeByU_M_F(long userId, long messageId, int flag)
          Removes the message boards message flag where userId = ? and messageId = ? and flag = ? from the database.
 void removeByU_T_F(long userId, long threadId, int flag)
          Removes all the message boards message flags where userId = ? and threadId = ? and flag = ? from the database.
 void removeByUserId(long userId)
          Removes all the message boards message flags where userId = ? from the database.
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)
Caches the message boards message flag in the entity cache if it is enabled.

Specified by:
cacheResult in interface MBMessageFlagPersistence
Parameters:
mbMessageFlag - the message boards message flag to cache

cacheResult

public void cacheResult(List<MBMessageFlag> mbMessageFlags)
Caches the message boards message flags in the entity cache if it is enabled.

Specified by:
cacheResult in interface MBMessageFlagPersistence
Parameters:
mbMessageFlags - the message boards message flags to cache

clearCache

public void clearCache()
Clears the cache for all message boards message flags.

The EntityCache and FinderCache are both cleared by this method.

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

clearCache

public void clearCache(MBMessageFlag mbMessageFlag)
Clears the cache for the message boards message flag.

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)
Creates a new message boards message flag with the primary key. Does not add the message boards message flag to the database.

Specified by:
create in interface MBMessageFlagPersistence
Parameters:
messageFlagId - the primary key for the new message boards message flag
Returns:
the new message boards message flag

remove

public MBMessageFlag remove(Serializable primaryKey)
                     throws NoSuchModelException,
                            SystemException
Removes the message boards message flag with the primary key from the database. Also 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 message boards message flag to remove
Returns:
the message boards message flag that was removed
Throws:
NoSuchModelException - if a message boards message flag with the primary key could not be found
SystemException - if a system exception occurred

remove

public MBMessageFlag remove(long messageFlagId)
                     throws NoSuchMessageFlagException,
                            SystemException
Removes the message boards message flag with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface MBMessageFlagPersistence
Parameters:
messageFlagId - the primary key of the message boards message flag to remove
Returns:
the message boards message flag that was removed
Throws:
NoSuchMessageFlagException - if a message boards message flag with the primary key could not be found
SystemException - if a system exception occurred

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
Finds the message boards message flag with the primary key or throws a NoSuchModelException 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 message boards message flag to find
Returns:
the message boards message flag
Throws:
NoSuchModelException - if a message boards message flag with the primary key could not be found
SystemException - if a system exception occurred

findByPrimaryKey

public MBMessageFlag findByPrimaryKey(long messageFlagId)
                               throws NoSuchMessageFlagException,
                                      SystemException
Finds the message boards message flag with the primary key or throws a NoSuchMessageFlagException if it could not be found.

Specified by:
findByPrimaryKey in interface MBMessageFlagPersistence
Parameters:
messageFlagId - the primary key of the message boards message flag to find
Returns:
the message boards message flag
Throws:
NoSuchMessageFlagException - if a message boards message flag with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public MBMessageFlag fetchByPrimaryKey(Serializable primaryKey)
                                throws SystemException
Finds the message boards message flag with the primary key or returns 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 message boards message flag to find
Returns:
the message boards message flag, or null if a message boards message flag with the primary key could not be found
Throws:
SystemException - if a system exception occurred

fetchByPrimaryKey

public MBMessageFlag fetchByPrimaryKey(long messageFlagId)
                                throws SystemException
Finds the message boards message flag with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface MBMessageFlagPersistence
Parameters:
messageFlagId - the primary key of the message boards message flag to find
Returns:
the message boards message flag, or null if a message boards message flag with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByUserId

public List<MBMessageFlag> findByUserId(long userId)
                                 throws SystemException
Finds all the message boards message flags where userId = ?.

Specified by:
findByUserId in interface MBMessageFlagPersistence
Parameters:
userId - the user id to search with
Returns:
the matching message boards message flags
Throws:
SystemException - if a system exception occurred

findByUserId

public List<MBMessageFlag> findByUserId(long userId,
                                        int start,
                                        int end)
                                 throws SystemException
Finds a range of all the message boards message flags where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByUserId in interface MBMessageFlagPersistence
Parameters:
userId - the user id to search with
start - the lower bound of the range of message boards message flags to return
end - the upper bound of the range of message boards message flags to return (not inclusive)
Returns:
the range of matching message boards message flags
Throws:
SystemException - if a system exception occurred

findByUserId

public List<MBMessageFlag> findByUserId(long userId,
                                        int start,
                                        int end,
                                        OrderByComparator orderByComparator)
                                 throws SystemException
Finds an ordered range of all the message boards message flags where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByUserId in interface MBMessageFlagPersistence
Parameters:
userId - the user id to search with
start - the lower bound of the range of message boards message flags to return
end - the upper bound of the range of message boards message flags to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching message boards message flags
Throws:
SystemException - if a system exception occurred

findByUserId_First

public MBMessageFlag findByUserId_First(long userId,
                                        OrderByComparator orderByComparator)
                                 throws NoSuchMessageFlagException,
                                        SystemException
Finds the first message boards message flag in the ordered set where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByUserId_First in interface MBMessageFlagPersistence
Parameters:
userId - the user id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching message boards message flag
Throws:
NoSuchMessageFlagException - if a matching message boards message flag could not be found
SystemException - if a system exception occurred

findByUserId_Last

public MBMessageFlag findByUserId_Last(long userId,
                                       OrderByComparator orderByComparator)
                                throws NoSuchMessageFlagException,
                                       SystemException
Finds the last message boards message flag in the ordered set where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByUserId_Last in interface MBMessageFlagPersistence
Parameters:
userId - the user id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching message boards message flag
Throws:
NoSuchMessageFlagException - if a matching message boards message flag could not be found
SystemException - if a system exception occurred

findByUserId_PrevAndNext

public MBMessageFlag[] findByUserId_PrevAndNext(long messageFlagId,
                                                long userId,
                                                OrderByComparator orderByComparator)
                                         throws NoSuchMessageFlagException,
                                                SystemException
Finds the message boards message flags before and after the current message boards message flag in the ordered set where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByUserId_PrevAndNext in interface MBMessageFlagPersistence
Parameters:
messageFlagId - the primary key of the current message boards message flag
userId - the user id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next message boards message flag
Throws:
NoSuchMessageFlagException - if a message boards message flag with the primary key could not be found
SystemException - if a system exception occurred

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
Finds all the message boards message flags where threadId = ?.

Specified by:
findByThreadId in interface MBMessageFlagPersistence
Parameters:
threadId - the thread id to search with
Returns:
the matching message boards message flags
Throws:
SystemException - if a system exception occurred

findByThreadId

public List<MBMessageFlag> findByThreadId(long threadId,
                                          int start,
                                          int end)
                                   throws SystemException
Finds a range of all the message boards message flags where threadId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByThreadId in interface MBMessageFlagPersistence
Parameters:
threadId - the thread id to search with
start - the lower bound of the range of message boards message flags to return
end - the upper bound of the range of message boards message flags to return (not inclusive)
Returns:
the range of matching message boards message flags
Throws:
SystemException - if a system exception occurred

findByThreadId

public List<MBMessageFlag> findByThreadId(long threadId,
                                          int start,
                                          int end,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Finds an ordered range of all the message boards message flags where threadId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByThreadId in interface MBMessageFlagPersistence
Parameters:
threadId - the thread id to search with
start - the lower bound of the range of message boards message flags to return
end - the upper bound of the range of message boards message flags to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching message boards message flags
Throws:
SystemException - if a system exception occurred

findByThreadId_First

public MBMessageFlag findByThreadId_First(long threadId,
                                          OrderByComparator orderByComparator)
                                   throws NoSuchMessageFlagException,
                                          SystemException
Finds the first message boards message flag in the ordered set where threadId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByThreadId_First in interface MBMessageFlagPersistence
Parameters:
threadId - the thread id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching message boards message flag
Throws:
NoSuchMessageFlagException - if a matching message boards message flag could not be found
SystemException - if a system exception occurred

findByThreadId_Last

public MBMessageFlag findByThreadId_Last(long threadId,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchMessageFlagException,
                                         SystemException
Finds the last message boards message flag in the ordered set where threadId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByThreadId_Last in interface MBMessageFlagPersistence
Parameters:
threadId - the thread id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching message boards message flag
Throws:
NoSuchMessageFlagException - if a matching message boards message flag could not be found
SystemException - if a system exception occurred

findByThreadId_PrevAndNext

public MBMessageFlag[] findByThreadId_PrevAndNext(long messageFlagId,
                                                  long threadId,
                                                  OrderByComparator orderByComparator)
                                           throws NoSuchMessageFlagException,
                                                  SystemException
Finds the message boards message flags before and after the current message boards message flag in the ordered set where threadId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByThreadId_PrevAndNext in interface MBMessageFlagPersistence
Parameters:
messageFlagId - the primary key of the current message boards message flag
threadId - the thread id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next message boards message flag
Throws:
NoSuchMessageFlagException - if a message boards message flag with the primary key could not be found
SystemException - if a system exception occurred

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
Finds all the message boards message flags where messageId = ?.

Specified by:
findByMessageId in interface MBMessageFlagPersistence
Parameters:
messageId - the message id to search with
Returns:
the matching message boards message flags
Throws:
SystemException - if a system exception occurred

findByMessageId

public List<MBMessageFlag> findByMessageId(long messageId,
                                           int start,
                                           int end)
                                    throws SystemException
Finds a range of all the message boards message flags where messageId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByMessageId in interface MBMessageFlagPersistence
Parameters:
messageId - the message id to search with
start - the lower bound of the range of message boards message flags to return
end - the upper bound of the range of message boards message flags to return (not inclusive)
Returns:
the range of matching message boards message flags
Throws:
SystemException - if a system exception occurred

findByMessageId

public List<MBMessageFlag> findByMessageId(long messageId,
                                           int start,
                                           int end,
                                           OrderByComparator orderByComparator)
                                    throws SystemException
Finds an ordered range of all the message boards message flags where messageId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByMessageId in interface MBMessageFlagPersistence
Parameters:
messageId - the message id to search with
start - the lower bound of the range of message boards message flags to return
end - the upper bound of the range of message boards message flags to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching message boards message flags
Throws:
SystemException - if a system exception occurred

findByMessageId_First

public MBMessageFlag findByMessageId_First(long messageId,
                                           OrderByComparator orderByComparator)
                                    throws NoSuchMessageFlagException,
                                           SystemException
Finds the first message boards message flag in the ordered set where messageId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByMessageId_First in interface MBMessageFlagPersistence
Parameters:
messageId - the message id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching message boards message flag
Throws:
NoSuchMessageFlagException - if a matching message boards message flag could not be found
SystemException - if a system exception occurred

findByMessageId_Last

public MBMessageFlag findByMessageId_Last(long messageId,
                                          OrderByComparator orderByComparator)
                                   throws NoSuchMessageFlagException,
                                          SystemException
Finds the last message boards message flag in the ordered set where messageId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByMessageId_Last in interface MBMessageFlagPersistence
Parameters:
messageId - the message id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching message boards message flag
Throws:
NoSuchMessageFlagException - if a matching message boards message flag could not be found
SystemException - if a system exception occurred

findByMessageId_PrevAndNext

public MBMessageFlag[] findByMessageId_PrevAndNext(long messageFlagId,
                                                   long messageId,
                                                   OrderByComparator orderByComparator)
                                            throws NoSuchMessageFlagException,
                                                   SystemException
Finds the message boards message flags before and after the current message boards message flag in the ordered set where messageId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByMessageId_PrevAndNext in interface MBMessageFlagPersistence
Parameters:
messageFlagId - the primary key of the current message boards message flag
messageId - the message id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next message boards message flag
Throws:
NoSuchMessageFlagException - if a message boards message flag with the primary key could not be found
SystemException - if a system exception occurred

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
Finds all the message boards message flags where threadId = ? and flag = ?.

Specified by:
findByT_F in interface MBMessageFlagPersistence
Parameters:
threadId - the thread id to search with
flag - the flag to search with
Returns:
the matching message boards message flags
Throws:
SystemException - if a system exception occurred

findByT_F

public List<MBMessageFlag> findByT_F(long threadId,
                                     int flag,
                                     int start,
                                     int end)
                              throws SystemException
Finds a range of all the message boards message flags where threadId = ? and flag = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByT_F in interface MBMessageFlagPersistence
Parameters:
threadId - the thread id to search with
flag - the flag to search with
start - the lower bound of the range of message boards message flags to return
end - the upper bound of the range of message boards message flags to return (not inclusive)
Returns:
the range of matching message boards message flags
Throws:
SystemException - if a system exception occurred

findByT_F

public List<MBMessageFlag> findByT_F(long threadId,
                                     int flag,
                                     int start,
                                     int end,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Finds an ordered range of all the message boards message flags where threadId = ? and flag = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByT_F in interface MBMessageFlagPersistence
Parameters:
threadId - the thread id to search with
flag - the flag to search with
start - the lower bound of the range of message boards message flags to return
end - the upper bound of the range of message boards message flags to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching message boards message flags
Throws:
SystemException - if a system exception occurred

findByT_F_First

public MBMessageFlag findByT_F_First(long threadId,
                                     int flag,
                                     OrderByComparator orderByComparator)
                              throws NoSuchMessageFlagException,
                                     SystemException
Finds the first message boards message flag in the ordered set where threadId = ? and flag = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByT_F_First in interface MBMessageFlagPersistence
Parameters:
threadId - the thread id to search with
flag - the flag to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching message boards message flag
Throws:
NoSuchMessageFlagException - if a matching message boards message flag could not be found
SystemException - if a system exception occurred

findByT_F_Last

public MBMessageFlag findByT_F_Last(long threadId,
                                    int flag,
                                    OrderByComparator orderByComparator)
                             throws NoSuchMessageFlagException,
                                    SystemException
Finds the last message boards message flag in the ordered set where threadId = ? and flag = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByT_F_Last in interface MBMessageFlagPersistence
Parameters:
threadId - the thread id to search with
flag - the flag to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching message boards message flag
Throws:
NoSuchMessageFlagException - if a matching message boards message flag could not be found
SystemException - if a system exception occurred

findByT_F_PrevAndNext

public MBMessageFlag[] findByT_F_PrevAndNext(long messageFlagId,
                                             long threadId,
                                             int flag,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchMessageFlagException,
                                             SystemException
Finds the message boards message flags before and after the current message boards message flag in the ordered set where threadId = ? and flag = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByT_F_PrevAndNext in interface MBMessageFlagPersistence
Parameters:
messageFlagId - the primary key of the current message boards message flag
threadId - the thread id to search with
flag - the flag to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next message boards message flag
Throws:
NoSuchMessageFlagException - if a message boards message flag with the primary key could not be found
SystemException - if a system exception occurred

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
Finds all the message boards message flags where messageId = ? and flag = ?.

Specified by:
findByM_F in interface MBMessageFlagPersistence
Parameters:
messageId - the message id to search with
flag - the flag to search with
Returns:
the matching message boards message flags
Throws:
SystemException - if a system exception occurred

findByM_F

public List<MBMessageFlag> findByM_F(long messageId,
                                     int flag,
                                     int start,
                                     int end)
                              throws SystemException
Finds a range of all the message boards message flags where messageId = ? and flag = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByM_F in interface MBMessageFlagPersistence
Parameters:
messageId - the message id to search with
flag - the flag to search with
start - the lower bound of the range of message boards message flags to return
end - the upper bound of the range of message boards message flags to return (not inclusive)
Returns:
the range of matching message boards message flags
Throws:
SystemException - if a system exception occurred

findByM_F

public List<MBMessageFlag> findByM_F(long messageId,
                                     int flag,
                                     int start,
                                     int end,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Finds an ordered range of all the message boards message flags where messageId = ? and flag = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByM_F in interface MBMessageFlagPersistence
Parameters:
messageId - the message id to search with
flag - the flag to search with
start - the lower bound of the range of message boards message flags to return
end - the upper bound of the range of message boards message flags to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching message boards message flags
Throws:
SystemException - if a system exception occurred

findByM_F_First

public MBMessageFlag findByM_F_First(long messageId,
                                     int flag,
                                     OrderByComparator orderByComparator)
                              throws NoSuchMessageFlagException,
                                     SystemException
Finds the first message boards message flag in the ordered set where messageId = ? and flag = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByM_F_First in interface MBMessageFlagPersistence
Parameters:
messageId - the message id to search with
flag - the flag to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching message boards message flag
Throws:
NoSuchMessageFlagException - if a matching message boards message flag could not be found
SystemException - if a system exception occurred

findByM_F_Last

public MBMessageFlag findByM_F_Last(long messageId,
                                    int flag,
                                    OrderByComparator orderByComparator)
                             throws NoSuchMessageFlagException,
                                    SystemException
Finds the last message boards message flag in the ordered set where messageId = ? and flag = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByM_F_Last in interface MBMessageFlagPersistence
Parameters:
messageId - the message id to search with
flag - the flag to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching message boards message flag
Throws:
NoSuchMessageFlagException - if a matching message boards message flag could not be found
SystemException - if a system exception occurred

findByM_F_PrevAndNext

public MBMessageFlag[] findByM_F_PrevAndNext(long messageFlagId,
                                             long messageId,
                                             int flag,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchMessageFlagException,
                                             SystemException
Finds the message boards message flags before and after the current message boards message flag in the ordered set where messageId = ? and flag = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByM_F_PrevAndNext in interface MBMessageFlagPersistence
Parameters:
messageFlagId - the primary key of the current message boards message flag
messageId - the message id to search with
flag - the flag to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next message boards message flag
Throws:
NoSuchMessageFlagException - if a message boards message flag with the primary key could not be found
SystemException - if a system exception occurred

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
Finds all the message boards message flags where userId = ? and threadId = ? and flag = ?.

Specified by:
findByU_T_F in interface MBMessageFlagPersistence
Parameters:
userId - the user id to search with
threadId - the thread id to search with
flag - the flag to search with
Returns:
the matching message boards message flags
Throws:
SystemException - if a system exception occurred

findByU_T_F

public List<MBMessageFlag> findByU_T_F(long userId,
                                       long threadId,
                                       int flag,
                                       int start,
                                       int end)
                                throws SystemException
Finds a range of all the message boards message flags where userId = ? and threadId = ? and flag = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByU_T_F in interface MBMessageFlagPersistence
Parameters:
userId - the user id to search with
threadId - the thread id to search with
flag - the flag to search with
start - the lower bound of the range of message boards message flags to return
end - the upper bound of the range of message boards message flags to return (not inclusive)
Returns:
the range of matching message boards message flags
Throws:
SystemException - if a system exception occurred

findByU_T_F

public List<MBMessageFlag> findByU_T_F(long userId,
                                       long threadId,
                                       int flag,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Finds an ordered range of all the message boards message flags where userId = ? and threadId = ? and flag = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByU_T_F in interface MBMessageFlagPersistence
Parameters:
userId - the user id to search with
threadId - the thread id to search with
flag - the flag to search with
start - the lower bound of the range of message boards message flags to return
end - the upper bound of the range of message boards message flags to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching message boards message flags
Throws:
SystemException - if a system exception occurred

findByU_T_F_First

public MBMessageFlag findByU_T_F_First(long userId,
                                       long threadId,
                                       int flag,
                                       OrderByComparator orderByComparator)
                                throws NoSuchMessageFlagException,
                                       SystemException
Finds the first message boards message flag in the ordered set where userId = ? and threadId = ? and flag = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByU_T_F_First in interface MBMessageFlagPersistence
Parameters:
userId - the user id to search with
threadId - the thread id to search with
flag - the flag to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching message boards message flag
Throws:
NoSuchMessageFlagException - if a matching message boards message flag could not be found
SystemException - if a system exception occurred

findByU_T_F_Last

public MBMessageFlag findByU_T_F_Last(long userId,
                                      long threadId,
                                      int flag,
                                      OrderByComparator orderByComparator)
                               throws NoSuchMessageFlagException,
                                      SystemException
Finds the last message boards message flag in the ordered set where userId = ? and threadId = ? and flag = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByU_T_F_Last in interface MBMessageFlagPersistence
Parameters:
userId - the user id to search with
threadId - the thread id to search with
flag - the flag to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching message boards message flag
Throws:
NoSuchMessageFlagException - if a matching message boards message flag could not be found
SystemException - if a system exception occurred

findByU_T_F_PrevAndNext

public MBMessageFlag[] findByU_T_F_PrevAndNext(long messageFlagId,
                                               long userId,
                                               long threadId,
                                               int flag,
                                               OrderByComparator orderByComparator)
                                        throws NoSuchMessageFlagException,
                                               SystemException
Finds the message boards message flags before and after the current message boards message flag in the ordered set where userId = ? and threadId = ? and flag = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByU_T_F_PrevAndNext in interface MBMessageFlagPersistence
Parameters:
messageFlagId - the primary key of the current message boards message flag
userId - the user id to search with
threadId - the thread id to search with
flag - the flag to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next message boards message flag
Throws:
NoSuchMessageFlagException - if a message boards message flag with the primary key could not be found
SystemException - if a system exception occurred

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
Finds the message boards message flag where userId = ? and messageId = ? and flag = ? or throws a NoSuchMessageFlagException if it could not be found.

Specified by:
findByU_M_F in interface MBMessageFlagPersistence
Parameters:
userId - the user id to search with
messageId - the message id to search with
flag - the flag to search with
Returns:
the matching message boards message flag
Throws:
NoSuchMessageFlagException - if a matching message boards message flag could not be found
SystemException - if a system exception occurred

fetchByU_M_F

public MBMessageFlag fetchByU_M_F(long userId,
                                  long messageId,
                                  int flag)
                           throws SystemException
Finds the message boards message flag where userId = ? and messageId = ? and flag = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByU_M_F in interface MBMessageFlagPersistence
Parameters:
userId - the user id to search with
messageId - the message id to search with
flag - the flag to search with
Returns:
the matching message boards message flag, or null if a matching message boards message flag could not be found
Throws:
SystemException - if a system exception occurred

fetchByU_M_F

public MBMessageFlag fetchByU_M_F(long userId,
                                  long messageId,
                                  int flag,
                                  boolean retrieveFromCache)
                           throws SystemException
Finds the message boards message flag where userId = ? and messageId = ? and flag = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByU_M_F in interface MBMessageFlagPersistence
Parameters:
userId - the user id to search with
messageId - the message id to search with
flag - the flag to search with
Returns:
the matching message boards message flag, or null if a matching message boards message flag could not be found
Throws:
SystemException - if a system exception occurred

findAll

public List<MBMessageFlag> findAll()
                            throws SystemException
Finds all the message boards message flags.

Specified by:
findAll in interface MBMessageFlagPersistence
Returns:
the message boards message flags
Throws:
SystemException - if a system exception occurred

findAll

public List<MBMessageFlag> findAll(int start,
                                   int end)
                            throws SystemException
Finds a range of all the message boards message flags.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findAll in interface MBMessageFlagPersistence
Parameters:
start - the lower bound of the range of message boards message flags to return
end - the upper bound of the range of message boards message flags to return (not inclusive)
Returns:
the range of message boards message flags
Throws:
SystemException - if a system exception occurred

findAll

public List<MBMessageFlag> findAll(int start,
                                   int end,
                                   OrderByComparator orderByComparator)
                            throws SystemException
Finds an ordered range of all the message boards message flags.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findAll in interface MBMessageFlagPersistence
Parameters:
start - the lower bound of the range of message boards message flags to return
end - the upper bound of the range of message boards message flags to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of message boards message flags
Throws:
SystemException - if a system exception occurred

removeByUserId

public void removeByUserId(long userId)
                    throws SystemException
Removes all the message boards message flags where userId = ? from the database.

Specified by:
removeByUserId in interface MBMessageFlagPersistence
Parameters:
userId - the user id to search with
Throws:
SystemException - if a system exception occurred

removeByThreadId

public void removeByThreadId(long threadId)
                      throws SystemException
Removes all the message boards message flags where threadId = ? from the database.

Specified by:
removeByThreadId in interface MBMessageFlagPersistence
Parameters:
threadId - the thread id to search with
Throws:
SystemException - if a system exception occurred

removeByMessageId

public void removeByMessageId(long messageId)
                       throws SystemException
Removes all the message boards message flags where messageId = ? from the database.

Specified by:
removeByMessageId in interface MBMessageFlagPersistence
Parameters:
messageId - the message id to search with
Throws:
SystemException - if a system exception occurred

removeByT_F

public void removeByT_F(long threadId,
                        int flag)
                 throws SystemException
Removes all the message boards message flags where threadId = ? and flag = ? from the database.

Specified by:
removeByT_F in interface MBMessageFlagPersistence
Parameters:
threadId - the thread id to search with
flag - the flag to search with
Throws:
SystemException - if a system exception occurred

removeByM_F

public void removeByM_F(long messageId,
                        int flag)
                 throws SystemException
Removes all the message boards message flags where messageId = ? and flag = ? from the database.

Specified by:
removeByM_F in interface MBMessageFlagPersistence
Parameters:
messageId - the message id to search with
flag - the flag to search with
Throws:
SystemException - if a system exception occurred

removeByU_T_F

public void removeByU_T_F(long userId,
                          long threadId,
                          int flag)
                   throws SystemException
Removes all the message boards message flags where userId = ? and threadId = ? and flag = ? from the database.

Specified by:
removeByU_T_F in interface MBMessageFlagPersistence
Parameters:
userId - the user id to search with
threadId - the thread id to search with
flag - the flag to search with
Throws:
SystemException - if a system exception occurred

removeByU_M_F

public void removeByU_M_F(long userId,
                          long messageId,
                          int flag)
                   throws NoSuchMessageFlagException,
                          SystemException
Removes the message boards message flag where userId = ? and messageId = ? and flag = ? from the database.

Specified by:
removeByU_M_F in interface MBMessageFlagPersistence
Parameters:
userId - the user id to search with
messageId - the message id to search with
flag - the flag to search with
Throws:
SystemException - if a system exception occurred
NoSuchMessageFlagException

removeAll

public void removeAll()
               throws SystemException
Removes all the message boards message flags from the database.

Specified by:
removeAll in interface MBMessageFlagPersistence
Throws:
SystemException - if a system exception occurred

countByUserId

public int countByUserId(long userId)
                  throws SystemException
Counts all the message boards message flags where userId = ?.

Specified by:
countByUserId in interface MBMessageFlagPersistence
Parameters:
userId - the user id to search with
Returns:
the number of matching message boards message flags
Throws:
SystemException - if a system exception occurred

countByThreadId

public int countByThreadId(long threadId)
                    throws SystemException
Counts all the message boards message flags where threadId = ?.

Specified by:
countByThreadId in interface MBMessageFlagPersistence
Parameters:
threadId - the thread id to search with
Returns:
the number of matching message boards message flags
Throws:
SystemException - if a system exception occurred

countByMessageId

public int countByMessageId(long messageId)
                     throws SystemException
Counts all the message boards message flags where messageId = ?.

Specified by:
countByMessageId in interface MBMessageFlagPersistence
Parameters:
messageId - the message id to search with
Returns:
the number of matching message boards message flags
Throws:
SystemException - if a system exception occurred

countByT_F

public int countByT_F(long threadId,
                      int flag)
               throws SystemException
Counts all the message boards message flags where threadId = ? and flag = ?.

Specified by:
countByT_F in interface MBMessageFlagPersistence
Parameters:
threadId - the thread id to search with
flag - the flag to search with
Returns:
the number of matching message boards message flags
Throws:
SystemException - if a system exception occurred

countByM_F

public int countByM_F(long messageId,
                      int flag)
               throws SystemException
Counts all the message boards message flags where messageId = ? and flag = ?.

Specified by:
countByM_F in interface MBMessageFlagPersistence
Parameters:
messageId - the message id to search with
flag - the flag to search with
Returns:
the number of matching message boards message flags
Throws:
SystemException - if a system exception occurred

countByU_T_F

public int countByU_T_F(long userId,
                        long threadId,
                        int flag)
                 throws SystemException
Counts all the message boards message flags where userId = ? and threadId = ? and flag = ?.

Specified by:
countByU_T_F in interface MBMessageFlagPersistence
Parameters:
userId - the user id to search with
threadId - the thread id to search with
flag - the flag to search with
Returns:
the number of matching message boards message flags
Throws:
SystemException - if a system exception occurred

countByU_M_F

public int countByU_M_F(long userId,
                        long messageId,
                        int flag)
                 throws SystemException
Counts all the message boards message flags where userId = ? and messageId = ? and flag = ?.

Specified by:
countByU_M_F in interface MBMessageFlagPersistence
Parameters:
userId - the user id to search with
messageId - the message id to search with
flag - the flag to search with
Returns:
the number of matching message boards message flags
Throws:
SystemException - if a system exception occurred

countAll

public int countAll()
             throws SystemException
Counts all the message boards message flags.

Specified by:
countAll in interface MBMessageFlagPersistence
Returns:
the number of message boards message flags
Throws:
SystemException - if a system exception occurred

afterPropertiesSet

public void afterPropertiesSet()
Initializes the message boards message flag persistence.


Liferay 6.0.5