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.softwarecatalog.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.softwarecatalog.model.SCProductScreenshot;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="SCProductScreenshotUtil.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       SCProductScreenshotPersistence
35   * @see       SCProductScreenshotPersistenceImpl
36   * @generated
37   */
38  public class SCProductScreenshotUtil {
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#clearCache(SCProductScreenshot)
48       */
49      public static void clearCache(SCProductScreenshot scProductScreenshot) {
50          getPersistence().clearCache(scProductScreenshot);
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
55       */
56      public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57          throws SystemException {
58          return getPersistence().countWithDynamicQuery(dynamicQuery);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
63       */
64      public static List<SCProductScreenshot> findWithDynamicQuery(
65          DynamicQuery dynamicQuery) throws SystemException {
66          return getPersistence().findWithDynamicQuery(dynamicQuery);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
71       */
72      public static List<SCProductScreenshot> findWithDynamicQuery(
73          DynamicQuery dynamicQuery, int start, int end)
74          throws SystemException {
75          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76      }
77  
78      /**
79       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
80       */
81      public static SCProductScreenshot remove(
82          SCProductScreenshot scProductScreenshot) throws SystemException {
83          return getPersistence().remove(scProductScreenshot);
84      }
85  
86      /**
87       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
88       */
89      public static SCProductScreenshot update(
90          SCProductScreenshot scProductScreenshot, boolean merge)
91          throws SystemException {
92          return getPersistence().update(scProductScreenshot, merge);
93      }
94  
95      public static void cacheResult(
96          com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot) {
97          getPersistence().cacheResult(scProductScreenshot);
98      }
99  
100     public static void cacheResult(
101         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> scProductScreenshots) {
102         getPersistence().cacheResult(scProductScreenshots);
103     }
104 
105     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot create(
106         long productScreenshotId) {
107         return getPersistence().create(productScreenshotId);
108     }
109 
110     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot remove(
111         long productScreenshotId)
112         throws com.liferay.portal.kernel.exception.SystemException,
113             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
114         return getPersistence().remove(productScreenshotId);
115     }
116 
117     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot updateImpl(
118         com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot,
119         boolean merge)
120         throws com.liferay.portal.kernel.exception.SystemException {
121         return getPersistence().updateImpl(scProductScreenshot, merge);
122     }
123 
124     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByPrimaryKey(
125         long productScreenshotId)
126         throws com.liferay.portal.kernel.exception.SystemException,
127             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
128         return getPersistence().findByPrimaryKey(productScreenshotId);
129     }
130 
131     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByPrimaryKey(
132         long productScreenshotId)
133         throws com.liferay.portal.kernel.exception.SystemException {
134         return getPersistence().fetchByPrimaryKey(productScreenshotId);
135     }
136 
137     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
138         long productEntryId)
139         throws com.liferay.portal.kernel.exception.SystemException {
140         return getPersistence().findByProductEntryId(productEntryId);
141     }
142 
143     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
144         long productEntryId, int start, int end)
145         throws com.liferay.portal.kernel.exception.SystemException {
146         return getPersistence().findByProductEntryId(productEntryId, start, end);
147     }
148 
149     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
150         long productEntryId, int start, int end,
151         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152         throws com.liferay.portal.kernel.exception.SystemException {
153         return getPersistence()
154                    .findByProductEntryId(productEntryId, start, end,
155             orderByComparator);
156     }
157 
158     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_First(
159         long productEntryId,
160         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
161         throws com.liferay.portal.kernel.exception.SystemException,
162             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
163         return getPersistence()
164                    .findByProductEntryId_First(productEntryId, orderByComparator);
165     }
166 
167     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_Last(
168         long productEntryId,
169         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
170         throws com.liferay.portal.kernel.exception.SystemException,
171             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
172         return getPersistence()
173                    .findByProductEntryId_Last(productEntryId, orderByComparator);
174     }
175 
176     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot[] findByProductEntryId_PrevAndNext(
177         long productScreenshotId, long productEntryId,
178         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179         throws com.liferay.portal.kernel.exception.SystemException,
180             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
181         return getPersistence()
182                    .findByProductEntryId_PrevAndNext(productScreenshotId,
183             productEntryId, orderByComparator);
184     }
185 
186     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByThumbnailId(
187         long thumbnailId)
188         throws com.liferay.portal.kernel.exception.SystemException,
189             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
190         return getPersistence().findByThumbnailId(thumbnailId);
191     }
192 
193     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(
194         long thumbnailId)
195         throws com.liferay.portal.kernel.exception.SystemException {
196         return getPersistence().fetchByThumbnailId(thumbnailId);
197     }
198 
199     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(
200         long thumbnailId, boolean retrieveFromCache)
201         throws com.liferay.portal.kernel.exception.SystemException {
202         return getPersistence()
203                    .fetchByThumbnailId(thumbnailId, retrieveFromCache);
204     }
205 
206     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByFullImageId(
207         long fullImageId)
208         throws com.liferay.portal.kernel.exception.SystemException,
209             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
210         return getPersistence().findByFullImageId(fullImageId);
211     }
212 
213     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(
214         long fullImageId)
215         throws com.liferay.portal.kernel.exception.SystemException {
216         return getPersistence().fetchByFullImageId(fullImageId);
217     }
218 
219     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(
220         long fullImageId, boolean retrieveFromCache)
221         throws com.liferay.portal.kernel.exception.SystemException {
222         return getPersistence()
223                    .fetchByFullImageId(fullImageId, retrieveFromCache);
224     }
225 
226     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByP_P(
227         long productEntryId, int priority)
228         throws com.liferay.portal.kernel.exception.SystemException,
229             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
230         return getPersistence().findByP_P(productEntryId, priority);
231     }
232 
233     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P(
234         long productEntryId, int priority)
235         throws com.liferay.portal.kernel.exception.SystemException {
236         return getPersistence().fetchByP_P(productEntryId, priority);
237     }
238 
239     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P(
240         long productEntryId, int priority, boolean retrieveFromCache)
241         throws com.liferay.portal.kernel.exception.SystemException {
242         return getPersistence()
243                    .fetchByP_P(productEntryId, priority, retrieveFromCache);
244     }
245 
246     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll()
247         throws com.liferay.portal.kernel.exception.SystemException {
248         return getPersistence().findAll();
249     }
250 
251     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(
252         int start, int end)
253         throws com.liferay.portal.kernel.exception.SystemException {
254         return getPersistence().findAll(start, end);
255     }
256 
257     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(
258         int start, int end,
259         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
260         throws com.liferay.portal.kernel.exception.SystemException {
261         return getPersistence().findAll(start, end, orderByComparator);
262     }
263 
264     public static void removeByProductEntryId(long productEntryId)
265         throws com.liferay.portal.kernel.exception.SystemException {
266         getPersistence().removeByProductEntryId(productEntryId);
267     }
268 
269     public static void removeByThumbnailId(long thumbnailId)
270         throws com.liferay.portal.kernel.exception.SystemException,
271             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
272         getPersistence().removeByThumbnailId(thumbnailId);
273     }
274 
275     public static void removeByFullImageId(long fullImageId)
276         throws com.liferay.portal.kernel.exception.SystemException,
277             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
278         getPersistence().removeByFullImageId(fullImageId);
279     }
280 
281     public static void removeByP_P(long productEntryId, int priority)
282         throws com.liferay.portal.kernel.exception.SystemException,
283             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
284         getPersistence().removeByP_P(productEntryId, priority);
285     }
286 
287     public static void removeAll()
288         throws com.liferay.portal.kernel.exception.SystemException {
289         getPersistence().removeAll();
290     }
291 
292     public static int countByProductEntryId(long productEntryId)
293         throws com.liferay.portal.kernel.exception.SystemException {
294         return getPersistence().countByProductEntryId(productEntryId);
295     }
296 
297     public static int countByThumbnailId(long thumbnailId)
298         throws com.liferay.portal.kernel.exception.SystemException {
299         return getPersistence().countByThumbnailId(thumbnailId);
300     }
301 
302     public static int countByFullImageId(long fullImageId)
303         throws com.liferay.portal.kernel.exception.SystemException {
304         return getPersistence().countByFullImageId(fullImageId);
305     }
306 
307     public static int countByP_P(long productEntryId, int priority)
308         throws com.liferay.portal.kernel.exception.SystemException {
309         return getPersistence().countByP_P(productEntryId, priority);
310     }
311 
312     public static int countAll()
313         throws com.liferay.portal.kernel.exception.SystemException {
314         return getPersistence().countAll();
315     }
316 
317     public static SCProductScreenshotPersistence getPersistence() {
318         if (_persistence == null) {
319             _persistence = (SCProductScreenshotPersistence)PortalBeanLocatorUtil.locate(SCProductScreenshotPersistence.class.getName());
320         }
321 
322         return _persistence;
323     }
324 
325     public void setPersistence(SCProductScreenshotPersistence persistence) {
326         _persistence = persistence;
327     }
328 
329     private static SCProductScreenshotPersistence _persistence;
330 }