Liferay 6.0.5

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

All Superinterfaces:
BasePersistence<MBMessageFlag>
All Known Implementing Classes:
MBMessageFlagPersistenceImpl

public interface MBMessageFlagPersistence
extends BasePersistence<MBMessageFlag>

The persistence interface for the message boards message flag service.

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

Caching information and settings can be found in portal.properties

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

Method Summary
 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.
 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 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 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 = ?.
 MBMessageFlag remove(long messageFlagId)
          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.
 MBMessageFlag updateImpl(MBMessageFlag mbMessageFlag, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update, update
 

Method Detail

cacheResult

void cacheResult(MBMessageFlag mbMessageFlag)
Caches the message boards message flag in the entity cache if it is enabled.

Parameters:
mbMessageFlag - the message boards message flag to cache

cacheResult

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

Parameters:
mbMessageFlags - the message boards message flags to cache

create

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.

Parameters:
messageFlagId - the primary key for the new message boards message flag
Returns:
the new message boards message flag

remove

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

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

updateImpl

MBMessageFlag updateImpl(MBMessageFlag mbMessageFlag,
                         boolean merge)
                         throws SystemException
Throws:
SystemException

findByPrimaryKey

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

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

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.

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

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

Parameters:
userId - the user id to search with
Returns:
the matching message boards message flags
Throws:
SystemException - if a system exception occurred

findByUserId

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.

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

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.

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

MBMessageFlag findByUserId_First(long userId,
                                 OrderByComparator orderByComparator)
                                 throws SystemException,
                                        NoSuchMessageFlagException
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.

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

MBMessageFlag findByUserId_Last(long userId,
                                OrderByComparator orderByComparator)
                                throws SystemException,
                                       NoSuchMessageFlagException
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.

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

MBMessageFlag[] findByUserId_PrevAndNext(long messageFlagId,
                                         long userId,
                                         OrderByComparator orderByComparator)
                                         throws SystemException,
                                                NoSuchMessageFlagException
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.

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

findByThreadId

List<MBMessageFlag> findByThreadId(long threadId)
                                   throws SystemException
Finds all the message boards message flags where threadId = ?.

Parameters:
threadId - the thread id to search with
Returns:
the matching message boards message flags
Throws:
SystemException - if a system exception occurred

findByThreadId

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.

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

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.

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

MBMessageFlag findByThreadId_First(long threadId,
                                   OrderByComparator orderByComparator)
                                   throws SystemException,
                                          NoSuchMessageFlagException
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.

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

MBMessageFlag findByThreadId_Last(long threadId,
                                  OrderByComparator orderByComparator)
                                  throws SystemException,
                                         NoSuchMessageFlagException
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.

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

MBMessageFlag[] findByThreadId_PrevAndNext(long messageFlagId,
                                           long threadId,
                                           OrderByComparator orderByComparator)
                                           throws SystemException,
                                                  NoSuchMessageFlagException
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.

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

findByMessageId

List<MBMessageFlag> findByMessageId(long messageId)
                                    throws SystemException
Finds all the message boards message flags where messageId = ?.

Parameters:
messageId - the message id to search with
Returns:
the matching message boards message flags
Throws:
SystemException - if a system exception occurred

findByMessageId

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.

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

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.

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

MBMessageFlag findByMessageId_First(long messageId,
                                    OrderByComparator orderByComparator)
                                    throws SystemException,
                                           NoSuchMessageFlagException
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.

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

MBMessageFlag findByMessageId_Last(long messageId,
                                   OrderByComparator orderByComparator)
                                   throws SystemException,
                                          NoSuchMessageFlagException
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.

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

MBMessageFlag[] findByMessageId_PrevAndNext(long messageFlagId,
                                            long messageId,
                                            OrderByComparator orderByComparator)
                                            throws SystemException,
                                                   NoSuchMessageFlagException
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.

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

findByT_F

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

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

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.

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

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.

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

MBMessageFlag findByT_F_First(long threadId,
                              int flag,
                              OrderByComparator orderByComparator)
                              throws SystemException,
                                     NoSuchMessageFlagException
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.

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

MBMessageFlag findByT_F_Last(long threadId,
                             int flag,
                             OrderByComparator orderByComparator)
                             throws SystemException,
                                    NoSuchMessageFlagException
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.

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

MBMessageFlag[] findByT_F_PrevAndNext(long messageFlagId,
                                      long threadId,
                                      int flag,
                                      OrderByComparator orderByComparator)
                                      throws SystemException,
                                             NoSuchMessageFlagException
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.

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

findByM_F

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

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

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.

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

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.

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

MBMessageFlag findByM_F_First(long messageId,
                              int flag,
                              OrderByComparator orderByComparator)
                              throws SystemException,
                                     NoSuchMessageFlagException
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.

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

MBMessageFlag findByM_F_Last(long messageId,
                             int flag,
                             OrderByComparator orderByComparator)
                             throws SystemException,
                                    NoSuchMessageFlagException
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.

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

MBMessageFlag[] findByM_F_PrevAndNext(long messageFlagId,
                                      long messageId,
                                      int flag,
                                      OrderByComparator orderByComparator)
                                      throws SystemException,
                                             NoSuchMessageFlagException
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.

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

findByU_T_F

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 = ?.

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

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.

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

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.

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

MBMessageFlag findByU_T_F_First(long userId,
                                long threadId,
                                int flag,
                                OrderByComparator orderByComparator)
                                throws SystemException,
                                       NoSuchMessageFlagException
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.

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

MBMessageFlag findByU_T_F_Last(long userId,
                               long threadId,
                               int flag,
                               OrderByComparator orderByComparator)
                               throws SystemException,
                                      NoSuchMessageFlagException
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.

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

MBMessageFlag[] findByU_T_F_PrevAndNext(long messageFlagId,
                                        long userId,
                                        long threadId,
                                        int flag,
                                        OrderByComparator orderByComparator)
                                        throws SystemException,
                                               NoSuchMessageFlagException
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.

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

findByU_M_F

MBMessageFlag findByU_M_F(long userId,
                          long messageId,
                          int flag)
                          throws SystemException,
                                 NoSuchMessageFlagException
Finds the message boards message flag where userId = ? and messageId = ? and flag = ? or throws a NoSuchMessageFlagException if it could not be found.

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

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.

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

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.

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

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

Returns:
the message boards message flags
Throws:
SystemException - if a system exception occurred

findAll

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.

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

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.

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

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

Parameters:
userId - the user id to search with
Throws:
SystemException - if a system exception occurred

removeByThreadId

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

Parameters:
threadId - the thread id to search with
Throws:
SystemException - if a system exception occurred

removeByMessageId

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

Parameters:
messageId - the message id to search with
Throws:
SystemException - if a system exception occurred

removeByT_F

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

Parameters:
threadId - the thread id to search with
flag - the flag to search with
Throws:
SystemException - if a system exception occurred

removeByM_F

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

Parameters:
messageId - the message id to search with
flag - the flag to search with
Throws:
SystemException - if a system exception occurred

removeByU_T_F

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.

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

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

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

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

Throws:
SystemException - if a system exception occurred

countByUserId

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

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

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

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

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

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

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

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

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

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

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 = ?.

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

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 = ?.

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

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

Returns:
the number of message boards message flags
Throws:
SystemException - if a system exception occurred

Liferay 6.0.5