1
22
23 package com.liferay.portlet.journal.service.persistence;
24
25
31 public class JournalArticleUtil {
32 public static com.liferay.portlet.journal.model.JournalArticle create(
33 long id) {
34 return getPersistence().create(id);
35 }
36
37 public static com.liferay.portlet.journal.model.JournalArticle remove(
38 long id)
39 throws com.liferay.portal.SystemException,
40 com.liferay.portlet.journal.NoSuchArticleException {
41 return getPersistence().remove(id);
42 }
43
44 public static com.liferay.portlet.journal.model.JournalArticle remove(
45 com.liferay.portlet.journal.model.JournalArticle journalArticle)
46 throws com.liferay.portal.SystemException {
47 return getPersistence().remove(journalArticle);
48 }
49
50 public static com.liferay.portlet.journal.model.JournalArticle update(
51 com.liferay.portlet.journal.model.JournalArticle journalArticle)
52 throws com.liferay.portal.SystemException {
53 return getPersistence().update(journalArticle);
54 }
55
56 public static com.liferay.portlet.journal.model.JournalArticle update(
57 com.liferay.portlet.journal.model.JournalArticle journalArticle,
58 boolean merge) throws com.liferay.portal.SystemException {
59 return getPersistence().update(journalArticle, merge);
60 }
61
62 public static com.liferay.portlet.journal.model.JournalArticle updateImpl(
63 com.liferay.portlet.journal.model.JournalArticle journalArticle,
64 boolean merge) throws com.liferay.portal.SystemException {
65 return getPersistence().updateImpl(journalArticle, merge);
66 }
67
68 public static com.liferay.portlet.journal.model.JournalArticle findByPrimaryKey(
69 long id)
70 throws com.liferay.portal.SystemException,
71 com.liferay.portlet.journal.NoSuchArticleException {
72 return getPersistence().findByPrimaryKey(id);
73 }
74
75 public static com.liferay.portlet.journal.model.JournalArticle fetchByPrimaryKey(
76 long id) throws com.liferay.portal.SystemException {
77 return getPersistence().fetchByPrimaryKey(id);
78 }
79
80 public static java.util.List findByUuid(java.lang.String uuid)
81 throws com.liferay.portal.SystemException {
82 return getPersistence().findByUuid(uuid);
83 }
84
85 public static java.util.List findByUuid(java.lang.String uuid, int begin,
86 int end) throws com.liferay.portal.SystemException {
87 return getPersistence().findByUuid(uuid, begin, end);
88 }
89
90 public static java.util.List findByUuid(java.lang.String uuid, int begin,
91 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
92 throws com.liferay.portal.SystemException {
93 return getPersistence().findByUuid(uuid, begin, end, obc);
94 }
95
96 public static com.liferay.portlet.journal.model.JournalArticle findByUuid_First(
97 java.lang.String uuid,
98 com.liferay.portal.kernel.util.OrderByComparator obc)
99 throws com.liferay.portal.SystemException,
100 com.liferay.portlet.journal.NoSuchArticleException {
101 return getPersistence().findByUuid_First(uuid, obc);
102 }
103
104 public static com.liferay.portlet.journal.model.JournalArticle findByUuid_Last(
105 java.lang.String uuid,
106 com.liferay.portal.kernel.util.OrderByComparator obc)
107 throws com.liferay.portal.SystemException,
108 com.liferay.portlet.journal.NoSuchArticleException {
109 return getPersistence().findByUuid_Last(uuid, obc);
110 }
111
112 public static com.liferay.portlet.journal.model.JournalArticle[] findByUuid_PrevAndNext(
113 long id, java.lang.String uuid,
114 com.liferay.portal.kernel.util.OrderByComparator obc)
115 throws com.liferay.portal.SystemException,
116 com.liferay.portlet.journal.NoSuchArticleException {
117 return getPersistence().findByUuid_PrevAndNext(id, uuid, obc);
118 }
119
120 public static com.liferay.portlet.journal.model.JournalArticle findByUUID_G(
121 java.lang.String uuid, long groupId)
122 throws com.liferay.portal.SystemException,
123 com.liferay.portlet.journal.NoSuchArticleException {
124 return getPersistence().findByUUID_G(uuid, groupId);
125 }
126
127 public static com.liferay.portlet.journal.model.JournalArticle fetchByUUID_G(
128 java.lang.String uuid, long groupId)
129 throws com.liferay.portal.SystemException {
130 return getPersistence().fetchByUUID_G(uuid, groupId);
131 }
132
133 public static java.util.List findByGroupId(long groupId)
134 throws com.liferay.portal.SystemException {
135 return getPersistence().findByGroupId(groupId);
136 }
137
138 public static java.util.List findByGroupId(long groupId, int begin, int end)
139 throws com.liferay.portal.SystemException {
140 return getPersistence().findByGroupId(groupId, begin, end);
141 }
142
143 public static java.util.List findByGroupId(long groupId, int begin,
144 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
145 throws com.liferay.portal.SystemException {
146 return getPersistence().findByGroupId(groupId, begin, end, obc);
147 }
148
149 public static com.liferay.portlet.journal.model.JournalArticle findByGroupId_First(
150 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
151 throws com.liferay.portal.SystemException,
152 com.liferay.portlet.journal.NoSuchArticleException {
153 return getPersistence().findByGroupId_First(groupId, obc);
154 }
155
156 public static com.liferay.portlet.journal.model.JournalArticle findByGroupId_Last(
157 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
158 throws com.liferay.portal.SystemException,
159 com.liferay.portlet.journal.NoSuchArticleException {
160 return getPersistence().findByGroupId_Last(groupId, obc);
161 }
162
163 public static com.liferay.portlet.journal.model.JournalArticle[] findByGroupId_PrevAndNext(
164 long id, long groupId,
165 com.liferay.portal.kernel.util.OrderByComparator obc)
166 throws com.liferay.portal.SystemException,
167 com.liferay.portlet.journal.NoSuchArticleException {
168 return getPersistence().findByGroupId_PrevAndNext(id, groupId, obc);
169 }
170
171 public static java.util.List findByCompanyId(long companyId)
172 throws com.liferay.portal.SystemException {
173 return getPersistence().findByCompanyId(companyId);
174 }
175
176 public static java.util.List findByCompanyId(long companyId, int begin,
177 int end) throws com.liferay.portal.SystemException {
178 return getPersistence().findByCompanyId(companyId, begin, end);
179 }
180
181 public static java.util.List findByCompanyId(long companyId, int begin,
182 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
183 throws com.liferay.portal.SystemException {
184 return getPersistence().findByCompanyId(companyId, begin, end, obc);
185 }
186
187 public static com.liferay.portlet.journal.model.JournalArticle findByCompanyId_First(
188 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
189 throws com.liferay.portal.SystemException,
190 com.liferay.portlet.journal.NoSuchArticleException {
191 return getPersistence().findByCompanyId_First(companyId, obc);
192 }
193
194 public static com.liferay.portlet.journal.model.JournalArticle findByCompanyId_Last(
195 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
196 throws com.liferay.portal.SystemException,
197 com.liferay.portlet.journal.NoSuchArticleException {
198 return getPersistence().findByCompanyId_Last(companyId, obc);
199 }
200
201 public static com.liferay.portlet.journal.model.JournalArticle[] findByCompanyId_PrevAndNext(
202 long id, long companyId,
203 com.liferay.portal.kernel.util.OrderByComparator obc)
204 throws com.liferay.portal.SystemException,
205 com.liferay.portlet.journal.NoSuchArticleException {
206 return getPersistence().findByCompanyId_PrevAndNext(id, companyId, obc);
207 }
208
209 public static java.util.List findBySmallImageId(long smallImageId)
210 throws com.liferay.portal.SystemException {
211 return getPersistence().findBySmallImageId(smallImageId);
212 }
213
214 public static java.util.List findBySmallImageId(long smallImageId,
215 int begin, int end) throws com.liferay.portal.SystemException {
216 return getPersistence().findBySmallImageId(smallImageId, begin, end);
217 }
218
219 public static java.util.List findBySmallImageId(long smallImageId,
220 int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
221 throws com.liferay.portal.SystemException {
222 return getPersistence().findBySmallImageId(smallImageId, begin, end, obc);
223 }
224
225 public static com.liferay.portlet.journal.model.JournalArticle findBySmallImageId_First(
226 long smallImageId, com.liferay.portal.kernel.util.OrderByComparator obc)
227 throws com.liferay.portal.SystemException,
228 com.liferay.portlet.journal.NoSuchArticleException {
229 return getPersistence().findBySmallImageId_First(smallImageId, obc);
230 }
231
232 public static com.liferay.portlet.journal.model.JournalArticle findBySmallImageId_Last(
233 long smallImageId, com.liferay.portal.kernel.util.OrderByComparator obc)
234 throws com.liferay.portal.SystemException,
235 com.liferay.portlet.journal.NoSuchArticleException {
236 return getPersistence().findBySmallImageId_Last(smallImageId, obc);
237 }
238
239 public static com.liferay.portlet.journal.model.JournalArticle[] findBySmallImageId_PrevAndNext(
240 long id, long smallImageId,
241 com.liferay.portal.kernel.util.OrderByComparator obc)
242 throws com.liferay.portal.SystemException,
243 com.liferay.portlet.journal.NoSuchArticleException {
244 return getPersistence().findBySmallImageId_PrevAndNext(id,
245 smallImageId, obc);
246 }
247
248 public static java.util.List findByG_A(long groupId,
249 java.lang.String articleId) throws com.liferay.portal.SystemException {
250 return getPersistence().findByG_A(groupId, articleId);
251 }
252
253 public static java.util.List findByG_A(long groupId,
254 java.lang.String articleId, int begin, int end)
255 throws com.liferay.portal.SystemException {
256 return getPersistence().findByG_A(groupId, articleId, begin, end);
257 }
258
259 public static java.util.List findByG_A(long groupId,
260 java.lang.String articleId, int begin, int end,
261 com.liferay.portal.kernel.util.OrderByComparator obc)
262 throws com.liferay.portal.SystemException {
263 return getPersistence().findByG_A(groupId, articleId, begin, end, obc);
264 }
265
266 public static com.liferay.portlet.journal.model.JournalArticle findByG_A_First(
267 long groupId, java.lang.String articleId,
268 com.liferay.portal.kernel.util.OrderByComparator obc)
269 throws com.liferay.portal.SystemException,
270 com.liferay.portlet.journal.NoSuchArticleException {
271 return getPersistence().findByG_A_First(groupId, articleId, obc);
272 }
273
274 public static com.liferay.portlet.journal.model.JournalArticle findByG_A_Last(
275 long groupId, java.lang.String articleId,
276 com.liferay.portal.kernel.util.OrderByComparator obc)
277 throws com.liferay.portal.SystemException,
278 com.liferay.portlet.journal.NoSuchArticleException {
279 return getPersistence().findByG_A_Last(groupId, articleId, obc);
280 }
281
282 public static com.liferay.portlet.journal.model.JournalArticle[] findByG_A_PrevAndNext(
283 long id, long groupId, java.lang.String articleId,
284 com.liferay.portal.kernel.util.OrderByComparator obc)
285 throws com.liferay.portal.SystemException,
286 com.liferay.portlet.journal.NoSuchArticleException {
287 return getPersistence().findByG_A_PrevAndNext(id, groupId, articleId,
288 obc);
289 }
290
291 public static java.util.List findByG_S(long groupId,
292 java.lang.String structureId) throws com.liferay.portal.SystemException {
293 return getPersistence().findByG_S(groupId, structureId);
294 }
295
296 public static java.util.List findByG_S(long groupId,
297 java.lang.String structureId, int begin, int end)
298 throws com.liferay.portal.SystemException {
299 return getPersistence().findByG_S(groupId, structureId, begin, end);
300 }
301
302 public static java.util.List findByG_S(long groupId,
303 java.lang.String structureId, int begin, int end,
304 com.liferay.portal.kernel.util.OrderByComparator obc)
305 throws com.liferay.portal.SystemException {
306 return getPersistence().findByG_S(groupId, structureId, begin, end, obc);
307 }
308
309 public static com.liferay.portlet.journal.model.JournalArticle findByG_S_First(
310 long groupId, java.lang.String structureId,
311 com.liferay.portal.kernel.util.OrderByComparator obc)
312 throws com.liferay.portal.SystemException,
313 com.liferay.portlet.journal.NoSuchArticleException {
314 return getPersistence().findByG_S_First(groupId, structureId, obc);
315 }
316
317 public static com.liferay.portlet.journal.model.JournalArticle findByG_S_Last(
318 long groupId, java.lang.String structureId,
319 com.liferay.portal.kernel.util.OrderByComparator obc)
320 throws com.liferay.portal.SystemException,
321 com.liferay.portlet.journal.NoSuchArticleException {
322 return getPersistence().findByG_S_Last(groupId, structureId, obc);
323 }
324
325 public static com.liferay.portlet.journal.model.JournalArticle[] findByG_S_PrevAndNext(
326 long id, long groupId, java.lang.String structureId,
327 com.liferay.portal.kernel.util.OrderByComparator obc)
328 throws com.liferay.portal.SystemException,
329 com.liferay.portlet.journal.NoSuchArticleException {
330 return getPersistence().findByG_S_PrevAndNext(id, groupId, structureId,
331 obc);
332 }
333
334 public static java.util.List findByG_T(long groupId,
335 java.lang.String templateId) throws com.liferay.portal.SystemException {
336 return getPersistence().findByG_T(groupId, templateId);
337 }
338
339 public static java.util.List findByG_T(long groupId,
340 java.lang.String templateId, int begin, int end)
341 throws com.liferay.portal.SystemException {
342 return getPersistence().findByG_T(groupId, templateId, begin, end);
343 }
344
345 public static java.util.List findByG_T(long groupId,
346 java.lang.String templateId, int begin, int end,
347 com.liferay.portal.kernel.util.OrderByComparator obc)
348 throws com.liferay.portal.SystemException {
349 return getPersistence().findByG_T(groupId, templateId, begin, end, obc);
350 }
351
352 public static com.liferay.portlet.journal.model.JournalArticle findByG_T_First(
353 long groupId, java.lang.String templateId,
354 com.liferay.portal.kernel.util.OrderByComparator obc)
355 throws com.liferay.portal.SystemException,
356 com.liferay.portlet.journal.NoSuchArticleException {
357 return getPersistence().findByG_T_First(groupId, templateId, obc);
358 }
359
360 public static com.liferay.portlet.journal.model.JournalArticle findByG_T_Last(
361 long groupId, java.lang.String templateId,
362 com.liferay.portal.kernel.util.OrderByComparator obc)
363 throws com.liferay.portal.SystemException,
364 com.liferay.portlet.journal.NoSuchArticleException {
365 return getPersistence().findByG_T_Last(groupId, templateId, obc);
366 }
367
368 public static com.liferay.portlet.journal.model.JournalArticle[] findByG_T_PrevAndNext(
369 long id, long groupId, java.lang.String templateId,
370 com.liferay.portal.kernel.util.OrderByComparator obc)
371 throws com.liferay.portal.SystemException,
372 com.liferay.portlet.journal.NoSuchArticleException {
373 return getPersistence().findByG_T_PrevAndNext(id, groupId, templateId,
374 obc);
375 }
376
377 public static com.liferay.portlet.journal.model.JournalArticle findByG_A_V(
378 long groupId, java.lang.String articleId, double version)
379 throws com.liferay.portal.SystemException,
380 com.liferay.portlet.journal.NoSuchArticleException {
381 return getPersistence().findByG_A_V(groupId, articleId, version);
382 }
383
384 public static com.liferay.portlet.journal.model.JournalArticle fetchByG_A_V(
385 long groupId, java.lang.String articleId, double version)
386 throws com.liferay.portal.SystemException {
387 return getPersistence().fetchByG_A_V(groupId, articleId, version);
388 }
389
390 public static java.util.List findByG_A_A(long groupId,
391 java.lang.String articleId, boolean approved)
392 throws com.liferay.portal.SystemException {
393 return getPersistence().findByG_A_A(groupId, articleId, approved);
394 }
395
396 public static java.util.List findByG_A_A(long groupId,
397 java.lang.String articleId, boolean approved, int begin, int end)
398 throws com.liferay.portal.SystemException {
399 return getPersistence().findByG_A_A(groupId, articleId, approved,
400 begin, end);
401 }
402
403 public static java.util.List findByG_A_A(long groupId,
404 java.lang.String articleId, boolean approved, int begin, int end,
405 com.liferay.portal.kernel.util.OrderByComparator obc)
406 throws com.liferay.portal.SystemException {
407 return getPersistence().findByG_A_A(groupId, articleId, approved,
408 begin, end, obc);
409 }
410
411 public static com.liferay.portlet.journal.model.JournalArticle findByG_A_A_First(
412 long groupId, java.lang.String articleId, boolean approved,
413 com.liferay.portal.kernel.util.OrderByComparator obc)
414 throws com.liferay.portal.SystemException,
415 com.liferay.portlet.journal.NoSuchArticleException {
416 return getPersistence().findByG_A_A_First(groupId, articleId, approved,
417 obc);
418 }
419
420 public static com.liferay.portlet.journal.model.JournalArticle findByG_A_A_Last(
421 long groupId, java.lang.String articleId, boolean approved,
422 com.liferay.portal.kernel.util.OrderByComparator obc)
423 throws com.liferay.portal.SystemException,
424 com.liferay.portlet.journal.NoSuchArticleException {
425 return getPersistence().findByG_A_A_Last(groupId, articleId, approved,
426 obc);
427 }
428
429 public static com.liferay.portlet.journal.model.JournalArticle[] findByG_A_A_PrevAndNext(
430 long id, long groupId, java.lang.String articleId, boolean approved,
431 com.liferay.portal.kernel.util.OrderByComparator obc)
432 throws com.liferay.portal.SystemException,
433 com.liferay.portlet.journal.NoSuchArticleException {
434 return getPersistence().findByG_A_A_PrevAndNext(id, groupId, articleId,
435 approved, obc);
436 }
437
438 public static java.util.List findWithDynamicQuery(
439 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
440 throws com.liferay.portal.SystemException {
441 return getPersistence().findWithDynamicQuery(queryInitializer);
442 }
443
444 public static java.util.List findWithDynamicQuery(
445 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
446 int begin, int end) throws com.liferay.portal.SystemException {
447 return getPersistence().findWithDynamicQuery(queryInitializer, begin,
448 end);
449 }
450
451 public static java.util.List findAll()
452 throws com.liferay.portal.SystemException {
453 return getPersistence().findAll();
454 }
455
456 public static java.util.List findAll(int begin, int end)
457 throws com.liferay.portal.SystemException {
458 return getPersistence().findAll(begin, end);
459 }
460
461 public static java.util.List findAll(int begin, int end,
462 com.liferay.portal.kernel.util.OrderByComparator obc)
463 throws com.liferay.portal.SystemException {
464 return getPersistence().findAll(begin, end, obc);
465 }
466
467 public static void removeByUuid(java.lang.String uuid)
468 throws com.liferay.portal.SystemException {
469 getPersistence().removeByUuid(uuid);
470 }
471
472 public static void removeByUUID_G(java.lang.String uuid, long groupId)
473 throws com.liferay.portal.SystemException,
474 com.liferay.portlet.journal.NoSuchArticleException {
475 getPersistence().removeByUUID_G(uuid, groupId);
476 }
477
478 public static void removeByGroupId(long groupId)
479 throws com.liferay.portal.SystemException {
480 getPersistence().removeByGroupId(groupId);
481 }
482
483 public static void removeByCompanyId(long companyId)
484 throws com.liferay.portal.SystemException {
485 getPersistence().removeByCompanyId(companyId);
486 }
487
488 public static void removeBySmallImageId(long smallImageId)
489 throws com.liferay.portal.SystemException {
490 getPersistence().removeBySmallImageId(smallImageId);
491 }
492
493 public static void removeByG_A(long groupId, java.lang.String articleId)
494 throws com.liferay.portal.SystemException {
495 getPersistence().removeByG_A(groupId, articleId);
496 }
497
498 public static void removeByG_S(long groupId, java.lang.String structureId)
499 throws com.liferay.portal.SystemException {
500 getPersistence().removeByG_S(groupId, structureId);
501 }
502
503 public static void removeByG_T(long groupId, java.lang.String templateId)
504 throws com.liferay.portal.SystemException {
505 getPersistence().removeByG_T(groupId, templateId);
506 }
507
508 public static void removeByG_A_V(long groupId, java.lang.String articleId,
509 double version)
510 throws com.liferay.portal.SystemException,
511 com.liferay.portlet.journal.NoSuchArticleException {
512 getPersistence().removeByG_A_V(groupId, articleId, version);
513 }
514
515 public static void removeByG_A_A(long groupId, java.lang.String articleId,
516 boolean approved) throws com.liferay.portal.SystemException {
517 getPersistence().removeByG_A_A(groupId, articleId, approved);
518 }
519
520 public static void removeAll() throws com.liferay.portal.SystemException {
521 getPersistence().removeAll();
522 }
523
524 public static int countByUuid(java.lang.String uuid)
525 throws com.liferay.portal.SystemException {
526 return getPersistence().countByUuid(uuid);
527 }
528
529 public static int countByUUID_G(java.lang.String uuid, long groupId)
530 throws com.liferay.portal.SystemException {
531 return getPersistence().countByUUID_G(uuid, groupId);
532 }
533
534 public static int countByGroupId(long groupId)
535 throws com.liferay.portal.SystemException {
536 return getPersistence().countByGroupId(groupId);
537 }
538
539 public static int countByCompanyId(long companyId)
540 throws com.liferay.portal.SystemException {
541 return getPersistence().countByCompanyId(companyId);
542 }
543
544 public static int countBySmallImageId(long smallImageId)
545 throws com.liferay.portal.SystemException {
546 return getPersistence().countBySmallImageId(smallImageId);
547 }
548
549 public static int countByG_A(long groupId, java.lang.String articleId)
550 throws com.liferay.portal.SystemException {
551 return getPersistence().countByG_A(groupId, articleId);
552 }
553
554 public static int countByG_S(long groupId, java.lang.String structureId)
555 throws com.liferay.portal.SystemException {
556 return getPersistence().countByG_S(groupId, structureId);
557 }
558
559 public static int countByG_T(long groupId, java.lang.String templateId)
560 throws com.liferay.portal.SystemException {
561 return getPersistence().countByG_T(groupId, templateId);
562 }
563
564 public static int countByG_A_V(long groupId, java.lang.String articleId,
565 double version) throws com.liferay.portal.SystemException {
566 return getPersistence().countByG_A_V(groupId, articleId, version);
567 }
568
569 public static int countByG_A_A(long groupId, java.lang.String articleId,
570 boolean approved) throws com.liferay.portal.SystemException {
571 return getPersistence().countByG_A_A(groupId, articleId, approved);
572 }
573
574 public static int countAll() throws com.liferay.portal.SystemException {
575 return getPersistence().countAll();
576 }
577
578 public static JournalArticlePersistence getPersistence() {
579 return _getUtil()._persistence;
580 }
581
582 public void setPersistence(JournalArticlePersistence persistence) {
583 _persistence = persistence;
584 }
585
586 private static JournalArticleUtil _getUtil() {
587 if (_util == null) {
588 _util = (JournalArticleUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
589 }
590
591 return _util;
592 }
593
594 private static final String _UTIL = JournalArticleUtil.class.getName();
595 private static JournalArticleUtil _util;
596 private JournalArticlePersistence _persistence;
597 }