|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.messageboards.service.persistence.MBMessageFlagUtil
public class MBMessageFlagUtil
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
MBMessageFlagPersistence
,
MBMessageFlagPersistenceImpl
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 |
---|
public MBMessageFlagUtil()
Method Detail |
---|
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(MBMessageFlag mbMessageFlag)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<MBMessageFlag> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<MBMessageFlag> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<MBMessageFlag> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static MBMessageFlag remove(MBMessageFlag mbMessageFlag) throws SystemException
SystemException
BasePersistence.remove(com.liferay.portal.model.BaseModel)
public static MBMessageFlag update(MBMessageFlag mbMessageFlag, boolean merge) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static MBMessageFlag update(MBMessageFlag mbMessageFlag, boolean merge, ServiceContext serviceContext) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
public static void cacheResult(MBMessageFlag mbMessageFlag)
mbMessageFlag
- the message boards message flag to cachepublic static void cacheResult(List<MBMessageFlag> mbMessageFlags)
mbMessageFlags
- the message boards message flags to cachepublic static MBMessageFlag create(long messageFlagId)
messageFlagId
- the primary key for the new message boards message flag
public static MBMessageFlag remove(long messageFlagId) throws SystemException, NoSuchMessageFlagException
messageFlagId
- the primary key of the message boards message flag to remove
NoSuchMessageFlagException
- if a message boards message flag with the primary key could not be found
SystemException
- if a system exception occurredpublic static MBMessageFlag updateImpl(MBMessageFlag mbMessageFlag, boolean merge) throws SystemException
SystemException
public static MBMessageFlag findByPrimaryKey(long messageFlagId) throws SystemException, NoSuchMessageFlagException
NoSuchMessageFlagException
if it could not be found.
messageFlagId
- the primary key of the message boards message flag to find
NoSuchMessageFlagException
- if a message boards message flag with the primary key could not be found
SystemException
- if a system exception occurredpublic static MBMessageFlag fetchByPrimaryKey(long messageFlagId) throws SystemException
null
if it could not be found.
messageFlagId
- the primary key of the message boards message flag to find
null
if a message boards message flag with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<MBMessageFlag> findByUserId(long userId) throws SystemException
userId
- the user id to search with
SystemException
- if a system exception occurredpublic static List<MBMessageFlag> findByUserId(long userId, int start, int end) throws SystemException
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.
userId
- the user id to search withstart
- the lower bound of the range of message boards message flags to returnend
- the upper bound of the range of message boards message flags to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<MBMessageFlag> findByUserId(long userId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
userId
- the user id to search withstart
- the lower bound of the range of message boards message flags to returnend
- the upper bound of the range of message boards message flags to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static MBMessageFlag findByUserId_First(long userId, OrderByComparator orderByComparator) throws SystemException, NoSuchMessageFlagException
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.
userId
- the user id to search withorderByComparator
- the comparator to order the set by
NoSuchMessageFlagException
- if a matching message boards message flag could not be found
SystemException
- if a system exception occurredpublic static MBMessageFlag findByUserId_Last(long userId, OrderByComparator orderByComparator) throws SystemException, NoSuchMessageFlagException
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.
userId
- the user id to search withorderByComparator
- the comparator to order the set by
NoSuchMessageFlagException
- if a matching message boards message flag could not be found
SystemException
- if a system exception occurredpublic static MBMessageFlag[] findByUserId_PrevAndNext(long messageFlagId, long userId, OrderByComparator orderByComparator) throws SystemException, NoSuchMessageFlagException
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.
messageFlagId
- the primary key of the current message boards message flaguserId
- the user id to search withorderByComparator
- the comparator to order the set by
NoSuchMessageFlagException
- if a message boards message flag with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<MBMessageFlag> findByThreadId(long threadId) throws SystemException
threadId
- the thread id to search with
SystemException
- if a system exception occurredpublic static List<MBMessageFlag> findByThreadId(long threadId, int start, int end) throws SystemException
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.
threadId
- the thread id to search withstart
- the lower bound of the range of message boards message flags to returnend
- the upper bound of the range of message boards message flags to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<MBMessageFlag> findByThreadId(long threadId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
threadId
- the thread id to search withstart
- the lower bound of the range of message boards message flags to returnend
- the upper bound of the range of message boards message flags to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static MBMessageFlag findByThreadId_First(long threadId, OrderByComparator orderByComparator) throws SystemException, NoSuchMessageFlagException
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.
threadId
- the thread id to search withorderByComparator
- the comparator to order the set by
NoSuchMessageFlagException
- if a matching message boards message flag could not be found
SystemException
- if a system exception occurredpublic static MBMessageFlag findByThreadId_Last(long threadId, OrderByComparator orderByComparator) throws SystemException, NoSuchMessageFlagException
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.
threadId
- the thread id to search withorderByComparator
- the comparator to order the set by
NoSuchMessageFlagException
- if a matching message boards message flag could not be found
SystemException
- if a system exception occurredpublic static MBMessageFlag[] findByThreadId_PrevAndNext(long messageFlagId, long threadId, OrderByComparator orderByComparator) throws SystemException, NoSuchMessageFlagException
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.
messageFlagId
- the primary key of the current message boards message flagthreadId
- the thread id to search withorderByComparator
- the comparator to order the set by
NoSuchMessageFlagException
- if a message boards message flag with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<MBMessageFlag> findByMessageId(long messageId) throws SystemException
messageId
- the message id to search with
SystemException
- if a system exception occurredpublic static List<MBMessageFlag> findByMessageId(long messageId, int start, int end) throws SystemException
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.
messageId
- the message id to search withstart
- the lower bound of the range of message boards message flags to returnend
- the upper bound of the range of message boards message flags to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<MBMessageFlag> findByMessageId(long messageId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
messageId
- the message id to search withstart
- the lower bound of the range of message boards message flags to returnend
- the upper bound of the range of message boards message flags to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static MBMessageFlag findByMessageId_First(long messageId, OrderByComparator orderByComparator) throws SystemException, NoSuchMessageFlagException
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.
messageId
- the message id to search withorderByComparator
- the comparator to order the set by
NoSuchMessageFlagException
- if a matching message boards message flag could not be found
SystemException
- if a system exception occurredpublic static MBMessageFlag findByMessageId_Last(long messageId, OrderByComparator orderByComparator) throws SystemException, NoSuchMessageFlagException
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.
messageId
- the message id to search withorderByComparator
- the comparator to order the set by
NoSuchMessageFlagException
- if a matching message boards message flag could not be found
SystemException
- if a system exception occurredpublic static MBMessageFlag[] findByMessageId_PrevAndNext(long messageFlagId, long messageId, OrderByComparator orderByComparator) throws SystemException, NoSuchMessageFlagException
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.
messageFlagId
- the primary key of the current message boards message flagmessageId
- the message id to search withorderByComparator
- the comparator to order the set by
NoSuchMessageFlagException
- if a message boards message flag with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<MBMessageFlag> findByT_F(long threadId, int flag) throws SystemException
threadId
- the thread id to search withflag
- the flag to search with
SystemException
- if a system exception occurredpublic static List<MBMessageFlag> findByT_F(long threadId, int flag, int start, int end) throws SystemException
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.
threadId
- the thread id to search withflag
- the flag to search withstart
- the lower bound of the range of message boards message flags to returnend
- the upper bound of the range of message boards message flags to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<MBMessageFlag> findByT_F(long threadId, int flag, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
threadId
- the thread id to search withflag
- the flag to search withstart
- the lower bound of the range of message boards message flags to returnend
- the upper bound of the range of message boards message flags to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static MBMessageFlag findByT_F_First(long threadId, int flag, OrderByComparator orderByComparator) throws SystemException, NoSuchMessageFlagException
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.
threadId
- the thread id to search withflag
- the flag to search withorderByComparator
- the comparator to order the set by
NoSuchMessageFlagException
- if a matching message boards message flag could not be found
SystemException
- if a system exception occurredpublic static MBMessageFlag findByT_F_Last(long threadId, int flag, OrderByComparator orderByComparator) throws SystemException, NoSuchMessageFlagException
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.
threadId
- the thread id to search withflag
- the flag to search withorderByComparator
- the comparator to order the set by
NoSuchMessageFlagException
- if a matching message boards message flag could not be found
SystemException
- if a system exception occurredpublic static MBMessageFlag[] findByT_F_PrevAndNext(long messageFlagId, long threadId, int flag, OrderByComparator orderByComparator) throws SystemException, NoSuchMessageFlagException
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.
messageFlagId
- the primary key of the current message boards message flagthreadId
- the thread id to search withflag
- the flag to search withorderByComparator
- the comparator to order the set by
NoSuchMessageFlagException
- if a message boards message flag with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<MBMessageFlag> findByM_F(long messageId, int flag) throws SystemException
messageId
- the message id to search withflag
- the flag to search with
SystemException
- if a system exception occurredpublic static List<MBMessageFlag> findByM_F(long messageId, int flag, int start, int end) throws SystemException
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.
messageId
- the message id to search withflag
- the flag to search withstart
- the lower bound of the range of message boards message flags to returnend
- the upper bound of the range of message boards message flags to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<MBMessageFlag> findByM_F(long messageId, int flag, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
messageId
- the message id to search withflag
- the flag to search withstart
- the lower bound of the range of message boards message flags to returnend
- the upper bound of the range of message boards message flags to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static MBMessageFlag findByM_F_First(long messageId, int flag, OrderByComparator orderByComparator) throws SystemException, NoSuchMessageFlagException
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.
messageId
- the message id to search withflag
- the flag to search withorderByComparator
- the comparator to order the set by
NoSuchMessageFlagException
- if a matching message boards message flag could not be found
SystemException
- if a system exception occurredpublic static MBMessageFlag findByM_F_Last(long messageId, int flag, OrderByComparator orderByComparator) throws SystemException, NoSuchMessageFlagException
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.
messageId
- the message id to search withflag
- the flag to search withorderByComparator
- the comparator to order the set by
NoSuchMessageFlagException
- if a matching message boards message flag could not be found
SystemException
- if a system exception occurredpublic static MBMessageFlag[] findByM_F_PrevAndNext(long messageFlagId, long messageId, int flag, OrderByComparator orderByComparator) throws SystemException, NoSuchMessageFlagException
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.
messageFlagId
- the primary key of the current message boards message flagmessageId
- the message id to search withflag
- the flag to search withorderByComparator
- the comparator to order the set by
NoSuchMessageFlagException
- if a message boards message flag with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<MBMessageFlag> findByU_T_F(long userId, long threadId, int flag) throws SystemException
userId
- the user id to search withthreadId
- the thread id to search withflag
- the flag to search with
SystemException
- if a system exception occurredpublic static List<MBMessageFlag> findByU_T_F(long userId, long threadId, int flag, int start, int end) throws SystemException
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.
userId
- the user id to search withthreadId
- the thread id to search withflag
- the flag to search withstart
- the lower bound of the range of message boards message flags to returnend
- the upper bound of the range of message boards message flags to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<MBMessageFlag> findByU_T_F(long userId, long threadId, int flag, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
userId
- the user id to search withthreadId
- the thread id to search withflag
- the flag to search withstart
- the lower bound of the range of message boards message flags to returnend
- the upper bound of the range of message boards message flags to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static MBMessageFlag findByU_T_F_First(long userId, long threadId, int flag, OrderByComparator orderByComparator) throws SystemException, NoSuchMessageFlagException
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.
userId
- the user id to search withthreadId
- the thread id to search withflag
- the flag to search withorderByComparator
- the comparator to order the set by
NoSuchMessageFlagException
- if a matching message boards message flag could not be found
SystemException
- if a system exception occurredpublic static MBMessageFlag findByU_T_F_Last(long userId, long threadId, int flag, OrderByComparator orderByComparator) throws SystemException, NoSuchMessageFlagException
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.
userId
- the user id to search withthreadId
- the thread id to search withflag
- the flag to search withorderByComparator
- the comparator to order the set by
NoSuchMessageFlagException
- if a matching message boards message flag could not be found
SystemException
- if a system exception occurredpublic static MBMessageFlag[] findByU_T_F_PrevAndNext(long messageFlagId, long userId, long threadId, int flag, OrderByComparator orderByComparator) throws SystemException, NoSuchMessageFlagException
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.
messageFlagId
- the primary key of the current message boards message flaguserId
- the user id to search withthreadId
- the thread id to search withflag
- the flag to search withorderByComparator
- the comparator to order the set by
NoSuchMessageFlagException
- if a message boards message flag with the primary key could not be found
SystemException
- if a system exception occurredpublic static MBMessageFlag findByU_M_F(long userId, long messageId, int flag) throws SystemException, NoSuchMessageFlagException
NoSuchMessageFlagException
if it could not be found.
userId
- the user id to search withmessageId
- the message id to search withflag
- the flag to search with
NoSuchMessageFlagException
- if a matching message boards message flag could not be found
SystemException
- if a system exception occurredpublic static MBMessageFlag fetchByU_M_F(long userId, long messageId, int flag) throws SystemException
null
if it could not be found. Uses the finder cache.
userId
- the user id to search withmessageId
- the message id to search withflag
- the flag to search with
null
if a matching message boards message flag could not be found
SystemException
- if a system exception occurredpublic static MBMessageFlag fetchByU_M_F(long userId, long messageId, int flag, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
userId
- the user id to search withmessageId
- the message id to search withflag
- the flag to search with
null
if a matching message boards message flag could not be found
SystemException
- if a system exception occurredpublic static List<MBMessageFlag> findAll() throws SystemException
SystemException
- if a system exception occurredpublic static List<MBMessageFlag> findAll(int start, int end) throws SystemException
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.
start
- the lower bound of the range of message boards message flags to returnend
- the upper bound of the range of message boards message flags to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<MBMessageFlag> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
start
- the lower bound of the range of message boards message flags to returnend
- the upper bound of the range of message boards message flags to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static void removeByUserId(long userId) throws SystemException
userId
- the user id to search with
SystemException
- if a system exception occurredpublic static void removeByThreadId(long threadId) throws SystemException
threadId
- the thread id to search with
SystemException
- if a system exception occurredpublic static void removeByMessageId(long messageId) throws SystemException
messageId
- the message id to search with
SystemException
- if a system exception occurredpublic static void removeByT_F(long threadId, int flag) throws SystemException
threadId
- the thread id to search withflag
- the flag to search with
SystemException
- if a system exception occurredpublic static void removeByM_F(long messageId, int flag) throws SystemException
messageId
- the message id to search withflag
- the flag to search with
SystemException
- if a system exception occurredpublic static void removeByU_T_F(long userId, long threadId, int flag) throws SystemException
userId
- the user id to search withthreadId
- the thread id to search withflag
- the flag to search with
SystemException
- if a system exception occurredpublic static void removeByU_M_F(long userId, long messageId, int flag) throws SystemException, NoSuchMessageFlagException
userId
- the user id to search withmessageId
- the message id to search withflag
- the flag to search with
SystemException
- if a system exception occurred
NoSuchMessageFlagException
public static void removeAll() throws SystemException
SystemException
- if a system exception occurredpublic static int countByUserId(long userId) throws SystemException
userId
- the user id to search with
SystemException
- if a system exception occurredpublic static int countByThreadId(long threadId) throws SystemException
threadId
- the thread id to search with
SystemException
- if a system exception occurredpublic static int countByMessageId(long messageId) throws SystemException
messageId
- the message id to search with
SystemException
- if a system exception occurredpublic static int countByT_F(long threadId, int flag) throws SystemException
threadId
- the thread id to search withflag
- the flag to search with
SystemException
- if a system exception occurredpublic static int countByM_F(long messageId, int flag) throws SystemException
messageId
- the message id to search withflag
- the flag to search with
SystemException
- if a system exception occurredpublic static int countByU_T_F(long userId, long threadId, int flag) throws SystemException
userId
- the user id to search withthreadId
- the thread id to search withflag
- the flag to search with
SystemException
- if a system exception occurredpublic static int countByU_M_F(long userId, long messageId, int flag) throws SystemException
userId
- the user id to search withmessageId
- the message id to search withflag
- the flag to search with
SystemException
- if a system exception occurredpublic static int countAll() throws SystemException
SystemException
- if a system exception occurredpublic static MBMessageFlagPersistence getPersistence()
public void setPersistence(MBMessageFlagPersistence persistence)
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |