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 import com.liferay.portal.kernel.util.ReferenceRegistry;
21
22 import com.liferay.portlet.journal.model.JournalArticle;
23
24 import java.util.List;
25
26
39 public class JournalArticleUtil {
40
43 public static void clearCache() {
44 getPersistence().clearCache();
45 }
46
47
50 public static void clearCache(JournalArticle journalArticle) {
51 getPersistence().clearCache(journalArticle);
52 }
53
54
57 public int countWithDynamicQuery(DynamicQuery dynamicQuery)
58 throws SystemException {
59 return getPersistence().countWithDynamicQuery(dynamicQuery);
60 }
61
62
65 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
66 throws SystemException {
67 return getPersistence().findWithDynamicQuery(dynamicQuery);
68 }
69
70
73 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
74 int start, int end) throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static JournalArticle remove(JournalArticle journalArticle)
82 throws SystemException {
83 return getPersistence().remove(journalArticle);
84 }
85
86
89 public static JournalArticle update(JournalArticle journalArticle,
90 boolean merge) throws SystemException {
91 return getPersistence().update(journalArticle, merge);
92 }
93
94 public static void cacheResult(
95 com.liferay.portlet.journal.model.JournalArticle journalArticle) {
96 getPersistence().cacheResult(journalArticle);
97 }
98
99 public static void cacheResult(
100 java.util.List<com.liferay.portlet.journal.model.JournalArticle> journalArticles) {
101 getPersistence().cacheResult(journalArticles);
102 }
103
104 public static com.liferay.portlet.journal.model.JournalArticle create(
105 long id) {
106 return getPersistence().create(id);
107 }
108
109 public static com.liferay.portlet.journal.model.JournalArticle remove(
110 long id)
111 throws com.liferay.portal.SystemException,
112 com.liferay.portlet.journal.NoSuchArticleException {
113 return getPersistence().remove(id);
114 }
115
116
119 public static com.liferay.portlet.journal.model.JournalArticle update(
120 com.liferay.portlet.journal.model.JournalArticle journalArticle)
121 throws com.liferay.portal.SystemException {
122 return getPersistence().update(journalArticle);
123 }
124
125 public static com.liferay.portlet.journal.model.JournalArticle updateImpl(
126 com.liferay.portlet.journal.model.JournalArticle journalArticle,
127 boolean merge) throws com.liferay.portal.SystemException {
128 return getPersistence().updateImpl(journalArticle, merge);
129 }
130
131 public static com.liferay.portlet.journal.model.JournalArticle findByPrimaryKey(
132 long id)
133 throws com.liferay.portal.SystemException,
134 com.liferay.portlet.journal.NoSuchArticleException {
135 return getPersistence().findByPrimaryKey(id);
136 }
137
138 public static com.liferay.portlet.journal.model.JournalArticle fetchByPrimaryKey(
139 long id) throws com.liferay.portal.SystemException {
140 return getPersistence().fetchByPrimaryKey(id);
141 }
142
143 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByUuid(
144 java.lang.String uuid) throws com.liferay.portal.SystemException {
145 return getPersistence().findByUuid(uuid);
146 }
147
148 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByUuid(
149 java.lang.String uuid, int start, int end)
150 throws com.liferay.portal.SystemException {
151 return getPersistence().findByUuid(uuid, start, end);
152 }
153
154 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByUuid(
155 java.lang.String uuid, int start, int end,
156 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157 throws com.liferay.portal.SystemException {
158 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
159 }
160
161 public static com.liferay.portlet.journal.model.JournalArticle findByUuid_First(
162 java.lang.String uuid,
163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164 throws com.liferay.portal.SystemException,
165 com.liferay.portlet.journal.NoSuchArticleException {
166 return getPersistence().findByUuid_First(uuid, orderByComparator);
167 }
168
169 public static com.liferay.portlet.journal.model.JournalArticle findByUuid_Last(
170 java.lang.String uuid,
171 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172 throws com.liferay.portal.SystemException,
173 com.liferay.portlet.journal.NoSuchArticleException {
174 return getPersistence().findByUuid_Last(uuid, orderByComparator);
175 }
176
177 public static com.liferay.portlet.journal.model.JournalArticle[] findByUuid_PrevAndNext(
178 long id, java.lang.String uuid,
179 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180 throws com.liferay.portal.SystemException,
181 com.liferay.portlet.journal.NoSuchArticleException {
182 return getPersistence()
183 .findByUuid_PrevAndNext(id, uuid, orderByComparator);
184 }
185
186 public static com.liferay.portlet.journal.model.JournalArticle findByUUID_G(
187 java.lang.String uuid, long groupId)
188 throws com.liferay.portal.SystemException,
189 com.liferay.portlet.journal.NoSuchArticleException {
190 return getPersistence().findByUUID_G(uuid, groupId);
191 }
192
193 public static com.liferay.portlet.journal.model.JournalArticle fetchByUUID_G(
194 java.lang.String uuid, long groupId)
195 throws com.liferay.portal.SystemException {
196 return getPersistence().fetchByUUID_G(uuid, groupId);
197 }
198
199 public static com.liferay.portlet.journal.model.JournalArticle fetchByUUID_G(
200 java.lang.String uuid, long groupId, boolean retrieveFromCache)
201 throws com.liferay.portal.SystemException {
202 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
203 }
204
205 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByGroupId(
206 long groupId) throws com.liferay.portal.SystemException {
207 return getPersistence().findByGroupId(groupId);
208 }
209
210 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByGroupId(
211 long groupId, int start, int end)
212 throws com.liferay.portal.SystemException {
213 return getPersistence().findByGroupId(groupId, start, end);
214 }
215
216 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByGroupId(
217 long groupId, int start, int end,
218 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
219 throws com.liferay.portal.SystemException {
220 return getPersistence()
221 .findByGroupId(groupId, start, end, orderByComparator);
222 }
223
224 public static com.liferay.portlet.journal.model.JournalArticle findByGroupId_First(
225 long groupId,
226 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227 throws com.liferay.portal.SystemException,
228 com.liferay.portlet.journal.NoSuchArticleException {
229 return getPersistence().findByGroupId_First(groupId, orderByComparator);
230 }
231
232 public static com.liferay.portlet.journal.model.JournalArticle findByGroupId_Last(
233 long groupId,
234 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
235 throws com.liferay.portal.SystemException,
236 com.liferay.portlet.journal.NoSuchArticleException {
237 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
238 }
239
240 public static com.liferay.portlet.journal.model.JournalArticle[] findByGroupId_PrevAndNext(
241 long id, long groupId,
242 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243 throws com.liferay.portal.SystemException,
244 com.liferay.portlet.journal.NoSuchArticleException {
245 return getPersistence()
246 .findByGroupId_PrevAndNext(id, groupId, orderByComparator);
247 }
248
249 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByCompanyId(
250 long companyId) throws com.liferay.portal.SystemException {
251 return getPersistence().findByCompanyId(companyId);
252 }
253
254 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByCompanyId(
255 long companyId, int start, int end)
256 throws com.liferay.portal.SystemException {
257 return getPersistence().findByCompanyId(companyId, start, end);
258 }
259
260 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByCompanyId(
261 long companyId, int start, int end,
262 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
263 throws com.liferay.portal.SystemException {
264 return getPersistence()
265 .findByCompanyId(companyId, start, end, orderByComparator);
266 }
267
268 public static com.liferay.portlet.journal.model.JournalArticle findByCompanyId_First(
269 long companyId,
270 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
271 throws com.liferay.portal.SystemException,
272 com.liferay.portlet.journal.NoSuchArticleException {
273 return getPersistence()
274 .findByCompanyId_First(companyId, orderByComparator);
275 }
276
277 public static com.liferay.portlet.journal.model.JournalArticle findByCompanyId_Last(
278 long companyId,
279 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
280 throws com.liferay.portal.SystemException,
281 com.liferay.portlet.journal.NoSuchArticleException {
282 return getPersistence()
283 .findByCompanyId_Last(companyId, orderByComparator);
284 }
285
286 public static com.liferay.portlet.journal.model.JournalArticle[] findByCompanyId_PrevAndNext(
287 long id, long companyId,
288 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
289 throws com.liferay.portal.SystemException,
290 com.liferay.portlet.journal.NoSuchArticleException {
291 return getPersistence()
292 .findByCompanyId_PrevAndNext(id, companyId, orderByComparator);
293 }
294
295 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findBySmallImageId(
296 long smallImageId) throws com.liferay.portal.SystemException {
297 return getPersistence().findBySmallImageId(smallImageId);
298 }
299
300 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findBySmallImageId(
301 long smallImageId, int start, int end)
302 throws com.liferay.portal.SystemException {
303 return getPersistence().findBySmallImageId(smallImageId, start, end);
304 }
305
306 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findBySmallImageId(
307 long smallImageId, int start, int end,
308 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
309 throws com.liferay.portal.SystemException {
310 return getPersistence()
311 .findBySmallImageId(smallImageId, start, end,
312 orderByComparator);
313 }
314
315 public static com.liferay.portlet.journal.model.JournalArticle findBySmallImageId_First(
316 long smallImageId,
317 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
318 throws com.liferay.portal.SystemException,
319 com.liferay.portlet.journal.NoSuchArticleException {
320 return getPersistence()
321 .findBySmallImageId_First(smallImageId, orderByComparator);
322 }
323
324 public static com.liferay.portlet.journal.model.JournalArticle findBySmallImageId_Last(
325 long smallImageId,
326 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
327 throws com.liferay.portal.SystemException,
328 com.liferay.portlet.journal.NoSuchArticleException {
329 return getPersistence()
330 .findBySmallImageId_Last(smallImageId, orderByComparator);
331 }
332
333 public static com.liferay.portlet.journal.model.JournalArticle[] findBySmallImageId_PrevAndNext(
334 long id, long smallImageId,
335 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
336 throws com.liferay.portal.SystemException,
337 com.liferay.portlet.journal.NoSuchArticleException {
338 return getPersistence()
339 .findBySmallImageId_PrevAndNext(id, smallImageId,
340 orderByComparator);
341 }
342
343 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByR_A(
344 long resourcePrimKey, boolean approved)
345 throws com.liferay.portal.SystemException {
346 return getPersistence().findByR_A(resourcePrimKey, approved);
347 }
348
349 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByR_A(
350 long resourcePrimKey, boolean approved, int start, int end)
351 throws com.liferay.portal.SystemException {
352 return getPersistence().findByR_A(resourcePrimKey, approved, start, end);
353 }
354
355 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByR_A(
356 long resourcePrimKey, boolean approved, int start, int end,
357 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
358 throws com.liferay.portal.SystemException {
359 return getPersistence()
360 .findByR_A(resourcePrimKey, approved, start, end,
361 orderByComparator);
362 }
363
364 public static com.liferay.portlet.journal.model.JournalArticle findByR_A_First(
365 long resourcePrimKey, boolean approved,
366 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
367 throws com.liferay.portal.SystemException,
368 com.liferay.portlet.journal.NoSuchArticleException {
369 return getPersistence()
370 .findByR_A_First(resourcePrimKey, approved, orderByComparator);
371 }
372
373 public static com.liferay.portlet.journal.model.JournalArticle findByR_A_Last(
374 long resourcePrimKey, boolean approved,
375 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
376 throws com.liferay.portal.SystemException,
377 com.liferay.portlet.journal.NoSuchArticleException {
378 return getPersistence()
379 .findByR_A_Last(resourcePrimKey, approved, orderByComparator);
380 }
381
382 public static com.liferay.portlet.journal.model.JournalArticle[] findByR_A_PrevAndNext(
383 long id, long resourcePrimKey, boolean approved,
384 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
385 throws com.liferay.portal.SystemException,
386 com.liferay.portlet.journal.NoSuchArticleException {
387 return getPersistence()
388 .findByR_A_PrevAndNext(id, resourcePrimKey, approved,
389 orderByComparator);
390 }
391
392 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A(
393 long groupId, java.lang.String articleId)
394 throws com.liferay.portal.SystemException {
395 return getPersistence().findByG_A(groupId, articleId);
396 }
397
398 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A(
399 long groupId, java.lang.String articleId, int start, int end)
400 throws com.liferay.portal.SystemException {
401 return getPersistence().findByG_A(groupId, articleId, start, end);
402 }
403
404 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A(
405 long groupId, java.lang.String articleId, int start, int end,
406 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
407 throws com.liferay.portal.SystemException {
408 return getPersistence()
409 .findByG_A(groupId, articleId, start, end, orderByComparator);
410 }
411
412 public static com.liferay.portlet.journal.model.JournalArticle findByG_A_First(
413 long groupId, java.lang.String articleId,
414 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
415 throws com.liferay.portal.SystemException,
416 com.liferay.portlet.journal.NoSuchArticleException {
417 return getPersistence()
418 .findByG_A_First(groupId, articleId, orderByComparator);
419 }
420
421 public static com.liferay.portlet.journal.model.JournalArticle findByG_A_Last(
422 long groupId, java.lang.String articleId,
423 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
424 throws com.liferay.portal.SystemException,
425 com.liferay.portlet.journal.NoSuchArticleException {
426 return getPersistence()
427 .findByG_A_Last(groupId, articleId, orderByComparator);
428 }
429
430 public static com.liferay.portlet.journal.model.JournalArticle[] findByG_A_PrevAndNext(
431 long id, long groupId, java.lang.String articleId,
432 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
433 throws com.liferay.portal.SystemException,
434 com.liferay.portlet.journal.NoSuchArticleException {
435 return getPersistence()
436 .findByG_A_PrevAndNext(id, groupId, articleId,
437 orderByComparator);
438 }
439
440 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_S(
441 long groupId, java.lang.String structureId)
442 throws com.liferay.portal.SystemException {
443 return getPersistence().findByG_S(groupId, structureId);
444 }
445
446 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_S(
447 long groupId, java.lang.String structureId, int start, int end)
448 throws com.liferay.portal.SystemException {
449 return getPersistence().findByG_S(groupId, structureId, start, end);
450 }
451
452 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_S(
453 long groupId, java.lang.String structureId, int start, int end,
454 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
455 throws com.liferay.portal.SystemException {
456 return getPersistence()
457 .findByG_S(groupId, structureId, start, end,
458 orderByComparator);
459 }
460
461 public static com.liferay.portlet.journal.model.JournalArticle findByG_S_First(
462 long groupId, java.lang.String structureId,
463 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
464 throws com.liferay.portal.SystemException,
465 com.liferay.portlet.journal.NoSuchArticleException {
466 return getPersistence()
467 .findByG_S_First(groupId, structureId, orderByComparator);
468 }
469
470 public static com.liferay.portlet.journal.model.JournalArticle findByG_S_Last(
471 long groupId, java.lang.String structureId,
472 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
473 throws com.liferay.portal.SystemException,
474 com.liferay.portlet.journal.NoSuchArticleException {
475 return getPersistence()
476 .findByG_S_Last(groupId, structureId, orderByComparator);
477 }
478
479 public static com.liferay.portlet.journal.model.JournalArticle[] findByG_S_PrevAndNext(
480 long id, long groupId, java.lang.String structureId,
481 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
482 throws com.liferay.portal.SystemException,
483 com.liferay.portlet.journal.NoSuchArticleException {
484 return getPersistence()
485 .findByG_S_PrevAndNext(id, groupId, structureId,
486 orderByComparator);
487 }
488
489 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_T(
490 long groupId, java.lang.String templateId)
491 throws com.liferay.portal.SystemException {
492 return getPersistence().findByG_T(groupId, templateId);
493 }
494
495 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_T(
496 long groupId, java.lang.String templateId, int start, int end)
497 throws com.liferay.portal.SystemException {
498 return getPersistence().findByG_T(groupId, templateId, start, end);
499 }
500
501 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_T(
502 long groupId, java.lang.String templateId, int start, int end,
503 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
504 throws com.liferay.portal.SystemException {
505 return getPersistence()
506 .findByG_T(groupId, templateId, start, end, orderByComparator);
507 }
508
509 public static com.liferay.portlet.journal.model.JournalArticle findByG_T_First(
510 long groupId, java.lang.String templateId,
511 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
512 throws com.liferay.portal.SystemException,
513 com.liferay.portlet.journal.NoSuchArticleException {
514 return getPersistence()
515 .findByG_T_First(groupId, templateId, orderByComparator);
516 }
517
518 public static com.liferay.portlet.journal.model.JournalArticle findByG_T_Last(
519 long groupId, java.lang.String templateId,
520 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
521 throws com.liferay.portal.SystemException,
522 com.liferay.portlet.journal.NoSuchArticleException {
523 return getPersistence()
524 .findByG_T_Last(groupId, templateId, orderByComparator);
525 }
526
527 public static com.liferay.portlet.journal.model.JournalArticle[] findByG_T_PrevAndNext(
528 long id, long groupId, java.lang.String templateId,
529 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
530 throws com.liferay.portal.SystemException,
531 com.liferay.portlet.journal.NoSuchArticleException {
532 return getPersistence()
533 .findByG_T_PrevAndNext(id, groupId, templateId,
534 orderByComparator);
535 }
536
537 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_UT(
538 long groupId, java.lang.String urlTitle)
539 throws com.liferay.portal.SystemException {
540 return getPersistence().findByG_UT(groupId, urlTitle);
541 }
542
543 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_UT(
544 long groupId, java.lang.String urlTitle, int start, int end)
545 throws com.liferay.portal.SystemException {
546 return getPersistence().findByG_UT(groupId, urlTitle, start, end);
547 }
548
549 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_UT(
550 long groupId, java.lang.String urlTitle, int start, int end,
551 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
552 throws com.liferay.portal.SystemException {
553 return getPersistence()
554 .findByG_UT(groupId, urlTitle, start, end, orderByComparator);
555 }
556
557 public static com.liferay.portlet.journal.model.JournalArticle findByG_UT_First(
558 long groupId, java.lang.String urlTitle,
559 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
560 throws com.liferay.portal.SystemException,
561 com.liferay.portlet.journal.NoSuchArticleException {
562 return getPersistence()
563 .findByG_UT_First(groupId, urlTitle, orderByComparator);
564 }
565
566 public static com.liferay.portlet.journal.model.JournalArticle findByG_UT_Last(
567 long groupId, java.lang.String urlTitle,
568 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
569 throws com.liferay.portal.SystemException,
570 com.liferay.portlet.journal.NoSuchArticleException {
571 return getPersistence()
572 .findByG_UT_Last(groupId, urlTitle, orderByComparator);
573 }
574
575 public static com.liferay.portlet.journal.model.JournalArticle[] findByG_UT_PrevAndNext(
576 long id, long groupId, java.lang.String urlTitle,
577 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
578 throws com.liferay.portal.SystemException,
579 com.liferay.portlet.journal.NoSuchArticleException {
580 return getPersistence()
581 .findByG_UT_PrevAndNext(id, groupId, urlTitle,
582 orderByComparator);
583 }
584
585 public static com.liferay.portlet.journal.model.JournalArticle findByG_A_V(
586 long groupId, java.lang.String articleId, double version)
587 throws com.liferay.portal.SystemException,
588 com.liferay.portlet.journal.NoSuchArticleException {
589 return getPersistence().findByG_A_V(groupId, articleId, version);
590 }
591
592 public static com.liferay.portlet.journal.model.JournalArticle fetchByG_A_V(
593 long groupId, java.lang.String articleId, double version)
594 throws com.liferay.portal.SystemException {
595 return getPersistence().fetchByG_A_V(groupId, articleId, version);
596 }
597
598 public static com.liferay.portlet.journal.model.JournalArticle fetchByG_A_V(
599 long groupId, java.lang.String articleId, double version,
600 boolean retrieveFromCache) throws com.liferay.portal.SystemException {
601 return getPersistence()
602 .fetchByG_A_V(groupId, articleId, version, retrieveFromCache);
603 }
604
605 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A_A(
606 long groupId, java.lang.String articleId, boolean approved)
607 throws com.liferay.portal.SystemException {
608 return getPersistence().findByG_A_A(groupId, articleId, approved);
609 }
610
611 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A_A(
612 long groupId, java.lang.String articleId, boolean approved, int start,
613 int end) throws com.liferay.portal.SystemException {
614 return getPersistence()
615 .findByG_A_A(groupId, articleId, approved, start, end);
616 }
617
618 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A_A(
619 long groupId, java.lang.String articleId, boolean approved, int start,
620 int end,
621 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
622 throws com.liferay.portal.SystemException {
623 return getPersistence()
624 .findByG_A_A(groupId, articleId, approved, start, end,
625 orderByComparator);
626 }
627
628 public static com.liferay.portlet.journal.model.JournalArticle findByG_A_A_First(
629 long groupId, java.lang.String articleId, boolean approved,
630 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
631 throws com.liferay.portal.SystemException,
632 com.liferay.portlet.journal.NoSuchArticleException {
633 return getPersistence()
634 .findByG_A_A_First(groupId, articleId, approved,
635 orderByComparator);
636 }
637
638 public static com.liferay.portlet.journal.model.JournalArticle findByG_A_A_Last(
639 long groupId, java.lang.String articleId, boolean approved,
640 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
641 throws com.liferay.portal.SystemException,
642 com.liferay.portlet.journal.NoSuchArticleException {
643 return getPersistence()
644 .findByG_A_A_Last(groupId, articleId, approved,
645 orderByComparator);
646 }
647
648 public static com.liferay.portlet.journal.model.JournalArticle[] findByG_A_A_PrevAndNext(
649 long id, long groupId, java.lang.String articleId, boolean approved,
650 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
651 throws com.liferay.portal.SystemException,
652 com.liferay.portlet.journal.NoSuchArticleException {
653 return getPersistence()
654 .findByG_A_A_PrevAndNext(id, groupId, articleId, approved,
655 orderByComparator);
656 }
657
658 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_UT_A(
659 long groupId, java.lang.String urlTitle, boolean approved)
660 throws com.liferay.portal.SystemException {
661 return getPersistence().findByG_UT_A(groupId, urlTitle, approved);
662 }
663
664 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_UT_A(
665 long groupId, java.lang.String urlTitle, boolean approved, int start,
666 int end) throws com.liferay.portal.SystemException {
667 return getPersistence()
668 .findByG_UT_A(groupId, urlTitle, approved, start, end);
669 }
670
671 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_UT_A(
672 long groupId, java.lang.String urlTitle, boolean approved, int start,
673 int end,
674 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
675 throws com.liferay.portal.SystemException {
676 return getPersistence()
677 .findByG_UT_A(groupId, urlTitle, approved, start, end,
678 orderByComparator);
679 }
680
681 public static com.liferay.portlet.journal.model.JournalArticle findByG_UT_A_First(
682 long groupId, java.lang.String urlTitle, boolean approved,
683 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
684 throws com.liferay.portal.SystemException,
685 com.liferay.portlet.journal.NoSuchArticleException {
686 return getPersistence()
687 .findByG_UT_A_First(groupId, urlTitle, approved,
688 orderByComparator);
689 }
690
691 public static com.liferay.portlet.journal.model.JournalArticle findByG_UT_A_Last(
692 long groupId, java.lang.String urlTitle, boolean approved,
693 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
694 throws com.liferay.portal.SystemException,
695 com.liferay.portlet.journal.NoSuchArticleException {
696 return getPersistence()
697 .findByG_UT_A_Last(groupId, urlTitle, approved,
698 orderByComparator);
699 }
700
701 public static com.liferay.portlet.journal.model.JournalArticle[] findByG_UT_A_PrevAndNext(
702 long id, long groupId, java.lang.String urlTitle, boolean approved,
703 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
704 throws com.liferay.portal.SystemException,
705 com.liferay.portlet.journal.NoSuchArticleException {
706 return getPersistence()
707 .findByG_UT_A_PrevAndNext(id, groupId, urlTitle, approved,
708 orderByComparator);
709 }
710
711 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findAll()
712 throws com.liferay.portal.SystemException {
713 return getPersistence().findAll();
714 }
715
716 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findAll(
717 int start, int end) throws com.liferay.portal.SystemException {
718 return getPersistence().findAll(start, end);
719 }
720
721 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findAll(
722 int start, int end,
723 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
724 throws com.liferay.portal.SystemException {
725 return getPersistence().findAll(start, end, orderByComparator);
726 }
727
728 public static void removeByUuid(java.lang.String uuid)
729 throws com.liferay.portal.SystemException {
730 getPersistence().removeByUuid(uuid);
731 }
732
733 public static void removeByUUID_G(java.lang.String uuid, long groupId)
734 throws com.liferay.portal.SystemException,
735 com.liferay.portlet.journal.NoSuchArticleException {
736 getPersistence().removeByUUID_G(uuid, groupId);
737 }
738
739 public static void removeByGroupId(long groupId)
740 throws com.liferay.portal.SystemException {
741 getPersistence().removeByGroupId(groupId);
742 }
743
744 public static void removeByCompanyId(long companyId)
745 throws com.liferay.portal.SystemException {
746 getPersistence().removeByCompanyId(companyId);
747 }
748
749 public static void removeBySmallImageId(long smallImageId)
750 throws com.liferay.portal.SystemException {
751 getPersistence().removeBySmallImageId(smallImageId);
752 }
753
754 public static void removeByR_A(long resourcePrimKey, boolean approved)
755 throws com.liferay.portal.SystemException {
756 getPersistence().removeByR_A(resourcePrimKey, approved);
757 }
758
759 public static void removeByG_A(long groupId, java.lang.String articleId)
760 throws com.liferay.portal.SystemException {
761 getPersistence().removeByG_A(groupId, articleId);
762 }
763
764 public static void removeByG_S(long groupId, java.lang.String structureId)
765 throws com.liferay.portal.SystemException {
766 getPersistence().removeByG_S(groupId, structureId);
767 }
768
769 public static void removeByG_T(long groupId, java.lang.String templateId)
770 throws com.liferay.portal.SystemException {
771 getPersistence().removeByG_T(groupId, templateId);
772 }
773
774 public static void removeByG_UT(long groupId, java.lang.String urlTitle)
775 throws com.liferay.portal.SystemException {
776 getPersistence().removeByG_UT(groupId, urlTitle);
777 }
778
779 public static void removeByG_A_V(long groupId, java.lang.String articleId,
780 double version)
781 throws com.liferay.portal.SystemException,
782 com.liferay.portlet.journal.NoSuchArticleException {
783 getPersistence().removeByG_A_V(groupId, articleId, version);
784 }
785
786 public static void removeByG_A_A(long groupId, java.lang.String articleId,
787 boolean approved) throws com.liferay.portal.SystemException {
788 getPersistence().removeByG_A_A(groupId, articleId, approved);
789 }
790
791 public static void removeByG_UT_A(long groupId, java.lang.String urlTitle,
792 boolean approved) throws com.liferay.portal.SystemException {
793 getPersistence().removeByG_UT_A(groupId, urlTitle, approved);
794 }
795
796 public static void removeAll() throws com.liferay.portal.SystemException {
797 getPersistence().removeAll();
798 }
799
800 public static int countByUuid(java.lang.String uuid)
801 throws com.liferay.portal.SystemException {
802 return getPersistence().countByUuid(uuid);
803 }
804
805 public static int countByUUID_G(java.lang.String uuid, long groupId)
806 throws com.liferay.portal.SystemException {
807 return getPersistence().countByUUID_G(uuid, groupId);
808 }
809
810 public static int countByGroupId(long groupId)
811 throws com.liferay.portal.SystemException {
812 return getPersistence().countByGroupId(groupId);
813 }
814
815 public static int countByCompanyId(long companyId)
816 throws com.liferay.portal.SystemException {
817 return getPersistence().countByCompanyId(companyId);
818 }
819
820 public static int countBySmallImageId(long smallImageId)
821 throws com.liferay.portal.SystemException {
822 return getPersistence().countBySmallImageId(smallImageId);
823 }
824
825 public static int countByR_A(long resourcePrimKey, boolean approved)
826 throws com.liferay.portal.SystemException {
827 return getPersistence().countByR_A(resourcePrimKey, approved);
828 }
829
830 public static int countByG_A(long groupId, java.lang.String articleId)
831 throws com.liferay.portal.SystemException {
832 return getPersistence().countByG_A(groupId, articleId);
833 }
834
835 public static int countByG_S(long groupId, java.lang.String structureId)
836 throws com.liferay.portal.SystemException {
837 return getPersistence().countByG_S(groupId, structureId);
838 }
839
840 public static int countByG_T(long groupId, java.lang.String templateId)
841 throws com.liferay.portal.SystemException {
842 return getPersistence().countByG_T(groupId, templateId);
843 }
844
845 public static int countByG_UT(long groupId, java.lang.String urlTitle)
846 throws com.liferay.portal.SystemException {
847 return getPersistence().countByG_UT(groupId, urlTitle);
848 }
849
850 public static int countByG_A_V(long groupId, java.lang.String articleId,
851 double version) throws com.liferay.portal.SystemException {
852 return getPersistence().countByG_A_V(groupId, articleId, version);
853 }
854
855 public static int countByG_A_A(long groupId, java.lang.String articleId,
856 boolean approved) throws com.liferay.portal.SystemException {
857 return getPersistence().countByG_A_A(groupId, articleId, approved);
858 }
859
860 public static int countByG_UT_A(long groupId, java.lang.String urlTitle,
861 boolean approved) throws com.liferay.portal.SystemException {
862 return getPersistence().countByG_UT_A(groupId, urlTitle, approved);
863 }
864
865 public static int countAll() throws com.liferay.portal.SystemException {
866 return getPersistence().countAll();
867 }
868
869 public static JournalArticlePersistence getPersistence() {
870 if (_persistence == null) {
871 _persistence = (JournalArticlePersistence)PortalBeanLocatorUtil.locate(JournalArticlePersistence.class.getName());
872
873 ReferenceRegistry.registerReference(JournalArticleUtil.class,
874 "_persistence");
875 }
876
877 return _persistence;
878 }
879
880 public void setPersistence(JournalArticlePersistence persistence) {
881 _persistence = persistence;
882
883 ReferenceRegistry.registerReference(JournalArticleUtil.class,
884 "_persistence");
885 }
886
887 private static JournalArticlePersistence _persistence;
888 }