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