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 obc)
134 throws com.liferay.portal.kernel.exception.SystemException {
135 return getPersistence().findByUuid(uuid, start, end, obc);
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 obc)
141 throws com.liferay.portal.kernel.exception.SystemException,
142 com.liferay.portlet.journal.NoSuchTemplateException {
143 return getPersistence().findByUuid_First(uuid, obc);
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 obc)
149 throws com.liferay.portal.kernel.exception.SystemException,
150 com.liferay.portlet.journal.NoSuchTemplateException {
151 return getPersistence().findByUuid_Last(uuid, obc);
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 obc)
157 throws com.liferay.portal.kernel.exception.SystemException,
158 com.liferay.portlet.journal.NoSuchTemplateException {
159 return getPersistence().findByUuid_PrevAndNext(id, uuid, obc);
160 }
161
162 public static com.liferay.portlet.journal.model.JournalTemplate findByUUID_G(
163 java.lang.String uuid, long groupId)
164 throws com.liferay.portal.kernel.exception.SystemException,
165 com.liferay.portlet.journal.NoSuchTemplateException {
166 return getPersistence().findByUUID_G(uuid, groupId);
167 }
168
169 public static com.liferay.portlet.journal.model.JournalTemplate fetchByUUID_G(
170 java.lang.String uuid, long groupId)
171 throws com.liferay.portal.kernel.exception.SystemException {
172 return getPersistence().fetchByUUID_G(uuid, groupId);
173 }
174
175 public static com.liferay.portlet.journal.model.JournalTemplate fetchByUUID_G(
176 java.lang.String uuid, long groupId, boolean retrieveFromCache)
177 throws com.liferay.portal.kernel.exception.SystemException {
178 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
179 }
180
181 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId(
182 long groupId)
183 throws com.liferay.portal.kernel.exception.SystemException {
184 return getPersistence().findByGroupId(groupId);
185 }
186
187 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId(
188 long groupId, int start, int end)
189 throws com.liferay.portal.kernel.exception.SystemException {
190 return getPersistence().findByGroupId(groupId, start, end);
191 }
192
193 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId(
194 long groupId, int start, int end,
195 com.liferay.portal.kernel.util.OrderByComparator obc)
196 throws com.liferay.portal.kernel.exception.SystemException {
197 return getPersistence().findByGroupId(groupId, start, end, obc);
198 }
199
200 public static com.liferay.portlet.journal.model.JournalTemplate findByGroupId_First(
201 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
202 throws com.liferay.portal.kernel.exception.SystemException,
203 com.liferay.portlet.journal.NoSuchTemplateException {
204 return getPersistence().findByGroupId_First(groupId, obc);
205 }
206
207 public static com.liferay.portlet.journal.model.JournalTemplate findByGroupId_Last(
208 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
209 throws com.liferay.portal.kernel.exception.SystemException,
210 com.liferay.portlet.journal.NoSuchTemplateException {
211 return getPersistence().findByGroupId_Last(groupId, obc);
212 }
213
214 public static com.liferay.portlet.journal.model.JournalTemplate[] findByGroupId_PrevAndNext(
215 long id, long groupId,
216 com.liferay.portal.kernel.util.OrderByComparator obc)
217 throws com.liferay.portal.kernel.exception.SystemException,
218 com.liferay.portlet.journal.NoSuchTemplateException {
219 return getPersistence().findByGroupId_PrevAndNext(id, groupId, obc);
220 }
221
222 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
223 java.lang.String templateId)
224 throws com.liferay.portal.kernel.exception.SystemException {
225 return getPersistence().findByTemplateId(templateId);
226 }
227
228 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
229 java.lang.String templateId, int start, int end)
230 throws com.liferay.portal.kernel.exception.SystemException {
231 return getPersistence().findByTemplateId(templateId, start, end);
232 }
233
234 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
235 java.lang.String templateId, int start, int end,
236 com.liferay.portal.kernel.util.OrderByComparator obc)
237 throws com.liferay.portal.kernel.exception.SystemException {
238 return getPersistence().findByTemplateId(templateId, start, end, obc);
239 }
240
241 public static com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_First(
242 java.lang.String templateId,
243 com.liferay.portal.kernel.util.OrderByComparator obc)
244 throws com.liferay.portal.kernel.exception.SystemException,
245 com.liferay.portlet.journal.NoSuchTemplateException {
246 return getPersistence().findByTemplateId_First(templateId, obc);
247 }
248
249 public static com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_Last(
250 java.lang.String templateId,
251 com.liferay.portal.kernel.util.OrderByComparator obc)
252 throws com.liferay.portal.kernel.exception.SystemException,
253 com.liferay.portlet.journal.NoSuchTemplateException {
254 return getPersistence().findByTemplateId_Last(templateId, obc);
255 }
256
257 public static com.liferay.portlet.journal.model.JournalTemplate[] findByTemplateId_PrevAndNext(
258 long id, java.lang.String templateId,
259 com.liferay.portal.kernel.util.OrderByComparator obc)
260 throws com.liferay.portal.kernel.exception.SystemException,
261 com.liferay.portlet.journal.NoSuchTemplateException {
262 return getPersistence().findByTemplateId_PrevAndNext(id, templateId, obc);
263 }
264
265 public static com.liferay.portlet.journal.model.JournalTemplate findBySmallImageId(
266 long smallImageId)
267 throws com.liferay.portal.kernel.exception.SystemException,
268 com.liferay.portlet.journal.NoSuchTemplateException {
269 return getPersistence().findBySmallImageId(smallImageId);
270 }
271
272 public static com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId(
273 long smallImageId)
274 throws com.liferay.portal.kernel.exception.SystemException {
275 return getPersistence().fetchBySmallImageId(smallImageId);
276 }
277
278 public static com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId(
279 long smallImageId, boolean retrieveFromCache)
280 throws com.liferay.portal.kernel.exception.SystemException {
281 return getPersistence()
282 .fetchBySmallImageId(smallImageId, retrieveFromCache);
283 }
284
285 public static com.liferay.portlet.journal.model.JournalTemplate findByG_T(
286 long groupId, java.lang.String templateId)
287 throws com.liferay.portal.kernel.exception.SystemException,
288 com.liferay.portlet.journal.NoSuchTemplateException {
289 return getPersistence().findByG_T(groupId, templateId);
290 }
291
292 public static com.liferay.portlet.journal.model.JournalTemplate fetchByG_T(
293 long groupId, java.lang.String templateId)
294 throws com.liferay.portal.kernel.exception.SystemException {
295 return getPersistence().fetchByG_T(groupId, templateId);
296 }
297
298 public static com.liferay.portlet.journal.model.JournalTemplate fetchByG_T(
299 long groupId, java.lang.String templateId, boolean retrieveFromCache)
300 throws com.liferay.portal.kernel.exception.SystemException {
301 return getPersistence()
302 .fetchByG_T(groupId, templateId, retrieveFromCache);
303 }
304
305 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
306 long groupId, java.lang.String structureId)
307 throws com.liferay.portal.kernel.exception.SystemException {
308 return getPersistence().findByG_S(groupId, structureId);
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 throws com.liferay.portal.kernel.exception.SystemException {
314 return getPersistence().findByG_S(groupId, structureId, start, end);
315 }
316
317 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
318 long groupId, java.lang.String structureId, int start, int end,
319 com.liferay.portal.kernel.util.OrderByComparator obc)
320 throws com.liferay.portal.kernel.exception.SystemException {
321 return getPersistence().findByG_S(groupId, structureId, start, end, obc);
322 }
323
324 public static com.liferay.portlet.journal.model.JournalTemplate findByG_S_First(
325 long groupId, java.lang.String structureId,
326 com.liferay.portal.kernel.util.OrderByComparator obc)
327 throws com.liferay.portal.kernel.exception.SystemException,
328 com.liferay.portlet.journal.NoSuchTemplateException {
329 return getPersistence().findByG_S_First(groupId, structureId, obc);
330 }
331
332 public static com.liferay.portlet.journal.model.JournalTemplate findByG_S_Last(
333 long groupId, java.lang.String structureId,
334 com.liferay.portal.kernel.util.OrderByComparator obc)
335 throws com.liferay.portal.kernel.exception.SystemException,
336 com.liferay.portlet.journal.NoSuchTemplateException {
337 return getPersistence().findByG_S_Last(groupId, structureId, obc);
338 }
339
340 public static com.liferay.portlet.journal.model.JournalTemplate[] findByG_S_PrevAndNext(
341 long id, long groupId, java.lang.String structureId,
342 com.liferay.portal.kernel.util.OrderByComparator obc)
343 throws com.liferay.portal.kernel.exception.SystemException,
344 com.liferay.portlet.journal.NoSuchTemplateException {
345 return getPersistence()
346 .findByG_S_PrevAndNext(id, groupId, structureId, obc);
347 }
348
349 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll()
350 throws com.liferay.portal.kernel.exception.SystemException {
351 return getPersistence().findAll();
352 }
353
354 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll(
355 int start, int end)
356 throws com.liferay.portal.kernel.exception.SystemException {
357 return getPersistence().findAll(start, end);
358 }
359
360 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll(
361 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
362 throws com.liferay.portal.kernel.exception.SystemException {
363 return getPersistence().findAll(start, end, obc);
364 }
365
366 public static void removeByUuid(java.lang.String uuid)
367 throws com.liferay.portal.kernel.exception.SystemException {
368 getPersistence().removeByUuid(uuid);
369 }
370
371 public static void removeByUUID_G(java.lang.String uuid, long groupId)
372 throws com.liferay.portal.kernel.exception.SystemException,
373 com.liferay.portlet.journal.NoSuchTemplateException {
374 getPersistence().removeByUUID_G(uuid, groupId);
375 }
376
377 public static void removeByGroupId(long groupId)
378 throws com.liferay.portal.kernel.exception.SystemException {
379 getPersistence().removeByGroupId(groupId);
380 }
381
382 public static void removeByTemplateId(java.lang.String templateId)
383 throws com.liferay.portal.kernel.exception.SystemException {
384 getPersistence().removeByTemplateId(templateId);
385 }
386
387 public static void removeBySmallImageId(long smallImageId)
388 throws com.liferay.portal.kernel.exception.SystemException,
389 com.liferay.portlet.journal.NoSuchTemplateException {
390 getPersistence().removeBySmallImageId(smallImageId);
391 }
392
393 public static void removeByG_T(long groupId, java.lang.String templateId)
394 throws com.liferay.portal.kernel.exception.SystemException,
395 com.liferay.portlet.journal.NoSuchTemplateException {
396 getPersistence().removeByG_T(groupId, templateId);
397 }
398
399 public static void removeByG_S(long groupId, java.lang.String structureId)
400 throws com.liferay.portal.kernel.exception.SystemException {
401 getPersistence().removeByG_S(groupId, structureId);
402 }
403
404 public static void removeAll()
405 throws com.liferay.portal.kernel.exception.SystemException {
406 getPersistence().removeAll();
407 }
408
409 public static int countByUuid(java.lang.String uuid)
410 throws com.liferay.portal.kernel.exception.SystemException {
411 return getPersistence().countByUuid(uuid);
412 }
413
414 public static int countByUUID_G(java.lang.String uuid, long groupId)
415 throws com.liferay.portal.kernel.exception.SystemException {
416 return getPersistence().countByUUID_G(uuid, groupId);
417 }
418
419 public static int countByGroupId(long groupId)
420 throws com.liferay.portal.kernel.exception.SystemException {
421 return getPersistence().countByGroupId(groupId);
422 }
423
424 public static int countByTemplateId(java.lang.String templateId)
425 throws com.liferay.portal.kernel.exception.SystemException {
426 return getPersistence().countByTemplateId(templateId);
427 }
428
429 public static int countBySmallImageId(long smallImageId)
430 throws com.liferay.portal.kernel.exception.SystemException {
431 return getPersistence().countBySmallImageId(smallImageId);
432 }
433
434 public static int countByG_T(long groupId, java.lang.String templateId)
435 throws com.liferay.portal.kernel.exception.SystemException {
436 return getPersistence().countByG_T(groupId, templateId);
437 }
438
439 public static int countByG_S(long groupId, java.lang.String structureId)
440 throws com.liferay.portal.kernel.exception.SystemException {
441 return getPersistence().countByG_S(groupId, structureId);
442 }
443
444 public static int countAll()
445 throws com.liferay.portal.kernel.exception.SystemException {
446 return getPersistence().countAll();
447 }
448
449 public static JournalTemplatePersistence getPersistence() {
450 if (_persistence == null) {
451 _persistence = (JournalTemplatePersistence)PortalBeanLocatorUtil.locate(JournalTemplatePersistence.class.getName());
452 }
453
454 return _persistence;
455 }
456
457 public void setPersistence(JournalTemplatePersistence persistence) {
458 _persistence = persistence;
459 }
460
461 private static JournalTemplatePersistence _persistence;
462 }