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