1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.softwarecatalog.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19  import com.liferay.portal.kernel.exception.SystemException;
20  
21  import com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="SCFrameworkVersionUtil.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       SCFrameworkVersionPersistence
35   * @see       SCFrameworkVersionPersistenceImpl
36   * @generated
37   */
38  public class SCFrameworkVersionUtil {
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 SCFrameworkVersion remove(
66          SCFrameworkVersion scFrameworkVersion) throws SystemException {
67          return getPersistence().remove(scFrameworkVersion);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static SCFrameworkVersion update(
74          SCFrameworkVersion scFrameworkVersion, boolean merge)
75          throws SystemException {
76          return getPersistence().update(scFrameworkVersion, merge);
77      }
78  
79      public static void cacheResult(
80          com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion) {
81          getPersistence().cacheResult(scFrameworkVersion);
82      }
83  
84      public static void cacheResult(
85          java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions) {
86          getPersistence().cacheResult(scFrameworkVersions);
87      }
88  
89      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion create(
90          long frameworkVersionId) {
91          return getPersistence().create(frameworkVersionId);
92      }
93  
94      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion remove(
95          long frameworkVersionId)
96          throws com.liferay.portal.kernel.exception.SystemException,
97              com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
98          return getPersistence().remove(frameworkVersionId);
99      }
100 
101     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateImpl(
102         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion,
103         boolean merge)
104         throws com.liferay.portal.kernel.exception.SystemException {
105         return getPersistence().updateImpl(scFrameworkVersion, merge);
106     }
107 
108     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByPrimaryKey(
109         long frameworkVersionId)
110         throws com.liferay.portal.kernel.exception.SystemException,
111             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
112         return getPersistence().findByPrimaryKey(frameworkVersionId);
113     }
114 
115     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion fetchByPrimaryKey(
116         long frameworkVersionId)
117         throws com.liferay.portal.kernel.exception.SystemException {
118         return getPersistence().fetchByPrimaryKey(frameworkVersionId);
119     }
120 
121     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByGroupId(
122         long groupId)
123         throws com.liferay.portal.kernel.exception.SystemException {
124         return getPersistence().findByGroupId(groupId);
125     }
126 
127     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByGroupId(
128         long groupId, int start, int end)
129         throws com.liferay.portal.kernel.exception.SystemException {
130         return getPersistence().findByGroupId(groupId, start, end);
131     }
132 
133     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByGroupId(
134         long groupId, int start, int end,
135         com.liferay.portal.kernel.util.OrderByComparator obc)
136         throws com.liferay.portal.kernel.exception.SystemException {
137         return getPersistence().findByGroupId(groupId, start, end, obc);
138     }
139 
140     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByGroupId_First(
141         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.kernel.exception.SystemException,
143             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
144         return getPersistence().findByGroupId_First(groupId, obc);
145     }
146 
147     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByGroupId_Last(
148         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.kernel.exception.SystemException,
150             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
151         return getPersistence().findByGroupId_Last(groupId, obc);
152     }
153 
154     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByGroupId_PrevAndNext(
155         long frameworkVersionId, long groupId,
156         com.liferay.portal.kernel.util.OrderByComparator obc)
157         throws com.liferay.portal.kernel.exception.SystemException,
158             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
159         return getPersistence()
160                    .findByGroupId_PrevAndNext(frameworkVersionId, groupId, obc);
161     }
162 
163     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
164         long companyId)
165         throws com.liferay.portal.kernel.exception.SystemException {
166         return getPersistence().findByCompanyId(companyId);
167     }
168 
169     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
170         long companyId, int start, int end)
171         throws com.liferay.portal.kernel.exception.SystemException {
172         return getPersistence().findByCompanyId(companyId, start, end);
173     }
174 
175     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
176         long companyId, int start, int end,
177         com.liferay.portal.kernel.util.OrderByComparator obc)
178         throws com.liferay.portal.kernel.exception.SystemException {
179         return getPersistence().findByCompanyId(companyId, start, end, obc);
180     }
181 
182     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByCompanyId_First(
183         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
184         throws com.liferay.portal.kernel.exception.SystemException,
185             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
186         return getPersistence().findByCompanyId_First(companyId, obc);
187     }
188 
189     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByCompanyId_Last(
190         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
191         throws com.liferay.portal.kernel.exception.SystemException,
192             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
193         return getPersistence().findByCompanyId_Last(companyId, obc);
194     }
195 
196     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByCompanyId_PrevAndNext(
197         long frameworkVersionId, long companyId,
198         com.liferay.portal.kernel.util.OrderByComparator obc)
199         throws com.liferay.portal.kernel.exception.SystemException,
200             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
201         return getPersistence()
202                    .findByCompanyId_PrevAndNext(frameworkVersionId, companyId,
203             obc);
204     }
205 
206     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
207         long groupId, boolean active)
208         throws com.liferay.portal.kernel.exception.SystemException {
209         return getPersistence().findByG_A(groupId, active);
210     }
211 
212     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
213         long groupId, boolean active, int start, int end)
214         throws com.liferay.portal.kernel.exception.SystemException {
215         return getPersistence().findByG_A(groupId, active, start, end);
216     }
217 
218     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
219         long groupId, boolean active, int start, int end,
220         com.liferay.portal.kernel.util.OrderByComparator obc)
221         throws com.liferay.portal.kernel.exception.SystemException {
222         return getPersistence().findByG_A(groupId, active, start, end, obc);
223     }
224 
225     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByG_A_First(
226         long groupId, boolean active,
227         com.liferay.portal.kernel.util.OrderByComparator obc)
228         throws com.liferay.portal.kernel.exception.SystemException,
229             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
230         return getPersistence().findByG_A_First(groupId, active, obc);
231     }
232 
233     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByG_A_Last(
234         long groupId, boolean active,
235         com.liferay.portal.kernel.util.OrderByComparator obc)
236         throws com.liferay.portal.kernel.exception.SystemException,
237             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
238         return getPersistence().findByG_A_Last(groupId, active, obc);
239     }
240 
241     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByG_A_PrevAndNext(
242         long frameworkVersionId, long groupId, boolean active,
243         com.liferay.portal.kernel.util.OrderByComparator obc)
244         throws com.liferay.portal.kernel.exception.SystemException,
245             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
246         return getPersistence()
247                    .findByG_A_PrevAndNext(frameworkVersionId, groupId, active,
248             obc);
249     }
250 
251     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll()
252         throws com.liferay.portal.kernel.exception.SystemException {
253         return getPersistence().findAll();
254     }
255 
256     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll(
257         int start, int end)
258         throws com.liferay.portal.kernel.exception.SystemException {
259         return getPersistence().findAll(start, end);
260     }
261 
262     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll(
263         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
264         throws com.liferay.portal.kernel.exception.SystemException {
265         return getPersistence().findAll(start, end, obc);
266     }
267 
268     public static void removeByGroupId(long groupId)
269         throws com.liferay.portal.kernel.exception.SystemException {
270         getPersistence().removeByGroupId(groupId);
271     }
272 
273     public static void removeByCompanyId(long companyId)
274         throws com.liferay.portal.kernel.exception.SystemException {
275         getPersistence().removeByCompanyId(companyId);
276     }
277 
278     public static void removeByG_A(long groupId, boolean active)
279         throws com.liferay.portal.kernel.exception.SystemException {
280         getPersistence().removeByG_A(groupId, active);
281     }
282 
283     public static void removeAll()
284         throws com.liferay.portal.kernel.exception.SystemException {
285         getPersistence().removeAll();
286     }
287 
288     public static int countByGroupId(long groupId)
289         throws com.liferay.portal.kernel.exception.SystemException {
290         return getPersistence().countByGroupId(groupId);
291     }
292 
293     public static int countByCompanyId(long companyId)
294         throws com.liferay.portal.kernel.exception.SystemException {
295         return getPersistence().countByCompanyId(companyId);
296     }
297 
298     public static int countByG_A(long groupId, boolean active)
299         throws com.liferay.portal.kernel.exception.SystemException {
300         return getPersistence().countByG_A(groupId, active);
301     }
302 
303     public static int countAll()
304         throws com.liferay.portal.kernel.exception.SystemException {
305         return getPersistence().countAll();
306     }
307 
308     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
309         long pk) throws com.liferay.portal.kernel.exception.SystemException {
310         return getPersistence().getSCProductVersions(pk);
311     }
312 
313     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
314         long pk, int start, int end)
315         throws com.liferay.portal.kernel.exception.SystemException {
316         return getPersistence().getSCProductVersions(pk, start, end);
317     }
318 
319     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
320         long pk, int start, int end,
321         com.liferay.portal.kernel.util.OrderByComparator obc)
322         throws com.liferay.portal.kernel.exception.SystemException {
323         return getPersistence().getSCProductVersions(pk, start, end, obc);
324     }
325 
326     public static int getSCProductVersionsSize(long pk)
327         throws com.liferay.portal.kernel.exception.SystemException {
328         return getPersistence().getSCProductVersionsSize(pk);
329     }
330 
331     public static boolean containsSCProductVersion(long pk,
332         long scProductVersionPK)
333         throws com.liferay.portal.kernel.exception.SystemException {
334         return getPersistence().containsSCProductVersion(pk, scProductVersionPK);
335     }
336 
337     public static boolean containsSCProductVersions(long pk)
338         throws com.liferay.portal.kernel.exception.SystemException {
339         return getPersistence().containsSCProductVersions(pk);
340     }
341 
342     public static void addSCProductVersion(long pk, long scProductVersionPK)
343         throws com.liferay.portal.kernel.exception.SystemException {
344         getPersistence().addSCProductVersion(pk, scProductVersionPK);
345     }
346 
347     public static void addSCProductVersion(long pk,
348         com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
349         throws com.liferay.portal.kernel.exception.SystemException {
350         getPersistence().addSCProductVersion(pk, scProductVersion);
351     }
352 
353     public static void addSCProductVersions(long pk, long[] scProductVersionPKs)
354         throws com.liferay.portal.kernel.exception.SystemException {
355         getPersistence().addSCProductVersions(pk, scProductVersionPKs);
356     }
357 
358     public static void addSCProductVersions(long pk,
359         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
360         throws com.liferay.portal.kernel.exception.SystemException {
361         getPersistence().addSCProductVersions(pk, scProductVersions);
362     }
363 
364     public static void clearSCProductVersions(long pk)
365         throws com.liferay.portal.kernel.exception.SystemException {
366         getPersistence().clearSCProductVersions(pk);
367     }
368 
369     public static void removeSCProductVersion(long pk, long scProductVersionPK)
370         throws com.liferay.portal.kernel.exception.SystemException {
371         getPersistence().removeSCProductVersion(pk, scProductVersionPK);
372     }
373 
374     public static void removeSCProductVersion(long pk,
375         com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
376         throws com.liferay.portal.kernel.exception.SystemException {
377         getPersistence().removeSCProductVersion(pk, scProductVersion);
378     }
379 
380     public static void removeSCProductVersions(long pk,
381         long[] scProductVersionPKs)
382         throws com.liferay.portal.kernel.exception.SystemException {
383         getPersistence().removeSCProductVersions(pk, scProductVersionPKs);
384     }
385 
386     public static void removeSCProductVersions(long pk,
387         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
388         throws com.liferay.portal.kernel.exception.SystemException {
389         getPersistence().removeSCProductVersions(pk, scProductVersions);
390     }
391 
392     public static void setSCProductVersions(long pk, long[] scProductVersionPKs)
393         throws com.liferay.portal.kernel.exception.SystemException {
394         getPersistence().setSCProductVersions(pk, scProductVersionPKs);
395     }
396 
397     public static void setSCProductVersions(long pk,
398         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
399         throws com.liferay.portal.kernel.exception.SystemException {
400         getPersistence().setSCProductVersions(pk, scProductVersions);
401     }
402 
403     public static SCFrameworkVersionPersistence getPersistence() {
404         if (_persistence == null) {
405             _persistence = (SCFrameworkVersionPersistence)PortalBeanLocatorUtil.locate(SCFrameworkVersionPersistence.class.getName());
406         }
407 
408         return _persistence;
409     }
410 
411     public void setPersistence(SCFrameworkVersionPersistence persistence) {
412         _persistence = persistence;
413     }
414 
415     private static SCFrameworkVersionPersistence _persistence;
416 }