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