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 int |
countAll()
|
static int |
countByMessageId(long messageId)
|
static int |
countByU_M(long userId,
long messageId)
|
static int |
countByUserId(long userId)
|
static MBMessageFlag |
create(long messageFlagId)
|
static MBMessageFlag |
fetchByPrimaryKey(long messageFlagId)
|
static MBMessageFlag |
fetchByU_M(long userId,
long messageId)
|
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 |
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 |
findByU_M(long userId,
long messageId)
|
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 void |
registerListener(ModelListener listener)
|
static MBMessageFlag |
remove(long messageFlagId)
|
static MBMessageFlag |
remove(MBMessageFlag mbMessageFlag)
|
static void |
removeAll()
|
static void |
removeByMessageId(long messageId)
|
static void |
removeByU_M(long userId,
long messageId)
|
static void |
removeByUserId(long userId)
|
void |
setPersistence(MBMessageFlagPersistence persistence)
|
static void |
unregisterListener(ModelListener listener)
|
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()
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
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
findByU_M
public static MBMessageFlag findByU_M(long userId,
long messageId)
throws com.liferay.portal.SystemException,
NoSuchMessageFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchMessageFlagException
fetchByU_M
public static MBMessageFlag fetchByU_M(long userId,
long messageId)
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
removeByMessageId
public static void removeByMessageId(long messageId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByU_M
public static void removeByU_M(long userId,
long messageId)
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
countByMessageId
public static int countByMessageId(long messageId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByU_M
public static int countByU_M(long userId,
long messageId)
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
registerListener
public static void registerListener(ModelListener listener)
unregisterListener
public static void unregisterListener(ModelListener listener)
getPersistence
public static MBMessageFlagPersistence getPersistence()
setPersistence
public void setPersistence(MBMessageFlagPersistence persistence)