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