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 obc)
141         throws com.liferay.portal.SystemException {
142         return getPersistence()
143                    .findByProductEntryId(productEntryId, start, end, obc);
144     }
145 
146     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion findByProductEntryId_First(
147         long productEntryId,
148         com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.SystemException,
150             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
151         return getPersistence().findByProductEntryId_First(productEntryId, obc);
152     }
153 
154     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion findByProductEntryId_Last(
155         long productEntryId,
156         com.liferay.portal.kernel.util.OrderByComparator obc)
157         throws com.liferay.portal.SystemException,
158             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
159         return getPersistence().findByProductEntryId_Last(productEntryId, obc);
160     }
161 
162     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion[] findByProductEntryId_PrevAndNext(
163         long productVersionId, long productEntryId,
164         com.liferay.portal.kernel.util.OrderByComparator obc)
165         throws com.liferay.portal.SystemException,
166             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
167         return getPersistence()
168                    .findByProductEntryId_PrevAndNext(productVersionId,
169             productEntryId, obc);
170     }
171 
172     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion findByDirectDownloadURL(
173         java.lang.String directDownloadURL)
174         throws com.liferay.portal.SystemException,
175             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
176         return getPersistence().findByDirectDownloadURL(directDownloadURL);
177     }
178 
179     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByDirectDownloadURL(
180         java.lang.String directDownloadURL)
181         throws com.liferay.portal.SystemException {
182         return getPersistence().fetchByDirectDownloadURL(directDownloadURL);
183     }
184 
185     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByDirectDownloadURL(
186         java.lang.String directDownloadURL, boolean retrieveFromCache)
187         throws com.liferay.portal.SystemException {
188         return getPersistence()
189                    .fetchByDirectDownloadURL(directDownloadURL,
190             retrieveFromCache);
191     }
192 
193     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll()
194         throws com.liferay.portal.SystemException {
195         return getPersistence().findAll();
196     }
197 
198     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll(
199         int start, int end) throws com.liferay.portal.SystemException {
200         return getPersistence().findAll(start, end);
201     }
202 
203     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll(
204         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
205         throws com.liferay.portal.SystemException {
206         return getPersistence().findAll(start, end, obc);
207     }
208 
209     public static void removeByProductEntryId(long productEntryId)
210         throws com.liferay.portal.SystemException {
211         getPersistence().removeByProductEntryId(productEntryId);
212     }
213 
214     public static void removeByDirectDownloadURL(
215         java.lang.String directDownloadURL)
216         throws com.liferay.portal.SystemException,
217             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
218         getPersistence().removeByDirectDownloadURL(directDownloadURL);
219     }
220 
221     public static void removeAll() throws com.liferay.portal.SystemException {
222         getPersistence().removeAll();
223     }
224 
225     public static int countByProductEntryId(long productEntryId)
226         throws com.liferay.portal.SystemException {
227         return getPersistence().countByProductEntryId(productEntryId);
228     }
229 
230     public static int countByDirectDownloadURL(
231         java.lang.String directDownloadURL)
232         throws com.liferay.portal.SystemException {
233         return getPersistence().countByDirectDownloadURL(directDownloadURL);
234     }
235 
236     public static int countAll() throws com.liferay.portal.SystemException {
237         return getPersistence().countAll();
238     }
239 
240     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
241         long pk) throws com.liferay.portal.SystemException {
242         return getPersistence().getSCFrameworkVersions(pk);
243     }
244 
245     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
246         long pk, int start, int end) throws com.liferay.portal.SystemException {
247         return getPersistence().getSCFrameworkVersions(pk, start, end);
248     }
249 
250     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
251         long pk, int start, int end,
252         com.liferay.portal.kernel.util.OrderByComparator obc)
253         throws com.liferay.portal.SystemException {
254         return getPersistence().getSCFrameworkVersions(pk, start, end, obc);
255     }
256 
257     public static int getSCFrameworkVersionsSize(long pk)
258         throws com.liferay.portal.SystemException {
259         return getPersistence().getSCFrameworkVersionsSize(pk);
260     }
261 
262     public static boolean containsSCFrameworkVersion(long pk,
263         long scFrameworkVersionPK) throws com.liferay.portal.SystemException {
264         return getPersistence()
265                    .containsSCFrameworkVersion(pk, scFrameworkVersionPK);
266     }
267 
268     public static boolean containsSCFrameworkVersions(long pk)
269         throws com.liferay.portal.SystemException {
270         return getPersistence().containsSCFrameworkVersions(pk);
271     }
272 
273     public static void addSCFrameworkVersion(long pk, long scFrameworkVersionPK)
274         throws com.liferay.portal.SystemException {
275         getPersistence().addSCFrameworkVersion(pk, scFrameworkVersionPK);
276     }
277 
278     public static void addSCFrameworkVersion(long pk,
279         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
280         throws com.liferay.portal.SystemException {
281         getPersistence().addSCFrameworkVersion(pk, scFrameworkVersion);
282     }
283 
284     public static void addSCFrameworkVersions(long pk,
285         long[] scFrameworkVersionPKs) throws com.liferay.portal.SystemException {
286         getPersistence().addSCFrameworkVersions(pk, scFrameworkVersionPKs);
287     }
288 
289     public static void addSCFrameworkVersions(long pk,
290         java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
291         throws com.liferay.portal.SystemException {
292         getPersistence().addSCFrameworkVersions(pk, scFrameworkVersions);
293     }
294 
295     public static void clearSCFrameworkVersions(long pk)
296         throws com.liferay.portal.SystemException {
297         getPersistence().clearSCFrameworkVersions(pk);
298     }
299 
300     public static void removeSCFrameworkVersion(long pk,
301         long scFrameworkVersionPK) throws com.liferay.portal.SystemException {
302         getPersistence().removeSCFrameworkVersion(pk, scFrameworkVersionPK);
303     }
304 
305     public static void removeSCFrameworkVersion(long pk,
306         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
307         throws com.liferay.portal.SystemException {
308         getPersistence().removeSCFrameworkVersion(pk, scFrameworkVersion);
309     }
310 
311     public static void removeSCFrameworkVersions(long pk,
312         long[] scFrameworkVersionPKs) throws com.liferay.portal.SystemException {
313         getPersistence().removeSCFrameworkVersions(pk, scFrameworkVersionPKs);
314     }
315 
316     public static void removeSCFrameworkVersions(long pk,
317         java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
318         throws com.liferay.portal.SystemException {
319         getPersistence().removeSCFrameworkVersions(pk, scFrameworkVersions);
320     }
321 
322     public static void setSCFrameworkVersions(long pk,
323         long[] scFrameworkVersionPKs) throws com.liferay.portal.SystemException {
324         getPersistence().setSCFrameworkVersions(pk, scFrameworkVersionPKs);
325     }
326 
327     public static void setSCFrameworkVersions(long pk,
328         java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
329         throws com.liferay.portal.SystemException {
330         getPersistence().setSCFrameworkVersions(pk, scFrameworkVersions);
331     }
332 
333     public static SCProductVersionPersistence getPersistence() {
334         if (_persistence == null) {
335             _persistence = (SCProductVersionPersistence)PortalBeanLocatorUtil.locate(SCProductVersionPersistence.class.getName());
336         }
337 
338         return _persistence;
339     }
340 
341     public void setPersistence(SCProductVersionPersistence persistence) {
342         _persistence = persistence;
343     }
344 
345     private static SCProductVersionPersistence _persistence;
346 }