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