1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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  /**
26   * <a href="SCProductEntryUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class SCProductEntryUtil {
32      public static com.liferay.portlet.softwarecatalog.model.SCProductEntry create(
33          long productEntryId) {
34          return getPersistence().create(productEntryId);
35      }
36  
37      public static com.liferay.portlet.softwarecatalog.model.SCProductEntry remove(
38          long productEntryId)
39          throws com.liferay.portal.SystemException, 
40              com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
41          return getPersistence().remove(productEntryId);
42      }
43  
44      public static com.liferay.portlet.softwarecatalog.model.SCProductEntry remove(
45          com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
46          throws com.liferay.portal.SystemException {
47          return getPersistence().remove(scProductEntry);
48      }
49  
50      public static com.liferay.portlet.softwarecatalog.model.SCProductEntry update(
51          com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
52          throws com.liferay.portal.SystemException {
53          return getPersistence().update(scProductEntry);
54      }
55  
56      public static com.liferay.portlet.softwarecatalog.model.SCProductEntry update(
57          com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
58          boolean merge) throws com.liferay.portal.SystemException {
59          return getPersistence().update(scProductEntry, merge);
60      }
61  
62      public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateImpl(
63          com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
64          boolean merge) throws com.liferay.portal.SystemException {
65          return getPersistence().updateImpl(scProductEntry, merge);
66      }
67  
68      public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByPrimaryKey(
69          long productEntryId)
70          throws com.liferay.portal.SystemException, 
71              com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
72          return getPersistence().findByPrimaryKey(productEntryId);
73      }
74  
75      public static com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByPrimaryKey(
76          long productEntryId) throws com.liferay.portal.SystemException {
77          return getPersistence().fetchByPrimaryKey(productEntryId);
78      }
79  
80      public static java.util.List findByGroupId(long groupId)
81          throws com.liferay.portal.SystemException {
82          return getPersistence().findByGroupId(groupId);
83      }
84  
85      public static java.util.List findByGroupId(long groupId, int begin, int end)
86          throws com.liferay.portal.SystemException {
87          return getPersistence().findByGroupId(groupId, begin, end);
88      }
89  
90      public static java.util.List findByGroupId(long groupId, int begin,
91          int end, com.liferay.portal.kernel.util.OrderByComparator obc)
92          throws com.liferay.portal.SystemException {
93          return getPersistence().findByGroupId(groupId, begin, end, obc);
94      }
95  
96      public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_First(
97          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
98          throws com.liferay.portal.SystemException, 
99              com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
100         return getPersistence().findByGroupId_First(groupId, obc);
101     }
102 
103     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_Last(
104         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
105         throws com.liferay.portal.SystemException, 
106             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
107         return getPersistence().findByGroupId_Last(groupId, obc);
108     }
109 
110     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByGroupId_PrevAndNext(
111         long productEntryId, long groupId,
112         com.liferay.portal.kernel.util.OrderByComparator obc)
113         throws com.liferay.portal.SystemException, 
114             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
115         return getPersistence().findByGroupId_PrevAndNext(productEntryId,
116             groupId, obc);
117     }
118 
119     public static java.util.List findByCompanyId(long companyId)
120         throws com.liferay.portal.SystemException {
121         return getPersistence().findByCompanyId(companyId);
122     }
123 
124     public static java.util.List findByCompanyId(long companyId, int begin,
125         int end) throws com.liferay.portal.SystemException {
126         return getPersistence().findByCompanyId(companyId, begin, end);
127     }
128 
129     public static java.util.List findByCompanyId(long companyId, int begin,
130         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
131         throws com.liferay.portal.SystemException {
132         return getPersistence().findByCompanyId(companyId, begin, end, obc);
133     }
134 
135     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByCompanyId_First(
136         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
137         throws com.liferay.portal.SystemException, 
138             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
139         return getPersistence().findByCompanyId_First(companyId, obc);
140     }
141 
142     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByCompanyId_Last(
143         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
144         throws com.liferay.portal.SystemException, 
145             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
146         return getPersistence().findByCompanyId_Last(companyId, obc);
147     }
148 
149     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByCompanyId_PrevAndNext(
150         long productEntryId, long companyId,
151         com.liferay.portal.kernel.util.OrderByComparator obc)
152         throws com.liferay.portal.SystemException, 
153             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
154         return getPersistence().findByCompanyId_PrevAndNext(productEntryId,
155             companyId, obc);
156     }
157 
158     public static java.util.List findByG_U(long groupId, long userId)
159         throws com.liferay.portal.SystemException {
160         return getPersistence().findByG_U(groupId, userId);
161     }
162 
163     public static java.util.List findByG_U(long groupId, long userId,
164         int begin, int end) throws com.liferay.portal.SystemException {
165         return getPersistence().findByG_U(groupId, userId, begin, end);
166     }
167 
168     public static java.util.List findByG_U(long groupId, long userId,
169         int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
170         throws com.liferay.portal.SystemException {
171         return getPersistence().findByG_U(groupId, userId, begin, end, obc);
172     }
173 
174     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_First(
175         long groupId, long userId,
176         com.liferay.portal.kernel.util.OrderByComparator obc)
177         throws com.liferay.portal.SystemException, 
178             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
179         return getPersistence().findByG_U_First(groupId, userId, obc);
180     }
181 
182     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_Last(
183         long groupId, long userId,
184         com.liferay.portal.kernel.util.OrderByComparator obc)
185         throws com.liferay.portal.SystemException, 
186             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
187         return getPersistence().findByG_U_Last(groupId, userId, obc);
188     }
189 
190     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByG_U_PrevAndNext(
191         long productEntryId, long groupId, long userId,
192         com.liferay.portal.kernel.util.OrderByComparator obc)
193         throws com.liferay.portal.SystemException, 
194             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
195         return getPersistence().findByG_U_PrevAndNext(productEntryId, groupId,
196             userId, obc);
197     }
198 
199     public static java.util.List findWithDynamicQuery(
200         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
201         throws com.liferay.portal.SystemException {
202         return getPersistence().findWithDynamicQuery(queryInitializer);
203     }
204 
205     public static java.util.List findWithDynamicQuery(
206         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
207         int begin, int end) throws com.liferay.portal.SystemException {
208         return getPersistence().findWithDynamicQuery(queryInitializer, begin,
209             end);
210     }
211 
212     public static java.util.List findAll()
213         throws com.liferay.portal.SystemException {
214         return getPersistence().findAll();
215     }
216 
217     public static java.util.List findAll(int begin, int end)
218         throws com.liferay.portal.SystemException {
219         return getPersistence().findAll(begin, end);
220     }
221 
222     public static java.util.List findAll(int begin, int end,
223         com.liferay.portal.kernel.util.OrderByComparator obc)
224         throws com.liferay.portal.SystemException {
225         return getPersistence().findAll(begin, end, obc);
226     }
227 
228     public static void removeByGroupId(long groupId)
229         throws com.liferay.portal.SystemException {
230         getPersistence().removeByGroupId(groupId);
231     }
232 
233     public static void removeByCompanyId(long companyId)
234         throws com.liferay.portal.SystemException {
235         getPersistence().removeByCompanyId(companyId);
236     }
237 
238     public static void removeByG_U(long groupId, long userId)
239         throws com.liferay.portal.SystemException {
240         getPersistence().removeByG_U(groupId, userId);
241     }
242 
243     public static void removeAll() throws com.liferay.portal.SystemException {
244         getPersistence().removeAll();
245     }
246 
247     public static int countByGroupId(long groupId)
248         throws com.liferay.portal.SystemException {
249         return getPersistence().countByGroupId(groupId);
250     }
251 
252     public static int countByCompanyId(long companyId)
253         throws com.liferay.portal.SystemException {
254         return getPersistence().countByCompanyId(companyId);
255     }
256 
257     public static int countByG_U(long groupId, long userId)
258         throws com.liferay.portal.SystemException {
259         return getPersistence().countByG_U(groupId, userId);
260     }
261 
262     public static int countAll() throws com.liferay.portal.SystemException {
263         return getPersistence().countAll();
264     }
265 
266     public static java.util.List getSCLicenses(long pk)
267         throws com.liferay.portal.SystemException, 
268             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
269         return getPersistence().getSCLicenses(pk);
270     }
271 
272     public static java.util.List getSCLicenses(long pk, int begin, int end)
273         throws com.liferay.portal.SystemException, 
274             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
275         return getPersistence().getSCLicenses(pk, begin, end);
276     }
277 
278     public static java.util.List getSCLicenses(long pk, int begin, int end,
279         com.liferay.portal.kernel.util.OrderByComparator obc)
280         throws com.liferay.portal.SystemException, 
281             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
282         return getPersistence().getSCLicenses(pk, begin, end, obc);
283     }
284 
285     public static int getSCLicensesSize(long pk)
286         throws com.liferay.portal.SystemException {
287         return getPersistence().getSCLicensesSize(pk);
288     }
289 
290     public static boolean containsSCLicense(long pk, long scLicensePK)
291         throws com.liferay.portal.SystemException {
292         return getPersistence().containsSCLicense(pk, scLicensePK);
293     }
294 
295     public static boolean containsSCLicenses(long pk)
296         throws com.liferay.portal.SystemException {
297         return getPersistence().containsSCLicenses(pk);
298     }
299 
300     public static void addSCLicense(long pk, long scLicensePK)
301         throws com.liferay.portal.SystemException, 
302             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException, 
303             com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
304         getPersistence().addSCLicense(pk, scLicensePK);
305     }
306 
307     public static void addSCLicense(long pk,
308         com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
309         throws com.liferay.portal.SystemException, 
310             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException, 
311             com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
312         getPersistence().addSCLicense(pk, scLicense);
313     }
314 
315     public static void addSCLicenses(long pk, long[] scLicensePKs)
316         throws com.liferay.portal.SystemException, 
317             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException, 
318             com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
319         getPersistence().addSCLicenses(pk, scLicensePKs);
320     }
321 
322     public static void addSCLicenses(long pk, java.util.List scLicenses)
323         throws com.liferay.portal.SystemException, 
324             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException, 
325             com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
326         getPersistence().addSCLicenses(pk, scLicenses);
327     }
328 
329     public static void clearSCLicenses(long pk)
330         throws com.liferay.portal.SystemException, 
331             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
332         getPersistence().clearSCLicenses(pk);
333     }
334 
335     public static void removeSCLicense(long pk, long scLicensePK)
336         throws com.liferay.portal.SystemException, 
337             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException, 
338             com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
339         getPersistence().removeSCLicense(pk, scLicensePK);
340     }
341 
342     public static void removeSCLicense(long pk,
343         com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
344         throws com.liferay.portal.SystemException, 
345             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException, 
346             com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
347         getPersistence().removeSCLicense(pk, scLicense);
348     }
349 
350     public static void removeSCLicenses(long pk, long[] scLicensePKs)
351         throws com.liferay.portal.SystemException, 
352             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException, 
353             com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
354         getPersistence().removeSCLicenses(pk, scLicensePKs);
355     }
356 
357     public static void removeSCLicenses(long pk, java.util.List scLicenses)
358         throws com.liferay.portal.SystemException, 
359             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException, 
360             com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
361         getPersistence().removeSCLicenses(pk, scLicenses);
362     }
363 
364     public static void setSCLicenses(long pk, long[] scLicensePKs)
365         throws com.liferay.portal.SystemException, 
366             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException, 
367             com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
368         getPersistence().setSCLicenses(pk, scLicensePKs);
369     }
370 
371     public static void setSCLicenses(long pk, java.util.List scLicenses)
372         throws com.liferay.portal.SystemException, 
373             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException, 
374             com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
375         getPersistence().setSCLicenses(pk, scLicenses);
376     }
377 
378     public static SCProductEntryPersistence getPersistence() {
379         return _getUtil()._persistence;
380     }
381 
382     public void setPersistence(SCProductEntryPersistence persistence) {
383         _persistence = persistence;
384     }
385 
386     private static SCProductEntryUtil _getUtil() {
387         if (_util == null) {
388             _util = (SCProductEntryUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
389         }
390 
391         return _util;
392     }
393 
394     private static final String _UTIL = SCProductEntryUtil.class.getName();
395     private static SCProductEntryUtil _util;
396     private SCProductEntryPersistence _persistence;
397 }