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.SCProductEntry;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="SCProductEntryUtil.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       SCProductEntryPersistence
35   * @see       SCProductEntryPersistenceImpl
36   * @generated
37   */
38  public class SCProductEntryUtil {
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(SCProductEntry)
48       */
49      public static void clearCache(SCProductEntry scProductEntry) {
50          getPersistence().clearCache(scProductEntry);
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<SCProductEntry> 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<SCProductEntry> 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 SCProductEntry remove(SCProductEntry scProductEntry)
82          throws SystemException {
83          return getPersistence().remove(scProductEntry);
84      }
85  
86      /**
87       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
88       */
89      public static SCProductEntry update(SCProductEntry scProductEntry,
90          boolean merge) throws SystemException {
91          return getPersistence().update(scProductEntry, merge);
92      }
93  
94      public static void cacheResult(
95          com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry) {
96          getPersistence().cacheResult(scProductEntry);
97      }
98  
99      public static void cacheResult(
100         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries) {
101         getPersistence().cacheResult(scProductEntries);
102     }
103 
104     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry create(
105         long productEntryId) {
106         return getPersistence().create(productEntryId);
107     }
108 
109     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry remove(
110         long productEntryId)
111         throws com.liferay.portal.kernel.exception.SystemException,
112             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
113         return getPersistence().remove(productEntryId);
114     }
115 
116     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateImpl(
117         com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
118         boolean merge)
119         throws com.liferay.portal.kernel.exception.SystemException {
120         return getPersistence().updateImpl(scProductEntry, merge);
121     }
122 
123     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByPrimaryKey(
124         long productEntryId)
125         throws com.liferay.portal.kernel.exception.SystemException,
126             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
127         return getPersistence().findByPrimaryKey(productEntryId);
128     }
129 
130     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByPrimaryKey(
131         long productEntryId)
132         throws com.liferay.portal.kernel.exception.SystemException {
133         return getPersistence().fetchByPrimaryKey(productEntryId);
134     }
135 
136     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId(
137         long groupId)
138         throws com.liferay.portal.kernel.exception.SystemException {
139         return getPersistence().findByGroupId(groupId);
140     }
141 
142     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId(
143         long groupId, int start, int end)
144         throws com.liferay.portal.kernel.exception.SystemException {
145         return getPersistence().findByGroupId(groupId, start, end);
146     }
147 
148     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId(
149         long groupId, int start, int end,
150         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151         throws com.liferay.portal.kernel.exception.SystemException {
152         return getPersistence()
153                    .findByGroupId(groupId, start, end, orderByComparator);
154     }
155 
156     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_First(
157         long groupId,
158         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159         throws com.liferay.portal.kernel.exception.SystemException,
160             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
161         return getPersistence().findByGroupId_First(groupId, orderByComparator);
162     }
163 
164     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_Last(
165         long groupId,
166         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167         throws com.liferay.portal.kernel.exception.SystemException,
168             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
169         return getPersistence().findByGroupId_Last(groupId, orderByComparator);
170     }
171 
172     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByGroupId_PrevAndNext(
173         long productEntryId, long groupId,
174         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
175         throws com.liferay.portal.kernel.exception.SystemException,
176             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
177         return getPersistence()
178                    .findByGroupId_PrevAndNext(productEntryId, groupId,
179             orderByComparator);
180     }
181 
182     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByGroupId(
183         long groupId)
184         throws com.liferay.portal.kernel.exception.SystemException {
185         return getPersistence().filterFindByGroupId(groupId);
186     }
187 
188     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByGroupId(
189         long groupId, int start, int end)
190         throws com.liferay.portal.kernel.exception.SystemException {
191         return getPersistence().filterFindByGroupId(groupId, start, end);
192     }
193 
194     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByGroupId(
195         long groupId, int start, int end,
196         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
197         throws com.liferay.portal.kernel.exception.SystemException {
198         return getPersistence()
199                    .filterFindByGroupId(groupId, start, end, orderByComparator);
200     }
201 
202     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
203         long companyId)
204         throws com.liferay.portal.kernel.exception.SystemException {
205         return getPersistence().findByCompanyId(companyId);
206     }
207 
208     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
209         long companyId, int start, int end)
210         throws com.liferay.portal.kernel.exception.SystemException {
211         return getPersistence().findByCompanyId(companyId, start, end);
212     }
213 
214     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
215         long companyId, int start, int end,
216         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
217         throws com.liferay.portal.kernel.exception.SystemException {
218         return getPersistence()
219                    .findByCompanyId(companyId, start, end, orderByComparator);
220     }
221 
222     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByCompanyId_First(
223         long companyId,
224         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
225         throws com.liferay.portal.kernel.exception.SystemException,
226             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
227         return getPersistence()
228                    .findByCompanyId_First(companyId, orderByComparator);
229     }
230 
231     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByCompanyId_Last(
232         long companyId,
233         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
234         throws com.liferay.portal.kernel.exception.SystemException,
235             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
236         return getPersistence()
237                    .findByCompanyId_Last(companyId, orderByComparator);
238     }
239 
240     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByCompanyId_PrevAndNext(
241         long productEntryId, long companyId,
242         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243         throws com.liferay.portal.kernel.exception.SystemException,
244             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
245         return getPersistence()
246                    .findByCompanyId_PrevAndNext(productEntryId, companyId,
247             orderByComparator);
248     }
249 
250     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
251         long groupId, long userId)
252         throws com.liferay.portal.kernel.exception.SystemException {
253         return getPersistence().findByG_U(groupId, userId);
254     }
255 
256     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
257         long groupId, long userId, int start, int end)
258         throws com.liferay.portal.kernel.exception.SystemException {
259         return getPersistence().findByG_U(groupId, userId, start, end);
260     }
261 
262     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
263         long groupId, long userId, int start, int end,
264         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
265         throws com.liferay.portal.kernel.exception.SystemException {
266         return getPersistence()
267                    .findByG_U(groupId, userId, start, end, orderByComparator);
268     }
269 
270     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_First(
271         long groupId, long userId,
272         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
273         throws com.liferay.portal.kernel.exception.SystemException,
274             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
275         return getPersistence()
276                    .findByG_U_First(groupId, userId, orderByComparator);
277     }
278 
279     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_Last(
280         long groupId, long userId,
281         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
282         throws com.liferay.portal.kernel.exception.SystemException,
283             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
284         return getPersistence()
285                    .findByG_U_Last(groupId, userId, orderByComparator);
286     }
287 
288     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByG_U_PrevAndNext(
289         long productEntryId, long groupId, long userId,
290         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
291         throws com.liferay.portal.kernel.exception.SystemException,
292             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
293         return getPersistence()
294                    .findByG_U_PrevAndNext(productEntryId, groupId, userId,
295             orderByComparator);
296     }
297 
298     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByG_U(
299         long groupId, long userId)
300         throws com.liferay.portal.kernel.exception.SystemException {
301         return getPersistence().filterFindByG_U(groupId, userId);
302     }
303 
304     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByG_U(
305         long groupId, long userId, int start, int end)
306         throws com.liferay.portal.kernel.exception.SystemException {
307         return getPersistence().filterFindByG_U(groupId, userId, start, end);
308     }
309 
310     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByG_U(
311         long groupId, long userId, int start, int end,
312         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
313         throws com.liferay.portal.kernel.exception.SystemException {
314         return getPersistence()
315                    .filterFindByG_U(groupId, userId, start, end,
316             orderByComparator);
317     }
318 
319     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByRG_RA(
320         java.lang.String repoGroupId, java.lang.String repoArtifactId)
321         throws com.liferay.portal.kernel.exception.SystemException,
322             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
323         return getPersistence().findByRG_RA(repoGroupId, repoArtifactId);
324     }
325 
326     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByRG_RA(
327         java.lang.String repoGroupId, java.lang.String repoArtifactId)
328         throws com.liferay.portal.kernel.exception.SystemException {
329         return getPersistence().fetchByRG_RA(repoGroupId, repoArtifactId);
330     }
331 
332     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByRG_RA(
333         java.lang.String repoGroupId, java.lang.String repoArtifactId,
334         boolean retrieveFromCache)
335         throws com.liferay.portal.kernel.exception.SystemException {
336         return getPersistence()
337                    .fetchByRG_RA(repoGroupId, repoArtifactId, retrieveFromCache);
338     }
339 
340     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll()
341         throws com.liferay.portal.kernel.exception.SystemException {
342         return getPersistence().findAll();
343     }
344 
345     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll(
346         int start, int end)
347         throws com.liferay.portal.kernel.exception.SystemException {
348         return getPersistence().findAll(start, end);
349     }
350 
351     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll(
352         int start, int end,
353         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
354         throws com.liferay.portal.kernel.exception.SystemException {
355         return getPersistence().findAll(start, end, orderByComparator);
356     }
357 
358     public static void removeByGroupId(long groupId)
359         throws com.liferay.portal.kernel.exception.SystemException {
360         getPersistence().removeByGroupId(groupId);
361     }
362 
363     public static void removeByCompanyId(long companyId)
364         throws com.liferay.portal.kernel.exception.SystemException {
365         getPersistence().removeByCompanyId(companyId);
366     }
367 
368     public static void removeByG_U(long groupId, long userId)
369         throws com.liferay.portal.kernel.exception.SystemException {
370         getPersistence().removeByG_U(groupId, userId);
371     }
372 
373     public static void removeByRG_RA(java.lang.String repoGroupId,
374         java.lang.String repoArtifactId)
375         throws com.liferay.portal.kernel.exception.SystemException,
376             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
377         getPersistence().removeByRG_RA(repoGroupId, repoArtifactId);
378     }
379 
380     public static void removeAll()
381         throws com.liferay.portal.kernel.exception.SystemException {
382         getPersistence().removeAll();
383     }
384 
385     public static int countByGroupId(long groupId)
386         throws com.liferay.portal.kernel.exception.SystemException {
387         return getPersistence().countByGroupId(groupId);
388     }
389 
390     public static int filterCountByGroupId(long groupId)
391         throws com.liferay.portal.kernel.exception.SystemException {
392         return getPersistence().filterCountByGroupId(groupId);
393     }
394 
395     public static int countByCompanyId(long companyId)
396         throws com.liferay.portal.kernel.exception.SystemException {
397         return getPersistence().countByCompanyId(companyId);
398     }
399 
400     public static int countByG_U(long groupId, long userId)
401         throws com.liferay.portal.kernel.exception.SystemException {
402         return getPersistence().countByG_U(groupId, userId);
403     }
404 
405     public static int filterCountByG_U(long groupId, long userId)
406         throws com.liferay.portal.kernel.exception.SystemException {
407         return getPersistence().filterCountByG_U(groupId, userId);
408     }
409 
410     public static int countByRG_RA(java.lang.String repoGroupId,
411         java.lang.String repoArtifactId)
412         throws com.liferay.portal.kernel.exception.SystemException {
413         return getPersistence().countByRG_RA(repoGroupId, repoArtifactId);
414     }
415 
416     public static int countAll()
417         throws com.liferay.portal.kernel.exception.SystemException {
418         return getPersistence().countAll();
419     }
420 
421     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
422         long pk) throws com.liferay.portal.kernel.exception.SystemException {
423         return getPersistence().getSCLicenses(pk);
424     }
425 
426     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
427         long pk, int start, int end)
428         throws com.liferay.portal.kernel.exception.SystemException {
429         return getPersistence().getSCLicenses(pk, start, end);
430     }
431 
432     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
433         long pk, int start, int end,
434         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
435         throws com.liferay.portal.kernel.exception.SystemException {
436         return getPersistence().getSCLicenses(pk, start, end, orderByComparator);
437     }
438 
439     public static int getSCLicensesSize(long pk)
440         throws com.liferay.portal.kernel.exception.SystemException {
441         return getPersistence().getSCLicensesSize(pk);
442     }
443 
444     public static boolean containsSCLicense(long pk, long scLicensePK)
445         throws com.liferay.portal.kernel.exception.SystemException {
446         return getPersistence().containsSCLicense(pk, scLicensePK);
447     }
448 
449     public static boolean containsSCLicenses(long pk)
450         throws com.liferay.portal.kernel.exception.SystemException {
451         return getPersistence().containsSCLicenses(pk);
452     }
453 
454     public static void addSCLicense(long pk, long scLicensePK)
455         throws com.liferay.portal.kernel.exception.SystemException {
456         getPersistence().addSCLicense(pk, scLicensePK);
457     }
458 
459     public static void addSCLicense(long pk,
460         com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
461         throws com.liferay.portal.kernel.exception.SystemException {
462         getPersistence().addSCLicense(pk, scLicense);
463     }
464 
465     public static void addSCLicenses(long pk, long[] scLicensePKs)
466         throws com.liferay.portal.kernel.exception.SystemException {
467         getPersistence().addSCLicenses(pk, scLicensePKs);
468     }
469 
470     public static void addSCLicenses(long pk,
471         java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
472         throws com.liferay.portal.kernel.exception.SystemException {
473         getPersistence().addSCLicenses(pk, scLicenses);
474     }
475 
476     public static void clearSCLicenses(long pk)
477         throws com.liferay.portal.kernel.exception.SystemException {
478         getPersistence().clearSCLicenses(pk);
479     }
480 
481     public static void removeSCLicense(long pk, long scLicensePK)
482         throws com.liferay.portal.kernel.exception.SystemException {
483         getPersistence().removeSCLicense(pk, scLicensePK);
484     }
485 
486     public static void removeSCLicense(long pk,
487         com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
488         throws com.liferay.portal.kernel.exception.SystemException {
489         getPersistence().removeSCLicense(pk, scLicense);
490     }
491 
492     public static void removeSCLicenses(long pk, long[] scLicensePKs)
493         throws com.liferay.portal.kernel.exception.SystemException {
494         getPersistence().removeSCLicenses(pk, scLicensePKs);
495     }
496 
497     public static void removeSCLicenses(long pk,
498         java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
499         throws com.liferay.portal.kernel.exception.SystemException {
500         getPersistence().removeSCLicenses(pk, scLicenses);
501     }
502 
503     public static void setSCLicenses(long pk, long[] scLicensePKs)
504         throws com.liferay.portal.kernel.exception.SystemException {
505         getPersistence().setSCLicenses(pk, scLicensePKs);
506     }
507 
508     public static void setSCLicenses(long pk,
509         java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
510         throws com.liferay.portal.kernel.exception.SystemException {
511         getPersistence().setSCLicenses(pk, scLicenses);
512     }
513 
514     public static SCProductEntryPersistence getPersistence() {
515         if (_persistence == null) {
516             _persistence = (SCProductEntryPersistence)PortalBeanLocatorUtil.locate(SCProductEntryPersistence.class.getName());
517         }
518 
519         return _persistence;
520     }
521 
522     public void setPersistence(SCProductEntryPersistence persistence) {
523         _persistence = persistence;
524     }
525 
526     private static SCProductEntryPersistence _persistence;
527 }