001
014
015 package com.liferay.portlet.announcements.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019 import com.liferay.portal.kernel.exception.SystemException;
020 import com.liferay.portal.kernel.util.OrderByComparator;
021 import com.liferay.portal.service.ServiceContext;
022
023 import com.liferay.portlet.announcements.model.AnnouncementsEntry;
024
025 import java.util.List;
026
027
033 public class AnnouncementsEntryUtil {
034
037 public static void clearCache() {
038 getPersistence().clearCache();
039 }
040
041
044 public static void clearCache(AnnouncementsEntry announcementsEntry) {
045 getPersistence().clearCache(announcementsEntry);
046 }
047
048
051 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052 throws SystemException {
053 return getPersistence().countWithDynamicQuery(dynamicQuery);
054 }
055
056
059 public static List<AnnouncementsEntry> findWithDynamicQuery(
060 DynamicQuery dynamicQuery) throws SystemException {
061 return getPersistence().findWithDynamicQuery(dynamicQuery);
062 }
063
064
067 public static List<AnnouncementsEntry> findWithDynamicQuery(
068 DynamicQuery dynamicQuery, int start, int end)
069 throws SystemException {
070 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071 }
072
073
076 public static List<AnnouncementsEntry> findWithDynamicQuery(
077 DynamicQuery dynamicQuery, int start, int end,
078 OrderByComparator orderByComparator) throws SystemException {
079 return getPersistence()
080 .findWithDynamicQuery(dynamicQuery, start, end,
081 orderByComparator);
082 }
083
084
087 public static AnnouncementsEntry remove(
088 AnnouncementsEntry announcementsEntry) throws SystemException {
089 return getPersistence().remove(announcementsEntry);
090 }
091
092
095 public static AnnouncementsEntry update(
096 AnnouncementsEntry announcementsEntry, boolean merge)
097 throws SystemException {
098 return getPersistence().update(announcementsEntry, merge);
099 }
100
101
104 public static AnnouncementsEntry update(
105 AnnouncementsEntry announcementsEntry, boolean merge,
106 ServiceContext serviceContext) throws SystemException {
107 return getPersistence().update(announcementsEntry, merge, serviceContext);
108 }
109
110 public static void cacheResult(
111 com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry) {
112 getPersistence().cacheResult(announcementsEntry);
113 }
114
115 public static void cacheResult(
116 java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> announcementsEntries) {
117 getPersistence().cacheResult(announcementsEntries);
118 }
119
120 public static com.liferay.portlet.announcements.model.AnnouncementsEntry create(
121 long entryId) {
122 return getPersistence().create(entryId);
123 }
124
125 public static com.liferay.portlet.announcements.model.AnnouncementsEntry remove(
126 long entryId)
127 throws com.liferay.portal.kernel.exception.SystemException,
128 com.liferay.portlet.announcements.NoSuchEntryException {
129 return getPersistence().remove(entryId);
130 }
131
132 public static com.liferay.portlet.announcements.model.AnnouncementsEntry updateImpl(
133 com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry,
134 boolean merge)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return getPersistence().updateImpl(announcementsEntry, merge);
137 }
138
139 public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByPrimaryKey(
140 long entryId)
141 throws com.liferay.portal.kernel.exception.SystemException,
142 com.liferay.portlet.announcements.NoSuchEntryException {
143 return getPersistence().findByPrimaryKey(entryId);
144 }
145
146 public static com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByPrimaryKey(
147 long entryId)
148 throws com.liferay.portal.kernel.exception.SystemException {
149 return getPersistence().fetchByPrimaryKey(entryId);
150 }
151
152 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
153 java.lang.String uuid)
154 throws com.liferay.portal.kernel.exception.SystemException {
155 return getPersistence().findByUuid(uuid);
156 }
157
158 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
159 java.lang.String uuid, int start, int end)
160 throws com.liferay.portal.kernel.exception.SystemException {
161 return getPersistence().findByUuid(uuid, start, end);
162 }
163
164 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
165 java.lang.String uuid, int start, int end,
166 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167 throws com.liferay.portal.kernel.exception.SystemException {
168 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
169 }
170
171 public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_First(
172 java.lang.String uuid,
173 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
174 throws com.liferay.portal.kernel.exception.SystemException,
175 com.liferay.portlet.announcements.NoSuchEntryException {
176 return getPersistence().findByUuid_First(uuid, orderByComparator);
177 }
178
179 public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_Last(
180 java.lang.String uuid,
181 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
182 throws com.liferay.portal.kernel.exception.SystemException,
183 com.liferay.portlet.announcements.NoSuchEntryException {
184 return getPersistence().findByUuid_Last(uuid, orderByComparator);
185 }
186
187 public static com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUuid_PrevAndNext(
188 long entryId, java.lang.String uuid,
189 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
190 throws com.liferay.portal.kernel.exception.SystemException,
191 com.liferay.portlet.announcements.NoSuchEntryException {
192 return getPersistence()
193 .findByUuid_PrevAndNext(entryId, uuid, orderByComparator);
194 }
195
196 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
197 long userId) throws com.liferay.portal.kernel.exception.SystemException {
198 return getPersistence().findByUserId(userId);
199 }
200
201 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
202 long userId, int start, int end)
203 throws com.liferay.portal.kernel.exception.SystemException {
204 return getPersistence().findByUserId(userId, start, end);
205 }
206
207 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
208 long userId, int start, int end,
209 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210 throws com.liferay.portal.kernel.exception.SystemException {
211 return getPersistence()
212 .findByUserId(userId, start, end, orderByComparator);
213 }
214
215 public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_First(
216 long userId,
217 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
218 throws com.liferay.portal.kernel.exception.SystemException,
219 com.liferay.portlet.announcements.NoSuchEntryException {
220 return getPersistence().findByUserId_First(userId, orderByComparator);
221 }
222
223 public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_Last(
224 long userId,
225 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
226 throws com.liferay.portal.kernel.exception.SystemException,
227 com.liferay.portlet.announcements.NoSuchEntryException {
228 return getPersistence().findByUserId_Last(userId, orderByComparator);
229 }
230
231 public static com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUserId_PrevAndNext(
232 long entryId, long userId,
233 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
234 throws com.liferay.portal.kernel.exception.SystemException,
235 com.liferay.portlet.announcements.NoSuchEntryException {
236 return getPersistence()
237 .findByUserId_PrevAndNext(entryId, userId, orderByComparator);
238 }
239
240 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
241 long classNameId, long classPK)
242 throws com.liferay.portal.kernel.exception.SystemException {
243 return getPersistence().findByC_C(classNameId, classPK);
244 }
245
246 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
247 long classNameId, long classPK, int start, int end)
248 throws com.liferay.portal.kernel.exception.SystemException {
249 return getPersistence().findByC_C(classNameId, classPK, start, end);
250 }
251
252 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
253 long classNameId, long classPK, int start, int end,
254 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
255 throws com.liferay.portal.kernel.exception.SystemException {
256 return getPersistence()
257 .findByC_C(classNameId, classPK, start, end,
258 orderByComparator);
259 }
260
261 public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_First(
262 long classNameId, long classPK,
263 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
264 throws com.liferay.portal.kernel.exception.SystemException,
265 com.liferay.portlet.announcements.NoSuchEntryException {
266 return getPersistence()
267 .findByC_C_First(classNameId, classPK, orderByComparator);
268 }
269
270 public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_Last(
271 long classNameId, long classPK,
272 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
273 throws com.liferay.portal.kernel.exception.SystemException,
274 com.liferay.portlet.announcements.NoSuchEntryException {
275 return getPersistence()
276 .findByC_C_Last(classNameId, classPK, orderByComparator);
277 }
278
279 public static com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_PrevAndNext(
280 long entryId, long classNameId, long classPK,
281 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
282 throws com.liferay.portal.kernel.exception.SystemException,
283 com.liferay.portlet.announcements.NoSuchEntryException {
284 return getPersistence()
285 .findByC_C_PrevAndNext(entryId, classNameId, classPK,
286 orderByComparator);
287 }
288
289 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
290 long classNameId, long classPK, boolean alert)
291 throws com.liferay.portal.kernel.exception.SystemException {
292 return getPersistence().findByC_C_A(classNameId, classPK, alert);
293 }
294
295 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
296 long classNameId, long classPK, boolean alert, int start, int end)
297 throws com.liferay.portal.kernel.exception.SystemException {
298 return getPersistence()
299 .findByC_C_A(classNameId, classPK, alert, start, end);
300 }
301
302 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
303 long classNameId, long classPK, boolean alert, int start, int end,
304 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
305 throws com.liferay.portal.kernel.exception.SystemException {
306 return getPersistence()
307 .findByC_C_A(classNameId, classPK, alert, start, end,
308 orderByComparator);
309 }
310
311 public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_First(
312 long classNameId, long classPK, boolean alert,
313 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
314 throws com.liferay.portal.kernel.exception.SystemException,
315 com.liferay.portlet.announcements.NoSuchEntryException {
316 return getPersistence()
317 .findByC_C_A_First(classNameId, classPK, alert,
318 orderByComparator);
319 }
320
321 public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_Last(
322 long classNameId, long classPK, boolean alert,
323 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
324 throws com.liferay.portal.kernel.exception.SystemException,
325 com.liferay.portlet.announcements.NoSuchEntryException {
326 return getPersistence()
327 .findByC_C_A_Last(classNameId, classPK, alert,
328 orderByComparator);
329 }
330
331 public static com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_A_PrevAndNext(
332 long entryId, long classNameId, long classPK, boolean alert,
333 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
334 throws com.liferay.portal.kernel.exception.SystemException,
335 com.liferay.portlet.announcements.NoSuchEntryException {
336 return getPersistence()
337 .findByC_C_A_PrevAndNext(entryId, classNameId, classPK,
338 alert, orderByComparator);
339 }
340
341 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll()
342 throws com.liferay.portal.kernel.exception.SystemException {
343 return getPersistence().findAll();
344 }
345
346 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll(
347 int start, int end)
348 throws com.liferay.portal.kernel.exception.SystemException {
349 return getPersistence().findAll(start, end);
350 }
351
352 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll(
353 int start, int end,
354 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
355 throws com.liferay.portal.kernel.exception.SystemException {
356 return getPersistence().findAll(start, end, orderByComparator);
357 }
358
359 public static void removeByUuid(java.lang.String uuid)
360 throws com.liferay.portal.kernel.exception.SystemException {
361 getPersistence().removeByUuid(uuid);
362 }
363
364 public static void removeByUserId(long userId)
365 throws com.liferay.portal.kernel.exception.SystemException {
366 getPersistence().removeByUserId(userId);
367 }
368
369 public static void removeByC_C(long classNameId, long classPK)
370 throws com.liferay.portal.kernel.exception.SystemException {
371 getPersistence().removeByC_C(classNameId, classPK);
372 }
373
374 public static void removeByC_C_A(long classNameId, long classPK,
375 boolean alert)
376 throws com.liferay.portal.kernel.exception.SystemException {
377 getPersistence().removeByC_C_A(classNameId, classPK, alert);
378 }
379
380 public static void removeAll()
381 throws com.liferay.portal.kernel.exception.SystemException {
382 getPersistence().removeAll();
383 }
384
385 public static int countByUuid(java.lang.String uuid)
386 throws com.liferay.portal.kernel.exception.SystemException {
387 return getPersistence().countByUuid(uuid);
388 }
389
390 public static int countByUserId(long userId)
391 throws com.liferay.portal.kernel.exception.SystemException {
392 return getPersistence().countByUserId(userId);
393 }
394
395 public static int countByC_C(long classNameId, long classPK)
396 throws com.liferay.portal.kernel.exception.SystemException {
397 return getPersistence().countByC_C(classNameId, classPK);
398 }
399
400 public static int countByC_C_A(long classNameId, long classPK, boolean alert)
401 throws com.liferay.portal.kernel.exception.SystemException {
402 return getPersistence().countByC_C_A(classNameId, classPK, alert);
403 }
404
405 public static int countAll()
406 throws com.liferay.portal.kernel.exception.SystemException {
407 return getPersistence().countAll();
408 }
409
410 public static AnnouncementsEntryPersistence getPersistence() {
411 if (_persistence == null) {
412 _persistence = (AnnouncementsEntryPersistence)PortalBeanLocatorUtil.locate(AnnouncementsEntryPersistence.class.getName());
413 }
414
415 return _persistence;
416 }
417
418 public void setPersistence(AnnouncementsEntryPersistence persistence) {
419 _persistence = persistence;
420 }
421
422 private static AnnouncementsEntryPersistence _persistence;
423 }