1
14
15 package com.liferay.portlet.announcements.service.persistence;
16
17 import com.liferay.portal.SystemException;
18 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
20
21 import com.liferay.portlet.announcements.model.AnnouncementsFlag;
22
23 import java.util.List;
24
25
38 public class AnnouncementsFlagUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50 throws SystemException {
51 return getPersistence().findWithDynamicQuery(dynamicQuery);
52 }
53
54
57 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
58 int start, int end) throws SystemException {
59 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
60 }
61
62
65 public static AnnouncementsFlag remove(AnnouncementsFlag announcementsFlag)
66 throws SystemException {
67 return getPersistence().remove(announcementsFlag);
68 }
69
70
73 public static AnnouncementsFlag update(
74 AnnouncementsFlag announcementsFlag, boolean merge)
75 throws SystemException {
76 return getPersistence().update(announcementsFlag, merge);
77 }
78
79 public static void cacheResult(
80 com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag) {
81 getPersistence().cacheResult(announcementsFlag);
82 }
83
84 public static void cacheResult(
85 java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> announcementsFlags) {
86 getPersistence().cacheResult(announcementsFlags);
87 }
88
89 public static com.liferay.portlet.announcements.model.AnnouncementsFlag create(
90 long flagId) {
91 return getPersistence().create(flagId);
92 }
93
94 public static com.liferay.portlet.announcements.model.AnnouncementsFlag remove(
95 long flagId)
96 throws com.liferay.portal.SystemException,
97 com.liferay.portlet.announcements.NoSuchFlagException {
98 return getPersistence().remove(flagId);
99 }
100
101
104 public static com.liferay.portlet.announcements.model.AnnouncementsFlag update(
105 com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag)
106 throws com.liferay.portal.SystemException {
107 return getPersistence().update(announcementsFlag);
108 }
109
110 public static com.liferay.portlet.announcements.model.AnnouncementsFlag updateImpl(
111 com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag,
112 boolean merge) throws com.liferay.portal.SystemException {
113 return getPersistence().updateImpl(announcementsFlag, merge);
114 }
115
116 public static com.liferay.portlet.announcements.model.AnnouncementsFlag findByPrimaryKey(
117 long flagId)
118 throws com.liferay.portal.SystemException,
119 com.liferay.portlet.announcements.NoSuchFlagException {
120 return getPersistence().findByPrimaryKey(flagId);
121 }
122
123 public static com.liferay.portlet.announcements.model.AnnouncementsFlag fetchByPrimaryKey(
124 long flagId) throws com.liferay.portal.SystemException {
125 return getPersistence().fetchByPrimaryKey(flagId);
126 }
127
128 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findByEntryId(
129 long entryId) throws com.liferay.portal.SystemException {
130 return getPersistence().findByEntryId(entryId);
131 }
132
133 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findByEntryId(
134 long entryId, int start, int end)
135 throws com.liferay.portal.SystemException {
136 return getPersistence().findByEntryId(entryId, start, end);
137 }
138
139 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findByEntryId(
140 long entryId, int start, int end,
141 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142 throws com.liferay.portal.SystemException {
143 return getPersistence()
144 .findByEntryId(entryId, start, end, orderByComparator);
145 }
146
147 public static com.liferay.portlet.announcements.model.AnnouncementsFlag findByEntryId_First(
148 long entryId,
149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150 throws com.liferay.portal.SystemException,
151 com.liferay.portlet.announcements.NoSuchFlagException {
152 return getPersistence().findByEntryId_First(entryId, orderByComparator);
153 }
154
155 public static com.liferay.portlet.announcements.model.AnnouncementsFlag findByEntryId_Last(
156 long entryId,
157 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
158 throws com.liferay.portal.SystemException,
159 com.liferay.portlet.announcements.NoSuchFlagException {
160 return getPersistence().findByEntryId_Last(entryId, orderByComparator);
161 }
162
163 public static com.liferay.portlet.announcements.model.AnnouncementsFlag[] findByEntryId_PrevAndNext(
164 long flagId, long entryId,
165 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166 throws com.liferay.portal.SystemException,
167 com.liferay.portlet.announcements.NoSuchFlagException {
168 return getPersistence()
169 .findByEntryId_PrevAndNext(flagId, entryId, orderByComparator);
170 }
171
172 public static com.liferay.portlet.announcements.model.AnnouncementsFlag findByU_E_V(
173 long userId, long entryId, int value)
174 throws com.liferay.portal.SystemException,
175 com.liferay.portlet.announcements.NoSuchFlagException {
176 return getPersistence().findByU_E_V(userId, entryId, value);
177 }
178
179 public static com.liferay.portlet.announcements.model.AnnouncementsFlag fetchByU_E_V(
180 long userId, long entryId, int value)
181 throws com.liferay.portal.SystemException {
182 return getPersistence().fetchByU_E_V(userId, entryId, value);
183 }
184
185 public static com.liferay.portlet.announcements.model.AnnouncementsFlag fetchByU_E_V(
186 long userId, long entryId, int value, boolean retrieveFromCache)
187 throws com.liferay.portal.SystemException {
188 return getPersistence()
189 .fetchByU_E_V(userId, entryId, value, retrieveFromCache);
190 }
191
192 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findAll()
193 throws com.liferay.portal.SystemException {
194 return getPersistence().findAll();
195 }
196
197 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findAll(
198 int start, int end) throws com.liferay.portal.SystemException {
199 return getPersistence().findAll(start, end);
200 }
201
202 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findAll(
203 int start, int end,
204 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
205 throws com.liferay.portal.SystemException {
206 return getPersistence().findAll(start, end, orderByComparator);
207 }
208
209 public static void removeByEntryId(long entryId)
210 throws com.liferay.portal.SystemException {
211 getPersistence().removeByEntryId(entryId);
212 }
213
214 public static void removeByU_E_V(long userId, long entryId, int value)
215 throws com.liferay.portal.SystemException,
216 com.liferay.portlet.announcements.NoSuchFlagException {
217 getPersistence().removeByU_E_V(userId, entryId, value);
218 }
219
220 public static void removeAll() throws com.liferay.portal.SystemException {
221 getPersistence().removeAll();
222 }
223
224 public static int countByEntryId(long entryId)
225 throws com.liferay.portal.SystemException {
226 return getPersistence().countByEntryId(entryId);
227 }
228
229 public static int countByU_E_V(long userId, long entryId, int value)
230 throws com.liferay.portal.SystemException {
231 return getPersistence().countByU_E_V(userId, entryId, value);
232 }
233
234 public static int countAll() throws com.liferay.portal.SystemException {
235 return getPersistence().countAll();
236 }
237
238 public static AnnouncementsFlagPersistence getPersistence() {
239 if (_persistence == null) {
240 _persistence = (AnnouncementsFlagPersistence)PortalBeanLocatorUtil.locate(AnnouncementsFlagPersistence.class.getName());
241 }
242
243 return _persistence;
244 }
245
246 public void setPersistence(AnnouncementsFlagPersistence persistence) {
247 _persistence = persistence;
248 }
249
250 private static AnnouncementsFlagPersistence _persistence;
251 }