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