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