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