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 java.util.List findWithDynamicQuery(
123         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
124         throws com.liferay.portal.SystemException {
125         return getPersistence().findWithDynamicQuery(queryInitializer);
126     }
127 
128     public static java.util.List findWithDynamicQuery(
129         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
130         int begin, int end) throws com.liferay.portal.SystemException {
131         return getPersistence().findWithDynamicQuery(queryInitializer, begin,
132             end);
133     }
134 
135     public static java.util.List findAll()
136         throws com.liferay.portal.SystemException {
137         return getPersistence().findAll();
138     }
139 
140     public static java.util.List findAll(int begin, int end)
141         throws com.liferay.portal.SystemException {
142         return getPersistence().findAll(begin, end);
143     }
144 
145     public static java.util.List findAll(int begin, int end,
146         com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.SystemException {
148         return getPersistence().findAll(begin, end, obc);
149     }
150 
151     public static void removeByProductEntryId(long productEntryId)
152         throws com.liferay.portal.SystemException {
153         getPersistence().removeByProductEntryId(productEntryId);
154     }
155 
156     public static void removeAll() throws com.liferay.portal.SystemException {
157         getPersistence().removeAll();
158     }
159 
160     public static int countByProductEntryId(long productEntryId)
161         throws com.liferay.portal.SystemException {
162         return getPersistence().countByProductEntryId(productEntryId);
163     }
164 
165     public static int countAll() throws com.liferay.portal.SystemException {
166         return getPersistence().countAll();
167     }
168 
169     public static java.util.List getSCFrameworkVersions(long pk)
170         throws com.liferay.portal.SystemException, 
171             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
172         return getPersistence().getSCFrameworkVersions(pk);
173     }
174 
175     public static java.util.List getSCFrameworkVersions(long pk, int begin,
176         int end)
177         throws com.liferay.portal.SystemException, 
178             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
179         return getPersistence().getSCFrameworkVersions(pk, begin, end);
180     }
181 
182     public static java.util.List getSCFrameworkVersions(long pk, int begin,
183         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
184         throws com.liferay.portal.SystemException, 
185             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
186         return getPersistence().getSCFrameworkVersions(pk, begin, end, obc);
187     }
188 
189     public static int getSCFrameworkVersionsSize(long pk)
190         throws com.liferay.portal.SystemException {
191         return getPersistence().getSCFrameworkVersionsSize(pk);
192     }
193 
194     public static boolean containsSCFrameworkVersion(long pk,
195         long scFrameworkVersionPK) throws com.liferay.portal.SystemException {
196         return getPersistence().containsSCFrameworkVersion(pk,
197             scFrameworkVersionPK);
198     }
199 
200     public static boolean containsSCFrameworkVersions(long pk)
201         throws com.liferay.portal.SystemException {
202         return getPersistence().containsSCFrameworkVersions(pk);
203     }
204 
205     public static void addSCFrameworkVersion(long pk, long scFrameworkVersionPK)
206         throws com.liferay.portal.SystemException, 
207             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException, 
208             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
209         getPersistence().addSCFrameworkVersion(pk, scFrameworkVersionPK);
210     }
211 
212     public static void addSCFrameworkVersion(long pk,
213         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
214         throws com.liferay.portal.SystemException, 
215             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException, 
216             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
217         getPersistence().addSCFrameworkVersion(pk, scFrameworkVersion);
218     }
219 
220     public static void addSCFrameworkVersions(long pk,
221         long[] scFrameworkVersionPKs)
222         throws com.liferay.portal.SystemException, 
223             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException, 
224             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
225         getPersistence().addSCFrameworkVersions(pk, scFrameworkVersionPKs);
226     }
227 
228     public static void addSCFrameworkVersions(long pk,
229         java.util.List scFrameworkVersions)
230         throws com.liferay.portal.SystemException, 
231             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException, 
232             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
233         getPersistence().addSCFrameworkVersions(pk, scFrameworkVersions);
234     }
235 
236     public static void clearSCFrameworkVersions(long pk)
237         throws com.liferay.portal.SystemException, 
238             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
239         getPersistence().clearSCFrameworkVersions(pk);
240     }
241 
242     public static void removeSCFrameworkVersion(long pk,
243         long scFrameworkVersionPK)
244         throws com.liferay.portal.SystemException, 
245             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException, 
246             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
247         getPersistence().removeSCFrameworkVersion(pk, scFrameworkVersionPK);
248     }
249 
250     public static void removeSCFrameworkVersion(long pk,
251         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
252         throws com.liferay.portal.SystemException, 
253             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException, 
254             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
255         getPersistence().removeSCFrameworkVersion(pk, scFrameworkVersion);
256     }
257 
258     public static void removeSCFrameworkVersions(long pk,
259         long[] scFrameworkVersionPKs)
260         throws com.liferay.portal.SystemException, 
261             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException, 
262             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
263         getPersistence().removeSCFrameworkVersions(pk, scFrameworkVersionPKs);
264     }
265 
266     public static void removeSCFrameworkVersions(long pk,
267         java.util.List scFrameworkVersions)
268         throws com.liferay.portal.SystemException, 
269             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException, 
270             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
271         getPersistence().removeSCFrameworkVersions(pk, scFrameworkVersions);
272     }
273 
274     public static void setSCFrameworkVersions(long pk,
275         long[] scFrameworkVersionPKs)
276         throws com.liferay.portal.SystemException, 
277             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException, 
278             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
279         getPersistence().setSCFrameworkVersions(pk, scFrameworkVersionPKs);
280     }
281 
282     public static void setSCFrameworkVersions(long pk,
283         java.util.List scFrameworkVersions)
284         throws com.liferay.portal.SystemException, 
285             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException, 
286             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
287         getPersistence().setSCFrameworkVersions(pk, scFrameworkVersions);
288     }
289 
290     public static SCProductVersionPersistence getPersistence() {
291         return _getUtil()._persistence;
292     }
293 
294     public void setPersistence(SCProductVersionPersistence persistence) {
295         _persistence = persistence;
296     }
297 
298     private static SCProductVersionUtil _getUtil() {
299         if (_util == null) {
300             _util = (SCProductVersionUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
301         }
302 
303         return _util;
304     }
305 
306     private static final String _UTIL = SCProductVersionUtil.class.getName();
307     private static SCProductVersionUtil _util;
308     private SCProductVersionPersistence _persistence;
309 }