Liferay 6.0.5

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

java.lang.Object
  extended by com.liferay.portlet.messageboards.service.persistence.MBMessageFlagUtil

public class MBMessageFlagUtil
extends Object

The persistence utility for the message boards message flag service. This utility wraps MBMessageFlagPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this class.

Caching information and settings can be found in portal.properties

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

Constructor Summary
MBMessageFlagUtil()
           
 
Method Summary
static void cacheResult(List<MBMessageFlag> mbMessageFlags)
          Caches the message boards message flags in the entity cache if it is enabled.
static void cacheResult(MBMessageFlag mbMessageFlag)
          Caches the message boards message flag in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(MBMessageFlag mbMessageFlag)
           
static int countAll()
          Counts all the message boards message flags.
static int countByM_F(long messageId, int flag)
          Counts all the message boards message flags where messageId = ? and flag = ?.
static int countByMessageId(long messageId)
          Counts all the message boards message flags where messageId = ?.
static int countByT_F(long threadId, int flag)
          Counts all the message boards message flags where threadId = ? and flag = ?.
static int countByThreadId(long threadId)
          Counts all the message boards message flags where threadId = ?.
static int countByU_M_F(long userId, long messageId, int flag)
          Counts all the message boards message flags where userId = ? and messageId = ? and flag = ?.
static int countByU_T_F(long userId, long threadId, int flag)
          Counts all the message boards message flags where userId = ? and threadId = ? and flag = ?.
static int countByUserId(long userId)
          Counts all the message boards message flags where userId = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static MBMessageFlag create(long messageFlagId)
          Creates a new message boards message flag with the primary key.
static MBMessageFlag fetchByPrimaryKey(long messageFlagId)
          Finds the message boards message flag with the primary key or returns null if it could not be found.
static 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.
static 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.
static List<MBMessageFlag> findAll()
          Finds all the message boards message flags.
static List<MBMessageFlag> findAll(int start, int end)
          Finds a range of all the message boards message flags.
static List<MBMessageFlag> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the message boards message flags.
static 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 = ?.
static 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 = ?.
static 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 = ?.
static List<MBMessageFlag> findByM_F(long messageId, int flag)
          Finds all the message boards message flags where messageId = ? and flag = ?.
static 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 = ?.
static 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 = ?.
static MBMessageFlag findByMessageId_First(long messageId, OrderByComparator orderByComparator)
          Finds the first message boards message flag in the ordered set where messageId = ?.
static MBMessageFlag findByMessageId_Last(long messageId, OrderByComparator orderByComparator)
          Finds the last message boards message flag in the ordered set where messageId = ?.
static 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 = ?.
static List<MBMessageFlag> findByMessageId(long messageId)
          Finds all the message boards message flags where messageId = ?.
static List<MBMessageFlag> findByMessageId(long messageId, int start, int end)
          Finds a range of all the message boards message flags where messageId = ?.
static List<MBMessageFlag> findByMessageId(long messageId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the message boards message flags where messageId = ?.
static MBMessageFlag findByPrimaryKey(long messageFlagId)
          Finds the message boards message flag with the primary key or throws a NoSuchMessageFlagException if it could not be found.
static 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 = ?.
static 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 = ?.
static 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 = ?.
static List<MBMessageFlag> findByT_F(long threadId, int flag)
          Finds all the message boards message flags where threadId = ? and flag = ?.
static 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 = ?.
static 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 = ?.
static MBMessageFlag findByThreadId_First(long threadId, OrderByComparator orderByComparator)
          Finds the first message boards message flag in the ordered set where threadId = ?.
static MBMessageFlag findByThreadId_Last(long threadId, OrderByComparator orderByComparator)
          Finds the last message boards message flag in the ordered set where threadId = ?.
static 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 = ?.
static List<MBMessageFlag> findByThreadId(long threadId)
          Finds all the message boards message flags where threadId = ?.
static List<MBMessageFlag> findByThreadId(long threadId, int start, int end)
          Finds a range of all the message boards message flags where threadId = ?.
static List<MBMessageFlag> findByThreadId(long threadId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the message boards message flags where threadId = ?.
static 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.
static 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 = ?.
static 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 = ?.
static 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 = ?.
static List<MBMessageFlag> findByU_T_F(long userId, long threadId, int flag)
          Finds all the message boards message flags where userId = ? and threadId = ? and flag = ?.
static 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 = ?.
static 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 = ?.
static MBMessageFlag findByUserId_First(long userId, OrderByComparator orderByComparator)
          Finds the first message boards message flag in the ordered set where userId = ?.
static MBMessageFlag findByUserId_Last(long userId, OrderByComparator orderByComparator)
          Finds the last message boards message flag in the ordered set where userId = ?.
static 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 = ?.
static List<MBMessageFlag> findByUserId(long userId)
          Finds all the message boards message flags where userId = ?.
static List<MBMessageFlag> findByUserId(long userId, int start, int end)
          Finds a range of all the message boards message flags where userId = ?.
static List<MBMessageFlag> findByUserId(long userId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the message boards message flags where userId = ?.
static List<MBMessageFlag> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<MBMessageFlag> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<MBMessageFlag> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static MBMessageFlagPersistence getPersistence()
           
static MBMessageFlag remove(long messageFlagId)
          Removes the message boards message flag with the primary key from the database.
static MBMessageFlag remove(MBMessageFlag mbMessageFlag)
           
static void removeAll()
          Removes all the message boards message flags from the database.
static void removeByM_F(long messageId, int flag)
          Removes all the message boards message flags where messageId = ? and flag = ? from the database.
static void removeByMessageId(long messageId)
          Removes all the message boards message flags where messageId = ? from the database.
static void removeByT_F(long threadId, int flag)
          Removes all the message boards message flags where threadId = ? and flag = ? from the database.
static void removeByThreadId(long threadId)
          Removes all the message boards message flags where threadId = ? from the database.
static 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.
static 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.
static void removeByUserId(long userId)
          Removes all the message boards message flags where userId = ? from the database.
 void setPersistence(MBMessageFlagPersistence persistence)
           
static MBMessageFlag update(MBMessageFlag mbMessageFlag, boolean merge)
           
static MBMessageFlag update(MBMessageFlag mbMessageFlag, boolean merge, ServiceContext serviceContext)
           
static MBMessageFlag updateImpl(MBMessageFlag mbMessageFlag, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBMessageFlagUtil

public MBMessageFlagUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(MBMessageFlag mbMessageFlag)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public long countWithDynamicQuery(DynamicQuery dynamicQuery)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<MBMessageFlag> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                                throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<MBMessageFlag> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                       int start,
                                                       int end)
                                                throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<MBMessageFlag> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                       int start,
                                                       int end,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

remove

public static MBMessageFlag remove(MBMessageFlag mbMessageFlag)
                            throws SystemException
Throws:
SystemException
See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)

update

public static MBMessageFlag update(MBMessageFlag mbMessageFlag,
                                   boolean merge)
                            throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

update

public static MBMessageFlag update(MBMessageFlag mbMessageFlag,
                                   boolean merge,
                                   ServiceContext serviceContext)
                            throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)

cacheResult

public static 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

public static 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

public static 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

public static 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

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

findByPrimaryKey

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

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

Throws:
SystemException - if a system exception occurred

countByUserId

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

getPersistence

public static MBMessageFlagPersistence getPersistence()

setPersistence

public void setPersistence(MBMessageFlagPersistence persistence)

Liferay 6.0.5