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.JournalArticleImage;
30  
31  import java.util.List;
32  
33  /**
34   * <a href="JournalArticleImageUtil.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       JournalArticleImagePersistence
43   * @see       JournalArticleImagePersistenceImpl
44   * @generated
45   */
46  public class JournalArticleImageUtil {
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 JournalArticleImage remove(
74          JournalArticleImage journalArticleImage) throws SystemException {
75          return getPersistence().remove(journalArticleImage);
76      }
77  
78      /**
79       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
80       */
81      public static JournalArticleImage update(
82          JournalArticleImage journalArticleImage, boolean merge)
83          throws SystemException {
84          return getPersistence().update(journalArticleImage, merge);
85      }
86  
87      public static void cacheResult(
88          com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage) {
89          getPersistence().cacheResult(journalArticleImage);
90      }
91  
92      public static void cacheResult(
93          java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> journalArticleImages) {
94          getPersistence().cacheResult(journalArticleImages);
95      }
96  
97      public static com.liferay.portlet.journal.model.JournalArticleImage create(
98          long articleImageId) {
99          return getPersistence().create(articleImageId);
100     }
101 
102     public static com.liferay.portlet.journal.model.JournalArticleImage remove(
103         long articleImageId)
104         throws com.liferay.portal.SystemException,
105             com.liferay.portlet.journal.NoSuchArticleImageException {
106         return getPersistence().remove(articleImageId);
107     }
108 
109     /**
110      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
111      */
112     public static com.liferay.portlet.journal.model.JournalArticleImage update(
113         com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage)
114         throws com.liferay.portal.SystemException {
115         return getPersistence().update(journalArticleImage);
116     }
117 
118     public static com.liferay.portlet.journal.model.JournalArticleImage updateImpl(
119         com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage,
120         boolean merge) throws com.liferay.portal.SystemException {
121         return getPersistence().updateImpl(journalArticleImage, merge);
122     }
123 
124     public static com.liferay.portlet.journal.model.JournalArticleImage findByPrimaryKey(
125         long articleImageId)
126         throws com.liferay.portal.SystemException,
127             com.liferay.portlet.journal.NoSuchArticleImageException {
128         return getPersistence().findByPrimaryKey(articleImageId);
129     }
130 
131     public static com.liferay.portlet.journal.model.JournalArticleImage fetchByPrimaryKey(
132         long articleImageId) throws com.liferay.portal.SystemException {
133         return getPersistence().fetchByPrimaryKey(articleImageId);
134     }
135 
136     public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByGroupId(
137         long groupId) throws com.liferay.portal.SystemException {
138         return getPersistence().findByGroupId(groupId);
139     }
140 
141     public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByGroupId(
142         long groupId, int start, int end)
143         throws com.liferay.portal.SystemException {
144         return getPersistence().findByGroupId(groupId, start, end);
145     }
146 
147     public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByGroupId(
148         long groupId, int start, int end,
149         com.liferay.portal.kernel.util.OrderByComparator obc)
150         throws com.liferay.portal.SystemException {
151         return getPersistence().findByGroupId(groupId, start, end, obc);
152     }
153 
154     public static com.liferay.portlet.journal.model.JournalArticleImage findByGroupId_First(
155         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.SystemException,
157             com.liferay.portlet.journal.NoSuchArticleImageException {
158         return getPersistence().findByGroupId_First(groupId, obc);
159     }
160 
161     public static com.liferay.portlet.journal.model.JournalArticleImage findByGroupId_Last(
162         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
163         throws com.liferay.portal.SystemException,
164             com.liferay.portlet.journal.NoSuchArticleImageException {
165         return getPersistence().findByGroupId_Last(groupId, obc);
166     }
167 
168     public static com.liferay.portlet.journal.model.JournalArticleImage[] findByGroupId_PrevAndNext(
169         long articleImageId, long groupId,
170         com.liferay.portal.kernel.util.OrderByComparator obc)
171         throws com.liferay.portal.SystemException,
172             com.liferay.portlet.journal.NoSuchArticleImageException {
173         return getPersistence()
174                    .findByGroupId_PrevAndNext(articleImageId, groupId, obc);
175     }
176 
177     public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByTempImage(
178         boolean tempImage) throws com.liferay.portal.SystemException {
179         return getPersistence().findByTempImage(tempImage);
180     }
181 
182     public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByTempImage(
183         boolean tempImage, int start, int end)
184         throws com.liferay.portal.SystemException {
185         return getPersistence().findByTempImage(tempImage, start, end);
186     }
187 
188     public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByTempImage(
189         boolean tempImage, int start, int end,
190         com.liferay.portal.kernel.util.OrderByComparator obc)
191         throws com.liferay.portal.SystemException {
192         return getPersistence().findByTempImage(tempImage, start, end, obc);
193     }
194 
195     public static com.liferay.portlet.journal.model.JournalArticleImage findByTempImage_First(
196         boolean tempImage, com.liferay.portal.kernel.util.OrderByComparator obc)
197         throws com.liferay.portal.SystemException,
198             com.liferay.portlet.journal.NoSuchArticleImageException {
199         return getPersistence().findByTempImage_First(tempImage, obc);
200     }
201 
202     public static com.liferay.portlet.journal.model.JournalArticleImage findByTempImage_Last(
203         boolean tempImage, com.liferay.portal.kernel.util.OrderByComparator obc)
204         throws com.liferay.portal.SystemException,
205             com.liferay.portlet.journal.NoSuchArticleImageException {
206         return getPersistence().findByTempImage_Last(tempImage, obc);
207     }
208 
209     public static com.liferay.portlet.journal.model.JournalArticleImage[] findByTempImage_PrevAndNext(
210         long articleImageId, boolean tempImage,
211         com.liferay.portal.kernel.util.OrderByComparator obc)
212         throws com.liferay.portal.SystemException,
213             com.liferay.portlet.journal.NoSuchArticleImageException {
214         return getPersistence()
215                    .findByTempImage_PrevAndNext(articleImageId, tempImage, obc);
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)
220         throws com.liferay.portal.SystemException {
221         return getPersistence().findByG_A_V(groupId, articleId, version);
222     }
223 
224     public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByG_A_V(
225         long groupId, java.lang.String articleId, double version, int start,
226         int end) throws com.liferay.portal.SystemException {
227         return getPersistence()
228                    .findByG_A_V(groupId, articleId, version, start, end);
229     }
230 
231     public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByG_A_V(
232         long groupId, java.lang.String articleId, double version, int start,
233         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
234         throws com.liferay.portal.SystemException {
235         return getPersistence()
236                    .findByG_A_V(groupId, articleId, version, start, end, obc);
237     }
238 
239     public static com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_First(
240         long groupId, java.lang.String articleId, double version,
241         com.liferay.portal.kernel.util.OrderByComparator obc)
242         throws com.liferay.portal.SystemException,
243             com.liferay.portlet.journal.NoSuchArticleImageException {
244         return getPersistence()
245                    .findByG_A_V_First(groupId, articleId, version, obc);
246     }
247 
248     public static com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_Last(
249         long groupId, java.lang.String articleId, double version,
250         com.liferay.portal.kernel.util.OrderByComparator obc)
251         throws com.liferay.portal.SystemException,
252             com.liferay.portlet.journal.NoSuchArticleImageException {
253         return getPersistence()
254                    .findByG_A_V_Last(groupId, articleId, version, obc);
255     }
256 
257     public static com.liferay.portlet.journal.model.JournalArticleImage[] findByG_A_V_PrevAndNext(
258         long articleImageId, long groupId, java.lang.String articleId,
259         double version, com.liferay.portal.kernel.util.OrderByComparator obc)
260         throws com.liferay.portal.SystemException,
261             com.liferay.portlet.journal.NoSuchArticleImageException {
262         return getPersistence()
263                    .findByG_A_V_PrevAndNext(articleImageId, groupId, articleId,
264             version, obc);
265     }
266 
267     public static com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_E_E_L(
268         long groupId, java.lang.String articleId, double version,
269         java.lang.String elInstanceId, java.lang.String elName,
270         java.lang.String languageId)
271         throws com.liferay.portal.SystemException,
272             com.liferay.portlet.journal.NoSuchArticleImageException {
273         return getPersistence()
274                    .findByG_A_V_E_E_L(groupId, articleId, version,
275             elInstanceId, elName, languageId);
276     }
277 
278     public static com.liferay.portlet.journal.model.JournalArticleImage fetchByG_A_V_E_E_L(
279         long groupId, java.lang.String articleId, double version,
280         java.lang.String elInstanceId, java.lang.String elName,
281         java.lang.String languageId) throws com.liferay.portal.SystemException {
282         return getPersistence()
283                    .fetchByG_A_V_E_E_L(groupId, articleId, version,
284             elInstanceId, elName, languageId);
285     }
286 
287     public static com.liferay.portlet.journal.model.JournalArticleImage fetchByG_A_V_E_E_L(
288         long groupId, java.lang.String articleId, double version,
289         java.lang.String elInstanceId, java.lang.String elName,
290         java.lang.String languageId, boolean retrieveFromCache)
291         throws com.liferay.portal.SystemException {
292         return getPersistence()
293                    .fetchByG_A_V_E_E_L(groupId, articleId, version,
294             elInstanceId, elName, languageId, retrieveFromCache);
295     }
296 
297     public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findAll()
298         throws com.liferay.portal.SystemException {
299         return getPersistence().findAll();
300     }
301 
302     public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findAll(
303         int start, int end) throws com.liferay.portal.SystemException {
304         return getPersistence().findAll(start, end);
305     }
306 
307     public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findAll(
308         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
309         throws com.liferay.portal.SystemException {
310         return getPersistence().findAll(start, end, obc);
311     }
312 
313     public static void removeByGroupId(long groupId)
314         throws com.liferay.portal.SystemException {
315         getPersistence().removeByGroupId(groupId);
316     }
317 
318     public static void removeByTempImage(boolean tempImage)
319         throws com.liferay.portal.SystemException {
320         getPersistence().removeByTempImage(tempImage);
321     }
322 
323     public static void removeByG_A_V(long groupId, java.lang.String articleId,
324         double version) throws com.liferay.portal.SystemException {
325         getPersistence().removeByG_A_V(groupId, articleId, version);
326     }
327 
328     public static void removeByG_A_V_E_E_L(long groupId,
329         java.lang.String articleId, double version,
330         java.lang.String elInstanceId, java.lang.String elName,
331         java.lang.String languageId)
332         throws com.liferay.portal.SystemException,
333             com.liferay.portlet.journal.NoSuchArticleImageException {
334         getPersistence()
335             .removeByG_A_V_E_E_L(groupId, articleId, version, elInstanceId,
336             elName, languageId);
337     }
338 
339     public static void removeAll() throws com.liferay.portal.SystemException {
340         getPersistence().removeAll();
341     }
342 
343     public static int countByGroupId(long groupId)
344         throws com.liferay.portal.SystemException {
345         return getPersistence().countByGroupId(groupId);
346     }
347 
348     public static int countByTempImage(boolean tempImage)
349         throws com.liferay.portal.SystemException {
350         return getPersistence().countByTempImage(tempImage);
351     }
352 
353     public static int countByG_A_V(long groupId, java.lang.String articleId,
354         double version) throws com.liferay.portal.SystemException {
355         return getPersistence().countByG_A_V(groupId, articleId, version);
356     }
357 
358     public static int countByG_A_V_E_E_L(long groupId,
359         java.lang.String articleId, double version,
360         java.lang.String elInstanceId, java.lang.String elName,
361         java.lang.String languageId) throws com.liferay.portal.SystemException {
362         return getPersistence()
363                    .countByG_A_V_E_E_L(groupId, articleId, version,
364             elInstanceId, elName, languageId);
365     }
366 
367     public static int countAll() throws com.liferay.portal.SystemException {
368         return getPersistence().countAll();
369     }
370 
371     public static JournalArticleImagePersistence getPersistence() {
372         if (_persistence == null) {
373             _persistence = (JournalArticleImagePersistence)PortalBeanLocatorUtil.locate(JournalArticleImagePersistence.class.getName());
374         }
375 
376         return _persistence;
377     }
378 
379     public void setPersistence(JournalArticleImagePersistence persistence) {
380         _persistence = persistence;
381     }
382 
383     private static JournalArticleImagePersistence _persistence;
384 }