1
14
15 package com.liferay.portlet.announcements.service.persistence;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19 import com.liferay.portal.kernel.exception.SystemException;
20
21 import com.liferay.portlet.announcements.model.AnnouncementsEntry;
22
23 import java.util.List;
24
25
38 public class AnnouncementsEntryUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static void clearCache(AnnouncementsEntry announcementsEntry) {
50 getPersistence().clearCache(announcementsEntry);
51 }
52
53
56 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57 throws SystemException {
58 return getPersistence().countWithDynamicQuery(dynamicQuery);
59 }
60
61
64 public static List<AnnouncementsEntry> findWithDynamicQuery(
65 DynamicQuery dynamicQuery) throws SystemException {
66 return getPersistence().findWithDynamicQuery(dynamicQuery);
67 }
68
69
72 public static List<AnnouncementsEntry> findWithDynamicQuery(
73 DynamicQuery dynamicQuery, int start, int end)
74 throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static AnnouncementsEntry remove(
82 AnnouncementsEntry announcementsEntry) throws SystemException {
83 return getPersistence().remove(announcementsEntry);
84 }
85
86
89 public static AnnouncementsEntry update(
90 AnnouncementsEntry announcementsEntry, boolean merge)
91 throws SystemException {
92 return getPersistence().update(announcementsEntry, merge);
93 }
94
95 public static void cacheResult(
96 com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry) {
97 getPersistence().cacheResult(announcementsEntry);
98 }
99
100 public static void cacheResult(
101 java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> announcementsEntries) {
102 getPersistence().cacheResult(announcementsEntries);
103 }
104
105 public static com.liferay.portlet.announcements.model.AnnouncementsEntry create(
106 long entryId) {
107 return getPersistence().create(entryId);
108 }
109
110 public static com.liferay.portlet.announcements.model.AnnouncementsEntry remove(
111 long entryId)
112 throws com.liferay.portal.kernel.exception.SystemException,
113 com.liferay.portlet.announcements.NoSuchEntryException {
114 return getPersistence().remove(entryId);
115 }
116
117 public static com.liferay.portlet.announcements.model.AnnouncementsEntry updateImpl(
118 com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry,
119 boolean merge)
120 throws com.liferay.portal.kernel.exception.SystemException {
121 return getPersistence().updateImpl(announcementsEntry, merge);
122 }
123
124 public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByPrimaryKey(
125 long entryId)
126 throws com.liferay.portal.kernel.exception.SystemException,
127 com.liferay.portlet.announcements.NoSuchEntryException {
128 return getPersistence().findByPrimaryKey(entryId);
129 }
130
131 public static com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByPrimaryKey(
132 long entryId)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getPersistence().fetchByPrimaryKey(entryId);
135 }
136
137 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
138 java.lang.String uuid)
139 throws com.liferay.portal.kernel.exception.SystemException {
140 return getPersistence().findByUuid(uuid);
141 }
142
143 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
144 java.lang.String uuid, int start, int end)
145 throws com.liferay.portal.kernel.exception.SystemException {
146 return getPersistence().findByUuid(uuid, start, end);
147 }
148
149 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
150 java.lang.String uuid, int start, int end,
151 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152 throws com.liferay.portal.kernel.exception.SystemException {
153 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
154 }
155
156 public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_First(
157 java.lang.String uuid,
158 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159 throws com.liferay.portal.kernel.exception.SystemException,
160 com.liferay.portlet.announcements.NoSuchEntryException {
161 return getPersistence().findByUuid_First(uuid, orderByComparator);
162 }
163
164 public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_Last(
165 java.lang.String uuid,
166 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167 throws com.liferay.portal.kernel.exception.SystemException,
168 com.liferay.portlet.announcements.NoSuchEntryException {
169 return getPersistence().findByUuid_Last(uuid, orderByComparator);
170 }
171
172 public static com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUuid_PrevAndNext(
173 long entryId, java.lang.String uuid,
174 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
175 throws com.liferay.portal.kernel.exception.SystemException,
176 com.liferay.portlet.announcements.NoSuchEntryException {
177 return getPersistence()
178 .findByUuid_PrevAndNext(entryId, uuid, orderByComparator);
179 }
180
181 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
182 long userId) throws com.liferay.portal.kernel.exception.SystemException {
183 return getPersistence().findByUserId(userId);
184 }
185
186 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
187 long userId, int start, int end)
188 throws com.liferay.portal.kernel.exception.SystemException {
189 return getPersistence().findByUserId(userId, start, end);
190 }
191
192 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
193 long userId, int start, int end,
194 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
195 throws com.liferay.portal.kernel.exception.SystemException {
196 return getPersistence()
197 .findByUserId(userId, start, end, orderByComparator);
198 }
199
200 public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_First(
201 long userId,
202 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
203 throws com.liferay.portal.kernel.exception.SystemException,
204 com.liferay.portlet.announcements.NoSuchEntryException {
205 return getPersistence().findByUserId_First(userId, orderByComparator);
206 }
207
208 public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_Last(
209 long userId,
210 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
211 throws com.liferay.portal.kernel.exception.SystemException,
212 com.liferay.portlet.announcements.NoSuchEntryException {
213 return getPersistence().findByUserId_Last(userId, orderByComparator);
214 }
215
216 public static com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUserId_PrevAndNext(
217 long entryId, long userId,
218 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
219 throws com.liferay.portal.kernel.exception.SystemException,
220 com.liferay.portlet.announcements.NoSuchEntryException {
221 return getPersistence()
222 .findByUserId_PrevAndNext(entryId, userId, orderByComparator);
223 }
224
225 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
226 long classNameId, long classPK)
227 throws com.liferay.portal.kernel.exception.SystemException {
228 return getPersistence().findByC_C(classNameId, classPK);
229 }
230
231 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
232 long classNameId, long classPK, int start, int end)
233 throws com.liferay.portal.kernel.exception.SystemException {
234 return getPersistence().findByC_C(classNameId, classPK, start, end);
235 }
236
237 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
238 long classNameId, long classPK, int start, int end,
239 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
240 throws com.liferay.portal.kernel.exception.SystemException {
241 return getPersistence()
242 .findByC_C(classNameId, classPK, start, end,
243 orderByComparator);
244 }
245
246 public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_First(
247 long classNameId, long classPK,
248 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
249 throws com.liferay.portal.kernel.exception.SystemException,
250 com.liferay.portlet.announcements.NoSuchEntryException {
251 return getPersistence()
252 .findByC_C_First(classNameId, classPK, orderByComparator);
253 }
254
255 public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_Last(
256 long classNameId, long classPK,
257 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
258 throws com.liferay.portal.kernel.exception.SystemException,
259 com.liferay.portlet.announcements.NoSuchEntryException {
260 return getPersistence()
261 .findByC_C_Last(classNameId, classPK, orderByComparator);
262 }
263
264 public static com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_PrevAndNext(
265 long entryId, long classNameId, long classPK,
266 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
267 throws com.liferay.portal.kernel.exception.SystemException,
268 com.liferay.portlet.announcements.NoSuchEntryException {
269 return getPersistence()
270 .findByC_C_PrevAndNext(entryId, classNameId, classPK,
271 orderByComparator);
272 }
273
274 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
275 long classNameId, long classPK, boolean alert)
276 throws com.liferay.portal.kernel.exception.SystemException {
277 return getPersistence().findByC_C_A(classNameId, classPK, alert);
278 }
279
280 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
281 long classNameId, long classPK, boolean alert, int start, int end)
282 throws com.liferay.portal.kernel.exception.SystemException {
283 return getPersistence()
284 .findByC_C_A(classNameId, classPK, alert, start, end);
285 }
286
287 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
288 long classNameId, long classPK, boolean alert, int start, int end,
289 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
290 throws com.liferay.portal.kernel.exception.SystemException {
291 return getPersistence()
292 .findByC_C_A(classNameId, classPK, alert, start, end,
293 orderByComparator);
294 }
295
296 public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_First(
297 long classNameId, long classPK, boolean alert,
298 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
299 throws com.liferay.portal.kernel.exception.SystemException,
300 com.liferay.portlet.announcements.NoSuchEntryException {
301 return getPersistence()
302 .findByC_C_A_First(classNameId, classPK, alert,
303 orderByComparator);
304 }
305
306 public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_Last(
307 long classNameId, long classPK, boolean alert,
308 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
309 throws com.liferay.portal.kernel.exception.SystemException,
310 com.liferay.portlet.announcements.NoSuchEntryException {
311 return getPersistence()
312 .findByC_C_A_Last(classNameId, classPK, alert,
313 orderByComparator);
314 }
315
316 public static com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_A_PrevAndNext(
317 long entryId, long classNameId, long classPK, boolean alert,
318 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
319 throws com.liferay.portal.kernel.exception.SystemException,
320 com.liferay.portlet.announcements.NoSuchEntryException {
321 return getPersistence()
322 .findByC_C_A_PrevAndNext(entryId, classNameId, classPK,
323 alert, orderByComparator);
324 }
325
326 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll()
327 throws com.liferay.portal.kernel.exception.SystemException {
328 return getPersistence().findAll();
329 }
330
331 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll(
332 int start, int end)
333 throws com.liferay.portal.kernel.exception.SystemException {
334 return getPersistence().findAll(start, end);
335 }
336
337 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll(
338 int start, int end,
339 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
340 throws com.liferay.portal.kernel.exception.SystemException {
341 return getPersistence().findAll(start, end, orderByComparator);
342 }
343
344 public static void removeByUuid(java.lang.String uuid)
345 throws com.liferay.portal.kernel.exception.SystemException {
346 getPersistence().removeByUuid(uuid);
347 }
348
349 public static void removeByUserId(long userId)
350 throws com.liferay.portal.kernel.exception.SystemException {
351 getPersistence().removeByUserId(userId);
352 }
353
354 public static void removeByC_C(long classNameId, long classPK)
355 throws com.liferay.portal.kernel.exception.SystemException {
356 getPersistence().removeByC_C(classNameId, classPK);
357 }
358
359 public static void removeByC_C_A(long classNameId, long classPK,
360 boolean alert)
361 throws com.liferay.portal.kernel.exception.SystemException {
362 getPersistence().removeByC_C_A(classNameId, classPK, alert);
363 }
364
365 public static void removeAll()
366 throws com.liferay.portal.kernel.exception.SystemException {
367 getPersistence().removeAll();
368 }
369
370 public static int countByUuid(java.lang.String uuid)
371 throws com.liferay.portal.kernel.exception.SystemException {
372 return getPersistence().countByUuid(uuid);
373 }
374
375 public static int countByUserId(long userId)
376 throws com.liferay.portal.kernel.exception.SystemException {
377 return getPersistence().countByUserId(userId);
378 }
379
380 public static int countByC_C(long classNameId, long classPK)
381 throws com.liferay.portal.kernel.exception.SystemException {
382 return getPersistence().countByC_C(classNameId, classPK);
383 }
384
385 public static int countByC_C_A(long classNameId, long classPK, boolean alert)
386 throws com.liferay.portal.kernel.exception.SystemException {
387 return getPersistence().countByC_C_A(classNameId, classPK, alert);
388 }
389
390 public static int countAll()
391 throws com.liferay.portal.kernel.exception.SystemException {
392 return getPersistence().countAll();
393 }
394
395 public static AnnouncementsEntryPersistence getPersistence() {
396 if (_persistence == null) {
397 _persistence = (AnnouncementsEntryPersistence)PortalBeanLocatorUtil.locate(AnnouncementsEntryPersistence.class.getName());
398 }
399
400 return _persistence;
401 }
402
403 public void setPersistence(AnnouncementsEntryPersistence persistence) {
404 _persistence = persistence;
405 }
406
407 private static AnnouncementsEntryPersistence _persistence;
408 }