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