1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.softwarecatalog.service.persistence;
16  
17  import com.liferay.portal.SystemException;
18  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
20  import com.liferay.portal.kernel.util.ReferenceRegistry;
21  
22  import com.liferay.portlet.softwarecatalog.model.SCProductEntry;
23  
24  import java.util.List;
25  
26  /**
27   * <a href="SCProductEntryUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * @author    Brian Wing Shun Chan
35   * @see       SCProductEntryPersistence
36   * @see       SCProductEntryPersistenceImpl
37   * @generated
38   */
39  public class SCProductEntryUtil {
40      /**
41       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
42       */
43      public static void clearCache() {
44          getPersistence().clearCache();
45      }
46  
47      /**
48       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(SCProductEntry)
49       */
50      public static void clearCache(SCProductEntry scProductEntry) {
51          getPersistence().clearCache(scProductEntry);
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
56       */
57      public int countWithDynamicQuery(DynamicQuery dynamicQuery)
58          throws SystemException {
59          return getPersistence().countWithDynamicQuery(dynamicQuery);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
64       */
65      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
66          throws SystemException {
67          return getPersistence().findWithDynamicQuery(dynamicQuery);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
72       */
73      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
74          int start, int end) 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.SystemException,
112             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
113         return getPersistence().remove(productEntryId);
114     }
115 
116     /**
117      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
118      */
119     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry update(
120         com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
121         throws com.liferay.portal.SystemException {
122         return getPersistence().update(scProductEntry);
123     }
124 
125     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateImpl(
126         com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
127         boolean merge) throws com.liferay.portal.SystemException {
128         return getPersistence().updateImpl(scProductEntry, merge);
129     }
130 
131     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByPrimaryKey(
132         long productEntryId)
133         throws com.liferay.portal.SystemException,
134             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
135         return getPersistence().findByPrimaryKey(productEntryId);
136     }
137 
138     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByPrimaryKey(
139         long productEntryId) throws com.liferay.portal.SystemException {
140         return getPersistence().fetchByPrimaryKey(productEntryId);
141     }
142 
143     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId(
144         long groupId) throws com.liferay.portal.SystemException {
145         return getPersistence().findByGroupId(groupId);
146     }
147 
148     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId(
149         long groupId, int start, int end)
150         throws com.liferay.portal.SystemException {
151         return getPersistence().findByGroupId(groupId, start, end);
152     }
153 
154     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId(
155         long groupId, int start, int end,
156         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157         throws com.liferay.portal.SystemException {
158         return getPersistence()
159                    .findByGroupId(groupId, start, end, orderByComparator);
160     }
161 
162     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_First(
163         long groupId,
164         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165         throws com.liferay.portal.SystemException,
166             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
167         return getPersistence().findByGroupId_First(groupId, orderByComparator);
168     }
169 
170     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_Last(
171         long groupId,
172         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173         throws com.liferay.portal.SystemException,
174             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
175         return getPersistence().findByGroupId_Last(groupId, orderByComparator);
176     }
177 
178     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByGroupId_PrevAndNext(
179         long productEntryId, long groupId,
180         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181         throws com.liferay.portal.SystemException,
182             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
183         return getPersistence()
184                    .findByGroupId_PrevAndNext(productEntryId, groupId,
185             orderByComparator);
186     }
187 
188     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
189         long companyId) throws com.liferay.portal.SystemException {
190         return getPersistence().findByCompanyId(companyId);
191     }
192 
193     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
194         long companyId, int start, int end)
195         throws com.liferay.portal.SystemException {
196         return getPersistence().findByCompanyId(companyId, start, end);
197     }
198 
199     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
200         long companyId, int start, int end,
201         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
202         throws com.liferay.portal.SystemException {
203         return getPersistence()
204                    .findByCompanyId(companyId, start, end, orderByComparator);
205     }
206 
207     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByCompanyId_First(
208         long companyId,
209         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210         throws com.liferay.portal.SystemException,
211             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
212         return getPersistence()
213                    .findByCompanyId_First(companyId, orderByComparator);
214     }
215 
216     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByCompanyId_Last(
217         long companyId,
218         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
219         throws com.liferay.portal.SystemException,
220             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
221         return getPersistence()
222                    .findByCompanyId_Last(companyId, orderByComparator);
223     }
224 
225     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByCompanyId_PrevAndNext(
226         long productEntryId, long companyId,
227         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
228         throws com.liferay.portal.SystemException,
229             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
230         return getPersistence()
231                    .findByCompanyId_PrevAndNext(productEntryId, companyId,
232             orderByComparator);
233     }
234 
235     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
236         long groupId, long userId) throws com.liferay.portal.SystemException {
237         return getPersistence().findByG_U(groupId, userId);
238     }
239 
240     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
241         long groupId, long userId, int start, int end)
242         throws com.liferay.portal.SystemException {
243         return getPersistence().findByG_U(groupId, userId, start, end);
244     }
245 
246     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
247         long groupId, long userId, int start, int end,
248         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
249         throws com.liferay.portal.SystemException {
250         return getPersistence()
251                    .findByG_U(groupId, userId, start, end, orderByComparator);
252     }
253 
254     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_First(
255         long groupId, long userId,
256         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
257         throws com.liferay.portal.SystemException,
258             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
259         return getPersistence()
260                    .findByG_U_First(groupId, userId, orderByComparator);
261     }
262 
263     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_Last(
264         long groupId, long userId,
265         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
266         throws com.liferay.portal.SystemException,
267             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
268         return getPersistence()
269                    .findByG_U_Last(groupId, userId, orderByComparator);
270     }
271 
272     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByG_U_PrevAndNext(
273         long productEntryId, long groupId, long userId,
274         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
275         throws com.liferay.portal.SystemException,
276             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
277         return getPersistence()
278                    .findByG_U_PrevAndNext(productEntryId, groupId, userId,
279             orderByComparator);
280     }
281 
282     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByRG_RA(
283         java.lang.String repoGroupId, java.lang.String repoArtifactId)
284         throws com.liferay.portal.SystemException,
285             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
286         return getPersistence().findByRG_RA(repoGroupId, repoArtifactId);
287     }
288 
289     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByRG_RA(
290         java.lang.String repoGroupId, java.lang.String repoArtifactId)
291         throws com.liferay.portal.SystemException {
292         return getPersistence().fetchByRG_RA(repoGroupId, repoArtifactId);
293     }
294 
295     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByRG_RA(
296         java.lang.String repoGroupId, java.lang.String repoArtifactId,
297         boolean retrieveFromCache) throws com.liferay.portal.SystemException {
298         return getPersistence()
299                    .fetchByRG_RA(repoGroupId, repoArtifactId, retrieveFromCache);
300     }
301 
302     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll()
303         throws com.liferay.portal.SystemException {
304         return getPersistence().findAll();
305     }
306 
307     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll(
308         int start, int end) throws com.liferay.portal.SystemException {
309         return getPersistence().findAll(start, end);
310     }
311 
312     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll(
313         int start, int end,
314         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
315         throws com.liferay.portal.SystemException {
316         return getPersistence().findAll(start, end, orderByComparator);
317     }
318 
319     public static void removeByGroupId(long groupId)
320         throws com.liferay.portal.SystemException {
321         getPersistence().removeByGroupId(groupId);
322     }
323 
324     public static void removeByCompanyId(long companyId)
325         throws com.liferay.portal.SystemException {
326         getPersistence().removeByCompanyId(companyId);
327     }
328 
329     public static void removeByG_U(long groupId, long userId)
330         throws com.liferay.portal.SystemException {
331         getPersistence().removeByG_U(groupId, userId);
332     }
333 
334     public static void removeByRG_RA(java.lang.String repoGroupId,
335         java.lang.String repoArtifactId)
336         throws com.liferay.portal.SystemException,
337             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
338         getPersistence().removeByRG_RA(repoGroupId, repoArtifactId);
339     }
340 
341     public static void removeAll() throws com.liferay.portal.SystemException {
342         getPersistence().removeAll();
343     }
344 
345     public static int countByGroupId(long groupId)
346         throws com.liferay.portal.SystemException {
347         return getPersistence().countByGroupId(groupId);
348     }
349 
350     public static int countByCompanyId(long companyId)
351         throws com.liferay.portal.SystemException {
352         return getPersistence().countByCompanyId(companyId);
353     }
354 
355     public static int countByG_U(long groupId, long userId)
356         throws com.liferay.portal.SystemException {
357         return getPersistence().countByG_U(groupId, userId);
358     }
359 
360     public static int countByRG_RA(java.lang.String repoGroupId,
361         java.lang.String repoArtifactId)
362         throws com.liferay.portal.SystemException {
363         return getPersistence().countByRG_RA(repoGroupId, repoArtifactId);
364     }
365 
366     public static int countAll() throws com.liferay.portal.SystemException {
367         return getPersistence().countAll();
368     }
369 
370     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
371         long pk) throws com.liferay.portal.SystemException {
372         return getPersistence().getSCLicenses(pk);
373     }
374 
375     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
376         long pk, int start, int end) throws com.liferay.portal.SystemException {
377         return getPersistence().getSCLicenses(pk, start, end);
378     }
379 
380     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
381         long pk, int start, int end,
382         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
383         throws com.liferay.portal.SystemException {
384         return getPersistence().getSCLicenses(pk, start, end, orderByComparator);
385     }
386 
387     public static int getSCLicensesSize(long pk)
388         throws com.liferay.portal.SystemException {
389         return getPersistence().getSCLicensesSize(pk);
390     }
391 
392     public static boolean containsSCLicense(long pk, long scLicensePK)
393         throws com.liferay.portal.SystemException {
394         return getPersistence().containsSCLicense(pk, scLicensePK);
395     }
396 
397     public static boolean containsSCLicenses(long pk)
398         throws com.liferay.portal.SystemException {
399         return getPersistence().containsSCLicenses(pk);
400     }
401 
402     public static void addSCLicense(long pk, long scLicensePK)
403         throws com.liferay.portal.SystemException {
404         getPersistence().addSCLicense(pk, scLicensePK);
405     }
406 
407     public static void addSCLicense(long pk,
408         com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
409         throws com.liferay.portal.SystemException {
410         getPersistence().addSCLicense(pk, scLicense);
411     }
412 
413     public static void addSCLicenses(long pk, long[] scLicensePKs)
414         throws com.liferay.portal.SystemException {
415         getPersistence().addSCLicenses(pk, scLicensePKs);
416     }
417 
418     public static void addSCLicenses(long pk,
419         java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
420         throws com.liferay.portal.SystemException {
421         getPersistence().addSCLicenses(pk, scLicenses);
422     }
423 
424     public static void clearSCLicenses(long pk)
425         throws com.liferay.portal.SystemException {
426         getPersistence().clearSCLicenses(pk);
427     }
428 
429     public static void removeSCLicense(long pk, long scLicensePK)
430         throws com.liferay.portal.SystemException {
431         getPersistence().removeSCLicense(pk, scLicensePK);
432     }
433 
434     public static void removeSCLicense(long pk,
435         com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
436         throws com.liferay.portal.SystemException {
437         getPersistence().removeSCLicense(pk, scLicense);
438     }
439 
440     public static void removeSCLicenses(long pk, long[] scLicensePKs)
441         throws com.liferay.portal.SystemException {
442         getPersistence().removeSCLicenses(pk, scLicensePKs);
443     }
444 
445     public static void removeSCLicenses(long pk,
446         java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
447         throws com.liferay.portal.SystemException {
448         getPersistence().removeSCLicenses(pk, scLicenses);
449     }
450 
451     public static void setSCLicenses(long pk, long[] scLicensePKs)
452         throws com.liferay.portal.SystemException {
453         getPersistence().setSCLicenses(pk, scLicensePKs);
454     }
455 
456     public static void setSCLicenses(long pk,
457         java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
458         throws com.liferay.portal.SystemException {
459         getPersistence().setSCLicenses(pk, scLicenses);
460     }
461 
462     public static SCProductEntryPersistence getPersistence() {
463         if (_persistence == null) {
464             _persistence = (SCProductEntryPersistence)PortalBeanLocatorUtil.locate(SCProductEntryPersistence.class.getName());
465 
466             ReferenceRegistry.registerReference(SCProductEntryUtil.class,
467                 "_persistence");
468         }
469 
470         return _persistence;
471     }
472 
473     public void setPersistence(SCProductEntryPersistence persistence) {
474         _persistence = persistence;
475 
476         ReferenceRegistry.registerReference(SCProductEntryUtil.class,
477             "_persistence");
478     }
479 
480     private static SCProductEntryPersistence _persistence;
481 }