1   /**
2    * Copyright (c) 2000-2009 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      /**
51       * @deprecated Use <code>update(SCFrameworkVersion scFrameworkVersion, boolean merge)</code>.
52       */
53      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion update(
54          com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
55          throws com.liferay.portal.SystemException {
56          return getPersistence().update(scFrameworkVersion);
57      }
58  
59      /**
60       * Add, update, or merge, the entity. This method also calls the model
61       * listeners to trigger the proper events associated with adding, deleting,
62       * or updating an entity.
63       *
64       * @param        scFrameworkVersion the entity to add, update, or merge
65       * @param        merge boolean value for whether to merge the entity. The
66       *                default value is false. Setting merge to true is more
67       *                expensive and should only be true when scFrameworkVersion is
68       *                transient. See LEP-5473 for a detailed discussion of this
69       *                method.
70       * @return        true if the portlet can be displayed via Ajax
71       */
72      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion update(
73          com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion,
74          boolean merge) throws com.liferay.portal.SystemException {
75          return getPersistence().update(scFrameworkVersion, merge);
76      }
77  
78      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateImpl(
79          com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion,
80          boolean merge) throws com.liferay.portal.SystemException {
81          return getPersistence().updateImpl(scFrameworkVersion, merge);
82      }
83  
84      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByPrimaryKey(
85          long frameworkVersionId)
86          throws com.liferay.portal.SystemException,
87              com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
88          return getPersistence().findByPrimaryKey(frameworkVersionId);
89      }
90  
91      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion fetchByPrimaryKey(
92          long frameworkVersionId) throws com.liferay.portal.SystemException {
93          return getPersistence().fetchByPrimaryKey(frameworkVersionId);
94      }
95  
96      public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByGroupId(
97          long groupId) throws com.liferay.portal.SystemException {
98          return getPersistence().findByGroupId(groupId);
99      }
100 
101     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByGroupId(
102         long groupId, int start, int end)
103         throws com.liferay.portal.SystemException {
104         return getPersistence().findByGroupId(groupId, start, end);
105     }
106 
107     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByGroupId(
108         long groupId, int start, int end,
109         com.liferay.portal.kernel.util.OrderByComparator obc)
110         throws com.liferay.portal.SystemException {
111         return getPersistence().findByGroupId(groupId, start, end, obc);
112     }
113 
114     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByGroupId_First(
115         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
116         throws com.liferay.portal.SystemException,
117             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
118         return getPersistence().findByGroupId_First(groupId, obc);
119     }
120 
121     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByGroupId_Last(
122         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
123         throws com.liferay.portal.SystemException,
124             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
125         return getPersistence().findByGroupId_Last(groupId, obc);
126     }
127 
128     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByGroupId_PrevAndNext(
129         long frameworkVersionId, long groupId,
130         com.liferay.portal.kernel.util.OrderByComparator obc)
131         throws com.liferay.portal.SystemException,
132             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
133         return getPersistence()
134                    .findByGroupId_PrevAndNext(frameworkVersionId, groupId, obc);
135     }
136 
137     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
138         long companyId) throws com.liferay.portal.SystemException {
139         return getPersistence().findByCompanyId(companyId);
140     }
141 
142     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
143         long companyId, int start, int end)
144         throws com.liferay.portal.SystemException {
145         return getPersistence().findByCompanyId(companyId, start, end);
146     }
147 
148     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
149         long companyId, int start, int end,
150         com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.SystemException {
152         return getPersistence().findByCompanyId(companyId, start, end, obc);
153     }
154 
155     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByCompanyId_First(
156         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
157         throws com.liferay.portal.SystemException,
158             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
159         return getPersistence().findByCompanyId_First(companyId, obc);
160     }
161 
162     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByCompanyId_Last(
163         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
164         throws com.liferay.portal.SystemException,
165             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
166         return getPersistence().findByCompanyId_Last(companyId, obc);
167     }
168 
169     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByCompanyId_PrevAndNext(
170         long frameworkVersionId, long companyId,
171         com.liferay.portal.kernel.util.OrderByComparator obc)
172         throws com.liferay.portal.SystemException,
173             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
174         return getPersistence()
175                    .findByCompanyId_PrevAndNext(frameworkVersionId, companyId,
176             obc);
177     }
178 
179     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
180         long groupId, boolean active) throws com.liferay.portal.SystemException {
181         return getPersistence().findByG_A(groupId, active);
182     }
183 
184     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
185         long groupId, boolean active, int start, int end)
186         throws com.liferay.portal.SystemException {
187         return getPersistence().findByG_A(groupId, active, start, end);
188     }
189 
190     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
191         long groupId, boolean active, int start, int end,
192         com.liferay.portal.kernel.util.OrderByComparator obc)
193         throws com.liferay.portal.SystemException {
194         return getPersistence().findByG_A(groupId, active, start, end, obc);
195     }
196 
197     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByG_A_First(
198         long groupId, boolean active,
199         com.liferay.portal.kernel.util.OrderByComparator obc)
200         throws com.liferay.portal.SystemException,
201             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
202         return getPersistence().findByG_A_First(groupId, active, obc);
203     }
204 
205     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByG_A_Last(
206         long groupId, boolean active,
207         com.liferay.portal.kernel.util.OrderByComparator obc)
208         throws com.liferay.portal.SystemException,
209             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
210         return getPersistence().findByG_A_Last(groupId, active, obc);
211     }
212 
213     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByG_A_PrevAndNext(
214         long frameworkVersionId, long groupId, boolean active,
215         com.liferay.portal.kernel.util.OrderByComparator obc)
216         throws com.liferay.portal.SystemException,
217             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
218         return getPersistence()
219                    .findByG_A_PrevAndNext(frameworkVersionId, groupId, active,
220             obc);
221     }
222 
223     public static java.util.List<Object> findWithDynamicQuery(
224         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
225         throws com.liferay.portal.SystemException {
226         return getPersistence().findWithDynamicQuery(dynamicQuery);
227     }
228 
229     public static java.util.List<Object> findWithDynamicQuery(
230         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
231         int end) throws com.liferay.portal.SystemException {
232         return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
233     }
234 
235     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll()
236         throws com.liferay.portal.SystemException {
237         return getPersistence().findAll();
238     }
239 
240     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll(
241         int start, int end) throws com.liferay.portal.SystemException {
242         return getPersistence().findAll(start, end);
243     }
244 
245     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll(
246         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
247         throws com.liferay.portal.SystemException {
248         return getPersistence().findAll(start, end, obc);
249     }
250 
251     public static void removeByGroupId(long groupId)
252         throws com.liferay.portal.SystemException {
253         getPersistence().removeByGroupId(groupId);
254     }
255 
256     public static void removeByCompanyId(long companyId)
257         throws com.liferay.portal.SystemException {
258         getPersistence().removeByCompanyId(companyId);
259     }
260 
261     public static void removeByG_A(long groupId, boolean active)
262         throws com.liferay.portal.SystemException {
263         getPersistence().removeByG_A(groupId, active);
264     }
265 
266     public static void removeAll() throws com.liferay.portal.SystemException {
267         getPersistence().removeAll();
268     }
269 
270     public static int countByGroupId(long groupId)
271         throws com.liferay.portal.SystemException {
272         return getPersistence().countByGroupId(groupId);
273     }
274 
275     public static int countByCompanyId(long companyId)
276         throws com.liferay.portal.SystemException {
277         return getPersistence().countByCompanyId(companyId);
278     }
279 
280     public static int countByG_A(long groupId, boolean active)
281         throws com.liferay.portal.SystemException {
282         return getPersistence().countByG_A(groupId, active);
283     }
284 
285     public static int countAll() throws com.liferay.portal.SystemException {
286         return getPersistence().countAll();
287     }
288 
289     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
290         long pk) throws com.liferay.portal.SystemException {
291         return getPersistence().getSCProductVersions(pk);
292     }
293 
294     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
295         long pk, int start, int end) throws com.liferay.portal.SystemException {
296         return getPersistence().getSCProductVersions(pk, start, end);
297     }
298 
299     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
300         long pk, int start, int end,
301         com.liferay.portal.kernel.util.OrderByComparator obc)
302         throws com.liferay.portal.SystemException {
303         return getPersistence().getSCProductVersions(pk, start, end, obc);
304     }
305 
306     public static int getSCProductVersionsSize(long pk)
307         throws com.liferay.portal.SystemException {
308         return getPersistence().getSCProductVersionsSize(pk);
309     }
310 
311     public static boolean containsSCProductVersion(long pk,
312         long scProductVersionPK) throws com.liferay.portal.SystemException {
313         return getPersistence().containsSCProductVersion(pk, scProductVersionPK);
314     }
315 
316     public static boolean containsSCProductVersions(long pk)
317         throws com.liferay.portal.SystemException {
318         return getPersistence().containsSCProductVersions(pk);
319     }
320 
321     public static void addSCProductVersion(long pk, long scProductVersionPK)
322         throws com.liferay.portal.SystemException {
323         getPersistence().addSCProductVersion(pk, scProductVersionPK);
324     }
325 
326     public static void addSCProductVersion(long pk,
327         com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
328         throws com.liferay.portal.SystemException {
329         getPersistence().addSCProductVersion(pk, scProductVersion);
330     }
331 
332     public static void addSCProductVersions(long pk, long[] scProductVersionPKs)
333         throws com.liferay.portal.SystemException {
334         getPersistence().addSCProductVersions(pk, scProductVersionPKs);
335     }
336 
337     public static void addSCProductVersions(long pk,
338         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
339         throws com.liferay.portal.SystemException {
340         getPersistence().addSCProductVersions(pk, scProductVersions);
341     }
342 
343     public static void clearSCProductVersions(long pk)
344         throws com.liferay.portal.SystemException {
345         getPersistence().clearSCProductVersions(pk);
346     }
347 
348     public static void removeSCProductVersion(long pk, long scProductVersionPK)
349         throws com.liferay.portal.SystemException {
350         getPersistence().removeSCProductVersion(pk, scProductVersionPK);
351     }
352 
353     public static void removeSCProductVersion(long pk,
354         com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
355         throws com.liferay.portal.SystemException {
356         getPersistence().removeSCProductVersion(pk, scProductVersion);
357     }
358 
359     public static void removeSCProductVersions(long pk,
360         long[] scProductVersionPKs) throws com.liferay.portal.SystemException {
361         getPersistence().removeSCProductVersions(pk, scProductVersionPKs);
362     }
363 
364     public static void removeSCProductVersions(long pk,
365         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
366         throws com.liferay.portal.SystemException {
367         getPersistence().removeSCProductVersions(pk, scProductVersions);
368     }
369 
370     public static void setSCProductVersions(long pk, long[] scProductVersionPKs)
371         throws com.liferay.portal.SystemException {
372         getPersistence().setSCProductVersions(pk, scProductVersionPKs);
373     }
374 
375     public static void setSCProductVersions(long pk,
376         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
377         throws com.liferay.portal.SystemException {
378         getPersistence().setSCProductVersions(pk, scProductVersions);
379     }
380 
381     public static SCFrameworkVersionPersistence getPersistence() {
382         return _persistence;
383     }
384 
385     public void setPersistence(SCFrameworkVersionPersistence persistence) {
386         _persistence = persistence;
387     }
388 
389     private static SCFrameworkVersionPersistence _persistence;
390 }