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