001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.softwarecatalog.service.persistence;
022:
023: /**
024: * <a href="SCProductEntryUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class SCProductEntryUtil {
030: public static com.liferay.portlet.softwarecatalog.model.SCProductEntry create(
031: long productEntryId) {
032: return getPersistence().create(productEntryId);
033: }
034:
035: public static com.liferay.portlet.softwarecatalog.model.SCProductEntry remove(
036: long productEntryId)
037: throws com.liferay.portal.SystemException,
038: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
039: return getPersistence().remove(productEntryId);
040: }
041:
042: public static com.liferay.portlet.softwarecatalog.model.SCProductEntry remove(
043: com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
044: throws com.liferay.portal.SystemException {
045: return getPersistence().remove(scProductEntry);
046: }
047:
048: public static com.liferay.portlet.softwarecatalog.model.SCProductEntry update(
049: com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
050: throws com.liferay.portal.SystemException {
051: return getPersistence().update(scProductEntry);
052: }
053:
054: public static com.liferay.portlet.softwarecatalog.model.SCProductEntry update(
055: com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
056: boolean merge) throws com.liferay.portal.SystemException {
057: return getPersistence().update(scProductEntry, merge);
058: }
059:
060: public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateImpl(
061: com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
062: boolean merge) throws com.liferay.portal.SystemException {
063: return getPersistence().updateImpl(scProductEntry, merge);
064: }
065:
066: public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByPrimaryKey(
067: long productEntryId)
068: throws com.liferay.portal.SystemException,
069: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
070: return getPersistence().findByPrimaryKey(productEntryId);
071: }
072:
073: public static com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByPrimaryKey(
074: long productEntryId)
075: throws com.liferay.portal.SystemException {
076: return getPersistence().fetchByPrimaryKey(productEntryId);
077: }
078:
079: public static java.util.List findByGroupId(long groupId)
080: throws com.liferay.portal.SystemException {
081: return getPersistence().findByGroupId(groupId);
082: }
083:
084: public static java.util.List findByGroupId(long groupId, int begin,
085: int end) throws com.liferay.portal.SystemException {
086: return getPersistence().findByGroupId(groupId, begin, end);
087: }
088:
089: public static java.util.List findByGroupId(long groupId, int begin,
090: int end,
091: com.liferay.portal.kernel.util.OrderByComparator obc)
092: throws com.liferay.portal.SystemException {
093: return getPersistence().findByGroupId(groupId, begin, end, obc);
094: }
095:
096: public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_First(
097: long groupId,
098: com.liferay.portal.kernel.util.OrderByComparator obc)
099: throws com.liferay.portal.SystemException,
100: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
101: return getPersistence().findByGroupId_First(groupId, obc);
102: }
103:
104: public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_Last(
105: long groupId,
106: com.liferay.portal.kernel.util.OrderByComparator obc)
107: throws com.liferay.portal.SystemException,
108: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
109: return getPersistence().findByGroupId_Last(groupId, obc);
110: }
111:
112: public static com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByGroupId_PrevAndNext(
113: long productEntryId, long groupId,
114: com.liferay.portal.kernel.util.OrderByComparator obc)
115: throws com.liferay.portal.SystemException,
116: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
117: return getPersistence().findByGroupId_PrevAndNext(
118: productEntryId, groupId, obc);
119: }
120:
121: public static java.util.List findByCompanyId(long companyId)
122: throws com.liferay.portal.SystemException {
123: return getPersistence().findByCompanyId(companyId);
124: }
125:
126: public static java.util.List findByCompanyId(long companyId,
127: int begin, int end)
128: throws com.liferay.portal.SystemException {
129: return getPersistence().findByCompanyId(companyId, begin, end);
130: }
131:
132: public static java.util.List findByCompanyId(long companyId,
133: int begin, int end,
134: com.liferay.portal.kernel.util.OrderByComparator obc)
135: throws com.liferay.portal.SystemException {
136: return getPersistence().findByCompanyId(companyId, begin, end,
137: obc);
138: }
139:
140: public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByCompanyId_First(
141: long companyId,
142: com.liferay.portal.kernel.util.OrderByComparator obc)
143: throws com.liferay.portal.SystemException,
144: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
145: return getPersistence().findByCompanyId_First(companyId, obc);
146: }
147:
148: public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByCompanyId_Last(
149: long companyId,
150: com.liferay.portal.kernel.util.OrderByComparator obc)
151: throws com.liferay.portal.SystemException,
152: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
153: return getPersistence().findByCompanyId_Last(companyId, obc);
154: }
155:
156: public static com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByCompanyId_PrevAndNext(
157: long productEntryId, long companyId,
158: com.liferay.portal.kernel.util.OrderByComparator obc)
159: throws com.liferay.portal.SystemException,
160: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
161: return getPersistence().findByCompanyId_PrevAndNext(
162: productEntryId, companyId, obc);
163: }
164:
165: public static java.util.List findByG_U(long groupId, long userId)
166: throws com.liferay.portal.SystemException {
167: return getPersistence().findByG_U(groupId, userId);
168: }
169:
170: public static java.util.List findByG_U(long groupId, long userId,
171: int begin, int end)
172: throws com.liferay.portal.SystemException {
173: return getPersistence().findByG_U(groupId, userId, begin, end);
174: }
175:
176: public static java.util.List findByG_U(long groupId, long userId,
177: int begin, int end,
178: com.liferay.portal.kernel.util.OrderByComparator obc)
179: throws com.liferay.portal.SystemException {
180: return getPersistence().findByG_U(groupId, userId, begin, end,
181: obc);
182: }
183:
184: public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_First(
185: long groupId, long userId,
186: com.liferay.portal.kernel.util.OrderByComparator obc)
187: throws com.liferay.portal.SystemException,
188: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
189: return getPersistence().findByG_U_First(groupId, userId, obc);
190: }
191:
192: public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_Last(
193: long groupId, long userId,
194: com.liferay.portal.kernel.util.OrderByComparator obc)
195: throws com.liferay.portal.SystemException,
196: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
197: return getPersistence().findByG_U_Last(groupId, userId, obc);
198: }
199:
200: public static com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByG_U_PrevAndNext(
201: long productEntryId, long groupId, long userId,
202: com.liferay.portal.kernel.util.OrderByComparator obc)
203: throws com.liferay.portal.SystemException,
204: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
205: return getPersistence().findByG_U_PrevAndNext(productEntryId,
206: groupId, userId, obc);
207: }
208:
209: public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByRG_RA(
210: java.lang.String repoGroupId,
211: java.lang.String repoArtifactId)
212: throws com.liferay.portal.SystemException,
213: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
214: return getPersistence()
215: .findByRG_RA(repoGroupId, repoArtifactId);
216: }
217:
218: public static com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByRG_RA(
219: java.lang.String repoGroupId,
220: java.lang.String repoArtifactId)
221: throws com.liferay.portal.SystemException {
222: return getPersistence().fetchByRG_RA(repoGroupId,
223: repoArtifactId);
224: }
225:
226: public static java.util.List findWithDynamicQuery(
227: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
228: throws com.liferay.portal.SystemException {
229: return getPersistence().findWithDynamicQuery(queryInitializer);
230: }
231:
232: public static java.util.List findWithDynamicQuery(
233: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
234: int begin, int end)
235: throws com.liferay.portal.SystemException {
236: return getPersistence().findWithDynamicQuery(queryInitializer,
237: begin, end);
238: }
239:
240: public static java.util.List findAll()
241: throws com.liferay.portal.SystemException {
242: return getPersistence().findAll();
243: }
244:
245: public static java.util.List findAll(int begin, int end)
246: throws com.liferay.portal.SystemException {
247: return getPersistence().findAll(begin, end);
248: }
249:
250: public static java.util.List findAll(int begin, int end,
251: com.liferay.portal.kernel.util.OrderByComparator obc)
252: throws com.liferay.portal.SystemException {
253: return getPersistence().findAll(begin, end, obc);
254: }
255:
256: public static void removeByGroupId(long groupId)
257: throws com.liferay.portal.SystemException {
258: getPersistence().removeByGroupId(groupId);
259: }
260:
261: public static void removeByCompanyId(long companyId)
262: throws com.liferay.portal.SystemException {
263: getPersistence().removeByCompanyId(companyId);
264: }
265:
266: public static void removeByG_U(long groupId, long userId)
267: throws com.liferay.portal.SystemException {
268: getPersistence().removeByG_U(groupId, userId);
269: }
270:
271: public static void removeByRG_RA(java.lang.String repoGroupId,
272: java.lang.String repoArtifactId)
273: throws com.liferay.portal.SystemException,
274: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
275: getPersistence().removeByRG_RA(repoGroupId, repoArtifactId);
276: }
277:
278: public static void removeAll()
279: throws com.liferay.portal.SystemException {
280: getPersistence().removeAll();
281: }
282:
283: public static int countByGroupId(long groupId)
284: throws com.liferay.portal.SystemException {
285: return getPersistence().countByGroupId(groupId);
286: }
287:
288: public static int countByCompanyId(long companyId)
289: throws com.liferay.portal.SystemException {
290: return getPersistence().countByCompanyId(companyId);
291: }
292:
293: public static int countByG_U(long groupId, long userId)
294: throws com.liferay.portal.SystemException {
295: return getPersistence().countByG_U(groupId, userId);
296: }
297:
298: public static int countByRG_RA(java.lang.String repoGroupId,
299: java.lang.String repoArtifactId)
300: throws com.liferay.portal.SystemException {
301: return getPersistence().countByRG_RA(repoGroupId,
302: repoArtifactId);
303: }
304:
305: public static int countAll()
306: throws com.liferay.portal.SystemException {
307: return getPersistence().countAll();
308: }
309:
310: public static java.util.List getSCLicenses(long pk)
311: throws com.liferay.portal.SystemException,
312: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
313: return getPersistence().getSCLicenses(pk);
314: }
315:
316: public static java.util.List getSCLicenses(long pk, int begin,
317: int end)
318: throws com.liferay.portal.SystemException,
319: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
320: return getPersistence().getSCLicenses(pk, begin, end);
321: }
322:
323: public static java.util.List getSCLicenses(long pk, int begin,
324: int end,
325: com.liferay.portal.kernel.util.OrderByComparator obc)
326: throws com.liferay.portal.SystemException,
327: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
328: return getPersistence().getSCLicenses(pk, begin, end, obc);
329: }
330:
331: public static int getSCLicensesSize(long pk)
332: throws com.liferay.portal.SystemException {
333: return getPersistence().getSCLicensesSize(pk);
334: }
335:
336: public static boolean containsSCLicense(long pk, long scLicensePK)
337: throws com.liferay.portal.SystemException {
338: return getPersistence().containsSCLicense(pk, scLicensePK);
339: }
340:
341: public static boolean containsSCLicenses(long pk)
342: throws com.liferay.portal.SystemException {
343: return getPersistence().containsSCLicenses(pk);
344: }
345:
346: public static void addSCLicense(long pk, long scLicensePK)
347: throws com.liferay.portal.SystemException,
348: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
349: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
350: getPersistence().addSCLicense(pk, scLicensePK);
351: }
352:
353: public static void addSCLicense(
354: long pk,
355: com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
356: throws com.liferay.portal.SystemException,
357: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
358: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
359: getPersistence().addSCLicense(pk, scLicense);
360: }
361:
362: public static void addSCLicenses(long pk, long[] scLicensePKs)
363: throws com.liferay.portal.SystemException,
364: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
365: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
366: getPersistence().addSCLicenses(pk, scLicensePKs);
367: }
368:
369: public static void addSCLicenses(long pk, java.util.List scLicenses)
370: throws com.liferay.portal.SystemException,
371: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
372: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
373: getPersistence().addSCLicenses(pk, scLicenses);
374: }
375:
376: public static void clearSCLicenses(long pk)
377: throws com.liferay.portal.SystemException,
378: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
379: getPersistence().clearSCLicenses(pk);
380: }
381:
382: public static void removeSCLicense(long pk, long scLicensePK)
383: throws com.liferay.portal.SystemException,
384: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
385: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
386: getPersistence().removeSCLicense(pk, scLicensePK);
387: }
388:
389: public static void removeSCLicense(
390: long pk,
391: com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
392: throws com.liferay.portal.SystemException,
393: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
394: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
395: getPersistence().removeSCLicense(pk, scLicense);
396: }
397:
398: public static void removeSCLicenses(long pk, long[] scLicensePKs)
399: throws com.liferay.portal.SystemException,
400: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
401: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
402: getPersistence().removeSCLicenses(pk, scLicensePKs);
403: }
404:
405: public static void removeSCLicenses(long pk,
406: java.util.List scLicenses)
407: throws com.liferay.portal.SystemException,
408: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
409: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
410: getPersistence().removeSCLicenses(pk, scLicenses);
411: }
412:
413: public static void setSCLicenses(long pk, long[] scLicensePKs)
414: throws com.liferay.portal.SystemException,
415: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
416: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
417: getPersistence().setSCLicenses(pk, scLicensePKs);
418: }
419:
420: public static void setSCLicenses(long pk, java.util.List scLicenses)
421: throws com.liferay.portal.SystemException,
422: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
423: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
424: getPersistence().setSCLicenses(pk, scLicenses);
425: }
426:
427: public static SCProductEntryPersistence getPersistence() {
428: return _getUtil()._persistence;
429: }
430:
431: public void setPersistence(SCProductEntryPersistence persistence) {
432: _persistence = persistence;
433: }
434:
435: private static SCProductEntryUtil _getUtil() {
436: if (_util == null) {
437: _util = (SCProductEntryUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
438: .locate(_UTIL);
439: }
440:
441: return _util;
442: }
443:
444: private static final String _UTIL = SCProductEntryUtil.class
445: .getName();
446: private static SCProductEntryUtil _util;
447: private SCProductEntryPersistence _persistence;
448: }
|