com.liferay.portlet.messageboards.service.persistence
Class MBMessageFlagUtil
java.lang.Object
com.liferay.portlet.messageboards.service.persistence.MBMessageFlagUtil
public class MBMessageFlagUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
static void |
cacheResult(java.util.List<MBMessageFlag> mbMessageFlags)
|
static void |
cacheResult(MBMessageFlag mbMessageFlag)
|
static void |
clearCache()
|
static int |
countAll()
|
static int |
countByM_F(long messageId,
int flag)
|
static int |
countByMessageId(long messageId)
|
static int |
countByT_F(long threadId,
int flag)
|
static int |
countByThreadId(long threadId)
|
static int |
countByU_M_F(long userId,
long messageId,
int flag)
|
static int |
countByU_T_F(long userId,
long threadId,
int flag)
|
static int |
countByUserId(long userId)
|
static MBMessageFlag |
create(long messageFlagId)
|
static MBMessageFlag |
fetchByPrimaryKey(long messageFlagId)
|
static MBMessageFlag |
fetchByU_M_F(long userId,
long messageId,
int flag)
|
static MBMessageFlag |
fetchByU_M_F(long userId,
long messageId,
int flag,
boolean retrieveFromCache)
|
static java.util.List<MBMessageFlag> |
findAll()
|
static java.util.List<MBMessageFlag> |
findAll(int start,
int end)
|
static java.util.List<MBMessageFlag> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static MBMessageFlag |
findByM_F_First(long messageId,
int flag,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static MBMessageFlag |
findByM_F_Last(long messageId,
int flag,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static MBMessageFlag[] |
findByM_F_PrevAndNext(long messageFlagId,
long messageId,
int flag,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<MBMessageFlag> |
findByM_F(long messageId,
int flag)
|
static java.util.List<MBMessageFlag> |
findByM_F(long messageId,
int flag,
int start,
int end)
|
static java.util.List<MBMessageFlag> |
findByM_F(long messageId,
int flag,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static MBMessageFlag |
findByMessageId_First(long messageId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static MBMessageFlag |
findByMessageId_Last(long messageId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static MBMessageFlag[] |
findByMessageId_PrevAndNext(long messageFlagId,
long messageId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<MBMessageFlag> |
findByMessageId(long messageId)
|
static java.util.List<MBMessageFlag> |
findByMessageId(long messageId,
int start,
int end)
|
static java.util.List<MBMessageFlag> |
findByMessageId(long messageId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static MBMessageFlag |
findByPrimaryKey(long messageFlagId)
|
static MBMessageFlag |
findByT_F_First(long threadId,
int flag,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static MBMessageFlag |
findByT_F_Last(long threadId,
int flag,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static MBMessageFlag[] |
findByT_F_PrevAndNext(long messageFlagId,
long threadId,
int flag,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<MBMessageFlag> |
findByT_F(long threadId,
int flag)
|
static java.util.List<MBMessageFlag> |
findByT_F(long threadId,
int flag,
int start,
int end)
|
static java.util.List<MBMessageFlag> |
findByT_F(long threadId,
int flag,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static MBMessageFlag |
findByThreadId_First(long threadId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static MBMessageFlag |
findByThreadId_Last(long threadId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static MBMessageFlag[] |
findByThreadId_PrevAndNext(long messageFlagId,
long threadId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<MBMessageFlag> |
findByThreadId(long threadId)
|
static java.util.List<MBMessageFlag> |
findByThreadId(long threadId,
int start,
int end)
|
static java.util.List<MBMessageFlag> |
findByThreadId(long threadId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static MBMessageFlag |
findByU_M_F(long userId,
long messageId,
int flag)
|
static MBMessageFlag |
findByU_T_F_First(long userId,
long threadId,
int flag,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static MBMessageFlag |
findByU_T_F_Last(long userId,
long threadId,
int flag,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static MBMessageFlag[] |
findByU_T_F_PrevAndNext(long messageFlagId,
long userId,
long threadId,
int flag,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<MBMessageFlag> |
findByU_T_F(long userId,
long threadId,
int flag)
|
static java.util.List<MBMessageFlag> |
findByU_T_F(long userId,
long threadId,
int flag,
int start,
int end)
|
static java.util.List<MBMessageFlag> |
findByU_T_F(long userId,
long threadId,
int flag,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static MBMessageFlag |
findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static MBMessageFlag |
findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static MBMessageFlag[] |
findByUserId_PrevAndNext(long messageFlagId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<MBMessageFlag> |
findByUserId(long userId)
|
static java.util.List<MBMessageFlag> |
findByUserId(long userId,
int start,
int end)
|
static java.util.List<MBMessageFlag> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
static MBMessageFlagPersistence |
getPersistence()
|
static MBMessageFlag |
remove(long messageFlagId)
|
static MBMessageFlag |
remove(MBMessageFlag mbMessageFlag)
|
static void |
removeAll()
|
static void |
removeByM_F(long messageId,
int flag)
|
static void |
removeByMessageId(long messageId)
|
static void |
removeByT_F(long threadId,
int flag)
|
static void |
removeByThreadId(long threadId)
|
static void |
removeByU_M_F(long userId,
long messageId,
int flag)
|
static void |
removeByU_T_F(long userId,
long threadId,
int flag)
|
static void |
removeByUserId(long userId)
|
void |
setPersistence(MBMessageFlagPersistence persistence)
|
static MBMessageFlag |
update(MBMessageFlag mbMessageFlag)
Deprecated. Use update(MBMessageFlag mbMessageFlag, boolean merge) . |
static MBMessageFlag |
update(MBMessageFlag mbMessageFlag,
boolean merge)
Add, update, or merge, the entity. |
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 |
MBMessageFlagUtil
public MBMessageFlagUtil()
cacheResult
public static void cacheResult(MBMessageFlag mbMessageFlag)
cacheResult
public static void cacheResult(java.util.List<MBMessageFlag> mbMessageFlags)
clearCache
public static void clearCache()
create
public static MBMessageFlag create(long messageFlagId)
remove
public static MBMessageFlag remove(long messageFlagId)
throws com.liferay.portal.SystemException,
NoSuchMessageFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException
remove
public static MBMessageFlag remove(MBMessageFlag mbMessageFlag)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static MBMessageFlag update(MBMessageFlag mbMessageFlag)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(MBMessageFlag mbMessageFlag, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
public static MBMessageFlag update(MBMessageFlag mbMessageFlag,
boolean merge)
throws com.liferay.portal.SystemException
- Add, update, or merge, the entity. This method also calls the model
listeners to trigger the proper events associated with adding, deleting,
or updating an entity.
- Parameters:
mbMessageFlag
- the entity to add, update, or mergemerge
- boolean value for whether to merge the entity. The
default value is false. Setting merge to true is more
expensive and should only be true when mbMessageFlag is
transient. See LEP-5473 for a detailed discussion of this
method.
- Returns:
- true if the portlet can be displayed via Ajax
- Throws:
com.liferay.portal.SystemException
updateImpl
public static MBMessageFlag updateImpl(MBMessageFlag mbMessageFlag,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static MBMessageFlag findByPrimaryKey(long messageFlagId)
throws com.liferay.portal.SystemException,
NoSuchMessageFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException
fetchByPrimaryKey
public static MBMessageFlag fetchByPrimaryKey(long messageFlagId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUserId
public static java.util.List<MBMessageFlag> findByUserId(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUserId
public static java.util.List<MBMessageFlag> findByUserId(long userId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUserId
public static java.util.List<MBMessageFlag> findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUserId_First
public static MBMessageFlag findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchMessageFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException
findByUserId_Last
public static MBMessageFlag findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchMessageFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException
findByUserId_PrevAndNext
public static MBMessageFlag[] findByUserId_PrevAndNext(long messageFlagId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchMessageFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException
findByThreadId
public static java.util.List<MBMessageFlag> findByThreadId(long threadId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByThreadId
public static java.util.List<MBMessageFlag> findByThreadId(long threadId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByThreadId
public static java.util.List<MBMessageFlag> findByThreadId(long threadId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByThreadId_First
public static MBMessageFlag findByThreadId_First(long threadId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchMessageFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException
findByThreadId_Last
public static MBMessageFlag findByThreadId_Last(long threadId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchMessageFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException
findByThreadId_PrevAndNext
public static MBMessageFlag[] findByThreadId_PrevAndNext(long messageFlagId,
long threadId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchMessageFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException
findByMessageId
public static java.util.List<MBMessageFlag> findByMessageId(long messageId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByMessageId
public static java.util.List<MBMessageFlag> findByMessageId(long messageId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByMessageId
public static java.util.List<MBMessageFlag> findByMessageId(long messageId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByMessageId_First
public static MBMessageFlag findByMessageId_First(long messageId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchMessageFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException
findByMessageId_Last
public static MBMessageFlag findByMessageId_Last(long messageId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchMessageFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException
findByMessageId_PrevAndNext
public static MBMessageFlag[] findByMessageId_PrevAndNext(long messageFlagId,
long messageId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchMessageFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException
findByT_F
public static java.util.List<MBMessageFlag> findByT_F(long threadId,
int flag)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByT_F
public static java.util.List<MBMessageFlag> findByT_F(long threadId,
int flag,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByT_F
public static java.util.List<MBMessageFlag> findByT_F(long threadId,
int flag,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByT_F_First
public static MBMessageFlag findByT_F_First(long threadId,
int flag,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchMessageFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException
findByT_F_Last
public static MBMessageFlag findByT_F_Last(long threadId,
int flag,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchMessageFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException
findByT_F_PrevAndNext
public static MBMessageFlag[] findByT_F_PrevAndNext(long messageFlagId,
long threadId,
int flag,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchMessageFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException
findByM_F
public static java.util.List<MBMessageFlag> findByM_F(long messageId,
int flag)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByM_F
public static java.util.List<MBMessageFlag> findByM_F(long messageId,
int flag,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByM_F
public static java.util.List<MBMessageFlag> findByM_F(long messageId,
int flag,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByM_F_First
public static MBMessageFlag findByM_F_First(long messageId,
int flag,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchMessageFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException
findByM_F_Last
public static MBMessageFlag findByM_F_Last(long messageId,
int flag,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchMessageFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException
findByM_F_PrevAndNext
public static MBMessageFlag[] findByM_F_PrevAndNext(long messageFlagId,
long messageId,
int flag,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchMessageFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException
findByU_T_F
public static java.util.List<MBMessageFlag> findByU_T_F(long userId,
long threadId,
int flag)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByU_T_F
public static java.util.List<MBMessageFlag> findByU_T_F(long userId,
long threadId,
int flag,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByU_T_F
public static java.util.List<MBMessageFlag> findByU_T_F(long userId,
long threadId,
int flag,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByU_T_F_First
public static MBMessageFlag findByU_T_F_First(long userId,
long threadId,
int flag,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchMessageFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException
findByU_T_F_Last
public static MBMessageFlag findByU_T_F_Last(long userId,
long threadId,
int flag,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchMessageFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException
findByU_T_F_PrevAndNext
public static MBMessageFlag[] findByU_T_F_PrevAndNext(long messageFlagId,
long userId,
long threadId,
int flag,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchMessageFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException
findByU_M_F
public static MBMessageFlag findByU_M_F(long userId,
long messageId,
int flag)
throws com.liferay.portal.SystemException,
NoSuchMessageFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException
fetchByU_M_F
public static MBMessageFlag fetchByU_M_F(long userId,
long messageId,
int flag)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
fetchByU_M_F
public static MBMessageFlag fetchByU_M_F(long userId,
long messageId,
int flag,
boolean retrieveFromCache)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<MBMessageFlag> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<MBMessageFlag> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<MBMessageFlag> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByUserId
public static void removeByUserId(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByThreadId
public static void removeByThreadId(long threadId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByMessageId
public static void removeByMessageId(long messageId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByT_F
public static void removeByT_F(long threadId,
int flag)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByM_F
public static void removeByM_F(long messageId,
int flag)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByU_T_F
public static void removeByU_T_F(long userId,
long threadId,
int flag)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByU_M_F
public static void removeByU_M_F(long userId,
long messageId,
int flag)
throws com.liferay.portal.SystemException,
NoSuchMessageFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException
removeAll
public static void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByUserId
public static int countByUserId(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByThreadId
public static int countByThreadId(long threadId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByMessageId
public static int countByMessageId(long messageId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByT_F
public static int countByT_F(long threadId,
int flag)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByM_F
public static int countByM_F(long messageId,
int flag)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByU_T_F
public static int countByU_T_F(long userId,
long threadId,
int flag)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByU_M_F
public static int countByU_M_F(long userId,
long messageId,
int flag)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countAll
public static int countAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getPersistence
public static MBMessageFlagPersistence getPersistence()
setPersistence
public void setPersistence(MBMessageFlagPersistence persistence)