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  
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#findWithDynamicQuery(DynamicQuery)
48       */
49      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50          throws SystemException {
51          return getPersistence().findWithDynamicQuery(dynamicQuery);
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
56       */
57      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
58          int start, int end) throws SystemException {
59          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
64       */
65      public static SCProductEntry remove(SCProductEntry scProductEntry)
66          throws SystemException {
67          return getPersistence().remove(scProductEntry);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static SCProductEntry update(SCProductEntry scProductEntry,
74          boolean merge) throws SystemException {
75          return getPersistence().update(scProductEntry, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry) {
80          getPersistence().cacheResult(scProductEntry);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries) {
85          getPersistence().cacheResult(scProductEntries);
86      }
87  
88      public static com.liferay.portlet.softwarecatalog.model.SCProductEntry create(
89          long productEntryId) {
90          return getPersistence().create(productEntryId);
91      }
92  
93      public static com.liferay.portlet.softwarecatalog.model.SCProductEntry remove(
94          long productEntryId)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
97          return getPersistence().remove(productEntryId);
98      }
99  
100     /**
101      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
102      */
103     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry update(
104         com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
105         throws com.liferay.portal.SystemException {
106         return getPersistence().update(scProductEntry);
107     }
108 
109     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateImpl(
110         com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
111         boolean merge) throws com.liferay.portal.SystemException {
112         return getPersistence().updateImpl(scProductEntry, merge);
113     }
114 
115     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByPrimaryKey(
116         long productEntryId)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
119         return getPersistence().findByPrimaryKey(productEntryId);
120     }
121 
122     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByPrimaryKey(
123         long productEntryId) throws com.liferay.portal.SystemException {
124         return getPersistence().fetchByPrimaryKey(productEntryId);
125     }
126 
127     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId(
128         long groupId) throws com.liferay.portal.SystemException {
129         return getPersistence().findByGroupId(groupId);
130     }
131 
132     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId(
133         long groupId, int start, int end)
134         throws com.liferay.portal.SystemException {
135         return getPersistence().findByGroupId(groupId, start, end);
136     }
137 
138     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId(
139         long groupId, int start, int end,
140         com.liferay.portal.kernel.util.OrderByComparator obc)
141         throws com.liferay.portal.SystemException {
142         return getPersistence().findByGroupId(groupId, start, end, obc);
143     }
144 
145     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_First(
146         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.SystemException,
148             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
149         return getPersistence().findByGroupId_First(groupId, obc);
150     }
151 
152     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_Last(
153         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
154         throws com.liferay.portal.SystemException,
155             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
156         return getPersistence().findByGroupId_Last(groupId, obc);
157     }
158 
159     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByGroupId_PrevAndNext(
160         long productEntryId, long groupId,
161         com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.SystemException,
163             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
164         return getPersistence()
165                    .findByGroupId_PrevAndNext(productEntryId, groupId, obc);
166     }
167 
168     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
169         long companyId) throws com.liferay.portal.SystemException {
170         return getPersistence().findByCompanyId(companyId);
171     }
172 
173     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
174         long companyId, int start, int end)
175         throws com.liferay.portal.SystemException {
176         return getPersistence().findByCompanyId(companyId, start, end);
177     }
178 
179     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
180         long companyId, int start, int end,
181         com.liferay.portal.kernel.util.OrderByComparator obc)
182         throws com.liferay.portal.SystemException {
183         return getPersistence().findByCompanyId(companyId, start, end, obc);
184     }
185 
186     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByCompanyId_First(
187         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
188         throws com.liferay.portal.SystemException,
189             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
190         return getPersistence().findByCompanyId_First(companyId, obc);
191     }
192 
193     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByCompanyId_Last(
194         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
195         throws com.liferay.portal.SystemException,
196             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
197         return getPersistence().findByCompanyId_Last(companyId, obc);
198     }
199 
200     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByCompanyId_PrevAndNext(
201         long productEntryId, long companyId,
202         com.liferay.portal.kernel.util.OrderByComparator obc)
203         throws com.liferay.portal.SystemException,
204             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
205         return getPersistence()
206                    .findByCompanyId_PrevAndNext(productEntryId, companyId, obc);
207     }
208 
209     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
210         long groupId, long userId) throws com.liferay.portal.SystemException {
211         return getPersistence().findByG_U(groupId, userId);
212     }
213 
214     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
215         long groupId, long userId, int start, int end)
216         throws com.liferay.portal.SystemException {
217         return getPersistence().findByG_U(groupId, userId, start, end);
218     }
219 
220     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
221         long groupId, long userId, int start, int end,
222         com.liferay.portal.kernel.util.OrderByComparator obc)
223         throws com.liferay.portal.SystemException {
224         return getPersistence().findByG_U(groupId, userId, start, end, obc);
225     }
226 
227     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_First(
228         long groupId, long userId,
229         com.liferay.portal.kernel.util.OrderByComparator obc)
230         throws com.liferay.portal.SystemException,
231             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
232         return getPersistence().findByG_U_First(groupId, userId, obc);
233     }
234 
235     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_Last(
236         long groupId, long userId,
237         com.liferay.portal.kernel.util.OrderByComparator obc)
238         throws com.liferay.portal.SystemException,
239             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
240         return getPersistence().findByG_U_Last(groupId, userId, obc);
241     }
242 
243     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByG_U_PrevAndNext(
244         long productEntryId, long groupId, long userId,
245         com.liferay.portal.kernel.util.OrderByComparator obc)
246         throws com.liferay.portal.SystemException,
247             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
248         return getPersistence()
249                    .findByG_U_PrevAndNext(productEntryId, groupId, userId, obc);
250     }
251 
252     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByRG_RA(
253         java.lang.String repoGroupId, java.lang.String repoArtifactId)
254         throws com.liferay.portal.SystemException,
255             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
256         return getPersistence().findByRG_RA(repoGroupId, repoArtifactId);
257     }
258 
259     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByRG_RA(
260         java.lang.String repoGroupId, java.lang.String repoArtifactId)
261         throws com.liferay.portal.SystemException {
262         return getPersistence().fetchByRG_RA(repoGroupId, repoArtifactId);
263     }
264 
265     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByRG_RA(
266         java.lang.String repoGroupId, java.lang.String repoArtifactId,
267         boolean retrieveFromCache) throws com.liferay.portal.SystemException {
268         return getPersistence()
269                    .fetchByRG_RA(repoGroupId, repoArtifactId, retrieveFromCache);
270     }
271 
272     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll()
273         throws com.liferay.portal.SystemException {
274         return getPersistence().findAll();
275     }
276 
277     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll(
278         int start, int end) throws com.liferay.portal.SystemException {
279         return getPersistence().findAll(start, end);
280     }
281 
282     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll(
283         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
284         throws com.liferay.portal.SystemException {
285         return getPersistence().findAll(start, end, obc);
286     }
287 
288     public static void removeByGroupId(long groupId)
289         throws com.liferay.portal.SystemException {
290         getPersistence().removeByGroupId(groupId);
291     }
292 
293     public static void removeByCompanyId(long companyId)
294         throws com.liferay.portal.SystemException {
295         getPersistence().removeByCompanyId(companyId);
296     }
297 
298     public static void removeByG_U(long groupId, long userId)
299         throws com.liferay.portal.SystemException {
300         getPersistence().removeByG_U(groupId, userId);
301     }
302 
303     public static void removeByRG_RA(java.lang.String repoGroupId,
304         java.lang.String repoArtifactId)
305         throws com.liferay.portal.SystemException,
306             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
307         getPersistence().removeByRG_RA(repoGroupId, repoArtifactId);
308     }
309 
310     public static void removeAll() throws com.liferay.portal.SystemException {
311         getPersistence().removeAll();
312     }
313 
314     public static int countByGroupId(long groupId)
315         throws com.liferay.portal.SystemException {
316         return getPersistence().countByGroupId(groupId);
317     }
318 
319     public static int countByCompanyId(long companyId)
320         throws com.liferay.portal.SystemException {
321         return getPersistence().countByCompanyId(companyId);
322     }
323 
324     public static int countByG_U(long groupId, long userId)
325         throws com.liferay.portal.SystemException {
326         return getPersistence().countByG_U(groupId, userId);
327     }
328 
329     public static int countByRG_RA(java.lang.String repoGroupId,
330         java.lang.String repoArtifactId)
331         throws com.liferay.portal.SystemException {
332         return getPersistence().countByRG_RA(repoGroupId, repoArtifactId);
333     }
334 
335     public static int countAll() throws com.liferay.portal.SystemException {
336         return getPersistence().countAll();
337     }
338 
339     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
340         long pk) throws com.liferay.portal.SystemException {
341         return getPersistence().getSCLicenses(pk);
342     }
343 
344     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
345         long pk, int start, int end) throws com.liferay.portal.SystemException {
346         return getPersistence().getSCLicenses(pk, start, end);
347     }
348 
349     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
350         long pk, int start, int end,
351         com.liferay.portal.kernel.util.OrderByComparator obc)
352         throws com.liferay.portal.SystemException {
353         return getPersistence().getSCLicenses(pk, start, end, obc);
354     }
355 
356     public static int getSCLicensesSize(long pk)
357         throws com.liferay.portal.SystemException {
358         return getPersistence().getSCLicensesSize(pk);
359     }
360 
361     public static boolean containsSCLicense(long pk, long scLicensePK)
362         throws com.liferay.portal.SystemException {
363         return getPersistence().containsSCLicense(pk, scLicensePK);
364     }
365 
366     public static boolean containsSCLicenses(long pk)
367         throws com.liferay.portal.SystemException {
368         return getPersistence().containsSCLicenses(pk);
369     }
370 
371     public static void addSCLicense(long pk, long scLicensePK)
372         throws com.liferay.portal.SystemException {
373         getPersistence().addSCLicense(pk, scLicensePK);
374     }
375 
376     public static void addSCLicense(long pk,
377         com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
378         throws com.liferay.portal.SystemException {
379         getPersistence().addSCLicense(pk, scLicense);
380     }
381 
382     public static void addSCLicenses(long pk, long[] scLicensePKs)
383         throws com.liferay.portal.SystemException {
384         getPersistence().addSCLicenses(pk, scLicensePKs);
385     }
386 
387     public static void addSCLicenses(long pk,
388         java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
389         throws com.liferay.portal.SystemException {
390         getPersistence().addSCLicenses(pk, scLicenses);
391     }
392 
393     public static void clearSCLicenses(long pk)
394         throws com.liferay.portal.SystemException {
395         getPersistence().clearSCLicenses(pk);
396     }
397 
398     public static void removeSCLicense(long pk, long scLicensePK)
399         throws com.liferay.portal.SystemException {
400         getPersistence().removeSCLicense(pk, scLicensePK);
401     }
402 
403     public static void removeSCLicense(long pk,
404         com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
405         throws com.liferay.portal.SystemException {
406         getPersistence().removeSCLicense(pk, scLicense);
407     }
408 
409     public static void removeSCLicenses(long pk, long[] scLicensePKs)
410         throws com.liferay.portal.SystemException {
411         getPersistence().removeSCLicenses(pk, scLicensePKs);
412     }
413 
414     public static void removeSCLicenses(long pk,
415         java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
416         throws com.liferay.portal.SystemException {
417         getPersistence().removeSCLicenses(pk, scLicenses);
418     }
419 
420     public static void setSCLicenses(long pk, long[] scLicensePKs)
421         throws com.liferay.portal.SystemException {
422         getPersistence().setSCLicenses(pk, scLicensePKs);
423     }
424 
425     public static void setSCLicenses(long pk,
426         java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
427         throws com.liferay.portal.SystemException {
428         getPersistence().setSCLicenses(pk, scLicenses);
429     }
430 
431     public static SCProductEntryPersistence getPersistence() {
432         if (_persistence == null) {
433             _persistence = (SCProductEntryPersistence)PortalBeanLocatorUtil.locate(SCProductEntryPersistence.class.getName());
434         }
435 
436         return _persistence;
437     }
438 
439     public void setPersistence(SCProductEntryPersistence persistence) {
440         _persistence = persistence;
441     }
442 
443     private static SCProductEntryPersistence _persistence;
444 }