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