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