1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.softwarecatalog.service.persistence;
24  
25  /**
26   * <a href="SCProductVersionUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class SCProductVersionUtil {
32      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion create(
33          long productVersionId) {
34          return getPersistence().create(productVersionId);
35      }
36  
37      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion remove(
38          long productVersionId)
39          throws com.liferay.portal.SystemException, 
40              com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
41          return getPersistence().remove(productVersionId);
42      }
43  
44      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion remove(
45          com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
46          throws com.liferay.portal.SystemException {
47          return getPersistence().remove(scProductVersion);
48      }
49  
50      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion update(
51          com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
52          throws com.liferay.portal.SystemException {
53          return getPersistence().update(scProductVersion);
54      }
55  
56      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion update(
57          com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion,
58          boolean merge) throws com.liferay.portal.SystemException {
59          return getPersistence().update(scProductVersion, merge);
60      }
61  
62      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateImpl(
63          com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion,
64          boolean merge) throws com.liferay.portal.SystemException {
65          return getPersistence().updateImpl(scProductVersion, merge);
66      }
67  
68      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion findByPrimaryKey(
69          long productVersionId)
70          throws com.liferay.portal.SystemException, 
71              com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
72          return getPersistence().findByPrimaryKey(productVersionId);
73      }
74  
75      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByPrimaryKey(
76          long productVersionId) throws com.liferay.portal.SystemException {
77          return getPersistence().fetchByPrimaryKey(productVersionId);
78      }
79  
80      public static java.util.List findByProductEntryId(long productEntryId)
81          throws com.liferay.portal.SystemException {
82          return getPersistence().findByProductEntryId(productEntryId);
83      }
84  
85      public static java.util.List findByProductEntryId(long productEntryId,
86          int begin, int end) throws com.liferay.portal.SystemException {
87          return getPersistence().findByProductEntryId(productEntryId, begin, end);
88      }
89  
90      public static java.util.List findByProductEntryId(long productEntryId,
91          int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
92          throws com.liferay.portal.SystemException {
93          return getPersistence().findByProductEntryId(productEntryId, begin,
94              end, obc);
95      }
96  
97      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion findByProductEntryId_First(
98          long productEntryId,
99          com.liferay.portal.kernel.util.OrderByComparator obc)
100         throws com.liferay.portal.SystemException, 
101             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
102         return getPersistence().findByProductEntryId_First(productEntryId, obc);
103     }
104 
105     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion findByProductEntryId_Last(
106         long productEntryId,
107         com.liferay.portal.kernel.util.OrderByComparator obc)
108         throws com.liferay.portal.SystemException, 
109             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
110         return getPersistence().findByProductEntryId_Last(productEntryId, obc);
111     }
112 
113     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion[] findByProductEntryId_PrevAndNext(
114         long productVersionId, long productEntryId,
115         com.liferay.portal.kernel.util.OrderByComparator obc)
116         throws com.liferay.portal.SystemException, 
117             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
118         return getPersistence().findByProductEntryId_PrevAndNext(productVersionId,
119             productEntryId, obc);
120     }
121 
122     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion findByDirectDownloadURL(
123         java.lang.String directDownloadURL)
124         throws com.liferay.portal.SystemException, 
125             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
126         return getPersistence().findByDirectDownloadURL(directDownloadURL);
127     }
128 
129     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByDirectDownloadURL(
130         java.lang.String directDownloadURL)
131         throws com.liferay.portal.SystemException {
132         return getPersistence().fetchByDirectDownloadURL(directDownloadURL);
133     }
134 
135     public static java.util.List findWithDynamicQuery(
136         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
137         throws com.liferay.portal.SystemException {
138         return getPersistence().findWithDynamicQuery(queryInitializer);
139     }
140 
141     public static java.util.List findWithDynamicQuery(
142         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
143         int begin, int end) throws com.liferay.portal.SystemException {
144         return getPersistence().findWithDynamicQuery(queryInitializer, begin,
145             end);
146     }
147 
148     public static java.util.List findAll()
149         throws com.liferay.portal.SystemException {
150         return getPersistence().findAll();
151     }
152 
153     public static java.util.List findAll(int begin, int end)
154         throws com.liferay.portal.SystemException {
155         return getPersistence().findAll(begin, end);
156     }
157 
158     public static java.util.List findAll(int begin, int end,
159         com.liferay.portal.kernel.util.OrderByComparator obc)
160         throws com.liferay.portal.SystemException {
161         return getPersistence().findAll(begin, end, obc);
162     }
163 
164     public static void removeByProductEntryId(long productEntryId)
165         throws com.liferay.portal.SystemException {
166         getPersistence().removeByProductEntryId(productEntryId);
167     }
168 
169     public static void removeByDirectDownloadURL(
170         java.lang.String directDownloadURL)
171         throws com.liferay.portal.SystemException, 
172             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
173         getPersistence().removeByDirectDownloadURL(directDownloadURL);
174     }
175 
176     public static void removeAll() throws com.liferay.portal.SystemException {
177         getPersistence().removeAll();
178     }
179 
180     public static int countByProductEntryId(long productEntryId)
181         throws com.liferay.portal.SystemException {
182         return getPersistence().countByProductEntryId(productEntryId);
183     }
184 
185     public static int countByDirectDownloadURL(
186         java.lang.String directDownloadURL)
187         throws com.liferay.portal.SystemException {
188         return getPersistence().countByDirectDownloadURL(directDownloadURL);
189     }
190 
191     public static int countAll() throws com.liferay.portal.SystemException {
192         return getPersistence().countAll();
193     }
194 
195     public static java.util.List getSCFrameworkVersions(long pk)
196         throws com.liferay.portal.SystemException, 
197             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
198         return getPersistence().getSCFrameworkVersions(pk);
199     }
200 
201     public static java.util.List getSCFrameworkVersions(long pk, int begin,
202         int end)
203         throws com.liferay.portal.SystemException, 
204             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
205         return getPersistence().getSCFrameworkVersions(pk, begin, end);
206     }
207 
208     public static java.util.List getSCFrameworkVersions(long pk, int begin,
209         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
210         throws com.liferay.portal.SystemException, 
211             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
212         return getPersistence().getSCFrameworkVersions(pk, begin, end, obc);
213     }
214 
215     public static int getSCFrameworkVersionsSize(long pk)
216         throws com.liferay.portal.SystemException {
217         return getPersistence().getSCFrameworkVersionsSize(pk);
218     }
219 
220     public static boolean containsSCFrameworkVersion(long pk,
221         long scFrameworkVersionPK) throws com.liferay.portal.SystemException {
222         return getPersistence().containsSCFrameworkVersion(pk,
223             scFrameworkVersionPK);
224     }
225 
226     public static boolean containsSCFrameworkVersions(long pk)
227         throws com.liferay.portal.SystemException {
228         return getPersistence().containsSCFrameworkVersions(pk);
229     }
230 
231     public static void addSCFrameworkVersion(long pk, long scFrameworkVersionPK)
232         throws com.liferay.portal.SystemException, 
233             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException, 
234             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
235         getPersistence().addSCFrameworkVersion(pk, scFrameworkVersionPK);
236     }
237 
238     public static void addSCFrameworkVersion(long pk,
239         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
240         throws com.liferay.portal.SystemException, 
241             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException, 
242             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
243         getPersistence().addSCFrameworkVersion(pk, scFrameworkVersion);
244     }
245 
246     public static void addSCFrameworkVersions(long pk,
247         long[] scFrameworkVersionPKs)
248         throws com.liferay.portal.SystemException, 
249             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException, 
250             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
251         getPersistence().addSCFrameworkVersions(pk, scFrameworkVersionPKs);
252     }
253 
254     public static void addSCFrameworkVersions(long pk,
255         java.util.List scFrameworkVersions)
256         throws com.liferay.portal.SystemException, 
257             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException, 
258             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
259         getPersistence().addSCFrameworkVersions(pk, scFrameworkVersions);
260     }
261 
262     public static void clearSCFrameworkVersions(long pk)
263         throws com.liferay.portal.SystemException, 
264             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
265         getPersistence().clearSCFrameworkVersions(pk);
266     }
267 
268     public static void removeSCFrameworkVersion(long pk,
269         long scFrameworkVersionPK)
270         throws com.liferay.portal.SystemException, 
271             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException, 
272             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
273         getPersistence().removeSCFrameworkVersion(pk, scFrameworkVersionPK);
274     }
275 
276     public static void removeSCFrameworkVersion(long pk,
277         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
278         throws com.liferay.portal.SystemException, 
279             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException, 
280             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
281         getPersistence().removeSCFrameworkVersion(pk, scFrameworkVersion);
282     }
283 
284     public static void removeSCFrameworkVersions(long pk,
285         long[] scFrameworkVersionPKs)
286         throws com.liferay.portal.SystemException, 
287             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException, 
288             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
289         getPersistence().removeSCFrameworkVersions(pk, scFrameworkVersionPKs);
290     }
291 
292     public static void removeSCFrameworkVersions(long pk,
293         java.util.List scFrameworkVersions)
294         throws com.liferay.portal.SystemException, 
295             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException, 
296             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
297         getPersistence().removeSCFrameworkVersions(pk, scFrameworkVersions);
298     }
299 
300     public static void setSCFrameworkVersions(long pk,
301         long[] scFrameworkVersionPKs)
302         throws com.liferay.portal.SystemException, 
303             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException, 
304             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
305         getPersistence().setSCFrameworkVersions(pk, scFrameworkVersionPKs);
306     }
307 
308     public static void setSCFrameworkVersions(long pk,
309         java.util.List scFrameworkVersions)
310         throws com.liferay.portal.SystemException, 
311             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException, 
312             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
313         getPersistence().setSCFrameworkVersions(pk, scFrameworkVersions);
314     }
315 
316     public static SCProductVersionPersistence getPersistence() {
317         return _getUtil()._persistence;
318     }
319 
320     public void setPersistence(SCProductVersionPersistence persistence) {
321         _persistence = persistence;
322     }
323 
324     private static SCProductVersionUtil _getUtil() {
325         if (_util == null) {
326             _util = (SCProductVersionUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
327         }
328 
329         return _util;
330     }
331 
332     private static final String _UTIL = SCProductVersionUtil.class.getName();
333     private static SCProductVersionUtil _util;
334     private SCProductVersionPersistence _persistence;
335 }