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