com.liferay.portlet.announcements.service.persistence
Interface AnnouncementsFlagPersistence
- All Superinterfaces:
- BasePersistence
@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface AnnouncementsFlagPersistence
- extends BasePersistence
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
int |
countAll()
|
int |
countByEntryId(long entryId)
|
int |
countByU_E_V(long userId,
long entryId,
int value)
|
AnnouncementsFlag |
create(long flagId)
|
AnnouncementsFlag |
fetchByPrimaryKey(long flagId)
|
AnnouncementsFlag |
fetchByU_E_V(long userId,
long entryId,
int value)
|
java.util.List<AnnouncementsFlag> |
findAll()
|
java.util.List<AnnouncementsFlag> |
findAll(int start,
int end)
|
java.util.List<AnnouncementsFlag> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
AnnouncementsFlag |
findByEntryId_First(long entryId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
AnnouncementsFlag |
findByEntryId_Last(long entryId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
AnnouncementsFlag[] |
findByEntryId_PrevAndNext(long flagId,
long entryId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<AnnouncementsFlag> |
findByEntryId(long entryId)
|
java.util.List<AnnouncementsFlag> |
findByEntryId(long entryId,
int start,
int end)
|
java.util.List<AnnouncementsFlag> |
findByEntryId(long entryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
AnnouncementsFlag |
findByPrimaryKey(long flagId)
|
AnnouncementsFlag |
findByU_E_V(long userId,
long entryId,
int value)
|
java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
AnnouncementsFlag |
remove(AnnouncementsFlag announcementsFlag)
|
AnnouncementsFlag |
remove(long flagId)
|
void |
removeAll()
|
void |
removeByEntryId(long entryId)
|
void |
removeByU_E_V(long userId,
long entryId,
int value)
|
AnnouncementsFlag |
update(AnnouncementsFlag announcementsFlag)
Deprecated. Use update(AnnouncementsFlag announcementsFlag, boolean merge) . |
AnnouncementsFlag |
update(AnnouncementsFlag announcementsFlag,
boolean merge)
Add, update, or merge, the entity. |
AnnouncementsFlag |
updateImpl(AnnouncementsFlag announcementsFlag,
boolean merge)
|
create
AnnouncementsFlag create(long flagId)
remove
AnnouncementsFlag remove(long flagId)
throws com.liferay.portal.SystemException,
NoSuchFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchFlagException
remove
AnnouncementsFlag remove(AnnouncementsFlag announcementsFlag)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
AnnouncementsFlag update(AnnouncementsFlag announcementsFlag)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(AnnouncementsFlag announcementsFlag, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
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
AnnouncementsFlag updateImpl(AnnouncementsFlag announcementsFlag,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
@Transactional(propagation=SUPPORTS,
readOnly=true)
AnnouncementsFlag findByPrimaryKey(long flagId)
throws com.liferay.portal.SystemException,
NoSuchFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchFlagException
fetchByPrimaryKey
AnnouncementsFlag fetchByPrimaryKey(long flagId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByEntryId
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<AnnouncementsFlag> findByEntryId(long entryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByEntryId
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<AnnouncementsFlag> findByEntryId(long entryId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByEntryId
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
AnnouncementsFlag fetchByU_E_V(long userId,
long entryId,
int value)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<AnnouncementsFlag> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<AnnouncementsFlag> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
void removeByEntryId(long entryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByU_E_V
void removeByU_E_V(long userId,
long entryId,
int value)
throws com.liferay.portal.SystemException,
NoSuchFlagException
- Throws:
com.liferay.portal.SystemException
NoSuchFlagException
removeAll
void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByEntryId
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countByEntryId(long entryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByU_E_V
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countByU_E_V(long userId,
long entryId,
int value)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException