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