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 com.liferay.portlet.softwarecatalog.model.SCProductEntry findByRG_RA(
200         java.lang.String repoGroupId, java.lang.String repoArtifactId)
201         throws com.liferay.portal.SystemException, 
202             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
203         return getPersistence().findByRG_RA(repoGroupId, repoArtifactId);
204     }
205 
206     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByRG_RA(
207         java.lang.String repoGroupId, java.lang.String repoArtifactId)
208         throws com.liferay.portal.SystemException {
209         return getPersistence().fetchByRG_RA(repoGroupId, repoArtifactId);
210     }
211 
212     public static java.util.List findWithDynamicQuery(
213         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
214         throws com.liferay.portal.SystemException {
215         return getPersistence().findWithDynamicQuery(queryInitializer);
216     }
217 
218     public static java.util.List findWithDynamicQuery(
219         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
220         int begin, int end) throws com.liferay.portal.SystemException {
221         return getPersistence().findWithDynamicQuery(queryInitializer, begin,
222             end);
223     }
224 
225     public static java.util.List findAll()
226         throws com.liferay.portal.SystemException {
227         return getPersistence().findAll();
228     }
229 
230     public static java.util.List findAll(int begin, int end)
231         throws com.liferay.portal.SystemException {
232         return getPersistence().findAll(begin, end);
233     }
234 
235     public static java.util.List findAll(int begin, int end,
236         com.liferay.portal.kernel.util.OrderByComparator obc)
237         throws com.liferay.portal.SystemException {
238         return getPersistence().findAll(begin, end, obc);
239     }
240 
241     public static void removeByGroupId(long groupId)
242         throws com.liferay.portal.SystemException {
243         getPersistence().removeByGroupId(groupId);
244     }
245 
246     public static void removeByCompanyId(long companyId)
247         throws com.liferay.portal.SystemException {
248         getPersistence().removeByCompanyId(companyId);
249     }
250 
251     public static void removeByG_U(long groupId, long userId)
252         throws com.liferay.portal.SystemException {
253         getPersistence().removeByG_U(groupId, userId);
254     }
255 
256     public static void removeByRG_RA(java.lang.String repoGroupId,
257         java.lang.String repoArtifactId)
258         throws com.liferay.portal.SystemException, 
259             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
260         getPersistence().removeByRG_RA(repoGroupId, repoArtifactId);
261     }
262 
263     public static void removeAll() throws com.liferay.portal.SystemException {
264         getPersistence().removeAll();
265     }
266 
267     public static int countByGroupId(long groupId)
268         throws com.liferay.portal.SystemException {
269         return getPersistence().countByGroupId(groupId);
270     }
271 
272     public static int countByCompanyId(long companyId)
273         throws com.liferay.portal.SystemException {
274         return getPersistence().countByCompanyId(companyId);
275     }
276 
277     public static int countByG_U(long groupId, long userId)
278         throws com.liferay.portal.SystemException {
279         return getPersistence().countByG_U(groupId, userId);
280     }
281 
282     public static int countByRG_RA(java.lang.String repoGroupId,
283         java.lang.String repoArtifactId)
284         throws com.liferay.portal.SystemException {
285         return getPersistence().countByRG_RA(repoGroupId, repoArtifactId);
286     }
287 
288     public static int countAll() throws com.liferay.portal.SystemException {
289         return getPersistence().countAll();
290     }
291 
292     public static java.util.List getSCLicenses(long pk)
293         throws com.liferay.portal.SystemException, 
294             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
295         return getPersistence().getSCLicenses(pk);
296     }
297 
298     public static java.util.List getSCLicenses(long pk, int begin, int end)
299         throws com.liferay.portal.SystemException, 
300             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
301         return getPersistence().getSCLicenses(pk, begin, end);
302     }
303 
304     public static java.util.List getSCLicenses(long pk, int begin, int end,
305         com.liferay.portal.kernel.util.OrderByComparator obc)
306         throws com.liferay.portal.SystemException, 
307             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
308         return getPersistence().getSCLicenses(pk, begin, end, obc);
309     }
310 
311     public static int getSCLicensesSize(long pk)
312         throws com.liferay.portal.SystemException {
313         return getPersistence().getSCLicensesSize(pk);
314     }
315 
316     public static boolean containsSCLicense(long pk, long scLicensePK)
317         throws com.liferay.portal.SystemException {
318         return getPersistence().containsSCLicense(pk, scLicensePK);
319     }
320 
321     public static boolean containsSCLicenses(long pk)
322         throws com.liferay.portal.SystemException {
323         return getPersistence().containsSCLicenses(pk);
324     }
325 
326     public static void addSCLicense(long pk, long scLicensePK)
327         throws com.liferay.portal.SystemException, 
328             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException, 
329             com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
330         getPersistence().addSCLicense(pk, scLicensePK);
331     }
332 
333     public static void addSCLicense(long pk,
334         com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
335         throws com.liferay.portal.SystemException, 
336             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException, 
337             com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
338         getPersistence().addSCLicense(pk, scLicense);
339     }
340 
341     public static void addSCLicenses(long pk, long[] scLicensePKs)
342         throws com.liferay.portal.SystemException, 
343             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException, 
344             com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
345         getPersistence().addSCLicenses(pk, scLicensePKs);
346     }
347 
348     public static void addSCLicenses(long pk, java.util.List scLicenses)
349         throws com.liferay.portal.SystemException, 
350             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException, 
351             com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
352         getPersistence().addSCLicenses(pk, scLicenses);
353     }
354 
355     public static void clearSCLicenses(long pk)
356         throws com.liferay.portal.SystemException, 
357             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
358         getPersistence().clearSCLicenses(pk);
359     }
360 
361     public static void removeSCLicense(long pk, long scLicensePK)
362         throws com.liferay.portal.SystemException, 
363             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException, 
364             com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
365         getPersistence().removeSCLicense(pk, scLicensePK);
366     }
367 
368     public static void removeSCLicense(long pk,
369         com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
370         throws com.liferay.portal.SystemException, 
371             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException, 
372             com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
373         getPersistence().removeSCLicense(pk, scLicense);
374     }
375 
376     public static void removeSCLicenses(long pk, long[] scLicensePKs)
377         throws com.liferay.portal.SystemException, 
378             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException, 
379             com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
380         getPersistence().removeSCLicenses(pk, scLicensePKs);
381     }
382 
383     public static void removeSCLicenses(long pk, java.util.List scLicenses)
384         throws com.liferay.portal.SystemException, 
385             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException, 
386             com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
387         getPersistence().removeSCLicenses(pk, scLicenses);
388     }
389 
390     public static void setSCLicenses(long pk, long[] scLicensePKs)
391         throws com.liferay.portal.SystemException, 
392             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException, 
393             com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
394         getPersistence().setSCLicenses(pk, scLicensePKs);
395     }
396 
397     public static void setSCLicenses(long pk, java.util.List scLicenses)
398         throws com.liferay.portal.SystemException, 
399             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException, 
400             com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
401         getPersistence().setSCLicenses(pk, scLicenses);
402     }
403 
404     public static SCProductEntryPersistence getPersistence() {
405         return _getUtil()._persistence;
406     }
407 
408     public void setPersistence(SCProductEntryPersistence persistence) {
409         _persistence = persistence;
410     }
411 
412     private static SCProductEntryUtil _getUtil() {
413         if (_util == null) {
414             _util = (SCProductEntryUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
415         }
416 
417         return _util;
418     }
419 
420     private static final String _UTIL = SCProductEntryUtil.class.getName();
421     private static SCProductEntryUtil _util;
422     private SCProductEntryPersistence _persistence;
423 }