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 void cacheResult(
30          com.liferay.portlet.journal.model.JournalArticle journalArticle) {
31          getPersistence().cacheResult(journalArticle);
32      }
33  
34      public static void cacheResult(
35          java.util.List<com.liferay.portlet.journal.model.JournalArticle> journalArticles) {
36          getPersistence().cacheResult(journalArticles);
37      }
38  
39      public static void clearCache() {
40          getPersistence().clearCache();
41      }
42  
43      public static com.liferay.portlet.journal.model.JournalArticle create(
44          long id) {
45          return getPersistence().create(id);
46      }
47  
48      public static com.liferay.portlet.journal.model.JournalArticle remove(
49          long id)
50          throws com.liferay.portal.SystemException,
51              com.liferay.portlet.journal.NoSuchArticleException {
52          return getPersistence().remove(id);
53      }
54  
55      public static com.liferay.portlet.journal.model.JournalArticle remove(
56          com.liferay.portlet.journal.model.JournalArticle journalArticle)
57          throws com.liferay.portal.SystemException {
58          return getPersistence().remove(journalArticle);
59      }
60  
61      /**
62       * @deprecated Use <code>update(JournalArticle journalArticle, boolean merge)</code>.
63       */
64      public static com.liferay.portlet.journal.model.JournalArticle update(
65          com.liferay.portlet.journal.model.JournalArticle journalArticle)
66          throws com.liferay.portal.SystemException {
67          return getPersistence().update(journalArticle);
68      }
69  
70      /**
71       * Add, update, or merge, the entity. This method also calls the model
72       * listeners to trigger the proper events associated with adding, deleting,
73       * or updating an entity.
74       *
75       * @param        journalArticle the entity to add, update, or merge
76       * @param        merge boolean value for whether to merge the entity. The
77       *                default value is false. Setting merge to true is more
78       *                expensive and should only be true when journalArticle is
79       *                transient. See LEP-5473 for a detailed discussion of this
80       *                method.
81       * @return        true if the portlet can be displayed via Ajax
82       */
83      public static com.liferay.portlet.journal.model.JournalArticle update(
84          com.liferay.portlet.journal.model.JournalArticle journalArticle,
85          boolean merge) throws com.liferay.portal.SystemException {
86          return getPersistence().update(journalArticle, merge);
87      }
88  
89      public static com.liferay.portlet.journal.model.JournalArticle updateImpl(
90          com.liferay.portlet.journal.model.JournalArticle journalArticle,
91          boolean merge) throws com.liferay.portal.SystemException {
92          return getPersistence().updateImpl(journalArticle, merge);
93      }
94  
95      public static com.liferay.portlet.journal.model.JournalArticle findByPrimaryKey(
96          long id)
97          throws com.liferay.portal.SystemException,
98              com.liferay.portlet.journal.NoSuchArticleException {
99          return getPersistence().findByPrimaryKey(id);
100     }
101 
102     public static com.liferay.portlet.journal.model.JournalArticle fetchByPrimaryKey(
103         long id) throws com.liferay.portal.SystemException {
104         return getPersistence().fetchByPrimaryKey(id);
105     }
106 
107     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByUuid(
108         java.lang.String uuid) throws com.liferay.portal.SystemException {
109         return getPersistence().findByUuid(uuid);
110     }
111 
112     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByUuid(
113         java.lang.String uuid, int start, int end)
114         throws com.liferay.portal.SystemException {
115         return getPersistence().findByUuid(uuid, start, end);
116     }
117 
118     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByUuid(
119         java.lang.String uuid, int start, int end,
120         com.liferay.portal.kernel.util.OrderByComparator obc)
121         throws com.liferay.portal.SystemException {
122         return getPersistence().findByUuid(uuid, start, end, obc);
123     }
124 
125     public static com.liferay.portlet.journal.model.JournalArticle findByUuid_First(
126         java.lang.String uuid,
127         com.liferay.portal.kernel.util.OrderByComparator obc)
128         throws com.liferay.portal.SystemException,
129             com.liferay.portlet.journal.NoSuchArticleException {
130         return getPersistence().findByUuid_First(uuid, obc);
131     }
132 
133     public static com.liferay.portlet.journal.model.JournalArticle findByUuid_Last(
134         java.lang.String uuid,
135         com.liferay.portal.kernel.util.OrderByComparator obc)
136         throws com.liferay.portal.SystemException,
137             com.liferay.portlet.journal.NoSuchArticleException {
138         return getPersistence().findByUuid_Last(uuid, obc);
139     }
140 
141     public static com.liferay.portlet.journal.model.JournalArticle[] findByUuid_PrevAndNext(
142         long id, java.lang.String uuid,
143         com.liferay.portal.kernel.util.OrderByComparator obc)
144         throws com.liferay.portal.SystemException,
145             com.liferay.portlet.journal.NoSuchArticleException {
146         return getPersistence().findByUuid_PrevAndNext(id, uuid, obc);
147     }
148 
149     public static com.liferay.portlet.journal.model.JournalArticle findByUUID_G(
150         java.lang.String uuid, long groupId)
151         throws com.liferay.portal.SystemException,
152             com.liferay.portlet.journal.NoSuchArticleException {
153         return getPersistence().findByUUID_G(uuid, groupId);
154     }
155 
156     public static com.liferay.portlet.journal.model.JournalArticle fetchByUUID_G(
157         java.lang.String uuid, long groupId)
158         throws com.liferay.portal.SystemException {
159         return getPersistence().fetchByUUID_G(uuid, groupId);
160     }
161 
162     public static com.liferay.portlet.journal.model.JournalArticle fetchByUUID_G(
163         java.lang.String uuid, long groupId, boolean retrieveFromCache)
164         throws com.liferay.portal.SystemException {
165         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
166     }
167 
168     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByGroupId(
169         long groupId) throws com.liferay.portal.SystemException {
170         return getPersistence().findByGroupId(groupId);
171     }
172 
173     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByGroupId(
174         long groupId, int start, int end)
175         throws com.liferay.portal.SystemException {
176         return getPersistence().findByGroupId(groupId, start, end);
177     }
178 
179     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByGroupId(
180         long groupId, int start, int end,
181         com.liferay.portal.kernel.util.OrderByComparator obc)
182         throws com.liferay.portal.SystemException {
183         return getPersistence().findByGroupId(groupId, start, end, obc);
184     }
185 
186     public static com.liferay.portlet.journal.model.JournalArticle findByGroupId_First(
187         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
188         throws com.liferay.portal.SystemException,
189             com.liferay.portlet.journal.NoSuchArticleException {
190         return getPersistence().findByGroupId_First(groupId, obc);
191     }
192 
193     public static com.liferay.portlet.journal.model.JournalArticle findByGroupId_Last(
194         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
195         throws com.liferay.portal.SystemException,
196             com.liferay.portlet.journal.NoSuchArticleException {
197         return getPersistence().findByGroupId_Last(groupId, obc);
198     }
199 
200     public static com.liferay.portlet.journal.model.JournalArticle[] findByGroupId_PrevAndNext(
201         long id, long groupId,
202         com.liferay.portal.kernel.util.OrderByComparator obc)
203         throws com.liferay.portal.SystemException,
204             com.liferay.portlet.journal.NoSuchArticleException {
205         return getPersistence().findByGroupId_PrevAndNext(id, groupId, obc);
206     }
207 
208     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByCompanyId(
209         long companyId) throws com.liferay.portal.SystemException {
210         return getPersistence().findByCompanyId(companyId);
211     }
212 
213     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByCompanyId(
214         long companyId, int start, int end)
215         throws com.liferay.portal.SystemException {
216         return getPersistence().findByCompanyId(companyId, start, end);
217     }
218 
219     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByCompanyId(
220         long companyId, int start, int end,
221         com.liferay.portal.kernel.util.OrderByComparator obc)
222         throws com.liferay.portal.SystemException {
223         return getPersistence().findByCompanyId(companyId, start, end, obc);
224     }
225 
226     public static com.liferay.portlet.journal.model.JournalArticle findByCompanyId_First(
227         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
228         throws com.liferay.portal.SystemException,
229             com.liferay.portlet.journal.NoSuchArticleException {
230         return getPersistence().findByCompanyId_First(companyId, obc);
231     }
232 
233     public static com.liferay.portlet.journal.model.JournalArticle findByCompanyId_Last(
234         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
235         throws com.liferay.portal.SystemException,
236             com.liferay.portlet.journal.NoSuchArticleException {
237         return getPersistence().findByCompanyId_Last(companyId, obc);
238     }
239 
240     public static com.liferay.portlet.journal.model.JournalArticle[] findByCompanyId_PrevAndNext(
241         long id, long companyId,
242         com.liferay.portal.kernel.util.OrderByComparator obc)
243         throws com.liferay.portal.SystemException,
244             com.liferay.portlet.journal.NoSuchArticleException {
245         return getPersistence().findByCompanyId_PrevAndNext(id, companyId, obc);
246     }
247 
248     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findBySmallImageId(
249         long smallImageId) throws com.liferay.portal.SystemException {
250         return getPersistence().findBySmallImageId(smallImageId);
251     }
252 
253     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findBySmallImageId(
254         long smallImageId, int start, int end)
255         throws com.liferay.portal.SystemException {
256         return getPersistence().findBySmallImageId(smallImageId, start, end);
257     }
258 
259     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findBySmallImageId(
260         long smallImageId, int start, int end,
261         com.liferay.portal.kernel.util.OrderByComparator obc)
262         throws com.liferay.portal.SystemException {
263         return getPersistence().findBySmallImageId(smallImageId, start, end, obc);
264     }
265 
266     public static com.liferay.portlet.journal.model.JournalArticle findBySmallImageId_First(
267         long smallImageId, com.liferay.portal.kernel.util.OrderByComparator obc)
268         throws com.liferay.portal.SystemException,
269             com.liferay.portlet.journal.NoSuchArticleException {
270         return getPersistence().findBySmallImageId_First(smallImageId, obc);
271     }
272 
273     public static com.liferay.portlet.journal.model.JournalArticle findBySmallImageId_Last(
274         long smallImageId, com.liferay.portal.kernel.util.OrderByComparator obc)
275         throws com.liferay.portal.SystemException,
276             com.liferay.portlet.journal.NoSuchArticleException {
277         return getPersistence().findBySmallImageId_Last(smallImageId, obc);
278     }
279 
280     public static com.liferay.portlet.journal.model.JournalArticle[] findBySmallImageId_PrevAndNext(
281         long id, long smallImageId,
282         com.liferay.portal.kernel.util.OrderByComparator obc)
283         throws com.liferay.portal.SystemException,
284             com.liferay.portlet.journal.NoSuchArticleException {
285         return getPersistence()
286                    .findBySmallImageId_PrevAndNext(id, smallImageId, obc);
287     }
288 
289     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByR_A(
290         long resourcePrimKey, boolean approved)
291         throws com.liferay.portal.SystemException {
292         return getPersistence().findByR_A(resourcePrimKey, approved);
293     }
294 
295     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByR_A(
296         long resourcePrimKey, boolean approved, int start, int end)
297         throws com.liferay.portal.SystemException {
298         return getPersistence().findByR_A(resourcePrimKey, approved, start, end);
299     }
300 
301     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByR_A(
302         long resourcePrimKey, boolean approved, int start, int end,
303         com.liferay.portal.kernel.util.OrderByComparator obc)
304         throws com.liferay.portal.SystemException {
305         return getPersistence()
306                    .findByR_A(resourcePrimKey, approved, start, end, obc);
307     }
308 
309     public static com.liferay.portlet.journal.model.JournalArticle findByR_A_First(
310         long resourcePrimKey, boolean approved,
311         com.liferay.portal.kernel.util.OrderByComparator obc)
312         throws com.liferay.portal.SystemException,
313             com.liferay.portlet.journal.NoSuchArticleException {
314         return getPersistence().findByR_A_First(resourcePrimKey, approved, obc);
315     }
316 
317     public static com.liferay.portlet.journal.model.JournalArticle findByR_A_Last(
318         long resourcePrimKey, boolean approved,
319         com.liferay.portal.kernel.util.OrderByComparator obc)
320         throws com.liferay.portal.SystemException,
321             com.liferay.portlet.journal.NoSuchArticleException {
322         return getPersistence().findByR_A_Last(resourcePrimKey, approved, obc);
323     }
324 
325     public static com.liferay.portlet.journal.model.JournalArticle[] findByR_A_PrevAndNext(
326         long id, long resourcePrimKey, boolean approved,
327         com.liferay.portal.kernel.util.OrderByComparator obc)
328         throws com.liferay.portal.SystemException,
329             com.liferay.portlet.journal.NoSuchArticleException {
330         return getPersistence()
331                    .findByR_A_PrevAndNext(id, resourcePrimKey, approved, obc);
332     }
333 
334     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A(
335         long groupId, java.lang.String articleId)
336         throws com.liferay.portal.SystemException {
337         return getPersistence().findByG_A(groupId, articleId);
338     }
339 
340     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A(
341         long groupId, java.lang.String articleId, int start, int end)
342         throws com.liferay.portal.SystemException {
343         return getPersistence().findByG_A(groupId, articleId, start, end);
344     }
345 
346     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A(
347         long groupId, java.lang.String articleId, int start, int end,
348         com.liferay.portal.kernel.util.OrderByComparator obc)
349         throws com.liferay.portal.SystemException {
350         return getPersistence().findByG_A(groupId, articleId, start, end, obc);
351     }
352 
353     public static com.liferay.portlet.journal.model.JournalArticle findByG_A_First(
354         long groupId, java.lang.String articleId,
355         com.liferay.portal.kernel.util.OrderByComparator obc)
356         throws com.liferay.portal.SystemException,
357             com.liferay.portlet.journal.NoSuchArticleException {
358         return getPersistence().findByG_A_First(groupId, articleId, obc);
359     }
360 
361     public static com.liferay.portlet.journal.model.JournalArticle findByG_A_Last(
362         long groupId, java.lang.String articleId,
363         com.liferay.portal.kernel.util.OrderByComparator obc)
364         throws com.liferay.portal.SystemException,
365             com.liferay.portlet.journal.NoSuchArticleException {
366         return getPersistence().findByG_A_Last(groupId, articleId, obc);
367     }
368 
369     public static com.liferay.portlet.journal.model.JournalArticle[] findByG_A_PrevAndNext(
370         long id, long groupId, java.lang.String articleId,
371         com.liferay.portal.kernel.util.OrderByComparator obc)
372         throws com.liferay.portal.SystemException,
373             com.liferay.portlet.journal.NoSuchArticleException {
374         return getPersistence()
375                    .findByG_A_PrevAndNext(id, groupId, articleId, obc);
376     }
377 
378     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_S(
379         long groupId, java.lang.String structureId)
380         throws com.liferay.portal.SystemException {
381         return getPersistence().findByG_S(groupId, structureId);
382     }
383 
384     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_S(
385         long groupId, java.lang.String structureId, int start, int end)
386         throws com.liferay.portal.SystemException {
387         return getPersistence().findByG_S(groupId, structureId, start, end);
388     }
389 
390     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_S(
391         long groupId, java.lang.String structureId, int start, int end,
392         com.liferay.portal.kernel.util.OrderByComparator obc)
393         throws com.liferay.portal.SystemException {
394         return getPersistence().findByG_S(groupId, structureId, start, end, obc);
395     }
396 
397     public static com.liferay.portlet.journal.model.JournalArticle findByG_S_First(
398         long groupId, java.lang.String structureId,
399         com.liferay.portal.kernel.util.OrderByComparator obc)
400         throws com.liferay.portal.SystemException,
401             com.liferay.portlet.journal.NoSuchArticleException {
402         return getPersistence().findByG_S_First(groupId, structureId, obc);
403     }
404 
405     public static com.liferay.portlet.journal.model.JournalArticle findByG_S_Last(
406         long groupId, java.lang.String structureId,
407         com.liferay.portal.kernel.util.OrderByComparator obc)
408         throws com.liferay.portal.SystemException,
409             com.liferay.portlet.journal.NoSuchArticleException {
410         return getPersistence().findByG_S_Last(groupId, structureId, obc);
411     }
412 
413     public static com.liferay.portlet.journal.model.JournalArticle[] findByG_S_PrevAndNext(
414         long id, long groupId, java.lang.String structureId,
415         com.liferay.portal.kernel.util.OrderByComparator obc)
416         throws com.liferay.portal.SystemException,
417             com.liferay.portlet.journal.NoSuchArticleException {
418         return getPersistence()
419                    .findByG_S_PrevAndNext(id, groupId, structureId, obc);
420     }
421 
422     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_T(
423         long groupId, java.lang.String templateId)
424         throws com.liferay.portal.SystemException {
425         return getPersistence().findByG_T(groupId, templateId);
426     }
427 
428     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_T(
429         long groupId, java.lang.String templateId, int start, int end)
430         throws com.liferay.portal.SystemException {
431         return getPersistence().findByG_T(groupId, templateId, start, end);
432     }
433 
434     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_T(
435         long groupId, java.lang.String templateId, int start, int end,
436         com.liferay.portal.kernel.util.OrderByComparator obc)
437         throws com.liferay.portal.SystemException {
438         return getPersistence().findByG_T(groupId, templateId, start, end, obc);
439     }
440 
441     public static com.liferay.portlet.journal.model.JournalArticle findByG_T_First(
442         long groupId, java.lang.String templateId,
443         com.liferay.portal.kernel.util.OrderByComparator obc)
444         throws com.liferay.portal.SystemException,
445             com.liferay.portlet.journal.NoSuchArticleException {
446         return getPersistence().findByG_T_First(groupId, templateId, obc);
447     }
448 
449     public static com.liferay.portlet.journal.model.JournalArticle findByG_T_Last(
450         long groupId, java.lang.String templateId,
451         com.liferay.portal.kernel.util.OrderByComparator obc)
452         throws com.liferay.portal.SystemException,
453             com.liferay.portlet.journal.NoSuchArticleException {
454         return getPersistence().findByG_T_Last(groupId, templateId, obc);
455     }
456 
457     public static com.liferay.portlet.journal.model.JournalArticle[] findByG_T_PrevAndNext(
458         long id, long groupId, java.lang.String templateId,
459         com.liferay.portal.kernel.util.OrderByComparator obc)
460         throws com.liferay.portal.SystemException,
461             com.liferay.portlet.journal.NoSuchArticleException {
462         return getPersistence()
463                    .findByG_T_PrevAndNext(id, groupId, templateId, obc);
464     }
465 
466     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_UT(
467         long groupId, java.lang.String urlTitle)
468         throws com.liferay.portal.SystemException {
469         return getPersistence().findByG_UT(groupId, urlTitle);
470     }
471 
472     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_UT(
473         long groupId, java.lang.String urlTitle, int start, int end)
474         throws com.liferay.portal.SystemException {
475         return getPersistence().findByG_UT(groupId, urlTitle, start, end);
476     }
477 
478     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_UT(
479         long groupId, java.lang.String urlTitle, int start, int end,
480         com.liferay.portal.kernel.util.OrderByComparator obc)
481         throws com.liferay.portal.SystemException {
482         return getPersistence().findByG_UT(groupId, urlTitle, start, end, obc);
483     }
484 
485     public static com.liferay.portlet.journal.model.JournalArticle findByG_UT_First(
486         long groupId, java.lang.String urlTitle,
487         com.liferay.portal.kernel.util.OrderByComparator obc)
488         throws com.liferay.portal.SystemException,
489             com.liferay.portlet.journal.NoSuchArticleException {
490         return getPersistence().findByG_UT_First(groupId, urlTitle, obc);
491     }
492 
493     public static com.liferay.portlet.journal.model.JournalArticle findByG_UT_Last(
494         long groupId, java.lang.String urlTitle,
495         com.liferay.portal.kernel.util.OrderByComparator obc)
496         throws com.liferay.portal.SystemException,
497             com.liferay.portlet.journal.NoSuchArticleException {
498         return getPersistence().findByG_UT_Last(groupId, urlTitle, obc);
499     }
500 
501     public static com.liferay.portlet.journal.model.JournalArticle[] findByG_UT_PrevAndNext(
502         long id, long groupId, java.lang.String urlTitle,
503         com.liferay.portal.kernel.util.OrderByComparator obc)
504         throws com.liferay.portal.SystemException,
505             com.liferay.portlet.journal.NoSuchArticleException {
506         return getPersistence()
507                    .findByG_UT_PrevAndNext(id, groupId, urlTitle, obc);
508     }
509 
510     public static com.liferay.portlet.journal.model.JournalArticle findByG_A_V(
511         long groupId, java.lang.String articleId, double version)
512         throws com.liferay.portal.SystemException,
513             com.liferay.portlet.journal.NoSuchArticleException {
514         return getPersistence().findByG_A_V(groupId, articleId, version);
515     }
516 
517     public static com.liferay.portlet.journal.model.JournalArticle fetchByG_A_V(
518         long groupId, java.lang.String articleId, double version)
519         throws com.liferay.portal.SystemException {
520         return getPersistence().fetchByG_A_V(groupId, articleId, version);
521     }
522 
523     public static com.liferay.portlet.journal.model.JournalArticle fetchByG_A_V(
524         long groupId, java.lang.String articleId, double version,
525         boolean retrieveFromCache) throws com.liferay.portal.SystemException {
526         return getPersistence()
527                    .fetchByG_A_V(groupId, articleId, version, retrieveFromCache);
528     }
529 
530     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A_A(
531         long groupId, java.lang.String articleId, boolean approved)
532         throws com.liferay.portal.SystemException {
533         return getPersistence().findByG_A_A(groupId, articleId, approved);
534     }
535 
536     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A_A(
537         long groupId, java.lang.String articleId, boolean approved, int start,
538         int end) throws com.liferay.portal.SystemException {
539         return getPersistence()
540                    .findByG_A_A(groupId, articleId, approved, start, end);
541     }
542 
543     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A_A(
544         long groupId, java.lang.String articleId, boolean approved, int start,
545         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
546         throws com.liferay.portal.SystemException {
547         return getPersistence()
548                    .findByG_A_A(groupId, articleId, approved, start, end, obc);
549     }
550 
551     public static com.liferay.portlet.journal.model.JournalArticle findByG_A_A_First(
552         long groupId, java.lang.String articleId, boolean approved,
553         com.liferay.portal.kernel.util.OrderByComparator obc)
554         throws com.liferay.portal.SystemException,
555             com.liferay.portlet.journal.NoSuchArticleException {
556         return getPersistence()
557                    .findByG_A_A_First(groupId, articleId, approved, obc);
558     }
559 
560     public static com.liferay.portlet.journal.model.JournalArticle findByG_A_A_Last(
561         long groupId, java.lang.String articleId, boolean approved,
562         com.liferay.portal.kernel.util.OrderByComparator obc)
563         throws com.liferay.portal.SystemException,
564             com.liferay.portlet.journal.NoSuchArticleException {
565         return getPersistence()
566                    .findByG_A_A_Last(groupId, articleId, approved, obc);
567     }
568 
569     public static com.liferay.portlet.journal.model.JournalArticle[] findByG_A_A_PrevAndNext(
570         long id, long groupId, java.lang.String articleId, boolean approved,
571         com.liferay.portal.kernel.util.OrderByComparator obc)
572         throws com.liferay.portal.SystemException,
573             com.liferay.portlet.journal.NoSuchArticleException {
574         return getPersistence()
575                    .findByG_A_A_PrevAndNext(id, groupId, articleId, approved,
576             obc);
577     }
578 
579     public static java.util.List<Object> findWithDynamicQuery(
580         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
581         throws com.liferay.portal.SystemException {
582         return getPersistence().findWithDynamicQuery(dynamicQuery);
583     }
584 
585     public static java.util.List<Object> findWithDynamicQuery(
586         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
587         int end) throws com.liferay.portal.SystemException {
588         return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
589     }
590 
591     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findAll()
592         throws com.liferay.portal.SystemException {
593         return getPersistence().findAll();
594     }
595 
596     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findAll(
597         int start, int end) throws com.liferay.portal.SystemException {
598         return getPersistence().findAll(start, end);
599     }
600 
601     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findAll(
602         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
603         throws com.liferay.portal.SystemException {
604         return getPersistence().findAll(start, end, obc);
605     }
606 
607     public static void removeByUuid(java.lang.String uuid)
608         throws com.liferay.portal.SystemException {
609         getPersistence().removeByUuid(uuid);
610     }
611 
612     public static void removeByUUID_G(java.lang.String uuid, long groupId)
613         throws com.liferay.portal.SystemException,
614             com.liferay.portlet.journal.NoSuchArticleException {
615         getPersistence().removeByUUID_G(uuid, groupId);
616     }
617 
618     public static void removeByGroupId(long groupId)
619         throws com.liferay.portal.SystemException {
620         getPersistence().removeByGroupId(groupId);
621     }
622 
623     public static void removeByCompanyId(long companyId)
624         throws com.liferay.portal.SystemException {
625         getPersistence().removeByCompanyId(companyId);
626     }
627 
628     public static void removeBySmallImageId(long smallImageId)
629         throws com.liferay.portal.SystemException {
630         getPersistence().removeBySmallImageId(smallImageId);
631     }
632 
633     public static void removeByR_A(long resourcePrimKey, boolean approved)
634         throws com.liferay.portal.SystemException {
635         getPersistence().removeByR_A(resourcePrimKey, approved);
636     }
637 
638     public static void removeByG_A(long groupId, java.lang.String articleId)
639         throws com.liferay.portal.SystemException {
640         getPersistence().removeByG_A(groupId, articleId);
641     }
642 
643     public static void removeByG_S(long groupId, java.lang.String structureId)
644         throws com.liferay.portal.SystemException {
645         getPersistence().removeByG_S(groupId, structureId);
646     }
647 
648     public static void removeByG_T(long groupId, java.lang.String templateId)
649         throws com.liferay.portal.SystemException {
650         getPersistence().removeByG_T(groupId, templateId);
651     }
652 
653     public static void removeByG_UT(long groupId, java.lang.String urlTitle)
654         throws com.liferay.portal.SystemException {
655         getPersistence().removeByG_UT(groupId, urlTitle);
656     }
657 
658     public static void removeByG_A_V(long groupId, java.lang.String articleId,
659         double version)
660         throws com.liferay.portal.SystemException,
661             com.liferay.portlet.journal.NoSuchArticleException {
662         getPersistence().removeByG_A_V(groupId, articleId, version);
663     }
664 
665     public static void removeByG_A_A(long groupId, java.lang.String articleId,
666         boolean approved) throws com.liferay.portal.SystemException {
667         getPersistence().removeByG_A_A(groupId, articleId, approved);
668     }
669 
670     public static void removeAll() throws com.liferay.portal.SystemException {
671         getPersistence().removeAll();
672     }
673 
674     public static int countByUuid(java.lang.String uuid)
675         throws com.liferay.portal.SystemException {
676         return getPersistence().countByUuid(uuid);
677     }
678 
679     public static int countByUUID_G(java.lang.String uuid, long groupId)
680         throws com.liferay.portal.SystemException {
681         return getPersistence().countByUUID_G(uuid, groupId);
682     }
683 
684     public static int countByGroupId(long groupId)
685         throws com.liferay.portal.SystemException {
686         return getPersistence().countByGroupId(groupId);
687     }
688 
689     public static int countByCompanyId(long companyId)
690         throws com.liferay.portal.SystemException {
691         return getPersistence().countByCompanyId(companyId);
692     }
693 
694     public static int countBySmallImageId(long smallImageId)
695         throws com.liferay.portal.SystemException {
696         return getPersistence().countBySmallImageId(smallImageId);
697     }
698 
699     public static int countByR_A(long resourcePrimKey, boolean approved)
700         throws com.liferay.portal.SystemException {
701         return getPersistence().countByR_A(resourcePrimKey, approved);
702     }
703 
704     public static int countByG_A(long groupId, java.lang.String articleId)
705         throws com.liferay.portal.SystemException {
706         return getPersistence().countByG_A(groupId, articleId);
707     }
708 
709     public static int countByG_S(long groupId, java.lang.String structureId)
710         throws com.liferay.portal.SystemException {
711         return getPersistence().countByG_S(groupId, structureId);
712     }
713 
714     public static int countByG_T(long groupId, java.lang.String templateId)
715         throws com.liferay.portal.SystemException {
716         return getPersistence().countByG_T(groupId, templateId);
717     }
718 
719     public static int countByG_UT(long groupId, java.lang.String urlTitle)
720         throws com.liferay.portal.SystemException {
721         return getPersistence().countByG_UT(groupId, urlTitle);
722     }
723 
724     public static int countByG_A_V(long groupId, java.lang.String articleId,
725         double version) throws com.liferay.portal.SystemException {
726         return getPersistence().countByG_A_V(groupId, articleId, version);
727     }
728 
729     public static int countByG_A_A(long groupId, java.lang.String articleId,
730         boolean approved) throws com.liferay.portal.SystemException {
731         return getPersistence().countByG_A_A(groupId, articleId, approved);
732     }
733 
734     public static int countAll() throws com.liferay.portal.SystemException {
735         return getPersistence().countAll();
736     }
737 
738     public static JournalArticlePersistence getPersistence() {
739         return _persistence;
740     }
741 
742     public void setPersistence(JournalArticlePersistence persistence) {
743         _persistence = persistence;
744     }
745 
746     private static JournalArticlePersistence _persistence;
747 }