1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.journal.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19  import com.liferay.portal.kernel.exception.SystemException;
20  
21  import com.liferay.portlet.journal.model.JournalArticleImage;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="JournalArticleImageUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be
30   * overwritten the next time is generated.
31   * </p>
32   *
33   * @author    Brian Wing Shun Chan
34   * @see       JournalArticleImagePersistence
35   * @see       JournalArticleImagePersistenceImpl
36   * @generated
37   */
38  public class JournalArticleImageUtil {
39      /**
40       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
41       */
42      public static void clearCache() {
43          getPersistence().clearCache();
44      }
45  
46      /**
47       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
48       */
49      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50          throws SystemException {
51          return getPersistence().findWithDynamicQuery(dynamicQuery);
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
56       */
57      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
58          int start, int end) throws SystemException {
59          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
64       */
65      public static JournalArticleImage remove(
66          JournalArticleImage journalArticleImage) throws SystemException {
67          return getPersistence().remove(journalArticleImage);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static JournalArticleImage update(
74          JournalArticleImage journalArticleImage, boolean merge)
75          throws SystemException {
76          return getPersistence().update(journalArticleImage, merge);
77      }
78  
79      public static void cacheResult(
80          com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage) {
81          getPersistence().cacheResult(journalArticleImage);
82      }
83  
84      public static void cacheResult(
85          java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> journalArticleImages) {
86          getPersistence().cacheResult(journalArticleImages);
87      }
88  
89      public static com.liferay.portlet.journal.model.JournalArticleImage create(
90          long articleImageId) {
91          return getPersistence().create(articleImageId);
92      }
93  
94      public static com.liferay.portlet.journal.model.JournalArticleImage remove(
95          long articleImageId)
96          throws com.liferay.portal.kernel.exception.SystemException,
97              com.liferay.portlet.journal.NoSuchArticleImageException {
98          return getPersistence().remove(articleImageId);
99      }
100 
101     public static com.liferay.portlet.journal.model.JournalArticleImage updateImpl(
102         com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage,
103         boolean merge)
104         throws com.liferay.portal.kernel.exception.SystemException {
105         return getPersistence().updateImpl(journalArticleImage, merge);
106     }
107 
108     public static com.liferay.portlet.journal.model.JournalArticleImage findByPrimaryKey(
109         long articleImageId)
110         throws com.liferay.portal.kernel.exception.SystemException,
111             com.liferay.portlet.journal.NoSuchArticleImageException {
112         return getPersistence().findByPrimaryKey(articleImageId);
113     }
114 
115     public static com.liferay.portlet.journal.model.JournalArticleImage fetchByPrimaryKey(
116         long articleImageId)
117         throws com.liferay.portal.kernel.exception.SystemException {
118         return getPersistence().fetchByPrimaryKey(articleImageId);
119     }
120 
121     public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByGroupId(
122         long groupId)
123         throws com.liferay.portal.kernel.exception.SystemException {
124         return getPersistence().findByGroupId(groupId);
125     }
126 
127     public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByGroupId(
128         long groupId, int start, int end)
129         throws com.liferay.portal.kernel.exception.SystemException {
130         return getPersistence().findByGroupId(groupId, start, end);
131     }
132 
133     public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByGroupId(
134         long groupId, int start, int end,
135         com.liferay.portal.kernel.util.OrderByComparator obc)
136         throws com.liferay.portal.kernel.exception.SystemException {
137         return getPersistence().findByGroupId(groupId, start, end, obc);
138     }
139 
140     public static com.liferay.portlet.journal.model.JournalArticleImage findByGroupId_First(
141         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.kernel.exception.SystemException,
143             com.liferay.portlet.journal.NoSuchArticleImageException {
144         return getPersistence().findByGroupId_First(groupId, obc);
145     }
146 
147     public static com.liferay.portlet.journal.model.JournalArticleImage findByGroupId_Last(
148         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.kernel.exception.SystemException,
150             com.liferay.portlet.journal.NoSuchArticleImageException {
151         return getPersistence().findByGroupId_Last(groupId, obc);
152     }
153 
154     public static com.liferay.portlet.journal.model.JournalArticleImage[] findByGroupId_PrevAndNext(
155         long articleImageId, long groupId,
156         com.liferay.portal.kernel.util.OrderByComparator obc)
157         throws com.liferay.portal.kernel.exception.SystemException,
158             com.liferay.portlet.journal.NoSuchArticleImageException {
159         return getPersistence()
160                    .findByGroupId_PrevAndNext(articleImageId, groupId, obc);
161     }
162 
163     public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByTempImage(
164         boolean tempImage)
165         throws com.liferay.portal.kernel.exception.SystemException {
166         return getPersistence().findByTempImage(tempImage);
167     }
168 
169     public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByTempImage(
170         boolean tempImage, int start, int end)
171         throws com.liferay.portal.kernel.exception.SystemException {
172         return getPersistence().findByTempImage(tempImage, start, end);
173     }
174 
175     public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByTempImage(
176         boolean tempImage, int start, int end,
177         com.liferay.portal.kernel.util.OrderByComparator obc)
178         throws com.liferay.portal.kernel.exception.SystemException {
179         return getPersistence().findByTempImage(tempImage, start, end, obc);
180     }
181 
182     public static com.liferay.portlet.journal.model.JournalArticleImage findByTempImage_First(
183         boolean tempImage, com.liferay.portal.kernel.util.OrderByComparator obc)
184         throws com.liferay.portal.kernel.exception.SystemException,
185             com.liferay.portlet.journal.NoSuchArticleImageException {
186         return getPersistence().findByTempImage_First(tempImage, obc);
187     }
188 
189     public static com.liferay.portlet.journal.model.JournalArticleImage findByTempImage_Last(
190         boolean tempImage, com.liferay.portal.kernel.util.OrderByComparator obc)
191         throws com.liferay.portal.kernel.exception.SystemException,
192             com.liferay.portlet.journal.NoSuchArticleImageException {
193         return getPersistence().findByTempImage_Last(tempImage, obc);
194     }
195 
196     public static com.liferay.portlet.journal.model.JournalArticleImage[] findByTempImage_PrevAndNext(
197         long articleImageId, boolean tempImage,
198         com.liferay.portal.kernel.util.OrderByComparator obc)
199         throws com.liferay.portal.kernel.exception.SystemException,
200             com.liferay.portlet.journal.NoSuchArticleImageException {
201         return getPersistence()
202                    .findByTempImage_PrevAndNext(articleImageId, tempImage, obc);
203     }
204 
205     public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByG_A_V(
206         long groupId, java.lang.String articleId, double version)
207         throws com.liferay.portal.kernel.exception.SystemException {
208         return getPersistence().findByG_A_V(groupId, articleId, version);
209     }
210 
211     public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByG_A_V(
212         long groupId, java.lang.String articleId, double version, int start,
213         int end) throws com.liferay.portal.kernel.exception.SystemException {
214         return getPersistence()
215                    .findByG_A_V(groupId, articleId, version, start, end);
216     }
217 
218     public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByG_A_V(
219         long groupId, java.lang.String articleId, double version, int start,
220         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
221         throws com.liferay.portal.kernel.exception.SystemException {
222         return getPersistence()
223                    .findByG_A_V(groupId, articleId, version, start, end, obc);
224     }
225 
226     public static com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_First(
227         long groupId, java.lang.String articleId, double version,
228         com.liferay.portal.kernel.util.OrderByComparator obc)
229         throws com.liferay.portal.kernel.exception.SystemException,
230             com.liferay.portlet.journal.NoSuchArticleImageException {
231         return getPersistence()
232                    .findByG_A_V_First(groupId, articleId, version, obc);
233     }
234 
235     public static com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_Last(
236         long groupId, java.lang.String articleId, double version,
237         com.liferay.portal.kernel.util.OrderByComparator obc)
238         throws com.liferay.portal.kernel.exception.SystemException,
239             com.liferay.portlet.journal.NoSuchArticleImageException {
240         return getPersistence()
241                    .findByG_A_V_Last(groupId, articleId, version, obc);
242     }
243 
244     public static com.liferay.portlet.journal.model.JournalArticleImage[] findByG_A_V_PrevAndNext(
245         long articleImageId, long groupId, java.lang.String articleId,
246         double version, com.liferay.portal.kernel.util.OrderByComparator obc)
247         throws com.liferay.portal.kernel.exception.SystemException,
248             com.liferay.portlet.journal.NoSuchArticleImageException {
249         return getPersistence()
250                    .findByG_A_V_PrevAndNext(articleImageId, groupId, articleId,
251             version, obc);
252     }
253 
254     public static com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_E_E_L(
255         long groupId, java.lang.String articleId, double version,
256         java.lang.String elInstanceId, java.lang.String elName,
257         java.lang.String languageId)
258         throws com.liferay.portal.kernel.exception.SystemException,
259             com.liferay.portlet.journal.NoSuchArticleImageException {
260         return getPersistence()
261                    .findByG_A_V_E_E_L(groupId, articleId, version,
262             elInstanceId, elName, languageId);
263     }
264 
265     public static com.liferay.portlet.journal.model.JournalArticleImage fetchByG_A_V_E_E_L(
266         long groupId, java.lang.String articleId, double version,
267         java.lang.String elInstanceId, java.lang.String elName,
268         java.lang.String languageId)
269         throws com.liferay.portal.kernel.exception.SystemException {
270         return getPersistence()
271                    .fetchByG_A_V_E_E_L(groupId, articleId, version,
272             elInstanceId, elName, languageId);
273     }
274 
275     public static com.liferay.portlet.journal.model.JournalArticleImage fetchByG_A_V_E_E_L(
276         long groupId, java.lang.String articleId, double version,
277         java.lang.String elInstanceId, java.lang.String elName,
278         java.lang.String languageId, boolean retrieveFromCache)
279         throws com.liferay.portal.kernel.exception.SystemException {
280         return getPersistence()
281                    .fetchByG_A_V_E_E_L(groupId, articleId, version,
282             elInstanceId, elName, languageId, retrieveFromCache);
283     }
284 
285     public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findAll()
286         throws com.liferay.portal.kernel.exception.SystemException {
287         return getPersistence().findAll();
288     }
289 
290     public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findAll(
291         int start, int end)
292         throws com.liferay.portal.kernel.exception.SystemException {
293         return getPersistence().findAll(start, end);
294     }
295 
296     public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findAll(
297         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
298         throws com.liferay.portal.kernel.exception.SystemException {
299         return getPersistence().findAll(start, end, obc);
300     }
301 
302     public static void removeByGroupId(long groupId)
303         throws com.liferay.portal.kernel.exception.SystemException {
304         getPersistence().removeByGroupId(groupId);
305     }
306 
307     public static void removeByTempImage(boolean tempImage)
308         throws com.liferay.portal.kernel.exception.SystemException {
309         getPersistence().removeByTempImage(tempImage);
310     }
311 
312     public static void removeByG_A_V(long groupId, java.lang.String articleId,
313         double version)
314         throws com.liferay.portal.kernel.exception.SystemException {
315         getPersistence().removeByG_A_V(groupId, articleId, version);
316     }
317 
318     public static void removeByG_A_V_E_E_L(long groupId,
319         java.lang.String articleId, double version,
320         java.lang.String elInstanceId, java.lang.String elName,
321         java.lang.String languageId)
322         throws com.liferay.portal.kernel.exception.SystemException,
323             com.liferay.portlet.journal.NoSuchArticleImageException {
324         getPersistence()
325             .removeByG_A_V_E_E_L(groupId, articleId, version, elInstanceId,
326             elName, languageId);
327     }
328 
329     public static void removeAll()
330         throws com.liferay.portal.kernel.exception.SystemException {
331         getPersistence().removeAll();
332     }
333 
334     public static int countByGroupId(long groupId)
335         throws com.liferay.portal.kernel.exception.SystemException {
336         return getPersistence().countByGroupId(groupId);
337     }
338 
339     public static int countByTempImage(boolean tempImage)
340         throws com.liferay.portal.kernel.exception.SystemException {
341         return getPersistence().countByTempImage(tempImage);
342     }
343 
344     public static int countByG_A_V(long groupId, java.lang.String articleId,
345         double version)
346         throws com.liferay.portal.kernel.exception.SystemException {
347         return getPersistence().countByG_A_V(groupId, articleId, version);
348     }
349 
350     public static int countByG_A_V_E_E_L(long groupId,
351         java.lang.String articleId, double version,
352         java.lang.String elInstanceId, java.lang.String elName,
353         java.lang.String languageId)
354         throws com.liferay.portal.kernel.exception.SystemException {
355         return getPersistence()
356                    .countByG_A_V_E_E_L(groupId, articleId, version,
357             elInstanceId, elName, languageId);
358     }
359 
360     public static int countAll()
361         throws com.liferay.portal.kernel.exception.SystemException {
362         return getPersistence().countAll();
363     }
364 
365     public static JournalArticleImagePersistence getPersistence() {
366         if (_persistence == null) {
367             _persistence = (JournalArticleImagePersistence)PortalBeanLocatorUtil.locate(JournalArticleImagePersistence.class.getName());
368         }
369 
370         return _persistence;
371     }
372 
373     public void setPersistence(JournalArticleImagePersistence persistence) {
374         _persistence = persistence;
375     }
376 
377     private static JournalArticleImagePersistence _persistence;
378 }