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