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.SCLicense;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="SCLicenseUtil.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       SCLicensePersistence
35   * @see       SCLicensePersistenceImpl
36   * @generated
37   */
38  public class SCLicenseUtil {
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 SCLicense remove(SCLicense scLicense)
66          throws SystemException {
67          return getPersistence().remove(scLicense);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static SCLicense update(SCLicense scLicense, boolean merge)
74          throws SystemException {
75          return getPersistence().update(scLicense, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portlet.softwarecatalog.model.SCLicense scLicense) {
80          getPersistence().cacheResult(scLicense);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses) {
85          getPersistence().cacheResult(scLicenses);
86      }
87  
88      public static com.liferay.portlet.softwarecatalog.model.SCLicense create(
89          long licenseId) {
90          return getPersistence().create(licenseId);
91      }
92  
93      public static com.liferay.portlet.softwarecatalog.model.SCLicense remove(
94          long licenseId)
95          throws com.liferay.portal.kernel.exception.SystemException,
96              com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
97          return getPersistence().remove(licenseId);
98      }
99  
100     public static com.liferay.portlet.softwarecatalog.model.SCLicense updateImpl(
101         com.liferay.portlet.softwarecatalog.model.SCLicense scLicense,
102         boolean merge)
103         throws com.liferay.portal.kernel.exception.SystemException {
104         return getPersistence().updateImpl(scLicense, merge);
105     }
106 
107     public static com.liferay.portlet.softwarecatalog.model.SCLicense findByPrimaryKey(
108         long licenseId)
109         throws com.liferay.portal.kernel.exception.SystemException,
110             com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
111         return getPersistence().findByPrimaryKey(licenseId);
112     }
113 
114     public static com.liferay.portlet.softwarecatalog.model.SCLicense fetchByPrimaryKey(
115         long licenseId)
116         throws com.liferay.portal.kernel.exception.SystemException {
117         return getPersistence().fetchByPrimaryKey(licenseId);
118     }
119 
120     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(
121         boolean active)
122         throws com.liferay.portal.kernel.exception.SystemException {
123         return getPersistence().findByActive(active);
124     }
125 
126     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(
127         boolean active, int start, int end)
128         throws com.liferay.portal.kernel.exception.SystemException {
129         return getPersistence().findByActive(active, start, end);
130     }
131 
132     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(
133         boolean active, int start, int end,
134         com.liferay.portal.kernel.util.OrderByComparator obc)
135         throws com.liferay.portal.kernel.exception.SystemException {
136         return getPersistence().findByActive(active, start, end, obc);
137     }
138 
139     public static com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_First(
140         boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
141         throws com.liferay.portal.kernel.exception.SystemException,
142             com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
143         return getPersistence().findByActive_First(active, obc);
144     }
145 
146     public static com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_Last(
147         boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.kernel.exception.SystemException,
149             com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
150         return getPersistence().findByActive_Last(active, obc);
151     }
152 
153     public static com.liferay.portlet.softwarecatalog.model.SCLicense[] findByActive_PrevAndNext(
154         long licenseId, boolean active,
155         com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.kernel.exception.SystemException,
157             com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
158         return getPersistence().findByActive_PrevAndNext(licenseId, active, obc);
159     }
160 
161     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(
162         boolean active, boolean recommended)
163         throws com.liferay.portal.kernel.exception.SystemException {
164         return getPersistence().findByA_R(active, recommended);
165     }
166 
167     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(
168         boolean active, boolean recommended, int start, int end)
169         throws com.liferay.portal.kernel.exception.SystemException {
170         return getPersistence().findByA_R(active, recommended, start, end);
171     }
172 
173     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(
174         boolean active, boolean recommended, int start, int end,
175         com.liferay.portal.kernel.util.OrderByComparator obc)
176         throws com.liferay.portal.kernel.exception.SystemException {
177         return getPersistence().findByA_R(active, recommended, start, end, obc);
178     }
179 
180     public static com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_First(
181         boolean active, boolean recommended,
182         com.liferay.portal.kernel.util.OrderByComparator obc)
183         throws com.liferay.portal.kernel.exception.SystemException,
184             com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
185         return getPersistence().findByA_R_First(active, recommended, obc);
186     }
187 
188     public static com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_Last(
189         boolean active, boolean recommended,
190         com.liferay.portal.kernel.util.OrderByComparator obc)
191         throws com.liferay.portal.kernel.exception.SystemException,
192             com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
193         return getPersistence().findByA_R_Last(active, recommended, obc);
194     }
195 
196     public static com.liferay.portlet.softwarecatalog.model.SCLicense[] findByA_R_PrevAndNext(
197         long licenseId, boolean active, boolean recommended,
198         com.liferay.portal.kernel.util.OrderByComparator obc)
199         throws com.liferay.portal.kernel.exception.SystemException,
200             com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
201         return getPersistence()
202                    .findByA_R_PrevAndNext(licenseId, active, recommended, obc);
203     }
204 
205     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll()
206         throws com.liferay.portal.kernel.exception.SystemException {
207         return getPersistence().findAll();
208     }
209 
210     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll(
211         int start, int end)
212         throws com.liferay.portal.kernel.exception.SystemException {
213         return getPersistence().findAll(start, end);
214     }
215 
216     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll(
217         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
218         throws com.liferay.portal.kernel.exception.SystemException {
219         return getPersistence().findAll(start, end, obc);
220     }
221 
222     public static void removeByActive(boolean active)
223         throws com.liferay.portal.kernel.exception.SystemException {
224         getPersistence().removeByActive(active);
225     }
226 
227     public static void removeByA_R(boolean active, boolean recommended)
228         throws com.liferay.portal.kernel.exception.SystemException {
229         getPersistence().removeByA_R(active, recommended);
230     }
231 
232     public static void removeAll()
233         throws com.liferay.portal.kernel.exception.SystemException {
234         getPersistence().removeAll();
235     }
236 
237     public static int countByActive(boolean active)
238         throws com.liferay.portal.kernel.exception.SystemException {
239         return getPersistence().countByActive(active);
240     }
241 
242     public static int countByA_R(boolean active, boolean recommended)
243         throws com.liferay.portal.kernel.exception.SystemException {
244         return getPersistence().countByA_R(active, recommended);
245     }
246 
247     public static int countAll()
248         throws com.liferay.portal.kernel.exception.SystemException {
249         return getPersistence().countAll();
250     }
251 
252     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
253         long pk) throws com.liferay.portal.kernel.exception.SystemException {
254         return getPersistence().getSCProductEntries(pk);
255     }
256 
257     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
258         long pk, int start, int end)
259         throws com.liferay.portal.kernel.exception.SystemException {
260         return getPersistence().getSCProductEntries(pk, start, end);
261     }
262 
263     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
264         long pk, int start, int end,
265         com.liferay.portal.kernel.util.OrderByComparator obc)
266         throws com.liferay.portal.kernel.exception.SystemException {
267         return getPersistence().getSCProductEntries(pk, start, end, obc);
268     }
269 
270     public static int getSCProductEntriesSize(long pk)
271         throws com.liferay.portal.kernel.exception.SystemException {
272         return getPersistence().getSCProductEntriesSize(pk);
273     }
274 
275     public static boolean containsSCProductEntry(long pk, long scProductEntryPK)
276         throws com.liferay.portal.kernel.exception.SystemException {
277         return getPersistence().containsSCProductEntry(pk, scProductEntryPK);
278     }
279 
280     public static boolean containsSCProductEntries(long pk)
281         throws com.liferay.portal.kernel.exception.SystemException {
282         return getPersistence().containsSCProductEntries(pk);
283     }
284 
285     public static void addSCProductEntry(long pk, long scProductEntryPK)
286         throws com.liferay.portal.kernel.exception.SystemException {
287         getPersistence().addSCProductEntry(pk, scProductEntryPK);
288     }
289 
290     public static void addSCProductEntry(long pk,
291         com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
292         throws com.liferay.portal.kernel.exception.SystemException {
293         getPersistence().addSCProductEntry(pk, scProductEntry);
294     }
295 
296     public static void addSCProductEntries(long pk, long[] scProductEntryPKs)
297         throws com.liferay.portal.kernel.exception.SystemException {
298         getPersistence().addSCProductEntries(pk, scProductEntryPKs);
299     }
300 
301     public static void addSCProductEntries(long pk,
302         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
303         throws com.liferay.portal.kernel.exception.SystemException {
304         getPersistence().addSCProductEntries(pk, scProductEntries);
305     }
306 
307     public static void clearSCProductEntries(long pk)
308         throws com.liferay.portal.kernel.exception.SystemException {
309         getPersistence().clearSCProductEntries(pk);
310     }
311 
312     public static void removeSCProductEntry(long pk, long scProductEntryPK)
313         throws com.liferay.portal.kernel.exception.SystemException {
314         getPersistence().removeSCProductEntry(pk, scProductEntryPK);
315     }
316 
317     public static void removeSCProductEntry(long pk,
318         com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
319         throws com.liferay.portal.kernel.exception.SystemException {
320         getPersistence().removeSCProductEntry(pk, scProductEntry);
321     }
322 
323     public static void removeSCProductEntries(long pk, long[] scProductEntryPKs)
324         throws com.liferay.portal.kernel.exception.SystemException {
325         getPersistence().removeSCProductEntries(pk, scProductEntryPKs);
326     }
327 
328     public static void removeSCProductEntries(long pk,
329         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
330         throws com.liferay.portal.kernel.exception.SystemException {
331         getPersistence().removeSCProductEntries(pk, scProductEntries);
332     }
333 
334     public static void setSCProductEntries(long pk, long[] scProductEntryPKs)
335         throws com.liferay.portal.kernel.exception.SystemException {
336         getPersistence().setSCProductEntries(pk, scProductEntryPKs);
337     }
338 
339     public static void setSCProductEntries(long pk,
340         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
341         throws com.liferay.portal.kernel.exception.SystemException {
342         getPersistence().setSCProductEntries(pk, scProductEntries);
343     }
344 
345     public static SCLicensePersistence getPersistence() {
346         if (_persistence == null) {
347             _persistence = (SCLicensePersistence)PortalBeanLocatorUtil.locate(SCLicensePersistence.class.getName());
348         }
349 
350         return _persistence;
351     }
352 
353     public void setPersistence(SCLicensePersistence persistence) {
354         _persistence = persistence;
355     }
356 
357     private static SCLicensePersistence _persistence;
358 }