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