1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.softwarecatalog.service.persistence;
16  
17  import com.liferay.portal.SystemException;
18  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
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.SystemException,
97              com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
98          return getPersistence().remove(frameworkVersionId);
99      }
100 
101     /**
102      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
103      */
104     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion update(
105         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
106         throws com.liferay.portal.SystemException {
107         return getPersistence().update(scFrameworkVersion);
108     }
109 
110     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateImpl(
111         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion,
112         boolean merge) throws com.liferay.portal.SystemException {
113         return getPersistence().updateImpl(scFrameworkVersion, merge);
114     }
115 
116     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByPrimaryKey(
117         long frameworkVersionId)
118         throws com.liferay.portal.SystemException,
119             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
120         return getPersistence().findByPrimaryKey(frameworkVersionId);
121     }
122 
123     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion fetchByPrimaryKey(
124         long frameworkVersionId) throws com.liferay.portal.SystemException {
125         return getPersistence().fetchByPrimaryKey(frameworkVersionId);
126     }
127 
128     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByGroupId(
129         long groupId) throws com.liferay.portal.SystemException {
130         return getPersistence().findByGroupId(groupId);
131     }
132 
133     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByGroupId(
134         long groupId, int start, int end)
135         throws com.liferay.portal.SystemException {
136         return getPersistence().findByGroupId(groupId, start, end);
137     }
138 
139     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByGroupId(
140         long groupId, int start, int end,
141         com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.SystemException {
143         return getPersistence().findByGroupId(groupId, start, end, obc);
144     }
145 
146     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByGroupId_First(
147         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.SystemException,
149             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
150         return getPersistence().findByGroupId_First(groupId, obc);
151     }
152 
153     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByGroupId_Last(
154         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
155         throws com.liferay.portal.SystemException,
156             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
157         return getPersistence().findByGroupId_Last(groupId, obc);
158     }
159 
160     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByGroupId_PrevAndNext(
161         long frameworkVersionId, long groupId,
162         com.liferay.portal.kernel.util.OrderByComparator obc)
163         throws com.liferay.portal.SystemException,
164             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
165         return getPersistence()
166                    .findByGroupId_PrevAndNext(frameworkVersionId, groupId, obc);
167     }
168 
169     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
170         long companyId) throws com.liferay.portal.SystemException {
171         return getPersistence().findByCompanyId(companyId);
172     }
173 
174     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
175         long companyId, int start, int end)
176         throws com.liferay.portal.SystemException {
177         return getPersistence().findByCompanyId(companyId, start, end);
178     }
179 
180     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
181         long companyId, int start, int end,
182         com.liferay.portal.kernel.util.OrderByComparator obc)
183         throws com.liferay.portal.SystemException {
184         return getPersistence().findByCompanyId(companyId, start, end, obc);
185     }
186 
187     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByCompanyId_First(
188         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
189         throws com.liferay.portal.SystemException,
190             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
191         return getPersistence().findByCompanyId_First(companyId, obc);
192     }
193 
194     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByCompanyId_Last(
195         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
196         throws com.liferay.portal.SystemException,
197             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
198         return getPersistence().findByCompanyId_Last(companyId, obc);
199     }
200 
201     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByCompanyId_PrevAndNext(
202         long frameworkVersionId, long companyId,
203         com.liferay.portal.kernel.util.OrderByComparator obc)
204         throws com.liferay.portal.SystemException,
205             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
206         return getPersistence()
207                    .findByCompanyId_PrevAndNext(frameworkVersionId, companyId,
208             obc);
209     }
210 
211     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
212         long groupId, boolean active) throws com.liferay.portal.SystemException {
213         return getPersistence().findByG_A(groupId, active);
214     }
215 
216     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
217         long groupId, boolean active, int start, int end)
218         throws com.liferay.portal.SystemException {
219         return getPersistence().findByG_A(groupId, active, start, end);
220     }
221 
222     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
223         long groupId, boolean active, int start, int end,
224         com.liferay.portal.kernel.util.OrderByComparator obc)
225         throws com.liferay.portal.SystemException {
226         return getPersistence().findByG_A(groupId, active, start, end, obc);
227     }
228 
229     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByG_A_First(
230         long groupId, boolean active,
231         com.liferay.portal.kernel.util.OrderByComparator obc)
232         throws com.liferay.portal.SystemException,
233             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
234         return getPersistence().findByG_A_First(groupId, active, obc);
235     }
236 
237     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByG_A_Last(
238         long groupId, boolean active,
239         com.liferay.portal.kernel.util.OrderByComparator obc)
240         throws com.liferay.portal.SystemException,
241             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
242         return getPersistence().findByG_A_Last(groupId, active, obc);
243     }
244 
245     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByG_A_PrevAndNext(
246         long frameworkVersionId, long groupId, boolean active,
247         com.liferay.portal.kernel.util.OrderByComparator obc)
248         throws com.liferay.portal.SystemException,
249             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
250         return getPersistence()
251                    .findByG_A_PrevAndNext(frameworkVersionId, groupId, active,
252             obc);
253     }
254 
255     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll()
256         throws com.liferay.portal.SystemException {
257         return getPersistence().findAll();
258     }
259 
260     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll(
261         int start, int end) throws com.liferay.portal.SystemException {
262         return getPersistence().findAll(start, end);
263     }
264 
265     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll(
266         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
267         throws com.liferay.portal.SystemException {
268         return getPersistence().findAll(start, end, obc);
269     }
270 
271     public static void removeByGroupId(long groupId)
272         throws com.liferay.portal.SystemException {
273         getPersistence().removeByGroupId(groupId);
274     }
275 
276     public static void removeByCompanyId(long companyId)
277         throws com.liferay.portal.SystemException {
278         getPersistence().removeByCompanyId(companyId);
279     }
280 
281     public static void removeByG_A(long groupId, boolean active)
282         throws com.liferay.portal.SystemException {
283         getPersistence().removeByG_A(groupId, active);
284     }
285 
286     public static void removeAll() throws com.liferay.portal.SystemException {
287         getPersistence().removeAll();
288     }
289 
290     public static int countByGroupId(long groupId)
291         throws com.liferay.portal.SystemException {
292         return getPersistence().countByGroupId(groupId);
293     }
294 
295     public static int countByCompanyId(long companyId)
296         throws com.liferay.portal.SystemException {
297         return getPersistence().countByCompanyId(companyId);
298     }
299 
300     public static int countByG_A(long groupId, boolean active)
301         throws com.liferay.portal.SystemException {
302         return getPersistence().countByG_A(groupId, active);
303     }
304 
305     public static int countAll() throws com.liferay.portal.SystemException {
306         return getPersistence().countAll();
307     }
308 
309     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
310         long pk) throws com.liferay.portal.SystemException {
311         return getPersistence().getSCProductVersions(pk);
312     }
313 
314     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
315         long pk, int start, int end) throws com.liferay.portal.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.SystemException {
323         return getPersistence().getSCProductVersions(pk, start, end, obc);
324     }
325 
326     public static int getSCProductVersionsSize(long pk)
327         throws com.liferay.portal.SystemException {
328         return getPersistence().getSCProductVersionsSize(pk);
329     }
330 
331     public static boolean containsSCProductVersion(long pk,
332         long scProductVersionPK) throws com.liferay.portal.SystemException {
333         return getPersistence().containsSCProductVersion(pk, scProductVersionPK);
334     }
335 
336     public static boolean containsSCProductVersions(long pk)
337         throws com.liferay.portal.SystemException {
338         return getPersistence().containsSCProductVersions(pk);
339     }
340 
341     public static void addSCProductVersion(long pk, long scProductVersionPK)
342         throws com.liferay.portal.SystemException {
343         getPersistence().addSCProductVersion(pk, scProductVersionPK);
344     }
345 
346     public static void addSCProductVersion(long pk,
347         com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
348         throws com.liferay.portal.SystemException {
349         getPersistence().addSCProductVersion(pk, scProductVersion);
350     }
351 
352     public static void addSCProductVersions(long pk, long[] scProductVersionPKs)
353         throws com.liferay.portal.SystemException {
354         getPersistence().addSCProductVersions(pk, scProductVersionPKs);
355     }
356 
357     public static void addSCProductVersions(long pk,
358         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
359         throws com.liferay.portal.SystemException {
360         getPersistence().addSCProductVersions(pk, scProductVersions);
361     }
362 
363     public static void clearSCProductVersions(long pk)
364         throws com.liferay.portal.SystemException {
365         getPersistence().clearSCProductVersions(pk);
366     }
367 
368     public static void removeSCProductVersion(long pk, long scProductVersionPK)
369         throws com.liferay.portal.SystemException {
370         getPersistence().removeSCProductVersion(pk, scProductVersionPK);
371     }
372 
373     public static void removeSCProductVersion(long pk,
374         com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
375         throws com.liferay.portal.SystemException {
376         getPersistence().removeSCProductVersion(pk, scProductVersion);
377     }
378 
379     public static void removeSCProductVersions(long pk,
380         long[] scProductVersionPKs) throws com.liferay.portal.SystemException {
381         getPersistence().removeSCProductVersions(pk, scProductVersionPKs);
382     }
383 
384     public static void removeSCProductVersions(long pk,
385         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
386         throws com.liferay.portal.SystemException {
387         getPersistence().removeSCProductVersions(pk, scProductVersions);
388     }
389 
390     public static void setSCProductVersions(long pk, long[] scProductVersionPKs)
391         throws com.liferay.portal.SystemException {
392         getPersistence().setSCProductVersions(pk, scProductVersionPKs);
393     }
394 
395     public static void setSCProductVersions(long pk,
396         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
397         throws com.liferay.portal.SystemException {
398         getPersistence().setSCProductVersions(pk, scProductVersions);
399     }
400 
401     public static SCFrameworkVersionPersistence getPersistence() {
402         if (_persistence == null) {
403             _persistence = (SCFrameworkVersionPersistence)PortalBeanLocatorUtil.locate(SCFrameworkVersionPersistence.class.getName());
404         }
405 
406         return _persistence;
407     }
408 
409     public void setPersistence(SCFrameworkVersionPersistence persistence) {
410         _persistence = persistence;
411     }
412 
413     private static SCFrameworkVersionPersistence _persistence;
414 }