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.SCProductVersion;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="SCProductVersionUtil.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       SCProductVersionPersistence
35   * @see       SCProductVersionPersistenceImpl
36   * @generated
37   */
38  public class SCProductVersionUtil {
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 SCProductVersion remove(SCProductVersion scProductVersion)
66          throws SystemException {
67          return getPersistence().remove(scProductVersion);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static SCProductVersion update(SCProductVersion scProductVersion,
74          boolean merge) throws SystemException {
75          return getPersistence().update(scProductVersion, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion) {
80          getPersistence().cacheResult(scProductVersion);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions) {
85          getPersistence().cacheResult(scProductVersions);
86      }
87  
88      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion create(
89          long productVersionId) {
90          return getPersistence().create(productVersionId);
91      }
92  
93      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion remove(
94          long productVersionId)
95          throws com.liferay.portal.kernel.exception.SystemException,
96              com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
97          return getPersistence().remove(productVersionId);
98      }
99  
100     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateImpl(
101         com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion,
102         boolean merge)
103         throws com.liferay.portal.kernel.exception.SystemException {
104         return getPersistence().updateImpl(scProductVersion, merge);
105     }
106 
107     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion findByPrimaryKey(
108         long productVersionId)
109         throws com.liferay.portal.kernel.exception.SystemException,
110             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
111         return getPersistence().findByPrimaryKey(productVersionId);
112     }
113 
114     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByPrimaryKey(
115         long productVersionId)
116         throws com.liferay.portal.kernel.exception.SystemException {
117         return getPersistence().fetchByPrimaryKey(productVersionId);
118     }
119 
120     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findByProductEntryId(
121         long productEntryId)
122         throws com.liferay.portal.kernel.exception.SystemException {
123         return getPersistence().findByProductEntryId(productEntryId);
124     }
125 
126     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findByProductEntryId(
127         long productEntryId, int start, int end)
128         throws com.liferay.portal.kernel.exception.SystemException {
129         return getPersistence().findByProductEntryId(productEntryId, start, end);
130     }
131 
132     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findByProductEntryId(
133         long productEntryId, int start, int end,
134         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135         throws com.liferay.portal.kernel.exception.SystemException {
136         return getPersistence()
137                    .findByProductEntryId(productEntryId, start, end,
138             orderByComparator);
139     }
140 
141     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion findByProductEntryId_First(
142         long productEntryId,
143         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144         throws com.liferay.portal.kernel.exception.SystemException,
145             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
146         return getPersistence()
147                    .findByProductEntryId_First(productEntryId, orderByComparator);
148     }
149 
150     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion findByProductEntryId_Last(
151         long productEntryId,
152         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153         throws com.liferay.portal.kernel.exception.SystemException,
154             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
155         return getPersistence()
156                    .findByProductEntryId_Last(productEntryId, orderByComparator);
157     }
158 
159     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion[] findByProductEntryId_PrevAndNext(
160         long productVersionId, long productEntryId,
161         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
162         throws com.liferay.portal.kernel.exception.SystemException,
163             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
164         return getPersistence()
165                    .findByProductEntryId_PrevAndNext(productVersionId,
166             productEntryId, orderByComparator);
167     }
168 
169     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion findByDirectDownloadURL(
170         java.lang.String directDownloadURL)
171         throws com.liferay.portal.kernel.exception.SystemException,
172             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
173         return getPersistence().findByDirectDownloadURL(directDownloadURL);
174     }
175 
176     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByDirectDownloadURL(
177         java.lang.String directDownloadURL)
178         throws com.liferay.portal.kernel.exception.SystemException {
179         return getPersistence().fetchByDirectDownloadURL(directDownloadURL);
180     }
181 
182     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByDirectDownloadURL(
183         java.lang.String directDownloadURL, boolean retrieveFromCache)
184         throws com.liferay.portal.kernel.exception.SystemException {
185         return getPersistence()
186                    .fetchByDirectDownloadURL(directDownloadURL,
187             retrieveFromCache);
188     }
189 
190     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll()
191         throws com.liferay.portal.kernel.exception.SystemException {
192         return getPersistence().findAll();
193     }
194 
195     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll(
196         int start, int end)
197         throws com.liferay.portal.kernel.exception.SystemException {
198         return getPersistence().findAll(start, end);
199     }
200 
201     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll(
202         int start, int end,
203         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
204         throws com.liferay.portal.kernel.exception.SystemException {
205         return getPersistence().findAll(start, end, orderByComparator);
206     }
207 
208     public static void removeByProductEntryId(long productEntryId)
209         throws com.liferay.portal.kernel.exception.SystemException {
210         getPersistence().removeByProductEntryId(productEntryId);
211     }
212 
213     public static void removeByDirectDownloadURL(
214         java.lang.String directDownloadURL)
215         throws com.liferay.portal.kernel.exception.SystemException,
216             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
217         getPersistence().removeByDirectDownloadURL(directDownloadURL);
218     }
219 
220     public static void removeAll()
221         throws com.liferay.portal.kernel.exception.SystemException {
222         getPersistence().removeAll();
223     }
224 
225     public static int countByProductEntryId(long productEntryId)
226         throws com.liferay.portal.kernel.exception.SystemException {
227         return getPersistence().countByProductEntryId(productEntryId);
228     }
229 
230     public static int countByDirectDownloadURL(
231         java.lang.String directDownloadURL)
232         throws com.liferay.portal.kernel.exception.SystemException {
233         return getPersistence().countByDirectDownloadURL(directDownloadURL);
234     }
235 
236     public static int countAll()
237         throws com.liferay.portal.kernel.exception.SystemException {
238         return getPersistence().countAll();
239     }
240 
241     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
242         long pk) throws com.liferay.portal.kernel.exception.SystemException {
243         return getPersistence().getSCFrameworkVersions(pk);
244     }
245 
246     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
247         long pk, int start, int end)
248         throws com.liferay.portal.kernel.exception.SystemException {
249         return getPersistence().getSCFrameworkVersions(pk, start, end);
250     }
251 
252     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
253         long pk, int start, int end,
254         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
255         throws com.liferay.portal.kernel.exception.SystemException {
256         return getPersistence()
257                    .getSCFrameworkVersions(pk, start, end, orderByComparator);
258     }
259 
260     public static int getSCFrameworkVersionsSize(long pk)
261         throws com.liferay.portal.kernel.exception.SystemException {
262         return getPersistence().getSCFrameworkVersionsSize(pk);
263     }
264 
265     public static boolean containsSCFrameworkVersion(long pk,
266         long scFrameworkVersionPK)
267         throws com.liferay.portal.kernel.exception.SystemException {
268         return getPersistence()
269                    .containsSCFrameworkVersion(pk, scFrameworkVersionPK);
270     }
271 
272     public static boolean containsSCFrameworkVersions(long pk)
273         throws com.liferay.portal.kernel.exception.SystemException {
274         return getPersistence().containsSCFrameworkVersions(pk);
275     }
276 
277     public static void addSCFrameworkVersion(long pk, long scFrameworkVersionPK)
278         throws com.liferay.portal.kernel.exception.SystemException {
279         getPersistence().addSCFrameworkVersion(pk, scFrameworkVersionPK);
280     }
281 
282     public static void addSCFrameworkVersion(long pk,
283         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
284         throws com.liferay.portal.kernel.exception.SystemException {
285         getPersistence().addSCFrameworkVersion(pk, scFrameworkVersion);
286     }
287 
288     public static void addSCFrameworkVersions(long pk,
289         long[] scFrameworkVersionPKs)
290         throws com.liferay.portal.kernel.exception.SystemException {
291         getPersistence().addSCFrameworkVersions(pk, scFrameworkVersionPKs);
292     }
293 
294     public static void addSCFrameworkVersions(long pk,
295         java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
296         throws com.liferay.portal.kernel.exception.SystemException {
297         getPersistence().addSCFrameworkVersions(pk, scFrameworkVersions);
298     }
299 
300     public static void clearSCFrameworkVersions(long pk)
301         throws com.liferay.portal.kernel.exception.SystemException {
302         getPersistence().clearSCFrameworkVersions(pk);
303     }
304 
305     public static void removeSCFrameworkVersion(long pk,
306         long scFrameworkVersionPK)
307         throws com.liferay.portal.kernel.exception.SystemException {
308         getPersistence().removeSCFrameworkVersion(pk, scFrameworkVersionPK);
309     }
310 
311     public static void removeSCFrameworkVersion(long pk,
312         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
313         throws com.liferay.portal.kernel.exception.SystemException {
314         getPersistence().removeSCFrameworkVersion(pk, scFrameworkVersion);
315     }
316 
317     public static void removeSCFrameworkVersions(long pk,
318         long[] scFrameworkVersionPKs)
319         throws com.liferay.portal.kernel.exception.SystemException {
320         getPersistence().removeSCFrameworkVersions(pk, scFrameworkVersionPKs);
321     }
322 
323     public static void removeSCFrameworkVersions(long pk,
324         java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
325         throws com.liferay.portal.kernel.exception.SystemException {
326         getPersistence().removeSCFrameworkVersions(pk, scFrameworkVersions);
327     }
328 
329     public static void setSCFrameworkVersions(long pk,
330         long[] scFrameworkVersionPKs)
331         throws com.liferay.portal.kernel.exception.SystemException {
332         getPersistence().setSCFrameworkVersions(pk, scFrameworkVersionPKs);
333     }
334 
335     public static void setSCFrameworkVersions(long pk,
336         java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
337         throws com.liferay.portal.kernel.exception.SystemException {
338         getPersistence().setSCFrameworkVersions(pk, scFrameworkVersions);
339     }
340 
341     public static SCProductVersionPersistence getPersistence() {
342         if (_persistence == null) {
343             _persistence = (SCProductVersionPersistence)PortalBeanLocatorUtil.locate(SCProductVersionPersistence.class.getName());
344         }
345 
346         return _persistence;
347     }
348 
349     public void setPersistence(SCProductVersionPersistence persistence) {
350         _persistence = persistence;
351     }
352 
353     private static SCProductVersionPersistence _persistence;
354 }