com.liferay.portlet.announcements.service.persistence
Interface AnnouncementsFlagPersistence


public interface AnnouncementsFlagPersistence

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)
           
 void registerListener(ModelListener listener)
           
 AnnouncementsFlag remove(AnnouncementsFlag announcementsFlag)
           
 AnnouncementsFlag remove(long flagId)
           
 void removeAll()
           
 void removeByEntryId(long entryId)
           
 void removeByU_E_V(long userId, long entryId, int value)
           
 void unregisterListener(ModelListener listener)
           
 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)
           
 

Method Detail

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 merge
merge - 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

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

java.util.List<AnnouncementsFlag> findByEntryId(long entryId)
                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByEntryId

java.util.List<AnnouncementsFlag> findByEntryId(long entryId,
                                                int start,
                                                int end)
                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByEntryId

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

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

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

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

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

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

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

java.util.List<AnnouncementsFlag> findAll()
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<AnnouncementsFlag> findAll(int start,
                                          int end)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

int countByEntryId(long entryId)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByU_E_V

int countByU_E_V(long userId,
                 long entryId,
                 int value)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

registerListener

void registerListener(ModelListener listener)

unregisterListener

void unregisterListener(ModelListener listener)