001
014
015 package com.liferay.portlet.announcements.service.persistence;
016
017 import com.liferay.portal.service.persistence.BasePersistence;
018
019 import com.liferay.portlet.announcements.model.AnnouncementsFlag;
020
021
027 public interface AnnouncementsFlagPersistence extends BasePersistence<AnnouncementsFlag> {
028 public void cacheResult(
029 com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag);
030
031 public void cacheResult(
032 java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> announcementsFlags);
033
034 public com.liferay.portlet.announcements.model.AnnouncementsFlag create(
035 long flagId);
036
037 public com.liferay.portlet.announcements.model.AnnouncementsFlag remove(
038 long flagId)
039 throws com.liferay.portal.kernel.exception.SystemException,
040 com.liferay.portlet.announcements.NoSuchFlagException;
041
042 public com.liferay.portlet.announcements.model.AnnouncementsFlag updateImpl(
043 com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag,
044 boolean merge)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portlet.announcements.model.AnnouncementsFlag findByPrimaryKey(
048 long flagId)
049 throws com.liferay.portal.kernel.exception.SystemException,
050 com.liferay.portlet.announcements.NoSuchFlagException;
051
052 public com.liferay.portlet.announcements.model.AnnouncementsFlag fetchByPrimaryKey(
053 long flagId) throws com.liferay.portal.kernel.exception.SystemException;
054
055 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findByEntryId(
056 long entryId)
057 throws com.liferay.portal.kernel.exception.SystemException;
058
059 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findByEntryId(
060 long entryId, int start, int end)
061 throws com.liferay.portal.kernel.exception.SystemException;
062
063 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findByEntryId(
064 long entryId, int start, int end,
065 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
066 throws com.liferay.portal.kernel.exception.SystemException;
067
068 public com.liferay.portlet.announcements.model.AnnouncementsFlag findByEntryId_First(
069 long entryId,
070 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
071 throws com.liferay.portal.kernel.exception.SystemException,
072 com.liferay.portlet.announcements.NoSuchFlagException;
073
074 public com.liferay.portlet.announcements.model.AnnouncementsFlag findByEntryId_Last(
075 long entryId,
076 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
077 throws com.liferay.portal.kernel.exception.SystemException,
078 com.liferay.portlet.announcements.NoSuchFlagException;
079
080 public com.liferay.portlet.announcements.model.AnnouncementsFlag[] findByEntryId_PrevAndNext(
081 long flagId, long entryId,
082 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
083 throws com.liferay.portal.kernel.exception.SystemException,
084 com.liferay.portlet.announcements.NoSuchFlagException;
085
086 public com.liferay.portlet.announcements.model.AnnouncementsFlag findByU_E_V(
087 long userId, long entryId, int value)
088 throws com.liferay.portal.kernel.exception.SystemException,
089 com.liferay.portlet.announcements.NoSuchFlagException;
090
091 public com.liferay.portlet.announcements.model.AnnouncementsFlag fetchByU_E_V(
092 long userId, long entryId, int value)
093 throws com.liferay.portal.kernel.exception.SystemException;
094
095 public com.liferay.portlet.announcements.model.AnnouncementsFlag fetchByU_E_V(
096 long userId, long entryId, int value, boolean retrieveFromCache)
097 throws com.liferay.portal.kernel.exception.SystemException;
098
099 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findAll()
100 throws com.liferay.portal.kernel.exception.SystemException;
101
102 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findAll(
103 int start, int end)
104 throws com.liferay.portal.kernel.exception.SystemException;
105
106 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findAll(
107 int start, int end,
108 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
109 throws com.liferay.portal.kernel.exception.SystemException;
110
111 public void removeByEntryId(long entryId)
112 throws com.liferay.portal.kernel.exception.SystemException;
113
114 public void removeByU_E_V(long userId, long entryId, int value)
115 throws com.liferay.portal.kernel.exception.SystemException,
116 com.liferay.portlet.announcements.NoSuchFlagException;
117
118 public void removeAll()
119 throws com.liferay.portal.kernel.exception.SystemException;
120
121 public int countByEntryId(long entryId)
122 throws com.liferay.portal.kernel.exception.SystemException;
123
124 public int countByU_E_V(long userId, long entryId, int value)
125 throws com.liferay.portal.kernel.exception.SystemException;
126
127 public int countAll()
128 throws com.liferay.portal.kernel.exception.SystemException;
129 }