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