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="SCFrameworkVersionUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class SCFrameworkVersionUtil {
32      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion create(
33          long frameworkVersionId) {
34          return getPersistence().create(frameworkVersionId);
35      }
36  
37      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion remove(
38          long frameworkVersionId)
39          throws com.liferay.portal.SystemException, 
40              com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
41          return getPersistence().remove(frameworkVersionId);
42      }
43  
44      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion remove(
45          com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
46          throws com.liferay.portal.SystemException {
47          return getPersistence().remove(scFrameworkVersion);
48      }
49  
50      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion update(
51          com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
52          throws com.liferay.portal.SystemException {
53          return getPersistence().update(scFrameworkVersion);
54      }
55  
56      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion update(
57          com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion,
58          boolean merge) throws com.liferay.portal.SystemException {
59          return getPersistence().update(scFrameworkVersion, merge);
60      }
61  
62      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateImpl(
63          com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion,
64          boolean merge) throws com.liferay.portal.SystemException {
65          return getPersistence().updateImpl(scFrameworkVersion, merge);
66      }
67  
68      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByPrimaryKey(
69          long frameworkVersionId)
70          throws com.liferay.portal.SystemException, 
71              com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
72          return getPersistence().findByPrimaryKey(frameworkVersionId);
73      }
74  
75      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion fetchByPrimaryKey(
76          long frameworkVersionId) throws com.liferay.portal.SystemException {
77          return getPersistence().fetchByPrimaryKey(frameworkVersionId);
78      }
79  
80      public static java.util.List findByGroupId(long groupId)
81          throws com.liferay.portal.SystemException {
82          return getPersistence().findByGroupId(groupId);
83      }
84  
85      public static java.util.List findByGroupId(long groupId, int begin, int end)
86          throws com.liferay.portal.SystemException {
87          return getPersistence().findByGroupId(groupId, begin, end);
88      }
89  
90      public static java.util.List findByGroupId(long groupId, int begin,
91          int end, com.liferay.portal.kernel.util.OrderByComparator obc)
92          throws com.liferay.portal.SystemException {
93          return getPersistence().findByGroupId(groupId, begin, end, obc);
94      }
95  
96      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByGroupId_First(
97          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
98          throws com.liferay.portal.SystemException, 
99              com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
100         return getPersistence().findByGroupId_First(groupId, obc);
101     }
102 
103     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByGroupId_Last(
104         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
105         throws com.liferay.portal.SystemException, 
106             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
107         return getPersistence().findByGroupId_Last(groupId, obc);
108     }
109 
110     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByGroupId_PrevAndNext(
111         long frameworkVersionId, long groupId,
112         com.liferay.portal.kernel.util.OrderByComparator obc)
113         throws com.liferay.portal.SystemException, 
114             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
115         return getPersistence().findByGroupId_PrevAndNext(frameworkVersionId,
116             groupId, obc);
117     }
118 
119     public static java.util.List findByCompanyId(long companyId)
120         throws com.liferay.portal.SystemException {
121         return getPersistence().findByCompanyId(companyId);
122     }
123 
124     public static java.util.List findByCompanyId(long companyId, int begin,
125         int end) throws com.liferay.portal.SystemException {
126         return getPersistence().findByCompanyId(companyId, begin, end);
127     }
128 
129     public static java.util.List findByCompanyId(long companyId, int begin,
130         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
131         throws com.liferay.portal.SystemException {
132         return getPersistence().findByCompanyId(companyId, begin, end, obc);
133     }
134 
135     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByCompanyId_First(
136         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
137         throws com.liferay.portal.SystemException, 
138             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
139         return getPersistence().findByCompanyId_First(companyId, obc);
140     }
141 
142     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByCompanyId_Last(
143         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
144         throws com.liferay.portal.SystemException, 
145             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
146         return getPersistence().findByCompanyId_Last(companyId, obc);
147     }
148 
149     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByCompanyId_PrevAndNext(
150         long frameworkVersionId, long companyId,
151         com.liferay.portal.kernel.util.OrderByComparator obc)
152         throws com.liferay.portal.SystemException, 
153             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
154         return getPersistence().findByCompanyId_PrevAndNext(frameworkVersionId,
155             companyId, obc);
156     }
157 
158     public static java.util.List findByG_A(long groupId, boolean active)
159         throws com.liferay.portal.SystemException {
160         return getPersistence().findByG_A(groupId, active);
161     }
162 
163     public static java.util.List findByG_A(long groupId, boolean active,
164         int begin, int end) throws com.liferay.portal.SystemException {
165         return getPersistence().findByG_A(groupId, active, begin, end);
166     }
167 
168     public static java.util.List findByG_A(long groupId, boolean active,
169         int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
170         throws com.liferay.portal.SystemException {
171         return getPersistence().findByG_A(groupId, active, begin, end, obc);
172     }
173 
174     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByG_A_First(
175         long groupId, boolean active,
176         com.liferay.portal.kernel.util.OrderByComparator obc)
177         throws com.liferay.portal.SystemException, 
178             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
179         return getPersistence().findByG_A_First(groupId, active, obc);
180     }
181 
182     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByG_A_Last(
183         long groupId, boolean active,
184         com.liferay.portal.kernel.util.OrderByComparator obc)
185         throws com.liferay.portal.SystemException, 
186             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
187         return getPersistence().findByG_A_Last(groupId, active, obc);
188     }
189 
190     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByG_A_PrevAndNext(
191         long frameworkVersionId, long groupId, boolean active,
192         com.liferay.portal.kernel.util.OrderByComparator obc)
193         throws com.liferay.portal.SystemException, 
194             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
195         return getPersistence().findByG_A_PrevAndNext(frameworkVersionId,
196             groupId, active, obc);
197     }
198 
199     public static java.util.List findWithDynamicQuery(
200         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
201         throws com.liferay.portal.SystemException {
202         return getPersistence().findWithDynamicQuery(queryInitializer);
203     }
204 
205     public static java.util.List findWithDynamicQuery(
206         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
207         int begin, int end) throws com.liferay.portal.SystemException {
208         return getPersistence().findWithDynamicQuery(queryInitializer, begin,
209             end);
210     }
211 
212     public static java.util.List findAll()
213         throws com.liferay.portal.SystemException {
214         return getPersistence().findAll();
215     }
216 
217     public static java.util.List findAll(int begin, int end)
218         throws com.liferay.portal.SystemException {
219         return getPersistence().findAll(begin, end);
220     }
221 
222     public static java.util.List findAll(int begin, int end,
223         com.liferay.portal.kernel.util.OrderByComparator obc)
224         throws com.liferay.portal.SystemException {
225         return getPersistence().findAll(begin, end, obc);
226     }
227 
228     public static void removeByGroupId(long groupId)
229         throws com.liferay.portal.SystemException {
230         getPersistence().removeByGroupId(groupId);
231     }
232 
233     public static void removeByCompanyId(long companyId)
234         throws com.liferay.portal.SystemException {
235         getPersistence().removeByCompanyId(companyId);
236     }
237 
238     public static void removeByG_A(long groupId, boolean active)
239         throws com.liferay.portal.SystemException {
240         getPersistence().removeByG_A(groupId, active);
241     }
242 
243     public static void removeAll() throws com.liferay.portal.SystemException {
244         getPersistence().removeAll();
245     }
246 
247     public static int countByGroupId(long groupId)
248         throws com.liferay.portal.SystemException {
249         return getPersistence().countByGroupId(groupId);
250     }
251 
252     public static int countByCompanyId(long companyId)
253         throws com.liferay.portal.SystemException {
254         return getPersistence().countByCompanyId(companyId);
255     }
256 
257     public static int countByG_A(long groupId, boolean active)
258         throws com.liferay.portal.SystemException {
259         return getPersistence().countByG_A(groupId, active);
260     }
261 
262     public static int countAll() throws com.liferay.portal.SystemException {
263         return getPersistence().countAll();
264     }
265 
266     public static java.util.List getSCProductVersions(long pk)
267         throws com.liferay.portal.SystemException, 
268             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
269         return getPersistence().getSCProductVersions(pk);
270     }
271 
272     public static java.util.List getSCProductVersions(long pk, int begin,
273         int end)
274         throws com.liferay.portal.SystemException, 
275             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
276         return getPersistence().getSCProductVersions(pk, begin, end);
277     }
278 
279     public static java.util.List getSCProductVersions(long pk, int begin,
280         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
281         throws com.liferay.portal.SystemException, 
282             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
283         return getPersistence().getSCProductVersions(pk, begin, end, obc);
284     }
285 
286     public static int getSCProductVersionsSize(long pk)
287         throws com.liferay.portal.SystemException {
288         return getPersistence().getSCProductVersionsSize(pk);
289     }
290 
291     public static boolean containsSCProductVersion(long pk,
292         long scProductVersionPK) throws com.liferay.portal.SystemException {
293         return getPersistence().containsSCProductVersion(pk, scProductVersionPK);
294     }
295 
296     public static boolean containsSCProductVersions(long pk)
297         throws com.liferay.portal.SystemException {
298         return getPersistence().containsSCProductVersions(pk);
299     }
300 
301     public static void addSCProductVersion(long pk, long scProductVersionPK)
302         throws com.liferay.portal.SystemException, 
303             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException, 
304             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
305         getPersistence().addSCProductVersion(pk, scProductVersionPK);
306     }
307 
308     public static void addSCProductVersion(long pk,
309         com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
310         throws com.liferay.portal.SystemException, 
311             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException, 
312             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
313         getPersistence().addSCProductVersion(pk, scProductVersion);
314     }
315 
316     public static void addSCProductVersions(long pk, long[] scProductVersionPKs)
317         throws com.liferay.portal.SystemException, 
318             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException, 
319             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
320         getPersistence().addSCProductVersions(pk, scProductVersionPKs);
321     }
322 
323     public static void addSCProductVersions(long pk,
324         java.util.List scProductVersions)
325         throws com.liferay.portal.SystemException, 
326             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException, 
327             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
328         getPersistence().addSCProductVersions(pk, scProductVersions);
329     }
330 
331     public static void clearSCProductVersions(long pk)
332         throws com.liferay.portal.SystemException, 
333             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
334         getPersistence().clearSCProductVersions(pk);
335     }
336 
337     public static void removeSCProductVersion(long pk, long scProductVersionPK)
338         throws com.liferay.portal.SystemException, 
339             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException, 
340             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
341         getPersistence().removeSCProductVersion(pk, scProductVersionPK);
342     }
343 
344     public static void removeSCProductVersion(long pk,
345         com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
346         throws com.liferay.portal.SystemException, 
347             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException, 
348             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
349         getPersistence().removeSCProductVersion(pk, scProductVersion);
350     }
351 
352     public static void removeSCProductVersions(long pk,
353         long[] scProductVersionPKs)
354         throws com.liferay.portal.SystemException, 
355             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException, 
356             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
357         getPersistence().removeSCProductVersions(pk, scProductVersionPKs);
358     }
359 
360     public static void removeSCProductVersions(long pk,
361         java.util.List scProductVersions)
362         throws com.liferay.portal.SystemException, 
363             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException, 
364             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
365         getPersistence().removeSCProductVersions(pk, scProductVersions);
366     }
367 
368     public static void setSCProductVersions(long pk, long[] scProductVersionPKs)
369         throws com.liferay.portal.SystemException, 
370             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException, 
371             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
372         getPersistence().setSCProductVersions(pk, scProductVersionPKs);
373     }
374 
375     public static void setSCProductVersions(long pk,
376         java.util.List scProductVersions)
377         throws com.liferay.portal.SystemException, 
378             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException, 
379             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
380         getPersistence().setSCProductVersions(pk, scProductVersions);
381     }
382 
383     public static SCFrameworkVersionPersistence getPersistence() {
384         return _getUtil()._persistence;
385     }
386 
387     public void setPersistence(SCFrameworkVersionPersistence persistence) {
388         _persistence = persistence;
389     }
390 
391     private static SCFrameworkVersionUtil _getUtil() {
392         if (_util == null) {
393             _util = (SCFrameworkVersionUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
394         }
395 
396         return _util;
397     }
398 
399     private static final String _UTIL = SCFrameworkVersionUtil.class.getName();
400     private static SCFrameworkVersionUtil _util;
401     private SCFrameworkVersionPersistence _persistence;
402 }