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