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 orderByComparator)
136         throws com.liferay.portal.kernel.exception.SystemException {
137         return getPersistence()
138                    .findByGroupId(groupId, start, end, orderByComparator);
139     }
140 
141     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByGroupId_First(
142         long groupId,
143         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144         throws com.liferay.portal.kernel.exception.SystemException,
145             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
146         return getPersistence().findByGroupId_First(groupId, orderByComparator);
147     }
148 
149     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByGroupId_Last(
150         long groupId,
151         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152         throws com.liferay.portal.kernel.exception.SystemException,
153             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
154         return getPersistence().findByGroupId_Last(groupId, orderByComparator);
155     }
156 
157     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByGroupId_PrevAndNext(
158         long frameworkVersionId, long groupId,
159         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
160         throws com.liferay.portal.kernel.exception.SystemException,
161             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
162         return getPersistence()
163                    .findByGroupId_PrevAndNext(frameworkVersionId, groupId,
164             orderByComparator);
165     }
166 
167     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
168         long companyId)
169         throws com.liferay.portal.kernel.exception.SystemException {
170         return getPersistence().findByCompanyId(companyId);
171     }
172 
173     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
174         long companyId, int start, int end)
175         throws com.liferay.portal.kernel.exception.SystemException {
176         return getPersistence().findByCompanyId(companyId, start, end);
177     }
178 
179     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
180         long companyId, int start, int end,
181         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
182         throws com.liferay.portal.kernel.exception.SystemException {
183         return getPersistence()
184                    .findByCompanyId(companyId, start, end, orderByComparator);
185     }
186 
187     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByCompanyId_First(
188         long companyId,
189         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
190         throws com.liferay.portal.kernel.exception.SystemException,
191             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
192         return getPersistence()
193                    .findByCompanyId_First(companyId, orderByComparator);
194     }
195 
196     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByCompanyId_Last(
197         long companyId,
198         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
199         throws com.liferay.portal.kernel.exception.SystemException,
200             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
201         return getPersistence()
202                    .findByCompanyId_Last(companyId, orderByComparator);
203     }
204 
205     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByCompanyId_PrevAndNext(
206         long frameworkVersionId, long companyId,
207         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
208         throws com.liferay.portal.kernel.exception.SystemException,
209             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
210         return getPersistence()
211                    .findByCompanyId_PrevAndNext(frameworkVersionId, companyId,
212             orderByComparator);
213     }
214 
215     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
216         long groupId, boolean active)
217         throws com.liferay.portal.kernel.exception.SystemException {
218         return getPersistence().findByG_A(groupId, active);
219     }
220 
221     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
222         long groupId, boolean active, int start, int end)
223         throws com.liferay.portal.kernel.exception.SystemException {
224         return getPersistence().findByG_A(groupId, active, start, end);
225     }
226 
227     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
228         long groupId, boolean active, int start, int end,
229         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
230         throws com.liferay.portal.kernel.exception.SystemException {
231         return getPersistence()
232                    .findByG_A(groupId, active, start, end, orderByComparator);
233     }
234 
235     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByG_A_First(
236         long groupId, boolean active,
237         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
238         throws com.liferay.portal.kernel.exception.SystemException,
239             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
240         return getPersistence()
241                    .findByG_A_First(groupId, active, orderByComparator);
242     }
243 
244     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByG_A_Last(
245         long groupId, boolean active,
246         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
247         throws com.liferay.portal.kernel.exception.SystemException,
248             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
249         return getPersistence()
250                    .findByG_A_Last(groupId, active, orderByComparator);
251     }
252 
253     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByG_A_PrevAndNext(
254         long frameworkVersionId, long groupId, boolean active,
255         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
256         throws com.liferay.portal.kernel.exception.SystemException,
257             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
258         return getPersistence()
259                    .findByG_A_PrevAndNext(frameworkVersionId, groupId, active,
260             orderByComparator);
261     }
262 
263     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll()
264         throws com.liferay.portal.kernel.exception.SystemException {
265         return getPersistence().findAll();
266     }
267 
268     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll(
269         int start, int end)
270         throws com.liferay.portal.kernel.exception.SystemException {
271         return getPersistence().findAll(start, end);
272     }
273 
274     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll(
275         int start, int end,
276         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
277         throws com.liferay.portal.kernel.exception.SystemException {
278         return getPersistence().findAll(start, end, orderByComparator);
279     }
280 
281     public static void removeByGroupId(long groupId)
282         throws com.liferay.portal.kernel.exception.SystemException {
283         getPersistence().removeByGroupId(groupId);
284     }
285 
286     public static void removeByCompanyId(long companyId)
287         throws com.liferay.portal.kernel.exception.SystemException {
288         getPersistence().removeByCompanyId(companyId);
289     }
290 
291     public static void removeByG_A(long groupId, boolean active)
292         throws com.liferay.portal.kernel.exception.SystemException {
293         getPersistence().removeByG_A(groupId, active);
294     }
295 
296     public static void removeAll()
297         throws com.liferay.portal.kernel.exception.SystemException {
298         getPersistence().removeAll();
299     }
300 
301     public static int countByGroupId(long groupId)
302         throws com.liferay.portal.kernel.exception.SystemException {
303         return getPersistence().countByGroupId(groupId);
304     }
305 
306     public static int countByCompanyId(long companyId)
307         throws com.liferay.portal.kernel.exception.SystemException {
308         return getPersistence().countByCompanyId(companyId);
309     }
310 
311     public static int countByG_A(long groupId, boolean active)
312         throws com.liferay.portal.kernel.exception.SystemException {
313         return getPersistence().countByG_A(groupId, active);
314     }
315 
316     public static int countAll()
317         throws com.liferay.portal.kernel.exception.SystemException {
318         return getPersistence().countAll();
319     }
320 
321     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
322         long pk) throws com.liferay.portal.kernel.exception.SystemException {
323         return getPersistence().getSCProductVersions(pk);
324     }
325 
326     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
327         long pk, int start, int end)
328         throws com.liferay.portal.kernel.exception.SystemException {
329         return getPersistence().getSCProductVersions(pk, start, end);
330     }
331 
332     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
333         long pk, int start, int end,
334         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
335         throws com.liferay.portal.kernel.exception.SystemException {
336         return getPersistence()
337                    .getSCProductVersions(pk, start, end, orderByComparator);
338     }
339 
340     public static int getSCProductVersionsSize(long pk)
341         throws com.liferay.portal.kernel.exception.SystemException {
342         return getPersistence().getSCProductVersionsSize(pk);
343     }
344 
345     public static boolean containsSCProductVersion(long pk,
346         long scProductVersionPK)
347         throws com.liferay.portal.kernel.exception.SystemException {
348         return getPersistence().containsSCProductVersion(pk, scProductVersionPK);
349     }
350 
351     public static boolean containsSCProductVersions(long pk)
352         throws com.liferay.portal.kernel.exception.SystemException {
353         return getPersistence().containsSCProductVersions(pk);
354     }
355 
356     public static void addSCProductVersion(long pk, long scProductVersionPK)
357         throws com.liferay.portal.kernel.exception.SystemException {
358         getPersistence().addSCProductVersion(pk, scProductVersionPK);
359     }
360 
361     public static void addSCProductVersion(long pk,
362         com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
363         throws com.liferay.portal.kernel.exception.SystemException {
364         getPersistence().addSCProductVersion(pk, scProductVersion);
365     }
366 
367     public static void addSCProductVersions(long pk, long[] scProductVersionPKs)
368         throws com.liferay.portal.kernel.exception.SystemException {
369         getPersistence().addSCProductVersions(pk, scProductVersionPKs);
370     }
371 
372     public static void addSCProductVersions(long pk,
373         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
374         throws com.liferay.portal.kernel.exception.SystemException {
375         getPersistence().addSCProductVersions(pk, scProductVersions);
376     }
377 
378     public static void clearSCProductVersions(long pk)
379         throws com.liferay.portal.kernel.exception.SystemException {
380         getPersistence().clearSCProductVersions(pk);
381     }
382 
383     public static void removeSCProductVersion(long pk, long scProductVersionPK)
384         throws com.liferay.portal.kernel.exception.SystemException {
385         getPersistence().removeSCProductVersion(pk, scProductVersionPK);
386     }
387 
388     public static void removeSCProductVersion(long pk,
389         com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
390         throws com.liferay.portal.kernel.exception.SystemException {
391         getPersistence().removeSCProductVersion(pk, scProductVersion);
392     }
393 
394     public static void removeSCProductVersions(long pk,
395         long[] scProductVersionPKs)
396         throws com.liferay.portal.kernel.exception.SystemException {
397         getPersistence().removeSCProductVersions(pk, scProductVersionPKs);
398     }
399 
400     public static void removeSCProductVersions(long pk,
401         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
402         throws com.liferay.portal.kernel.exception.SystemException {
403         getPersistence().removeSCProductVersions(pk, scProductVersions);
404     }
405 
406     public static void setSCProductVersions(long pk, long[] scProductVersionPKs)
407         throws com.liferay.portal.kernel.exception.SystemException {
408         getPersistence().setSCProductVersions(pk, scProductVersionPKs);
409     }
410 
411     public static void setSCProductVersions(long pk,
412         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
413         throws com.liferay.portal.kernel.exception.SystemException {
414         getPersistence().setSCProductVersions(pk, scProductVersions);
415     }
416 
417     public static SCFrameworkVersionPersistence getPersistence() {
418         if (_persistence == null) {
419             _persistence = (SCFrameworkVersionPersistence)PortalBeanLocatorUtil.locate(SCFrameworkVersionPersistence.class.getName());
420         }
421 
422         return _persistence;
423     }
424 
425     public void setPersistence(SCFrameworkVersionPersistence persistence) {
426         _persistence = persistence;
427     }
428 
429     private static SCFrameworkVersionPersistence _persistence;
430 }