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