1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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  import com.liferay.portal.SystemException;
26  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
27  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
28  
29  import com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion;
30  
31  import java.util.List;
32  
33  /**
34   * <a href="SCFrameworkVersionUtil.java.html"><b><i>View Source</i></b></a>
35   *
36   * <p>
37   * ServiceBuilder generated this class. Modifications in this class will be
38   * overwritten the next time is generated.
39   * </p>
40   *
41   * @author    Brian Wing Shun Chan
42   * @see       SCFrameworkVersionPersistence
43   * @see       SCFrameworkVersionPersistenceImpl
44   * @generated
45   */
46  public class SCFrameworkVersionUtil {
47      /**
48       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
49       */
50      public static void clearCache() {
51          getPersistence().clearCache();
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
56       */
57      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
58          throws SystemException {
59          return getPersistence().findWithDynamicQuery(dynamicQuery);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
64       */
65      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
66          int start, int end) throws SystemException {
67          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
72       */
73      public static SCFrameworkVersion remove(
74          SCFrameworkVersion scFrameworkVersion) throws SystemException {
75          return getPersistence().remove(scFrameworkVersion);
76      }
77  
78      /**
79       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
80       */
81      public static SCFrameworkVersion update(
82          SCFrameworkVersion scFrameworkVersion, boolean merge)
83          throws SystemException {
84          return getPersistence().update(scFrameworkVersion, merge);
85      }
86  
87      public static void cacheResult(
88          com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion) {
89          getPersistence().cacheResult(scFrameworkVersion);
90      }
91  
92      public static void cacheResult(
93          java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions) {
94          getPersistence().cacheResult(scFrameworkVersions);
95      }
96  
97      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion create(
98          long frameworkVersionId) {
99          return getPersistence().create(frameworkVersionId);
100     }
101 
102     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion remove(
103         long frameworkVersionId)
104         throws com.liferay.portal.SystemException,
105             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
106         return getPersistence().remove(frameworkVersionId);
107     }
108 
109     /**
110      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
111      */
112     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion update(
113         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
114         throws com.liferay.portal.SystemException {
115         return getPersistence().update(scFrameworkVersion);
116     }
117 
118     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateImpl(
119         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion,
120         boolean merge) throws com.liferay.portal.SystemException {
121         return getPersistence().updateImpl(scFrameworkVersion, merge);
122     }
123 
124     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByPrimaryKey(
125         long frameworkVersionId)
126         throws com.liferay.portal.SystemException,
127             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
128         return getPersistence().findByPrimaryKey(frameworkVersionId);
129     }
130 
131     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion fetchByPrimaryKey(
132         long frameworkVersionId) throws com.liferay.portal.SystemException {
133         return getPersistence().fetchByPrimaryKey(frameworkVersionId);
134     }
135 
136     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByGroupId(
137         long groupId) throws com.liferay.portal.SystemException {
138         return getPersistence().findByGroupId(groupId);
139     }
140 
141     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByGroupId(
142         long groupId, int start, int end)
143         throws com.liferay.portal.SystemException {
144         return getPersistence().findByGroupId(groupId, start, end);
145     }
146 
147     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByGroupId(
148         long groupId, int start, int end,
149         com.liferay.portal.kernel.util.OrderByComparator obc)
150         throws com.liferay.portal.SystemException {
151         return getPersistence().findByGroupId(groupId, start, end, obc);
152     }
153 
154     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByGroupId_First(
155         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.SystemException,
157             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
158         return getPersistence().findByGroupId_First(groupId, obc);
159     }
160 
161     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByGroupId_Last(
162         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
163         throws com.liferay.portal.SystemException,
164             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
165         return getPersistence().findByGroupId_Last(groupId, obc);
166     }
167 
168     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByGroupId_PrevAndNext(
169         long frameworkVersionId, long groupId,
170         com.liferay.portal.kernel.util.OrderByComparator obc)
171         throws com.liferay.portal.SystemException,
172             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
173         return getPersistence()
174                    .findByGroupId_PrevAndNext(frameworkVersionId, groupId, obc);
175     }
176 
177     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
178         long companyId) throws com.liferay.portal.SystemException {
179         return getPersistence().findByCompanyId(companyId);
180     }
181 
182     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
183         long companyId, int start, int end)
184         throws com.liferay.portal.SystemException {
185         return getPersistence().findByCompanyId(companyId, start, end);
186     }
187 
188     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
189         long companyId, int start, int end,
190         com.liferay.portal.kernel.util.OrderByComparator obc)
191         throws com.liferay.portal.SystemException {
192         return getPersistence().findByCompanyId(companyId, start, end, obc);
193     }
194 
195     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByCompanyId_First(
196         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
197         throws com.liferay.portal.SystemException,
198             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
199         return getPersistence().findByCompanyId_First(companyId, obc);
200     }
201 
202     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByCompanyId_Last(
203         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
204         throws com.liferay.portal.SystemException,
205             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
206         return getPersistence().findByCompanyId_Last(companyId, obc);
207     }
208 
209     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByCompanyId_PrevAndNext(
210         long frameworkVersionId, long companyId,
211         com.liferay.portal.kernel.util.OrderByComparator obc)
212         throws com.liferay.portal.SystemException,
213             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
214         return getPersistence()
215                    .findByCompanyId_PrevAndNext(frameworkVersionId, companyId,
216             obc);
217     }
218 
219     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
220         long groupId, boolean active) throws com.liferay.portal.SystemException {
221         return getPersistence().findByG_A(groupId, active);
222     }
223 
224     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
225         long groupId, boolean active, int start, int end)
226         throws com.liferay.portal.SystemException {
227         return getPersistence().findByG_A(groupId, active, start, end);
228     }
229 
230     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
231         long groupId, boolean active, int start, int end,
232         com.liferay.portal.kernel.util.OrderByComparator obc)
233         throws com.liferay.portal.SystemException {
234         return getPersistence().findByG_A(groupId, active, start, end, obc);
235     }
236 
237     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByG_A_First(
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_First(groupId, active, obc);
243     }
244 
245     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByG_A_Last(
246         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().findByG_A_Last(groupId, active, obc);
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 obc)
256         throws com.liferay.portal.SystemException,
257             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
258         return getPersistence()
259                    .findByG_A_PrevAndNext(frameworkVersionId, groupId, active,
260             obc);
261     }
262 
263     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll()
264         throws com.liferay.portal.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) throws com.liferay.portal.SystemException {
270         return getPersistence().findAll(start, end);
271     }
272 
273     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll(
274         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
275         throws com.liferay.portal.SystemException {
276         return getPersistence().findAll(start, end, obc);
277     }
278 
279     public static void removeByGroupId(long groupId)
280         throws com.liferay.portal.SystemException {
281         getPersistence().removeByGroupId(groupId);
282     }
283 
284     public static void removeByCompanyId(long companyId)
285         throws com.liferay.portal.SystemException {
286         getPersistence().removeByCompanyId(companyId);
287     }
288 
289     public static void removeByG_A(long groupId, boolean active)
290         throws com.liferay.portal.SystemException {
291         getPersistence().removeByG_A(groupId, active);
292     }
293 
294     public static void removeAll() throws com.liferay.portal.SystemException {
295         getPersistence().removeAll();
296     }
297 
298     public static int countByGroupId(long groupId)
299         throws com.liferay.portal.SystemException {
300         return getPersistence().countByGroupId(groupId);
301     }
302 
303     public static int countByCompanyId(long companyId)
304         throws com.liferay.portal.SystemException {
305         return getPersistence().countByCompanyId(companyId);
306     }
307 
308     public static int countByG_A(long groupId, boolean active)
309         throws com.liferay.portal.SystemException {
310         return getPersistence().countByG_A(groupId, active);
311     }
312 
313     public static int countAll() throws com.liferay.portal.SystemException {
314         return getPersistence().countAll();
315     }
316 
317     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
318         long pk) throws com.liferay.portal.SystemException {
319         return getPersistence().getSCProductVersions(pk);
320     }
321 
322     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
323         long pk, int start, int end) throws com.liferay.portal.SystemException {
324         return getPersistence().getSCProductVersions(pk, start, end);
325     }
326 
327     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
328         long pk, int start, int end,
329         com.liferay.portal.kernel.util.OrderByComparator obc)
330         throws com.liferay.portal.SystemException {
331         return getPersistence().getSCProductVersions(pk, start, end, obc);
332     }
333 
334     public static int getSCProductVersionsSize(long pk)
335         throws com.liferay.portal.SystemException {
336         return getPersistence().getSCProductVersionsSize(pk);
337     }
338 
339     public static boolean containsSCProductVersion(long pk,
340         long scProductVersionPK) throws com.liferay.portal.SystemException {
341         return getPersistence().containsSCProductVersion(pk, scProductVersionPK);
342     }
343 
344     public static boolean containsSCProductVersions(long pk)
345         throws com.liferay.portal.SystemException {
346         return getPersistence().containsSCProductVersions(pk);
347     }
348 
349     public static void addSCProductVersion(long pk, long scProductVersionPK)
350         throws com.liferay.portal.SystemException {
351         getPersistence().addSCProductVersion(pk, scProductVersionPK);
352     }
353 
354     public static void addSCProductVersion(long pk,
355         com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
356         throws com.liferay.portal.SystemException {
357         getPersistence().addSCProductVersion(pk, scProductVersion);
358     }
359 
360     public static void addSCProductVersions(long pk, long[] scProductVersionPKs)
361         throws com.liferay.portal.SystemException {
362         getPersistence().addSCProductVersions(pk, scProductVersionPKs);
363     }
364 
365     public static void addSCProductVersions(long pk,
366         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
367         throws com.liferay.portal.SystemException {
368         getPersistence().addSCProductVersions(pk, scProductVersions);
369     }
370 
371     public static void clearSCProductVersions(long pk)
372         throws com.liferay.portal.SystemException {
373         getPersistence().clearSCProductVersions(pk);
374     }
375 
376     public static void removeSCProductVersion(long pk, long scProductVersionPK)
377         throws com.liferay.portal.SystemException {
378         getPersistence().removeSCProductVersion(pk, scProductVersionPK);
379     }
380 
381     public static void removeSCProductVersion(long pk,
382         com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
383         throws com.liferay.portal.SystemException {
384         getPersistence().removeSCProductVersion(pk, scProductVersion);
385     }
386 
387     public static void removeSCProductVersions(long pk,
388         long[] scProductVersionPKs) throws com.liferay.portal.SystemException {
389         getPersistence().removeSCProductVersions(pk, scProductVersionPKs);
390     }
391 
392     public static void removeSCProductVersions(long pk,
393         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
394         throws com.liferay.portal.SystemException {
395         getPersistence().removeSCProductVersions(pk, scProductVersions);
396     }
397 
398     public static void setSCProductVersions(long pk, long[] scProductVersionPKs)
399         throws com.liferay.portal.SystemException {
400         getPersistence().setSCProductVersions(pk, scProductVersionPKs);
401     }
402 
403     public static void setSCProductVersions(long pk,
404         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
405         throws com.liferay.portal.SystemException {
406         getPersistence().setSCProductVersions(pk, scProductVersions);
407     }
408 
409     public static SCFrameworkVersionPersistence getPersistence() {
410         if (_persistence == null) {
411             _persistence = (SCFrameworkVersionPersistence)PortalBeanLocatorUtil.locate(SCFrameworkVersionPersistence.class.getName());
412         }
413 
414         return _persistence;
415     }
416 
417     public void setPersistence(SCFrameworkVersionPersistence persistence) {
418         _persistence = persistence;
419     }
420 
421     private static SCFrameworkVersionPersistence _persistence;
422 }