com.liferay.portlet.announcements.service.persistence
Class AnnouncementsFlagPersistenceImpl
java.lang.Object
com.liferay.portal.service.persistence.impl.BasePersistenceImpl
com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistenceImpl
- All Implemented Interfaces:
- com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.service.persistence.BasePersistence, com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
public class AnnouncementsFlagPersistenceImpl
- extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl
- implements com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
View Source
- Author:
- Brian Wing Shun Chan
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
COUNT_COLUMN_NAME, listeners |
Method Summary |
void |
afterPropertiesSet()
|
void |
cacheResult(com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag)
|
void |
cacheResult(java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> announcementsFlags)
|
void |
clearCache()
|
int |
countAll()
|
int |
countByEntryId(long entryId)
|
int |
countByU_E_V(long userId,
long entryId,
int value)
|
com.liferay.portlet.announcements.model.AnnouncementsFlag |
create(long flagId)
|
com.liferay.portlet.announcements.model.AnnouncementsFlag |
fetchByPrimaryKey(long flagId)
|
com.liferay.portlet.announcements.model.AnnouncementsFlag |
fetchByU_E_V(long userId,
long entryId,
int value)
|
com.liferay.portlet.announcements.model.AnnouncementsFlag |
fetchByU_E_V(long userId,
long entryId,
int value,
boolean retrieveFromCache)
|
java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> |
findAll()
|
java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> |
findAll(int start,
int end)
|
java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
com.liferay.portlet.announcements.model.AnnouncementsFlag |
findByEntryId_First(long entryId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
com.liferay.portlet.announcements.model.AnnouncementsFlag |
findByEntryId_Last(long entryId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
com.liferay.portlet.announcements.model.AnnouncementsFlag[] |
findByEntryId_PrevAndNext(long flagId,
long entryId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> |
findByEntryId(long entryId)
|
java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> |
findByEntryId(long entryId,
int start,
int end)
|
java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> |
findByEntryId(long entryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
com.liferay.portlet.announcements.model.AnnouncementsFlag |
findByPrimaryKey(long flagId)
|
com.liferay.portlet.announcements.model.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)
|
com.liferay.portlet.announcements.model.AnnouncementsFlag |
remove(com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag)
|
com.liferay.portlet.announcements.model.AnnouncementsFlag |
remove(long flagId)
|
void |
removeAll()
|
void |
removeByEntryId(long entryId)
|
void |
removeByU_E_V(long userId,
long entryId,
int value)
|
protected com.liferay.portlet.announcements.model.AnnouncementsFlag |
removeImpl(com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag)
|
com.liferay.portlet.announcements.model.AnnouncementsFlag |
update(com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag)
Deprecated. Use update(AnnouncementsFlag announcementsFlag, boolean merge) . |
com.liferay.portlet.announcements.model.AnnouncementsFlag |
update(com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag,
boolean merge)
Add, update, or merge, the entity. |
com.liferay.portlet.announcements.model.AnnouncementsFlag |
updateImpl(com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag,
boolean merge)
|
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
closeSession, getDataSource, getDialect, getListeners, openSession, processException, registerListener, setDataSource, setSessionFactory, unregisterListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
getListeners, registerListener, unregisterListener |
FINDER_CLASS_NAME_ENTITY
public static final java.lang.String FINDER_CLASS_NAME_ENTITY
FINDER_CLASS_NAME_LIST
public static final java.lang.String FINDER_CLASS_NAME_LIST
FINDER_PATH_FIND_BY_ENTRYID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FIND_BY_ENTRYID
FINDER_PATH_FIND_BY_OBC_ENTRYID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FIND_BY_OBC_ENTRYID
FINDER_PATH_COUNT_BY_ENTRYID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_ENTRYID
FINDER_PATH_FETCH_BY_U_E_V
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_U_E_V
FINDER_PATH_COUNT_BY_U_E_V
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_U_E_V
FINDER_PATH_FIND_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FIND_ALL
FINDER_PATH_COUNT_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL
announcementsDeliveryPersistence
@BeanReference(name="com.liferay.portlet.announcements.service.persistence.AnnouncementsDeliveryPersistence.impl")
protected com.liferay.portlet.announcements.service.persistence.AnnouncementsDeliveryPersistence announcementsDeliveryPersistence
announcementsEntryPersistence
@BeanReference(name="com.liferay.portlet.announcements.service.persistence.AnnouncementsEntryPersistence.impl")
protected com.liferay.portlet.announcements.service.persistence.AnnouncementsEntryPersistence announcementsEntryPersistence
announcementsFlagPersistence
@BeanReference(name="com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence.impl")
protected com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence announcementsFlagPersistence
AnnouncementsFlagPersistenceImpl
public AnnouncementsFlagPersistenceImpl()
cacheResult
public void cacheResult(com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag)
- Specified by:
cacheResult
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
cacheResult
public void cacheResult(java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> announcementsFlags)
- Specified by:
cacheResult
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
clearCache
public void clearCache()
- Specified by:
clearCache
in interface com.liferay.portal.service.persistence.BasePersistence
- Specified by:
clearCache
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
- Overrides:
clearCache
in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
create
public com.liferay.portlet.announcements.model.AnnouncementsFlag create(long flagId)
- Specified by:
create
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
remove
public com.liferay.portlet.announcements.model.AnnouncementsFlag remove(long flagId)
throws com.liferay.portlet.announcements.NoSuchFlagException,
com.liferay.portal.SystemException
- Specified by:
remove
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
- Throws:
com.liferay.portlet.announcements.NoSuchFlagException
com.liferay.portal.SystemException
remove
public com.liferay.portlet.announcements.model.AnnouncementsFlag remove(com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag)
throws com.liferay.portal.SystemException
- Specified by:
remove
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
- Throws:
com.liferay.portal.SystemException
removeImpl
protected com.liferay.portlet.announcements.model.AnnouncementsFlag removeImpl(com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public com.liferay.portlet.announcements.model.AnnouncementsFlag update(com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(AnnouncementsFlag announcementsFlag, boolean merge)
.
- Specified by:
update
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
- Throws:
com.liferay.portal.SystemException
update
public com.liferay.portlet.announcements.model.AnnouncementsFlag update(com.liferay.portlet.announcements.model.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.
- Specified by:
update
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
- 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 com.liferay.portlet.announcements.model.AnnouncementsFlag updateImpl(com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag,
boolean merge)
throws com.liferay.portal.SystemException
- Specified by:
updateImpl
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public com.liferay.portlet.announcements.model.AnnouncementsFlag findByPrimaryKey(long flagId)
throws com.liferay.portlet.announcements.NoSuchFlagException,
com.liferay.portal.SystemException
- Specified by:
findByPrimaryKey
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
- Throws:
com.liferay.portlet.announcements.NoSuchFlagException
com.liferay.portal.SystemException
fetchByPrimaryKey
public com.liferay.portlet.announcements.model.AnnouncementsFlag fetchByPrimaryKey(long flagId)
throws com.liferay.portal.SystemException
- Specified by:
fetchByPrimaryKey
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
- Throws:
com.liferay.portal.SystemException
findByEntryId
public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findByEntryId(long entryId)
throws com.liferay.portal.SystemException
- Specified by:
findByEntryId
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
- Throws:
com.liferay.portal.SystemException
findByEntryId
public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findByEntryId(long entryId,
int start,
int end)
throws com.liferay.portal.SystemException
- Specified by:
findByEntryId
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
- Throws:
com.liferay.portal.SystemException
findByEntryId
public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findByEntryId(long entryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Specified by:
findByEntryId
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
- Throws:
com.liferay.portal.SystemException
findByEntryId_First
public com.liferay.portlet.announcements.model.AnnouncementsFlag findByEntryId_First(long entryId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portlet.announcements.NoSuchFlagException,
com.liferay.portal.SystemException
- Specified by:
findByEntryId_First
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
- Throws:
com.liferay.portlet.announcements.NoSuchFlagException
com.liferay.portal.SystemException
findByEntryId_Last
public com.liferay.portlet.announcements.model.AnnouncementsFlag findByEntryId_Last(long entryId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portlet.announcements.NoSuchFlagException,
com.liferay.portal.SystemException
- Specified by:
findByEntryId_Last
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
- Throws:
com.liferay.portlet.announcements.NoSuchFlagException
com.liferay.portal.SystemException
findByEntryId_PrevAndNext
public com.liferay.portlet.announcements.model.AnnouncementsFlag[] findByEntryId_PrevAndNext(long flagId,
long entryId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portlet.announcements.NoSuchFlagException,
com.liferay.portal.SystemException
- Specified by:
findByEntryId_PrevAndNext
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
- Throws:
com.liferay.portlet.announcements.NoSuchFlagException
com.liferay.portal.SystemException
findByU_E_V
public com.liferay.portlet.announcements.model.AnnouncementsFlag findByU_E_V(long userId,
long entryId,
int value)
throws com.liferay.portlet.announcements.NoSuchFlagException,
com.liferay.portal.SystemException
- Specified by:
findByU_E_V
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
- Throws:
com.liferay.portlet.announcements.NoSuchFlagException
com.liferay.portal.SystemException
fetchByU_E_V
public com.liferay.portlet.announcements.model.AnnouncementsFlag fetchByU_E_V(long userId,
long entryId,
int value)
throws com.liferay.portal.SystemException
- Specified by:
fetchByU_E_V
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
- Throws:
com.liferay.portal.SystemException
fetchByU_E_V
public com.liferay.portlet.announcements.model.AnnouncementsFlag fetchByU_E_V(long userId,
long entryId,
int value,
boolean retrieveFromCache)
throws com.liferay.portal.SystemException
- Specified by:
fetchByU_E_V
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.SystemException
- Specified by:
findWithDynamicQuery
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.SystemException
- Specified by:
findWithDynamicQuery
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
- Throws:
com.liferay.portal.SystemException
findAll
public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findAll()
throws com.liferay.portal.SystemException
- Specified by:
findAll
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
- Throws:
com.liferay.portal.SystemException
findAll
public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Specified by:
findAll
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
- Throws:
com.liferay.portal.SystemException
findAll
public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Specified by:
findAll
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
- Throws:
com.liferay.portal.SystemException
removeByEntryId
public void removeByEntryId(long entryId)
throws com.liferay.portal.SystemException
- Specified by:
removeByEntryId
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
- Throws:
com.liferay.portal.SystemException
removeByU_E_V
public void removeByU_E_V(long userId,
long entryId,
int value)
throws com.liferay.portlet.announcements.NoSuchFlagException,
com.liferay.portal.SystemException
- Specified by:
removeByU_E_V
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
- Throws:
com.liferay.portlet.announcements.NoSuchFlagException
com.liferay.portal.SystemException
removeAll
public void removeAll()
throws com.liferay.portal.SystemException
- Specified by:
removeAll
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
- Throws:
com.liferay.portal.SystemException
countByEntryId
public int countByEntryId(long entryId)
throws com.liferay.portal.SystemException
- Specified by:
countByEntryId
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
- Throws:
com.liferay.portal.SystemException
countByU_E_V
public int countByU_E_V(long userId,
long entryId,
int value)
throws com.liferay.portal.SystemException
- Specified by:
countByU_E_V
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
- Throws:
com.liferay.portal.SystemException
countAll
public int countAll()
throws com.liferay.portal.SystemException
- Specified by:
countAll
in interface com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence
- Throws:
com.liferay.portal.SystemException
afterPropertiesSet
public void afterPropertiesSet()