1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.journal.service.persistence;
21  
22  /**
23   * <a href="JournalArticleUtil.java.html"><b><i>View Source</i></b></a>
24   *
25   * @author Brian Wing Shun Chan
26   *
27   */
28  public class JournalArticleUtil {
29      public static com.liferay.portlet.journal.model.JournalArticle create(
30          long id) {
31          return getPersistence().create(id);
32      }
33  
34      public static com.liferay.portlet.journal.model.JournalArticle remove(
35          long id)
36          throws com.liferay.portal.SystemException,
37              com.liferay.portlet.journal.NoSuchArticleException {
38          return getPersistence().remove(id);
39      }
40  
41      public static com.liferay.portlet.journal.model.JournalArticle remove(
42          com.liferay.portlet.journal.model.JournalArticle journalArticle)
43          throws com.liferay.portal.SystemException {
44          return getPersistence().remove(journalArticle);
45      }
46  
47      /**
48       * @deprecated Use <code>update(JournalArticle journalArticle, boolean merge)</code>.
49       */
50      public static com.liferay.portlet.journal.model.JournalArticle update(
51          com.liferay.portlet.journal.model.JournalArticle journalArticle)
52          throws com.liferay.portal.SystemException {
53          return getPersistence().update(journalArticle);
54      }
55  
56      /**
57       * Add, update, or merge, the entity. This method also calls the model
58       * listeners to trigger the proper events associated with adding, deleting,
59       * or updating an entity.
60       *
61       * @param        journalArticle the entity to add, update, or merge
62       * @param        merge boolean value for whether to merge the entity. The
63       *                default value is false. Setting merge to true is more
64       *                expensive and should only be true when journalArticle is
65       *                transient. See LEP-5473 for a detailed discussion of this
66       *                method.
67       * @return        true if the portlet can be displayed via Ajax
68       */
69      public static com.liferay.portlet.journal.model.JournalArticle update(
70          com.liferay.portlet.journal.model.JournalArticle journalArticle,
71          boolean merge) throws com.liferay.portal.SystemException {
72          return getPersistence().update(journalArticle, merge);
73      }
74  
75      public static com.liferay.portlet.journal.model.JournalArticle updateImpl(
76          com.liferay.portlet.journal.model.JournalArticle journalArticle,
77          boolean merge) throws com.liferay.portal.SystemException {
78          return getPersistence().updateImpl(journalArticle, merge);
79      }
80  
81      public static com.liferay.portlet.journal.model.JournalArticle findByPrimaryKey(
82          long id)
83          throws com.liferay.portal.SystemException,
84              com.liferay.portlet.journal.NoSuchArticleException {
85          return getPersistence().findByPrimaryKey(id);
86      }
87  
88      public static com.liferay.portlet.journal.model.JournalArticle fetchByPrimaryKey(
89          long id) throws com.liferay.portal.SystemException {
90          return getPersistence().fetchByPrimaryKey(id);
91      }
92  
93      public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByUuid(
94          java.lang.String uuid) throws com.liferay.portal.SystemException {
95          return getPersistence().findByUuid(uuid);
96      }
97  
98      public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByUuid(
99          java.lang.String uuid, int start, int end)
100         throws com.liferay.portal.SystemException {
101         return getPersistence().findByUuid(uuid, start, end);
102     }
103 
104     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByUuid(
105         java.lang.String uuid, int start, int end,
106         com.liferay.portal.kernel.util.OrderByComparator obc)
107         throws com.liferay.portal.SystemException {
108         return getPersistence().findByUuid(uuid, start, end, obc);
109     }
110 
111     public static com.liferay.portlet.journal.model.JournalArticle findByUuid_First(
112         java.lang.String uuid,
113         com.liferay.portal.kernel.util.OrderByComparator obc)
114         throws com.liferay.portal.SystemException,
115             com.liferay.portlet.journal.NoSuchArticleException {
116         return getPersistence().findByUuid_First(uuid, obc);
117     }
118 
119     public static com.liferay.portlet.journal.model.JournalArticle findByUuid_Last(
120         java.lang.String uuid,
121         com.liferay.portal.kernel.util.OrderByComparator obc)
122         throws com.liferay.portal.SystemException,
123             com.liferay.portlet.journal.NoSuchArticleException {
124         return getPersistence().findByUuid_Last(uuid, obc);
125     }
126 
127     public static com.liferay.portlet.journal.model.JournalArticle[] findByUuid_PrevAndNext(
128         long id, java.lang.String uuid,
129         com.liferay.portal.kernel.util.OrderByComparator obc)
130         throws com.liferay.portal.SystemException,
131             com.liferay.portlet.journal.NoSuchArticleException {
132         return getPersistence().findByUuid_PrevAndNext(id, uuid, obc);
133     }
134 
135     public static com.liferay.portlet.journal.model.JournalArticle findByUUID_G(
136         java.lang.String uuid, long groupId)
137         throws com.liferay.portal.SystemException,
138             com.liferay.portlet.journal.NoSuchArticleException {
139         return getPersistence().findByUUID_G(uuid, groupId);
140     }
141 
142     public static com.liferay.portlet.journal.model.JournalArticle fetchByUUID_G(
143         java.lang.String uuid, long groupId)
144         throws com.liferay.portal.SystemException {
145         return getPersistence().fetchByUUID_G(uuid, groupId);
146     }
147 
148     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByGroupId(
149         long groupId) throws com.liferay.portal.SystemException {
150         return getPersistence().findByGroupId(groupId);
151     }
152 
153     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByGroupId(
154         long groupId, int start, int end)
155         throws com.liferay.portal.SystemException {
156         return getPersistence().findByGroupId(groupId, start, end);
157     }
158 
159     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByGroupId(
160         long groupId, int start, int end,
161         com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.SystemException {
163         return getPersistence().findByGroupId(groupId, start, end, obc);
164     }
165 
166     public static com.liferay.portlet.journal.model.JournalArticle findByGroupId_First(
167         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
168         throws com.liferay.portal.SystemException,
169             com.liferay.portlet.journal.NoSuchArticleException {
170         return getPersistence().findByGroupId_First(groupId, obc);
171     }
172 
173     public static com.liferay.portlet.journal.model.JournalArticle findByGroupId_Last(
174         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
175         throws com.liferay.portal.SystemException,
176             com.liferay.portlet.journal.NoSuchArticleException {
177         return getPersistence().findByGroupId_Last(groupId, obc);
178     }
179 
180     public static com.liferay.portlet.journal.model.JournalArticle[] findByGroupId_PrevAndNext(
181         long id, long groupId,
182         com.liferay.portal.kernel.util.OrderByComparator obc)
183         throws com.liferay.portal.SystemException,
184             com.liferay.portlet.journal.NoSuchArticleException {
185         return getPersistence().findByGroupId_PrevAndNext(id, groupId, obc);
186     }
187 
188     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByCompanyId(
189         long companyId) throws com.liferay.portal.SystemException {
190         return getPersistence().findByCompanyId(companyId);
191     }
192 
193     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByCompanyId(
194         long companyId, int start, int end)
195         throws com.liferay.portal.SystemException {
196         return getPersistence().findByCompanyId(companyId, start, end);
197     }
198 
199     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByCompanyId(
200         long companyId, int start, int end,
201         com.liferay.portal.kernel.util.OrderByComparator obc)
202         throws com.liferay.portal.SystemException {
203         return getPersistence().findByCompanyId(companyId, start, end, obc);
204     }
205 
206     public static com.liferay.portlet.journal.model.JournalArticle findByCompanyId_First(
207         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
208         throws com.liferay.portal.SystemException,
209             com.liferay.portlet.journal.NoSuchArticleException {
210         return getPersistence().findByCompanyId_First(companyId, obc);
211     }
212 
213     public static com.liferay.portlet.journal.model.JournalArticle findByCompanyId_Last(
214         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
215         throws com.liferay.portal.SystemException,
216             com.liferay.portlet.journal.NoSuchArticleException {
217         return getPersistence().findByCompanyId_Last(companyId, obc);
218     }
219 
220     public static com.liferay.portlet.journal.model.JournalArticle[] findByCompanyId_PrevAndNext(
221         long id, long companyId,
222         com.liferay.portal.kernel.util.OrderByComparator obc)
223         throws com.liferay.portal.SystemException,
224             com.liferay.portlet.journal.NoSuchArticleException {
225         return getPersistence().findByCompanyId_PrevAndNext(id, companyId, obc);
226     }
227 
228     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findBySmallImageId(
229         long smallImageId) throws com.liferay.portal.SystemException {
230         return getPersistence().findBySmallImageId(smallImageId);
231     }
232 
233     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findBySmallImageId(
234         long smallImageId, int start, int end)
235         throws com.liferay.portal.SystemException {
236         return getPersistence().findBySmallImageId(smallImageId, start, end);
237     }
238 
239     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findBySmallImageId(
240         long smallImageId, int start, int end,
241         com.liferay.portal.kernel.util.OrderByComparator obc)
242         throws com.liferay.portal.SystemException {
243         return getPersistence().findBySmallImageId(smallImageId, start, end, obc);
244     }
245 
246     public static com.liferay.portlet.journal.model.JournalArticle findBySmallImageId_First(
247         long smallImageId, com.liferay.portal.kernel.util.OrderByComparator obc)
248         throws com.liferay.portal.SystemException,
249             com.liferay.portlet.journal.NoSuchArticleException {
250         return getPersistence().findBySmallImageId_First(smallImageId, obc);
251     }
252 
253     public static com.liferay.portlet.journal.model.JournalArticle findBySmallImageId_Last(
254         long smallImageId, com.liferay.portal.kernel.util.OrderByComparator obc)
255         throws com.liferay.portal.SystemException,
256             com.liferay.portlet.journal.NoSuchArticleException {
257         return getPersistence().findBySmallImageId_Last(smallImageId, obc);
258     }
259 
260     public static com.liferay.portlet.journal.model.JournalArticle[] findBySmallImageId_PrevAndNext(
261         long id, long smallImageId,
262         com.liferay.portal.kernel.util.OrderByComparator obc)
263         throws com.liferay.portal.SystemException,
264             com.liferay.portlet.journal.NoSuchArticleException {
265         return getPersistence()
266                    .findBySmallImageId_PrevAndNext(id, smallImageId, obc);
267     }
268 
269     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A(
270         long groupId, java.lang.String articleId)
271         throws com.liferay.portal.SystemException {
272         return getPersistence().findByG_A(groupId, articleId);
273     }
274 
275     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A(
276         long groupId, java.lang.String articleId, int start, int end)
277         throws com.liferay.portal.SystemException {
278         return getPersistence().findByG_A(groupId, articleId, start, end);
279     }
280 
281     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A(
282         long groupId, java.lang.String articleId, int start, int end,
283         com.liferay.portal.kernel.util.OrderByComparator obc)
284         throws com.liferay.portal.SystemException {
285         return getPersistence().findByG_A(groupId, articleId, start, end, obc);
286     }
287 
288     public static com.liferay.portlet.journal.model.JournalArticle findByG_A_First(
289         long groupId, java.lang.String articleId,
290         com.liferay.portal.kernel.util.OrderByComparator obc)
291         throws com.liferay.portal.SystemException,
292             com.liferay.portlet.journal.NoSuchArticleException {
293         return getPersistence().findByG_A_First(groupId, articleId, obc);
294     }
295 
296     public static com.liferay.portlet.journal.model.JournalArticle findByG_A_Last(
297         long groupId, java.lang.String articleId,
298         com.liferay.portal.kernel.util.OrderByComparator obc)
299         throws com.liferay.portal.SystemException,
300             com.liferay.portlet.journal.NoSuchArticleException {
301         return getPersistence().findByG_A_Last(groupId, articleId, obc);
302     }
303 
304     public static com.liferay.portlet.journal.model.JournalArticle[] findByG_A_PrevAndNext(
305         long id, long groupId, java.lang.String articleId,
306         com.liferay.portal.kernel.util.OrderByComparator obc)
307         throws com.liferay.portal.SystemException,
308             com.liferay.portlet.journal.NoSuchArticleException {
309         return getPersistence()
310                    .findByG_A_PrevAndNext(id, groupId, articleId, obc);
311     }
312 
313     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_S(
314         long groupId, java.lang.String structureId)
315         throws com.liferay.portal.SystemException {
316         return getPersistence().findByG_S(groupId, structureId);
317     }
318 
319     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_S(
320         long groupId, java.lang.String structureId, int start, int end)
321         throws com.liferay.portal.SystemException {
322         return getPersistence().findByG_S(groupId, structureId, start, end);
323     }
324 
325     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_S(
326         long groupId, java.lang.String structureId, int start, int end,
327         com.liferay.portal.kernel.util.OrderByComparator obc)
328         throws com.liferay.portal.SystemException {
329         return getPersistence().findByG_S(groupId, structureId, start, 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, obc);
338     }
339 
340     public static com.liferay.portlet.journal.model.JournalArticle findByG_S_Last(
341         long groupId, java.lang.String structureId,
342         com.liferay.portal.kernel.util.OrderByComparator obc)
343         throws com.liferay.portal.SystemException,
344             com.liferay.portlet.journal.NoSuchArticleException {
345         return getPersistence().findByG_S_Last(groupId, structureId, obc);
346     }
347 
348     public static com.liferay.portlet.journal.model.JournalArticle[] findByG_S_PrevAndNext(
349         long id, long groupId, java.lang.String structureId,
350         com.liferay.portal.kernel.util.OrderByComparator obc)
351         throws com.liferay.portal.SystemException,
352             com.liferay.portlet.journal.NoSuchArticleException {
353         return getPersistence()
354                    .findByG_S_PrevAndNext(id, groupId, structureId, obc);
355     }
356 
357     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_T(
358         long groupId, java.lang.String templateId)
359         throws com.liferay.portal.SystemException {
360         return getPersistence().findByG_T(groupId, templateId);
361     }
362 
363     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_T(
364         long groupId, java.lang.String templateId, int start, int end)
365         throws com.liferay.portal.SystemException {
366         return getPersistence().findByG_T(groupId, templateId, start, end);
367     }
368 
369     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_T(
370         long groupId, java.lang.String templateId, int start, int end,
371         com.liferay.portal.kernel.util.OrderByComparator obc)
372         throws com.liferay.portal.SystemException {
373         return getPersistence().findByG_T(groupId, templateId, start, end, obc);
374     }
375 
376     public static com.liferay.portlet.journal.model.JournalArticle findByG_T_First(
377         long groupId, java.lang.String templateId,
378         com.liferay.portal.kernel.util.OrderByComparator obc)
379         throws com.liferay.portal.SystemException,
380             com.liferay.portlet.journal.NoSuchArticleException {
381         return getPersistence().findByG_T_First(groupId, templateId, obc);
382     }
383 
384     public static com.liferay.portlet.journal.model.JournalArticle findByG_T_Last(
385         long groupId, java.lang.String templateId,
386         com.liferay.portal.kernel.util.OrderByComparator obc)
387         throws com.liferay.portal.SystemException,
388             com.liferay.portlet.journal.NoSuchArticleException {
389         return getPersistence().findByG_T_Last(groupId, templateId, obc);
390     }
391 
392     public static com.liferay.portlet.journal.model.JournalArticle[] findByG_T_PrevAndNext(
393         long id, long groupId, java.lang.String templateId,
394         com.liferay.portal.kernel.util.OrderByComparator obc)
395         throws com.liferay.portal.SystemException,
396             com.liferay.portlet.journal.NoSuchArticleException {
397         return getPersistence()
398                    .findByG_T_PrevAndNext(id, groupId, templateId, obc);
399     }
400 
401     public static com.liferay.portlet.journal.model.JournalArticle findByG_A_V(
402         long groupId, java.lang.String articleId, double version)
403         throws com.liferay.portal.SystemException,
404             com.liferay.portlet.journal.NoSuchArticleException {
405         return getPersistence().findByG_A_V(groupId, articleId, version);
406     }
407 
408     public static com.liferay.portlet.journal.model.JournalArticle fetchByG_A_V(
409         long groupId, java.lang.String articleId, double version)
410         throws com.liferay.portal.SystemException {
411         return getPersistence().fetchByG_A_V(groupId, articleId, version);
412     }
413 
414     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A_A(
415         long groupId, java.lang.String articleId, boolean approved)
416         throws com.liferay.portal.SystemException {
417         return getPersistence().findByG_A_A(groupId, articleId, approved);
418     }
419 
420     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A_A(
421         long groupId, java.lang.String articleId, boolean approved, int start,
422         int end) throws com.liferay.portal.SystemException {
423         return getPersistence()
424                    .findByG_A_A(groupId, articleId, approved, start, end);
425     }
426 
427     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A_A(
428         long groupId, java.lang.String articleId, boolean approved, int start,
429         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
430         throws com.liferay.portal.SystemException {
431         return getPersistence()
432                    .findByG_A_A(groupId, articleId, approved, start, end, obc);
433     }
434 
435     public static com.liferay.portlet.journal.model.JournalArticle findByG_A_A_First(
436         long groupId, java.lang.String articleId, boolean approved,
437         com.liferay.portal.kernel.util.OrderByComparator obc)
438         throws com.liferay.portal.SystemException,
439             com.liferay.portlet.journal.NoSuchArticleException {
440         return getPersistence()
441                    .findByG_A_A_First(groupId, articleId, approved, obc);
442     }
443 
444     public static com.liferay.portlet.journal.model.JournalArticle findByG_A_A_Last(
445         long groupId, java.lang.String articleId, boolean approved,
446         com.liferay.portal.kernel.util.OrderByComparator obc)
447         throws com.liferay.portal.SystemException,
448             com.liferay.portlet.journal.NoSuchArticleException {
449         return getPersistence()
450                    .findByG_A_A_Last(groupId, articleId, approved, obc);
451     }
452 
453     public static com.liferay.portlet.journal.model.JournalArticle[] findByG_A_A_PrevAndNext(
454         long id, long groupId, java.lang.String articleId, boolean approved,
455         com.liferay.portal.kernel.util.OrderByComparator obc)
456         throws com.liferay.portal.SystemException,
457             com.liferay.portlet.journal.NoSuchArticleException {
458         return getPersistence()
459                    .findByG_A_A_PrevAndNext(id, groupId, articleId, approved,
460             obc);
461     }
462 
463     public static java.util.List<Object> findWithDynamicQuery(
464         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
465         throws com.liferay.portal.SystemException {
466         return getPersistence().findWithDynamicQuery(dynamicQuery);
467     }
468 
469     public static java.util.List<Object> findWithDynamicQuery(
470         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
471         int end) throws com.liferay.portal.SystemException {
472         return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
473     }
474 
475     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findAll()
476         throws com.liferay.portal.SystemException {
477         return getPersistence().findAll();
478     }
479 
480     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findAll(
481         int start, int end) throws com.liferay.portal.SystemException {
482         return getPersistence().findAll(start, end);
483     }
484 
485     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findAll(
486         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
487         throws com.liferay.portal.SystemException {
488         return getPersistence().findAll(start, end, obc);
489     }
490 
491     public static void removeByUuid(java.lang.String uuid)
492         throws com.liferay.portal.SystemException {
493         getPersistence().removeByUuid(uuid);
494     }
495 
496     public static void removeByUUID_G(java.lang.String uuid, long groupId)
497         throws com.liferay.portal.SystemException,
498             com.liferay.portlet.journal.NoSuchArticleException {
499         getPersistence().removeByUUID_G(uuid, groupId);
500     }
501 
502     public static void removeByGroupId(long groupId)
503         throws com.liferay.portal.SystemException {
504         getPersistence().removeByGroupId(groupId);
505     }
506 
507     public static void removeByCompanyId(long companyId)
508         throws com.liferay.portal.SystemException {
509         getPersistence().removeByCompanyId(companyId);
510     }
511 
512     public static void removeBySmallImageId(long smallImageId)
513         throws com.liferay.portal.SystemException {
514         getPersistence().removeBySmallImageId(smallImageId);
515     }
516 
517     public static void removeByG_A(long groupId, java.lang.String articleId)
518         throws com.liferay.portal.SystemException {
519         getPersistence().removeByG_A(groupId, articleId);
520     }
521 
522     public static void removeByG_S(long groupId, java.lang.String structureId)
523         throws com.liferay.portal.SystemException {
524         getPersistence().removeByG_S(groupId, structureId);
525     }
526 
527     public static void removeByG_T(long groupId, java.lang.String templateId)
528         throws com.liferay.portal.SystemException {
529         getPersistence().removeByG_T(groupId, templateId);
530     }
531 
532     public static void removeByG_A_V(long groupId, java.lang.String articleId,
533         double version)
534         throws com.liferay.portal.SystemException,
535             com.liferay.portlet.journal.NoSuchArticleException {
536         getPersistence().removeByG_A_V(groupId, articleId, version);
537     }
538 
539     public static void removeByG_A_A(long groupId, java.lang.String articleId,
540         boolean approved) throws com.liferay.portal.SystemException {
541         getPersistence().removeByG_A_A(groupId, articleId, approved);
542     }
543 
544     public static void removeAll() throws com.liferay.portal.SystemException {
545         getPersistence().removeAll();
546     }
547 
548     public static int countByUuid(java.lang.String uuid)
549         throws com.liferay.portal.SystemException {
550         return getPersistence().countByUuid(uuid);
551     }
552 
553     public static int countByUUID_G(java.lang.String uuid, long groupId)
554         throws com.liferay.portal.SystemException {
555         return getPersistence().countByUUID_G(uuid, groupId);
556     }
557 
558     public static int countByGroupId(long groupId)
559         throws com.liferay.portal.SystemException {
560         return getPersistence().countByGroupId(groupId);
561     }
562 
563     public static int countByCompanyId(long companyId)
564         throws com.liferay.portal.SystemException {
565         return getPersistence().countByCompanyId(companyId);
566     }
567 
568     public static int countBySmallImageId(long smallImageId)
569         throws com.liferay.portal.SystemException {
570         return getPersistence().countBySmallImageId(smallImageId);
571     }
572 
573     public static int countByG_A(long groupId, java.lang.String articleId)
574         throws com.liferay.portal.SystemException {
575         return getPersistence().countByG_A(groupId, articleId);
576     }
577 
578     public static int countByG_S(long groupId, java.lang.String structureId)
579         throws com.liferay.portal.SystemException {
580         return getPersistence().countByG_S(groupId, structureId);
581     }
582 
583     public static int countByG_T(long groupId, java.lang.String templateId)
584         throws com.liferay.portal.SystemException {
585         return getPersistence().countByG_T(groupId, templateId);
586     }
587 
588     public static int countByG_A_V(long groupId, java.lang.String articleId,
589         double version) throws com.liferay.portal.SystemException {
590         return getPersistence().countByG_A_V(groupId, articleId, version);
591     }
592 
593     public static int countByG_A_A(long groupId, java.lang.String articleId,
594         boolean approved) throws com.liferay.portal.SystemException {
595         return getPersistence().countByG_A_A(groupId, articleId, approved);
596     }
597 
598     public static int countAll() throws com.liferay.portal.SystemException {
599         return getPersistence().countAll();
600     }
601 
602     public static JournalArticlePersistence getPersistence() {
603         return _persistence;
604     }
605 
606     public void setPersistence(JournalArticlePersistence persistence) {
607         _persistence = persistence;
608     }
609 
610     private static JournalArticlePersistence _persistence;
611 }