1
14
15 package com.liferay.portlet.journal.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.journal.model.JournalTemplate;
22
23 import java.util.List;
24
25
38 public class JournalTemplateUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static void clearCache(JournalTemplate journalTemplate) {
50 getPersistence().clearCache(journalTemplate);
51 }
52
53
56 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57 throws SystemException {
58 return getPersistence().countWithDynamicQuery(dynamicQuery);
59 }
60
61
64 public static List<JournalTemplate> findWithDynamicQuery(
65 DynamicQuery dynamicQuery) throws SystemException {
66 return getPersistence().findWithDynamicQuery(dynamicQuery);
67 }
68
69
72 public static List<JournalTemplate> findWithDynamicQuery(
73 DynamicQuery dynamicQuery, int start, int end)
74 throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static JournalTemplate remove(JournalTemplate journalTemplate)
82 throws SystemException {
83 return getPersistence().remove(journalTemplate);
84 }
85
86
89 public static JournalTemplate update(JournalTemplate journalTemplate,
90 boolean merge) throws SystemException {
91 return getPersistence().update(journalTemplate, merge);
92 }
93
94 public static void cacheResult(
95 com.liferay.portlet.journal.model.JournalTemplate journalTemplate) {
96 getPersistence().cacheResult(journalTemplate);
97 }
98
99 public static void cacheResult(
100 java.util.List<com.liferay.portlet.journal.model.JournalTemplate> journalTemplates) {
101 getPersistence().cacheResult(journalTemplates);
102 }
103
104 public static com.liferay.portlet.journal.model.JournalTemplate create(
105 long id) {
106 return getPersistence().create(id);
107 }
108
109 public static com.liferay.portlet.journal.model.JournalTemplate remove(
110 long id)
111 throws com.liferay.portal.kernel.exception.SystemException,
112 com.liferay.portlet.journal.NoSuchTemplateException {
113 return getPersistence().remove(id);
114 }
115
116 public static com.liferay.portlet.journal.model.JournalTemplate updateImpl(
117 com.liferay.portlet.journal.model.JournalTemplate journalTemplate,
118 boolean merge)
119 throws com.liferay.portal.kernel.exception.SystemException {
120 return getPersistence().updateImpl(journalTemplate, merge);
121 }
122
123 public static com.liferay.portlet.journal.model.JournalTemplate findByPrimaryKey(
124 long id)
125 throws com.liferay.portal.kernel.exception.SystemException,
126 com.liferay.portlet.journal.NoSuchTemplateException {
127 return getPersistence().findByPrimaryKey(id);
128 }
129
130 public static com.liferay.portlet.journal.model.JournalTemplate fetchByPrimaryKey(
131 long id) throws com.liferay.portal.kernel.exception.SystemException {
132 return getPersistence().fetchByPrimaryKey(id);
133 }
134
135 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid(
136 java.lang.String uuid)
137 throws com.liferay.portal.kernel.exception.SystemException {
138 return getPersistence().findByUuid(uuid);
139 }
140
141 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid(
142 java.lang.String uuid, int start, int end)
143 throws com.liferay.portal.kernel.exception.SystemException {
144 return getPersistence().findByUuid(uuid, start, end);
145 }
146
147 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid(
148 java.lang.String uuid, int start, int end,
149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150 throws com.liferay.portal.kernel.exception.SystemException {
151 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
152 }
153
154 public static com.liferay.portlet.journal.model.JournalTemplate findByUuid_First(
155 java.lang.String uuid,
156 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157 throws com.liferay.portal.kernel.exception.SystemException,
158 com.liferay.portlet.journal.NoSuchTemplateException {
159 return getPersistence().findByUuid_First(uuid, orderByComparator);
160 }
161
162 public static com.liferay.portlet.journal.model.JournalTemplate findByUuid_Last(
163 java.lang.String uuid,
164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165 throws com.liferay.portal.kernel.exception.SystemException,
166 com.liferay.portlet.journal.NoSuchTemplateException {
167 return getPersistence().findByUuid_Last(uuid, orderByComparator);
168 }
169
170 public static com.liferay.portlet.journal.model.JournalTemplate[] findByUuid_PrevAndNext(
171 long id, java.lang.String uuid,
172 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173 throws com.liferay.portal.kernel.exception.SystemException,
174 com.liferay.portlet.journal.NoSuchTemplateException {
175 return getPersistence()
176 .findByUuid_PrevAndNext(id, uuid, orderByComparator);
177 }
178
179 public static com.liferay.portlet.journal.model.JournalTemplate findByUUID_G(
180 java.lang.String uuid, long groupId)
181 throws com.liferay.portal.kernel.exception.SystemException,
182 com.liferay.portlet.journal.NoSuchTemplateException {
183 return getPersistence().findByUUID_G(uuid, groupId);
184 }
185
186 public static com.liferay.portlet.journal.model.JournalTemplate fetchByUUID_G(
187 java.lang.String uuid, long groupId)
188 throws com.liferay.portal.kernel.exception.SystemException {
189 return getPersistence().fetchByUUID_G(uuid, groupId);
190 }
191
192 public static com.liferay.portlet.journal.model.JournalTemplate fetchByUUID_G(
193 java.lang.String uuid, long groupId, boolean retrieveFromCache)
194 throws com.liferay.portal.kernel.exception.SystemException {
195 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
196 }
197
198 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId(
199 long groupId)
200 throws com.liferay.portal.kernel.exception.SystemException {
201 return getPersistence().findByGroupId(groupId);
202 }
203
204 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId(
205 long groupId, int start, int end)
206 throws com.liferay.portal.kernel.exception.SystemException {
207 return getPersistence().findByGroupId(groupId, start, end);
208 }
209
210 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId(
211 long groupId, int start, int end,
212 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
213 throws com.liferay.portal.kernel.exception.SystemException {
214 return getPersistence()
215 .findByGroupId(groupId, start, end, orderByComparator);
216 }
217
218 public static com.liferay.portlet.journal.model.JournalTemplate findByGroupId_First(
219 long groupId,
220 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
221 throws com.liferay.portal.kernel.exception.SystemException,
222 com.liferay.portlet.journal.NoSuchTemplateException {
223 return getPersistence().findByGroupId_First(groupId, orderByComparator);
224 }
225
226 public static com.liferay.portlet.journal.model.JournalTemplate findByGroupId_Last(
227 long groupId,
228 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
229 throws com.liferay.portal.kernel.exception.SystemException,
230 com.liferay.portlet.journal.NoSuchTemplateException {
231 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
232 }
233
234 public static com.liferay.portlet.journal.model.JournalTemplate[] findByGroupId_PrevAndNext(
235 long id, long groupId,
236 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
237 throws com.liferay.portal.kernel.exception.SystemException,
238 com.liferay.portlet.journal.NoSuchTemplateException {
239 return getPersistence()
240 .findByGroupId_PrevAndNext(id, groupId, orderByComparator);
241 }
242
243 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByGroupId(
244 long groupId)
245 throws com.liferay.portal.kernel.exception.SystemException {
246 return getPersistence().filterFindByGroupId(groupId);
247 }
248
249 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByGroupId(
250 long groupId, int start, int end)
251 throws com.liferay.portal.kernel.exception.SystemException {
252 return getPersistence().filterFindByGroupId(groupId, start, end);
253 }
254
255 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByGroupId(
256 long groupId, int start, int end,
257 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
258 throws com.liferay.portal.kernel.exception.SystemException {
259 return getPersistence()
260 .filterFindByGroupId(groupId, start, end, orderByComparator);
261 }
262
263 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
264 java.lang.String templateId)
265 throws com.liferay.portal.kernel.exception.SystemException {
266 return getPersistence().findByTemplateId(templateId);
267 }
268
269 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
270 java.lang.String templateId, int start, int end)
271 throws com.liferay.portal.kernel.exception.SystemException {
272 return getPersistence().findByTemplateId(templateId, start, end);
273 }
274
275 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
276 java.lang.String templateId, int start, int end,
277 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
278 throws com.liferay.portal.kernel.exception.SystemException {
279 return getPersistence()
280 .findByTemplateId(templateId, start, end, orderByComparator);
281 }
282
283 public static com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_First(
284 java.lang.String templateId,
285 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
286 throws com.liferay.portal.kernel.exception.SystemException,
287 com.liferay.portlet.journal.NoSuchTemplateException {
288 return getPersistence()
289 .findByTemplateId_First(templateId, orderByComparator);
290 }
291
292 public static com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_Last(
293 java.lang.String templateId,
294 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
295 throws com.liferay.portal.kernel.exception.SystemException,
296 com.liferay.portlet.journal.NoSuchTemplateException {
297 return getPersistence()
298 .findByTemplateId_Last(templateId, orderByComparator);
299 }
300
301 public static com.liferay.portlet.journal.model.JournalTemplate[] findByTemplateId_PrevAndNext(
302 long id, java.lang.String templateId,
303 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
304 throws com.liferay.portal.kernel.exception.SystemException,
305 com.liferay.portlet.journal.NoSuchTemplateException {
306 return getPersistence()
307 .findByTemplateId_PrevAndNext(id, templateId,
308 orderByComparator);
309 }
310
311 public static com.liferay.portlet.journal.model.JournalTemplate findBySmallImageId(
312 long smallImageId)
313 throws com.liferay.portal.kernel.exception.SystemException,
314 com.liferay.portlet.journal.NoSuchTemplateException {
315 return getPersistence().findBySmallImageId(smallImageId);
316 }
317
318 public static com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId(
319 long smallImageId)
320 throws com.liferay.portal.kernel.exception.SystemException {
321 return getPersistence().fetchBySmallImageId(smallImageId);
322 }
323
324 public static com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId(
325 long smallImageId, boolean retrieveFromCache)
326 throws com.liferay.portal.kernel.exception.SystemException {
327 return getPersistence()
328 .fetchBySmallImageId(smallImageId, retrieveFromCache);
329 }
330
331 public static com.liferay.portlet.journal.model.JournalTemplate findByG_T(
332 long groupId, java.lang.String templateId)
333 throws com.liferay.portal.kernel.exception.SystemException,
334 com.liferay.portlet.journal.NoSuchTemplateException {
335 return getPersistence().findByG_T(groupId, templateId);
336 }
337
338 public static com.liferay.portlet.journal.model.JournalTemplate fetchByG_T(
339 long groupId, java.lang.String templateId)
340 throws com.liferay.portal.kernel.exception.SystemException {
341 return getPersistence().fetchByG_T(groupId, templateId);
342 }
343
344 public static com.liferay.portlet.journal.model.JournalTemplate fetchByG_T(
345 long groupId, java.lang.String templateId, boolean retrieveFromCache)
346 throws com.liferay.portal.kernel.exception.SystemException {
347 return getPersistence()
348 .fetchByG_T(groupId, templateId, retrieveFromCache);
349 }
350
351 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
352 long groupId, java.lang.String structureId)
353 throws com.liferay.portal.kernel.exception.SystemException {
354 return getPersistence().findByG_S(groupId, structureId);
355 }
356
357 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
358 long groupId, java.lang.String structureId, int start, int end)
359 throws com.liferay.portal.kernel.exception.SystemException {
360 return getPersistence().findByG_S(groupId, structureId, start, end);
361 }
362
363 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
364 long groupId, java.lang.String structureId, int start, int end,
365 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
366 throws com.liferay.portal.kernel.exception.SystemException {
367 return getPersistence()
368 .findByG_S(groupId, structureId, start, end,
369 orderByComparator);
370 }
371
372 public static com.liferay.portlet.journal.model.JournalTemplate findByG_S_First(
373 long groupId, java.lang.String structureId,
374 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
375 throws com.liferay.portal.kernel.exception.SystemException,
376 com.liferay.portlet.journal.NoSuchTemplateException {
377 return getPersistence()
378 .findByG_S_First(groupId, structureId, orderByComparator);
379 }
380
381 public static com.liferay.portlet.journal.model.JournalTemplate findByG_S_Last(
382 long groupId, java.lang.String structureId,
383 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
384 throws com.liferay.portal.kernel.exception.SystemException,
385 com.liferay.portlet.journal.NoSuchTemplateException {
386 return getPersistence()
387 .findByG_S_Last(groupId, structureId, orderByComparator);
388 }
389
390 public static com.liferay.portlet.journal.model.JournalTemplate[] findByG_S_PrevAndNext(
391 long id, long groupId, java.lang.String structureId,
392 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
393 throws com.liferay.portal.kernel.exception.SystemException,
394 com.liferay.portlet.journal.NoSuchTemplateException {
395 return getPersistence()
396 .findByG_S_PrevAndNext(id, groupId, structureId,
397 orderByComparator);
398 }
399
400 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S(
401 long groupId, java.lang.String structureId)
402 throws com.liferay.portal.kernel.exception.SystemException {
403 return getPersistence().filterFindByG_S(groupId, structureId);
404 }
405
406 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S(
407 long groupId, java.lang.String structureId, int start, int end)
408 throws com.liferay.portal.kernel.exception.SystemException {
409 return getPersistence().filterFindByG_S(groupId, structureId, start, end);
410 }
411
412 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S(
413 long groupId, java.lang.String structureId, int start, int end,
414 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
415 throws com.liferay.portal.kernel.exception.SystemException {
416 return getPersistence()
417 .filterFindByG_S(groupId, structureId, start, end,
418 orderByComparator);
419 }
420
421 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll()
422 throws com.liferay.portal.kernel.exception.SystemException {
423 return getPersistence().findAll();
424 }
425
426 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll(
427 int start, int end)
428 throws com.liferay.portal.kernel.exception.SystemException {
429 return getPersistence().findAll(start, end);
430 }
431
432 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll(
433 int start, int end,
434 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
435 throws com.liferay.portal.kernel.exception.SystemException {
436 return getPersistence().findAll(start, end, orderByComparator);
437 }
438
439 public static void removeByUuid(java.lang.String uuid)
440 throws com.liferay.portal.kernel.exception.SystemException {
441 getPersistence().removeByUuid(uuid);
442 }
443
444 public static void removeByUUID_G(java.lang.String uuid, long groupId)
445 throws com.liferay.portal.kernel.exception.SystemException,
446 com.liferay.portlet.journal.NoSuchTemplateException {
447 getPersistence().removeByUUID_G(uuid, groupId);
448 }
449
450 public static void removeByGroupId(long groupId)
451 throws com.liferay.portal.kernel.exception.SystemException {
452 getPersistence().removeByGroupId(groupId);
453 }
454
455 public static void removeByTemplateId(java.lang.String templateId)
456 throws com.liferay.portal.kernel.exception.SystemException {
457 getPersistence().removeByTemplateId(templateId);
458 }
459
460 public static void removeBySmallImageId(long smallImageId)
461 throws com.liferay.portal.kernel.exception.SystemException,
462 com.liferay.portlet.journal.NoSuchTemplateException {
463 getPersistence().removeBySmallImageId(smallImageId);
464 }
465
466 public static void removeByG_T(long groupId, java.lang.String templateId)
467 throws com.liferay.portal.kernel.exception.SystemException,
468 com.liferay.portlet.journal.NoSuchTemplateException {
469 getPersistence().removeByG_T(groupId, templateId);
470 }
471
472 public static void removeByG_S(long groupId, java.lang.String structureId)
473 throws com.liferay.portal.kernel.exception.SystemException {
474 getPersistence().removeByG_S(groupId, structureId);
475 }
476
477 public static void removeAll()
478 throws com.liferay.portal.kernel.exception.SystemException {
479 getPersistence().removeAll();
480 }
481
482 public static int countByUuid(java.lang.String uuid)
483 throws com.liferay.portal.kernel.exception.SystemException {
484 return getPersistence().countByUuid(uuid);
485 }
486
487 public static int countByUUID_G(java.lang.String uuid, long groupId)
488 throws com.liferay.portal.kernel.exception.SystemException {
489 return getPersistence().countByUUID_G(uuid, groupId);
490 }
491
492 public static int countByGroupId(long groupId)
493 throws com.liferay.portal.kernel.exception.SystemException {
494 return getPersistence().countByGroupId(groupId);
495 }
496
497 public static int filterCountByGroupId(long groupId)
498 throws com.liferay.portal.kernel.exception.SystemException {
499 return getPersistence().filterCountByGroupId(groupId);
500 }
501
502 public static int countByTemplateId(java.lang.String templateId)
503 throws com.liferay.portal.kernel.exception.SystemException {
504 return getPersistence().countByTemplateId(templateId);
505 }
506
507 public static int countBySmallImageId(long smallImageId)
508 throws com.liferay.portal.kernel.exception.SystemException {
509 return getPersistence().countBySmallImageId(smallImageId);
510 }
511
512 public static int countByG_T(long groupId, java.lang.String templateId)
513 throws com.liferay.portal.kernel.exception.SystemException {
514 return getPersistence().countByG_T(groupId, templateId);
515 }
516
517 public static int filterCountByG_T(long groupId, java.lang.String templateId)
518 throws com.liferay.portal.kernel.exception.SystemException {
519 return getPersistence().filterCountByG_T(groupId, templateId);
520 }
521
522 public static int countByG_S(long groupId, java.lang.String structureId)
523 throws com.liferay.portal.kernel.exception.SystemException {
524 return getPersistence().countByG_S(groupId, structureId);
525 }
526
527 public static int filterCountByG_S(long groupId,
528 java.lang.String structureId)
529 throws com.liferay.portal.kernel.exception.SystemException {
530 return getPersistence().filterCountByG_S(groupId, structureId);
531 }
532
533 public static int countAll()
534 throws com.liferay.portal.kernel.exception.SystemException {
535 return getPersistence().countAll();
536 }
537
538 public static JournalTemplatePersistence getPersistence() {
539 if (_persistence == null) {
540 _persistence = (JournalTemplatePersistence)PortalBeanLocatorUtil.locate(JournalTemplatePersistence.class.getName());
541 }
542
543 return _persistence;
544 }
545
546 public void setPersistence(JournalTemplatePersistence persistence) {
547 _persistence = persistence;
548 }
549
550 private static JournalTemplatePersistence _persistence;
551 }