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#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.kernel.exception.SystemException,
97              com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
98          return getPersistence().remove(productScreenshotId);
99      }
100 
101     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot updateImpl(
102         com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot,
103         boolean merge)
104         throws com.liferay.portal.kernel.exception.SystemException {
105         return getPersistence().updateImpl(scProductScreenshot, merge);
106     }
107 
108     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByPrimaryKey(
109         long productScreenshotId)
110         throws com.liferay.portal.kernel.exception.SystemException,
111             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
112         return getPersistence().findByPrimaryKey(productScreenshotId);
113     }
114 
115     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByPrimaryKey(
116         long productScreenshotId)
117         throws com.liferay.portal.kernel.exception.SystemException {
118         return getPersistence().fetchByPrimaryKey(productScreenshotId);
119     }
120 
121     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
122         long productEntryId)
123         throws com.liferay.portal.kernel.exception.SystemException {
124         return getPersistence().findByProductEntryId(productEntryId);
125     }
126 
127     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
128         long productEntryId, int start, int end)
129         throws com.liferay.portal.kernel.exception.SystemException {
130         return getPersistence().findByProductEntryId(productEntryId, start, end);
131     }
132 
133     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
134         long productEntryId, int start, int end,
135         com.liferay.portal.kernel.util.OrderByComparator obc)
136         throws com.liferay.portal.kernel.exception.SystemException {
137         return getPersistence()
138                    .findByProductEntryId(productEntryId, start, end, obc);
139     }
140 
141     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_First(
142         long productEntryId,
143         com.liferay.portal.kernel.util.OrderByComparator obc)
144         throws com.liferay.portal.kernel.exception.SystemException,
145             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
146         return getPersistence().findByProductEntryId_First(productEntryId, obc);
147     }
148 
149     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_Last(
150         long productEntryId,
151         com.liferay.portal.kernel.util.OrderByComparator obc)
152         throws com.liferay.portal.kernel.exception.SystemException,
153             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
154         return getPersistence().findByProductEntryId_Last(productEntryId, obc);
155     }
156 
157     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot[] findByProductEntryId_PrevAndNext(
158         long productScreenshotId, long productEntryId,
159         com.liferay.portal.kernel.util.OrderByComparator obc)
160         throws com.liferay.portal.kernel.exception.SystemException,
161             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
162         return getPersistence()
163                    .findByProductEntryId_PrevAndNext(productScreenshotId,
164             productEntryId, obc);
165     }
166 
167     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByThumbnailId(
168         long thumbnailId)
169         throws com.liferay.portal.kernel.exception.SystemException,
170             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
171         return getPersistence().findByThumbnailId(thumbnailId);
172     }
173 
174     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(
175         long thumbnailId)
176         throws com.liferay.portal.kernel.exception.SystemException {
177         return getPersistence().fetchByThumbnailId(thumbnailId);
178     }
179 
180     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(
181         long thumbnailId, boolean retrieveFromCache)
182         throws com.liferay.portal.kernel.exception.SystemException {
183         return getPersistence()
184                    .fetchByThumbnailId(thumbnailId, retrieveFromCache);
185     }
186 
187     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByFullImageId(
188         long fullImageId)
189         throws com.liferay.portal.kernel.exception.SystemException,
190             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
191         return getPersistence().findByFullImageId(fullImageId);
192     }
193 
194     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(
195         long fullImageId)
196         throws com.liferay.portal.kernel.exception.SystemException {
197         return getPersistence().fetchByFullImageId(fullImageId);
198     }
199 
200     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(
201         long fullImageId, boolean retrieveFromCache)
202         throws com.liferay.portal.kernel.exception.SystemException {
203         return getPersistence()
204                    .fetchByFullImageId(fullImageId, retrieveFromCache);
205     }
206 
207     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByP_P(
208         long productEntryId, int priority)
209         throws com.liferay.portal.kernel.exception.SystemException,
210             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
211         return getPersistence().findByP_P(productEntryId, priority);
212     }
213 
214     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P(
215         long productEntryId, int priority)
216         throws com.liferay.portal.kernel.exception.SystemException {
217         return getPersistence().fetchByP_P(productEntryId, priority);
218     }
219 
220     public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P(
221         long productEntryId, int priority, boolean retrieveFromCache)
222         throws com.liferay.portal.kernel.exception.SystemException {
223         return getPersistence()
224                    .fetchByP_P(productEntryId, priority, retrieveFromCache);
225     }
226 
227     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll()
228         throws com.liferay.portal.kernel.exception.SystemException {
229         return getPersistence().findAll();
230     }
231 
232     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(
233         int start, int end)
234         throws com.liferay.portal.kernel.exception.SystemException {
235         return getPersistence().findAll(start, end);
236     }
237 
238     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(
239         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
240         throws com.liferay.portal.kernel.exception.SystemException {
241         return getPersistence().findAll(start, end, obc);
242     }
243 
244     public static void removeByProductEntryId(long productEntryId)
245         throws com.liferay.portal.kernel.exception.SystemException {
246         getPersistence().removeByProductEntryId(productEntryId);
247     }
248 
249     public static void removeByThumbnailId(long thumbnailId)
250         throws com.liferay.portal.kernel.exception.SystemException,
251             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
252         getPersistence().removeByThumbnailId(thumbnailId);
253     }
254 
255     public static void removeByFullImageId(long fullImageId)
256         throws com.liferay.portal.kernel.exception.SystemException,
257             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
258         getPersistence().removeByFullImageId(fullImageId);
259     }
260 
261     public static void removeByP_P(long productEntryId, int priority)
262         throws com.liferay.portal.kernel.exception.SystemException,
263             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
264         getPersistence().removeByP_P(productEntryId, priority);
265     }
266 
267     public static void removeAll()
268         throws com.liferay.portal.kernel.exception.SystemException {
269         getPersistence().removeAll();
270     }
271 
272     public static int countByProductEntryId(long productEntryId)
273         throws com.liferay.portal.kernel.exception.SystemException {
274         return getPersistence().countByProductEntryId(productEntryId);
275     }
276 
277     public static int countByThumbnailId(long thumbnailId)
278         throws com.liferay.portal.kernel.exception.SystemException {
279         return getPersistence().countByThumbnailId(thumbnailId);
280     }
281 
282     public static int countByFullImageId(long fullImageId)
283         throws com.liferay.portal.kernel.exception.SystemException {
284         return getPersistence().countByFullImageId(fullImageId);
285     }
286 
287     public static int countByP_P(long productEntryId, int priority)
288         throws com.liferay.portal.kernel.exception.SystemException {
289         return getPersistence().countByP_P(productEntryId, priority);
290     }
291 
292     public static int countAll()
293         throws com.liferay.portal.kernel.exception.SystemException {
294         return getPersistence().countAll();
295     }
296 
297     public static SCProductScreenshotPersistence getPersistence() {
298         if (_persistence == null) {
299             _persistence = (SCProductScreenshotPersistence)PortalBeanLocatorUtil.locate(SCProductScreenshotPersistence.class.getName());
300         }
301 
302         return _persistence;
303     }
304 
305     public void setPersistence(SCProductScreenshotPersistence persistence) {
306         _persistence = persistence;
307     }
308 
309     private static SCProductScreenshotPersistence _persistence;
310 }