001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.journal.service.persistence;
022:
023: /**
024: * <a href="JournalArticleUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class JournalArticleUtil {
030: public static com.liferay.portlet.journal.model.JournalArticle create(
031: long id) {
032: return getPersistence().create(id);
033: }
034:
035: public static com.liferay.portlet.journal.model.JournalArticle remove(
036: long id) throws com.liferay.portal.SystemException,
037: com.liferay.portlet.journal.NoSuchArticleException {
038: return getPersistence().remove(id);
039: }
040:
041: public static com.liferay.portlet.journal.model.JournalArticle remove(
042: com.liferay.portlet.journal.model.JournalArticle journalArticle)
043: throws com.liferay.portal.SystemException {
044: return getPersistence().remove(journalArticle);
045: }
046:
047: public static com.liferay.portlet.journal.model.JournalArticle update(
048: com.liferay.portlet.journal.model.JournalArticle journalArticle)
049: throws com.liferay.portal.SystemException {
050: return getPersistence().update(journalArticle);
051: }
052:
053: public static com.liferay.portlet.journal.model.JournalArticle update(
054: com.liferay.portlet.journal.model.JournalArticle journalArticle,
055: boolean merge) throws com.liferay.portal.SystemException {
056: return getPersistence().update(journalArticle, merge);
057: }
058:
059: public static com.liferay.portlet.journal.model.JournalArticle updateImpl(
060: com.liferay.portlet.journal.model.JournalArticle journalArticle,
061: boolean merge) throws com.liferay.portal.SystemException {
062: return getPersistence().updateImpl(journalArticle, merge);
063: }
064:
065: public static com.liferay.portlet.journal.model.JournalArticle findByPrimaryKey(
066: long id) throws com.liferay.portal.SystemException,
067: com.liferay.portlet.journal.NoSuchArticleException {
068: return getPersistence().findByPrimaryKey(id);
069: }
070:
071: public static com.liferay.portlet.journal.model.JournalArticle fetchByPrimaryKey(
072: long id) throws com.liferay.portal.SystemException {
073: return getPersistence().fetchByPrimaryKey(id);
074: }
075:
076: public static java.util.List findByUuid(java.lang.String uuid)
077: throws com.liferay.portal.SystemException {
078: return getPersistence().findByUuid(uuid);
079: }
080:
081: public static java.util.List findByUuid(java.lang.String uuid,
082: int begin, int end)
083: throws com.liferay.portal.SystemException {
084: return getPersistence().findByUuid(uuid, begin, end);
085: }
086:
087: public static java.util.List findByUuid(java.lang.String uuid,
088: int begin, int end,
089: com.liferay.portal.kernel.util.OrderByComparator obc)
090: throws com.liferay.portal.SystemException {
091: return getPersistence().findByUuid(uuid, begin, end, obc);
092: }
093:
094: public static com.liferay.portlet.journal.model.JournalArticle findByUuid_First(
095: java.lang.String uuid,
096: com.liferay.portal.kernel.util.OrderByComparator obc)
097: throws com.liferay.portal.SystemException,
098: com.liferay.portlet.journal.NoSuchArticleException {
099: return getPersistence().findByUuid_First(uuid, obc);
100: }
101:
102: public static com.liferay.portlet.journal.model.JournalArticle findByUuid_Last(
103: java.lang.String uuid,
104: com.liferay.portal.kernel.util.OrderByComparator obc)
105: throws com.liferay.portal.SystemException,
106: com.liferay.portlet.journal.NoSuchArticleException {
107: return getPersistence().findByUuid_Last(uuid, obc);
108: }
109:
110: public static com.liferay.portlet.journal.model.JournalArticle[] findByUuid_PrevAndNext(
111: long id, java.lang.String uuid,
112: com.liferay.portal.kernel.util.OrderByComparator obc)
113: throws com.liferay.portal.SystemException,
114: com.liferay.portlet.journal.NoSuchArticleException {
115: return getPersistence().findByUuid_PrevAndNext(id, uuid, obc);
116: }
117:
118: public static com.liferay.portlet.journal.model.JournalArticle findByUUID_G(
119: java.lang.String uuid, long groupId)
120: throws com.liferay.portal.SystemException,
121: com.liferay.portlet.journal.NoSuchArticleException {
122: return getPersistence().findByUUID_G(uuid, groupId);
123: }
124:
125: public static com.liferay.portlet.journal.model.JournalArticle fetchByUUID_G(
126: java.lang.String uuid, long groupId)
127: throws com.liferay.portal.SystemException {
128: return getPersistence().fetchByUUID_G(uuid, groupId);
129: }
130:
131: public static java.util.List findByGroupId(long groupId)
132: throws com.liferay.portal.SystemException {
133: return getPersistence().findByGroupId(groupId);
134: }
135:
136: public static java.util.List findByGroupId(long groupId, int begin,
137: int end) throws com.liferay.portal.SystemException {
138: return getPersistence().findByGroupId(groupId, begin, end);
139: }
140:
141: public static java.util.List findByGroupId(long groupId, int begin,
142: int end,
143: com.liferay.portal.kernel.util.OrderByComparator obc)
144: throws com.liferay.portal.SystemException {
145: return getPersistence().findByGroupId(groupId, begin, end, obc);
146: }
147:
148: public static com.liferay.portlet.journal.model.JournalArticle findByGroupId_First(
149: long groupId,
150: com.liferay.portal.kernel.util.OrderByComparator obc)
151: throws com.liferay.portal.SystemException,
152: com.liferay.portlet.journal.NoSuchArticleException {
153: return getPersistence().findByGroupId_First(groupId, obc);
154: }
155:
156: public static com.liferay.portlet.journal.model.JournalArticle findByGroupId_Last(
157: long groupId,
158: com.liferay.portal.kernel.util.OrderByComparator obc)
159: throws com.liferay.portal.SystemException,
160: com.liferay.portlet.journal.NoSuchArticleException {
161: return getPersistence().findByGroupId_Last(groupId, obc);
162: }
163:
164: public static com.liferay.portlet.journal.model.JournalArticle[] findByGroupId_PrevAndNext(
165: long id, long groupId,
166: com.liferay.portal.kernel.util.OrderByComparator obc)
167: throws com.liferay.portal.SystemException,
168: com.liferay.portlet.journal.NoSuchArticleException {
169: return getPersistence().findByGroupId_PrevAndNext(id, groupId,
170: obc);
171: }
172:
173: public static java.util.List findByCompanyId(long companyId)
174: throws com.liferay.portal.SystemException {
175: return getPersistence().findByCompanyId(companyId);
176: }
177:
178: public static java.util.List findByCompanyId(long companyId,
179: int begin, int end)
180: throws com.liferay.portal.SystemException {
181: return getPersistence().findByCompanyId(companyId, begin, end);
182: }
183:
184: public static java.util.List findByCompanyId(long companyId,
185: int begin, int end,
186: com.liferay.portal.kernel.util.OrderByComparator obc)
187: throws com.liferay.portal.SystemException {
188: return getPersistence().findByCompanyId(companyId, begin, end,
189: obc);
190: }
191:
192: public static com.liferay.portlet.journal.model.JournalArticle findByCompanyId_First(
193: long companyId,
194: com.liferay.portal.kernel.util.OrderByComparator obc)
195: throws com.liferay.portal.SystemException,
196: com.liferay.portlet.journal.NoSuchArticleException {
197: return getPersistence().findByCompanyId_First(companyId, obc);
198: }
199:
200: public static com.liferay.portlet.journal.model.JournalArticle findByCompanyId_Last(
201: long companyId,
202: com.liferay.portal.kernel.util.OrderByComparator obc)
203: throws com.liferay.portal.SystemException,
204: com.liferay.portlet.journal.NoSuchArticleException {
205: return getPersistence().findByCompanyId_Last(companyId, obc);
206: }
207:
208: public static com.liferay.portlet.journal.model.JournalArticle[] findByCompanyId_PrevAndNext(
209: long id, long companyId,
210: com.liferay.portal.kernel.util.OrderByComparator obc)
211: throws com.liferay.portal.SystemException,
212: com.liferay.portlet.journal.NoSuchArticleException {
213: return getPersistence().findByCompanyId_PrevAndNext(id,
214: companyId, obc);
215: }
216:
217: public static java.util.List findBySmallImageId(long smallImageId)
218: throws com.liferay.portal.SystemException {
219: return getPersistence().findBySmallImageId(smallImageId);
220: }
221:
222: public static java.util.List findBySmallImageId(long smallImageId,
223: int begin, int end)
224: throws com.liferay.portal.SystemException {
225: return getPersistence().findBySmallImageId(smallImageId, begin,
226: end);
227: }
228:
229: public static java.util.List findBySmallImageId(long smallImageId,
230: int begin, int end,
231: com.liferay.portal.kernel.util.OrderByComparator obc)
232: throws com.liferay.portal.SystemException {
233: return getPersistence().findBySmallImageId(smallImageId, begin,
234: end, obc);
235: }
236:
237: public static com.liferay.portlet.journal.model.JournalArticle findBySmallImageId_First(
238: long smallImageId,
239: com.liferay.portal.kernel.util.OrderByComparator obc)
240: throws com.liferay.portal.SystemException,
241: com.liferay.portlet.journal.NoSuchArticleException {
242: return getPersistence().findBySmallImageId_First(smallImageId,
243: obc);
244: }
245:
246: public static com.liferay.portlet.journal.model.JournalArticle findBySmallImageId_Last(
247: long smallImageId,
248: com.liferay.portal.kernel.util.OrderByComparator obc)
249: throws com.liferay.portal.SystemException,
250: com.liferay.portlet.journal.NoSuchArticleException {
251: return getPersistence().findBySmallImageId_Last(smallImageId,
252: obc);
253: }
254:
255: public static com.liferay.portlet.journal.model.JournalArticle[] findBySmallImageId_PrevAndNext(
256: long id, long smallImageId,
257: com.liferay.portal.kernel.util.OrderByComparator obc)
258: throws com.liferay.portal.SystemException,
259: com.liferay.portlet.journal.NoSuchArticleException {
260: return getPersistence().findBySmallImageId_PrevAndNext(id,
261: smallImageId, obc);
262: }
263:
264: public static java.util.List findByG_A(long groupId,
265: java.lang.String articleId)
266: throws com.liferay.portal.SystemException {
267: return getPersistence().findByG_A(groupId, articleId);
268: }
269:
270: public static java.util.List findByG_A(long groupId,
271: java.lang.String articleId, int begin, int end)
272: throws com.liferay.portal.SystemException {
273: return getPersistence().findByG_A(groupId, articleId, begin,
274: end);
275: }
276:
277: public static java.util.List findByG_A(long groupId,
278: java.lang.String articleId, int begin, int end,
279: com.liferay.portal.kernel.util.OrderByComparator obc)
280: throws com.liferay.portal.SystemException {
281: return getPersistence().findByG_A(groupId, articleId, begin,
282: end, obc);
283: }
284:
285: public static com.liferay.portlet.journal.model.JournalArticle findByG_A_First(
286: long groupId, java.lang.String articleId,
287: com.liferay.portal.kernel.util.OrderByComparator obc)
288: throws com.liferay.portal.SystemException,
289: com.liferay.portlet.journal.NoSuchArticleException {
290: return getPersistence()
291: .findByG_A_First(groupId, articleId, obc);
292: }
293:
294: public static com.liferay.portlet.journal.model.JournalArticle findByG_A_Last(
295: long groupId, java.lang.String articleId,
296: com.liferay.portal.kernel.util.OrderByComparator obc)
297: throws com.liferay.portal.SystemException,
298: com.liferay.portlet.journal.NoSuchArticleException {
299: return getPersistence().findByG_A_Last(groupId, articleId, obc);
300: }
301:
302: public static com.liferay.portlet.journal.model.JournalArticle[] findByG_A_PrevAndNext(
303: long id, long groupId, java.lang.String articleId,
304: com.liferay.portal.kernel.util.OrderByComparator obc)
305: throws com.liferay.portal.SystemException,
306: com.liferay.portlet.journal.NoSuchArticleException {
307: return getPersistence().findByG_A_PrevAndNext(id, groupId,
308: articleId, obc);
309: }
310:
311: public static java.util.List findByG_S(long groupId,
312: java.lang.String structureId)
313: throws com.liferay.portal.SystemException {
314: return getPersistence().findByG_S(groupId, structureId);
315: }
316:
317: public static java.util.List findByG_S(long groupId,
318: java.lang.String structureId, int begin, int end)
319: throws com.liferay.portal.SystemException {
320: return getPersistence().findByG_S(groupId, structureId, begin,
321: end);
322: }
323:
324: public static java.util.List findByG_S(long groupId,
325: java.lang.String structureId, int begin, int end,
326: com.liferay.portal.kernel.util.OrderByComparator obc)
327: throws com.liferay.portal.SystemException {
328: return getPersistence().findByG_S(groupId, structureId, begin,
329: end, obc);
330: }
331:
332: public static com.liferay.portlet.journal.model.JournalArticle findByG_S_First(
333: long groupId, java.lang.String structureId,
334: com.liferay.portal.kernel.util.OrderByComparator obc)
335: throws com.liferay.portal.SystemException,
336: com.liferay.portlet.journal.NoSuchArticleException {
337: return getPersistence().findByG_S_First(groupId, structureId,
338: obc);
339: }
340:
341: public static com.liferay.portlet.journal.model.JournalArticle findByG_S_Last(
342: long groupId, java.lang.String structureId,
343: com.liferay.portal.kernel.util.OrderByComparator obc)
344: throws com.liferay.portal.SystemException,
345: com.liferay.portlet.journal.NoSuchArticleException {
346: return getPersistence().findByG_S_Last(groupId, structureId,
347: obc);
348: }
349:
350: public static com.liferay.portlet.journal.model.JournalArticle[] findByG_S_PrevAndNext(
351: long id, long groupId, java.lang.String structureId,
352: com.liferay.portal.kernel.util.OrderByComparator obc)
353: throws com.liferay.portal.SystemException,
354: com.liferay.portlet.journal.NoSuchArticleException {
355: return getPersistence().findByG_S_PrevAndNext(id, groupId,
356: structureId, obc);
357: }
358:
359: public static java.util.List findByG_T(long groupId,
360: java.lang.String templateId)
361: throws com.liferay.portal.SystemException {
362: return getPersistence().findByG_T(groupId, templateId);
363: }
364:
365: public static java.util.List findByG_T(long groupId,
366: java.lang.String templateId, int begin, int end)
367: throws com.liferay.portal.SystemException {
368: return getPersistence().findByG_T(groupId, templateId, begin,
369: end);
370: }
371:
372: public static java.util.List findByG_T(long groupId,
373: 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,
377: end, obc);
378: }
379:
380: public static com.liferay.portlet.journal.model.JournalArticle findByG_T_First(
381: long groupId, java.lang.String templateId,
382: com.liferay.portal.kernel.util.OrderByComparator obc)
383: throws com.liferay.portal.SystemException,
384: com.liferay.portlet.journal.NoSuchArticleException {
385: return getPersistence().findByG_T_First(groupId, templateId,
386: obc);
387: }
388:
389: public static com.liferay.portlet.journal.model.JournalArticle findByG_T_Last(
390: long groupId, java.lang.String templateId,
391: com.liferay.portal.kernel.util.OrderByComparator obc)
392: throws com.liferay.portal.SystemException,
393: com.liferay.portlet.journal.NoSuchArticleException {
394: return getPersistence()
395: .findByG_T_Last(groupId, templateId, obc);
396: }
397:
398: public static com.liferay.portlet.journal.model.JournalArticle[] findByG_T_PrevAndNext(
399: long id, long groupId, java.lang.String templateId,
400: com.liferay.portal.kernel.util.OrderByComparator obc)
401: throws com.liferay.portal.SystemException,
402: com.liferay.portlet.journal.NoSuchArticleException {
403: return getPersistence().findByG_T_PrevAndNext(id, groupId,
404: templateId, obc);
405: }
406:
407: public static com.liferay.portlet.journal.model.JournalArticle findByG_A_V(
408: long groupId, java.lang.String articleId, double version)
409: throws com.liferay.portal.SystemException,
410: com.liferay.portlet.journal.NoSuchArticleException {
411: return getPersistence()
412: .findByG_A_V(groupId, articleId, version);
413: }
414:
415: public static com.liferay.portlet.journal.model.JournalArticle fetchByG_A_V(
416: long groupId, java.lang.String articleId, double version)
417: throws com.liferay.portal.SystemException {
418: return getPersistence().fetchByG_A_V(groupId, articleId,
419: version);
420: }
421:
422: public static java.util.List findByG_A_A(long groupId,
423: java.lang.String articleId, boolean approved)
424: throws com.liferay.portal.SystemException {
425: return getPersistence().findByG_A_A(groupId, articleId,
426: approved);
427: }
428:
429: public static java.util.List findByG_A_A(long groupId,
430: java.lang.String articleId, boolean approved, int begin,
431: int end) throws com.liferay.portal.SystemException {
432: return getPersistence().findByG_A_A(groupId, articleId,
433: approved, begin, end);
434: }
435:
436: public static java.util.List findByG_A_A(long groupId,
437: java.lang.String articleId, boolean approved, int begin,
438: int end,
439: com.liferay.portal.kernel.util.OrderByComparator obc)
440: throws com.liferay.portal.SystemException {
441: return getPersistence().findByG_A_A(groupId, articleId,
442: approved, begin, end, obc);
443: }
444:
445: public static com.liferay.portlet.journal.model.JournalArticle findByG_A_A_First(
446: long groupId, java.lang.String articleId, boolean approved,
447: com.liferay.portal.kernel.util.OrderByComparator obc)
448: throws com.liferay.portal.SystemException,
449: com.liferay.portlet.journal.NoSuchArticleException {
450: return getPersistence().findByG_A_A_First(groupId, articleId,
451: approved, obc);
452: }
453:
454: public static com.liferay.portlet.journal.model.JournalArticle findByG_A_A_Last(
455: long groupId, java.lang.String articleId, boolean approved,
456: com.liferay.portal.kernel.util.OrderByComparator obc)
457: throws com.liferay.portal.SystemException,
458: com.liferay.portlet.journal.NoSuchArticleException {
459: return getPersistence().findByG_A_A_Last(groupId, articleId,
460: approved, obc);
461: }
462:
463: public static com.liferay.portlet.journal.model.JournalArticle[] findByG_A_A_PrevAndNext(
464: long id, long groupId, java.lang.String articleId,
465: boolean approved,
466: com.liferay.portal.kernel.util.OrderByComparator obc)
467: throws com.liferay.portal.SystemException,
468: com.liferay.portlet.journal.NoSuchArticleException {
469: return getPersistence().findByG_A_A_PrevAndNext(id, groupId,
470: articleId, approved, obc);
471: }
472:
473: public static java.util.List findWithDynamicQuery(
474: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
475: throws com.liferay.portal.SystemException {
476: return getPersistence().findWithDynamicQuery(queryInitializer);
477: }
478:
479: public static java.util.List findWithDynamicQuery(
480: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
481: int begin, int end)
482: throws com.liferay.portal.SystemException {
483: return getPersistence().findWithDynamicQuery(queryInitializer,
484: begin, end);
485: }
486:
487: public static java.util.List findAll()
488: throws com.liferay.portal.SystemException {
489: return getPersistence().findAll();
490: }
491:
492: public static java.util.List findAll(int begin, int end)
493: throws com.liferay.portal.SystemException {
494: return getPersistence().findAll(begin, end);
495: }
496:
497: public static java.util.List findAll(int begin, int end,
498: com.liferay.portal.kernel.util.OrderByComparator obc)
499: throws com.liferay.portal.SystemException {
500: return getPersistence().findAll(begin, end, obc);
501: }
502:
503: public static void removeByUuid(java.lang.String uuid)
504: throws com.liferay.portal.SystemException {
505: getPersistence().removeByUuid(uuid);
506: }
507:
508: public static void removeByUUID_G(java.lang.String uuid,
509: long groupId) throws com.liferay.portal.SystemException,
510: com.liferay.portlet.journal.NoSuchArticleException {
511: getPersistence().removeByUUID_G(uuid, groupId);
512: }
513:
514: public static void removeByGroupId(long groupId)
515: throws com.liferay.portal.SystemException {
516: getPersistence().removeByGroupId(groupId);
517: }
518:
519: public static void removeByCompanyId(long companyId)
520: throws com.liferay.portal.SystemException {
521: getPersistence().removeByCompanyId(companyId);
522: }
523:
524: public static void removeBySmallImageId(long smallImageId)
525: throws com.liferay.portal.SystemException {
526: getPersistence().removeBySmallImageId(smallImageId);
527: }
528:
529: public static void removeByG_A(long groupId,
530: java.lang.String articleId)
531: throws com.liferay.portal.SystemException {
532: getPersistence().removeByG_A(groupId, articleId);
533: }
534:
535: public static void removeByG_S(long groupId,
536: java.lang.String structureId)
537: throws com.liferay.portal.SystemException {
538: getPersistence().removeByG_S(groupId, structureId);
539: }
540:
541: public static void removeByG_T(long groupId,
542: java.lang.String templateId)
543: throws com.liferay.portal.SystemException {
544: getPersistence().removeByG_T(groupId, templateId);
545: }
546:
547: public static void removeByG_A_V(long groupId,
548: java.lang.String articleId, double version)
549: throws com.liferay.portal.SystemException,
550: com.liferay.portlet.journal.NoSuchArticleException {
551: getPersistence().removeByG_A_V(groupId, articleId, version);
552: }
553:
554: public static void removeByG_A_A(long groupId,
555: java.lang.String articleId, boolean approved)
556: throws com.liferay.portal.SystemException {
557: getPersistence().removeByG_A_A(groupId, articleId, approved);
558: }
559:
560: public static void removeAll()
561: throws com.liferay.portal.SystemException {
562: getPersistence().removeAll();
563: }
564:
565: public static int countByUuid(java.lang.String uuid)
566: throws com.liferay.portal.SystemException {
567: return getPersistence().countByUuid(uuid);
568: }
569:
570: public static int countByUUID_G(java.lang.String uuid, long groupId)
571: throws com.liferay.portal.SystemException {
572: return getPersistence().countByUUID_G(uuid, groupId);
573: }
574:
575: public static int countByGroupId(long groupId)
576: throws com.liferay.portal.SystemException {
577: return getPersistence().countByGroupId(groupId);
578: }
579:
580: public static int countByCompanyId(long companyId)
581: throws com.liferay.portal.SystemException {
582: return getPersistence().countByCompanyId(companyId);
583: }
584:
585: public static int countBySmallImageId(long smallImageId)
586: throws com.liferay.portal.SystemException {
587: return getPersistence().countBySmallImageId(smallImageId);
588: }
589:
590: public static int countByG_A(long groupId,
591: java.lang.String articleId)
592: throws com.liferay.portal.SystemException {
593: return getPersistence().countByG_A(groupId, articleId);
594: }
595:
596: public static int countByG_S(long groupId,
597: java.lang.String structureId)
598: throws com.liferay.portal.SystemException {
599: return getPersistence().countByG_S(groupId, structureId);
600: }
601:
602: public static int countByG_T(long groupId,
603: java.lang.String templateId)
604: throws com.liferay.portal.SystemException {
605: return getPersistence().countByG_T(groupId, templateId);
606: }
607:
608: public static int countByG_A_V(long groupId,
609: java.lang.String articleId, double version)
610: throws com.liferay.portal.SystemException {
611: return getPersistence().countByG_A_V(groupId, articleId,
612: version);
613: }
614:
615: public static int countByG_A_A(long groupId,
616: java.lang.String articleId, boolean approved)
617: throws com.liferay.portal.SystemException {
618: return getPersistence().countByG_A_A(groupId, articleId,
619: approved);
620: }
621:
622: public static int countAll()
623: throws com.liferay.portal.SystemException {
624: return getPersistence().countAll();
625: }
626:
627: public static JournalArticlePersistence getPersistence() {
628: return _getUtil()._persistence;
629: }
630:
631: public void setPersistence(JournalArticlePersistence persistence) {
632: _persistence = persistence;
633: }
634:
635: private static JournalArticleUtil _getUtil() {
636: if (_util == null) {
637: _util = (JournalArticleUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
638: .locate(_UTIL);
639: }
640:
641: return _util;
642: }
643:
644: private static final String _UTIL = JournalArticleUtil.class
645: .getName();
646: private static JournalArticleUtil _util;
647: private JournalArticlePersistence _persistence;
648: }
|