1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.softwarecatalog.service.persistence;
16  
17  import com.liferay.portal.SystemException;
18  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
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#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 SCProductScreenshot remove(
66          SCProductScreenshot scProductScreenshot) throws SystemException {
67          return getPersistence().remove(scProductScreenshot);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static SCProductScreenshot update(
74          SCProductScreenshot scProductScreenshot, boolean merge)
75          throws SystemException {
76          return getPersistence().update(scProductScreenshot, merge);
77      }
78  
79      public static void cacheResult(
80          com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot) {
81          getPersistence().cacheResult(scProductScreenshot);
82      }
83  
84      public static void cacheResult(
85          java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> scProductScreenshots) {
86          getPersistence().cacheResult(scProductScreenshots);
87      }
88  
89      public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot create(
90          long productScreenshotId) {
91          return getPersistence().create(productScreenshotId);
92      }
93  
94      public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot remove(
95          long productScreenshotId)
96          throws com.liferay.portal.SystemException,
97              com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
98          return getPersistence().remove(productScreenshotId);
99      }
100 
101     /**
102      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
103      */
104     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot update(
105         com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot)
106         throws com.liferay.portal.SystemException {
107         return getPersistence().update(scProductScreenshot);
108     }
109 
110     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot updateImpl(
111         com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot,
112         boolean merge) throws com.liferay.portal.SystemException {
113         return getPersistence().updateImpl(scProductScreenshot, merge);
114     }
115 
116     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByPrimaryKey(
117         long productScreenshotId)
118         throws com.liferay.portal.SystemException,
119             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
120         return getPersistence().findByPrimaryKey(productScreenshotId);
121     }
122 
123     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByPrimaryKey(
124         long productScreenshotId) throws com.liferay.portal.SystemException {
125         return getPersistence().fetchByPrimaryKey(productScreenshotId);
126     }
127 
128     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
129         long productEntryId) throws com.liferay.portal.SystemException {
130         return getPersistence().findByProductEntryId(productEntryId);
131     }
132 
133     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
134         long productEntryId, int start, int end)
135         throws com.liferay.portal.SystemException {
136         return getPersistence().findByProductEntryId(productEntryId, start, end);
137     }
138 
139     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
140         long productEntryId, int start, int end,
141         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142         throws com.liferay.portal.SystemException {
143         return getPersistence()
144                    .findByProductEntryId(productEntryId, start, end,
145             orderByComparator);
146     }
147 
148     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_First(
149         long productEntryId,
150         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151         throws com.liferay.portal.SystemException,
152             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
153         return getPersistence()
154                    .findByProductEntryId_First(productEntryId, orderByComparator);
155     }
156 
157     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_Last(
158         long productEntryId,
159         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
160         throws com.liferay.portal.SystemException,
161             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
162         return getPersistence()
163                    .findByProductEntryId_Last(productEntryId, orderByComparator);
164     }
165 
166     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot[] findByProductEntryId_PrevAndNext(
167         long productScreenshotId, long productEntryId,
168         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
169         throws com.liferay.portal.SystemException,
170             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
171         return getPersistence()
172                    .findByProductEntryId_PrevAndNext(productScreenshotId,
173             productEntryId, orderByComparator);
174     }
175 
176     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByThumbnailId(
177         long thumbnailId)
178         throws com.liferay.portal.SystemException,
179             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
180         return getPersistence().findByThumbnailId(thumbnailId);
181     }
182 
183     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(
184         long thumbnailId) throws com.liferay.portal.SystemException {
185         return getPersistence().fetchByThumbnailId(thumbnailId);
186     }
187 
188     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(
189         long thumbnailId, boolean retrieveFromCache)
190         throws com.liferay.portal.SystemException {
191         return getPersistence()
192                    .fetchByThumbnailId(thumbnailId, retrieveFromCache);
193     }
194 
195     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByFullImageId(
196         long fullImageId)
197         throws com.liferay.portal.SystemException,
198             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
199         return getPersistence().findByFullImageId(fullImageId);
200     }
201 
202     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(
203         long fullImageId) throws com.liferay.portal.SystemException {
204         return getPersistence().fetchByFullImageId(fullImageId);
205     }
206 
207     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(
208         long fullImageId, boolean retrieveFromCache)
209         throws com.liferay.portal.SystemException {
210         return getPersistence()
211                    .fetchByFullImageId(fullImageId, retrieveFromCache);
212     }
213 
214     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByP_P(
215         long productEntryId, int priority)
216         throws com.liferay.portal.SystemException,
217             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
218         return getPersistence().findByP_P(productEntryId, priority);
219     }
220 
221     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P(
222         long productEntryId, int priority)
223         throws com.liferay.portal.SystemException {
224         return getPersistence().fetchByP_P(productEntryId, priority);
225     }
226 
227     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P(
228         long productEntryId, int priority, boolean retrieveFromCache)
229         throws com.liferay.portal.SystemException {
230         return getPersistence()
231                    .fetchByP_P(productEntryId, priority, retrieveFromCache);
232     }
233 
234     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll()
235         throws com.liferay.portal.SystemException {
236         return getPersistence().findAll();
237     }
238 
239     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(
240         int start, int end) throws com.liferay.portal.SystemException {
241         return getPersistence().findAll(start, end);
242     }
243 
244     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(
245         int start, int end,
246         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
247         throws com.liferay.portal.SystemException {
248         return getPersistence().findAll(start, end, orderByComparator);
249     }
250 
251     public static void removeByProductEntryId(long productEntryId)
252         throws com.liferay.portal.SystemException {
253         getPersistence().removeByProductEntryId(productEntryId);
254     }
255 
256     public static void removeByThumbnailId(long thumbnailId)
257         throws com.liferay.portal.SystemException,
258             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
259         getPersistence().removeByThumbnailId(thumbnailId);
260     }
261 
262     public static void removeByFullImageId(long fullImageId)
263         throws com.liferay.portal.SystemException,
264             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
265         getPersistence().removeByFullImageId(fullImageId);
266     }
267 
268     public static void removeByP_P(long productEntryId, int priority)
269         throws com.liferay.portal.SystemException,
270             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
271         getPersistence().removeByP_P(productEntryId, priority);
272     }
273 
274     public static void removeAll() throws com.liferay.portal.SystemException {
275         getPersistence().removeAll();
276     }
277 
278     public static int countByProductEntryId(long productEntryId)
279         throws com.liferay.portal.SystemException {
280         return getPersistence().countByProductEntryId(productEntryId);
281     }
282 
283     public static int countByThumbnailId(long thumbnailId)
284         throws com.liferay.portal.SystemException {
285         return getPersistence().countByThumbnailId(thumbnailId);
286     }
287 
288     public static int countByFullImageId(long fullImageId)
289         throws com.liferay.portal.SystemException {
290         return getPersistence().countByFullImageId(fullImageId);
291     }
292 
293     public static int countByP_P(long productEntryId, int priority)
294         throws com.liferay.portal.SystemException {
295         return getPersistence().countByP_P(productEntryId, priority);
296     }
297 
298     public static int countAll() throws com.liferay.portal.SystemException {
299         return getPersistence().countAll();
300     }
301 
302     public static SCProductScreenshotPersistence getPersistence() {
303         if (_persistence == null) {
304             _persistence = (SCProductScreenshotPersistence)PortalBeanLocatorUtil.locate(SCProductScreenshotPersistence.class.getName());
305         }
306 
307         return _persistence;
308     }
309 
310     public void setPersistence(SCProductScreenshotPersistence persistence) {
311         _persistence = persistence;
312     }
313 
314     private static SCProductScreenshotPersistence _persistence;
315 }