com.liferay.portlet.announcements.service.persistence
Class AnnouncementsFlagUtil
java.lang.Object
com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagUtil
public class AnnouncementsFlagUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
static int |
countAll()
|
static int |
countByEntryId(long entryId)
|
static int |
countByU_E_V(long userId,
long entryId,
int value)
|
static AnnouncementsFlag |
create(long flagId)
|
static AnnouncementsFlag |
fetchByPrimaryKey(long flagId)
|
static AnnouncementsFlag |
fetchByU_E_V(long userId,
long entryId,
int value)
|
static java.util.List<AnnouncementsFlag> |
findAll()
|
static java.util.List<AnnouncementsFlag> |
findAll(int start,
int end)
|
static java.util.List<AnnouncementsFlag> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static AnnouncementsFlag |
findByEntryId_First(long entryId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static AnnouncementsFlag |
findByEntryId_Last(long entryId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static AnnouncementsFlag[] |
findByEntryId_PrevAndNext(long flagId,
long entryId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<AnnouncementsFlag> |
findByEntryId(long entryId)
|
static java.util.List<AnnouncementsFlag> |
findByEntryId(long entryId,
int start,
int end)
|
static java.util.List<AnnouncementsFlag> |
findByEntryId(long entryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static AnnouncementsFlag |
findByPrimaryKey(long flagId)
|
static AnnouncementsFlag |
findByU_E_V(long userId,
long entryId,
int value)
|
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 AnnouncementsFlagPersistence |
getPersistence()
|
static AnnouncementsFlag |
remove(AnnouncementsFlag announcementsFlag)
|
static AnnouncementsFlag |
remove(long flagId)
|
static void |
removeAll()
|
static void |
removeByEntryId(long entryId)
|
static void |
removeByU_E_V(long userId,
long entryId,
int value)
|
void |
setPersistence(AnnouncementsFlagPersistence persistence)
|
static AnnouncementsFlag |
update(AnnouncementsFlag announcementsFlag)
Deprecated. Use update(AnnouncementsFlag announcementsFlag, boolean merge) . |
static AnnouncementsFlag |
update(AnnouncementsFlag announcementsFlag,
boolean merge)
Add, update, or merge, the entity. |
static AnnouncementsFlag |
updateImpl(AnnouncementsFlag announcementsFlag,
boolean merge)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnouncementsFlagUtil
public AnnouncementsFlagUtil()
create
public static AnnouncementsFlag create(long flagId)
remove
public static AnnouncementsFlag remove(long flagId)
throws com.liferay.portal.SystemException,
NoSuchFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchFlagException
remove
public static AnnouncementsFlag remove(AnnouncementsFlag announcementsFlag)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static AnnouncementsFlag update(AnnouncementsFlag announcementsFlag)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(AnnouncementsFlag announcementsFlag, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
public static AnnouncementsFlag update(AnnouncementsFlag announcementsFlag,
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:
announcementsFlag
- 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 announcementsFlag 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 AnnouncementsFlag updateImpl(AnnouncementsFlag announcementsFlag,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static AnnouncementsFlag findByPrimaryKey(long flagId)
throws com.liferay.portal.SystemException,
NoSuchFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchFlagException
fetchByPrimaryKey
public static AnnouncementsFlag fetchByPrimaryKey(long flagId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByEntryId
public static java.util.List<AnnouncementsFlag> findByEntryId(long entryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByEntryId
public static java.util.List<AnnouncementsFlag> findByEntryId(long entryId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByEntryId
public static java.util.List<AnnouncementsFlag> findByEntryId(long entryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByEntryId_First
public static AnnouncementsFlag findByEntryId_First(long entryId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchFlagException
findByEntryId_Last
public static AnnouncementsFlag findByEntryId_Last(long entryId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchFlagException
findByEntryId_PrevAndNext
public static AnnouncementsFlag[] findByEntryId_PrevAndNext(long flagId,
long entryId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchFlagException
findByU_E_V
public static AnnouncementsFlag findByU_E_V(long userId,
long entryId,
int value)
throws com.liferay.portal.SystemException,
NoSuchFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchFlagException
fetchByU_E_V
public static AnnouncementsFlag fetchByU_E_V(long userId,
long entryId,
int value)
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<AnnouncementsFlag> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<AnnouncementsFlag> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<AnnouncementsFlag> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByEntryId
public static void removeByEntryId(long entryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByU_E_V
public static void removeByU_E_V(long userId,
long entryId,
int value)
throws com.liferay.portal.SystemException,
NoSuchFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchFlagException
removeAll
public static void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByEntryId
public static int countByEntryId(long entryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByU_E_V
public static int countByU_E_V(long userId,
long entryId,
int value)
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 AnnouncementsFlagPersistence getPersistence()
setPersistence
public void setPersistence(AnnouncementsFlagPersistence persistence)