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="SCLicenseUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class SCLicenseUtil {
030: public static com.liferay.portlet.softwarecatalog.model.SCLicense create(
031: long licenseId) {
032: return getPersistence().create(licenseId);
033: }
034:
035: public static com.liferay.portlet.softwarecatalog.model.SCLicense remove(
036: long licenseId) throws com.liferay.portal.SystemException,
037: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
038: return getPersistence().remove(licenseId);
039: }
040:
041: public static com.liferay.portlet.softwarecatalog.model.SCLicense remove(
042: com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
043: throws com.liferay.portal.SystemException {
044: return getPersistence().remove(scLicense);
045: }
046:
047: public static com.liferay.portlet.softwarecatalog.model.SCLicense update(
048: com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
049: throws com.liferay.portal.SystemException {
050: return getPersistence().update(scLicense);
051: }
052:
053: public static com.liferay.portlet.softwarecatalog.model.SCLicense update(
054: com.liferay.portlet.softwarecatalog.model.SCLicense scLicense,
055: boolean merge) throws com.liferay.portal.SystemException {
056: return getPersistence().update(scLicense, merge);
057: }
058:
059: public static com.liferay.portlet.softwarecatalog.model.SCLicense updateImpl(
060: com.liferay.portlet.softwarecatalog.model.SCLicense scLicense,
061: boolean merge) throws com.liferay.portal.SystemException {
062: return getPersistence().updateImpl(scLicense, merge);
063: }
064:
065: public static com.liferay.portlet.softwarecatalog.model.SCLicense findByPrimaryKey(
066: long licenseId) throws com.liferay.portal.SystemException,
067: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
068: return getPersistence().findByPrimaryKey(licenseId);
069: }
070:
071: public static com.liferay.portlet.softwarecatalog.model.SCLicense fetchByPrimaryKey(
072: long licenseId) throws com.liferay.portal.SystemException {
073: return getPersistence().fetchByPrimaryKey(licenseId);
074: }
075:
076: public static java.util.List findByActive(boolean active)
077: throws com.liferay.portal.SystemException {
078: return getPersistence().findByActive(active);
079: }
080:
081: public static java.util.List findByActive(boolean active,
082: int begin, int end)
083: throws com.liferay.portal.SystemException {
084: return getPersistence().findByActive(active, begin, end);
085: }
086:
087: public static java.util.List findByActive(boolean active,
088: int begin, int end,
089: com.liferay.portal.kernel.util.OrderByComparator obc)
090: throws com.liferay.portal.SystemException {
091: return getPersistence().findByActive(active, begin, end, obc);
092: }
093:
094: public static com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_First(
095: boolean active,
096: com.liferay.portal.kernel.util.OrderByComparator obc)
097: throws com.liferay.portal.SystemException,
098: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
099: return getPersistence().findByActive_First(active, obc);
100: }
101:
102: public static com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_Last(
103: boolean active,
104: com.liferay.portal.kernel.util.OrderByComparator obc)
105: throws com.liferay.portal.SystemException,
106: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
107: return getPersistence().findByActive_Last(active, obc);
108: }
109:
110: public static com.liferay.portlet.softwarecatalog.model.SCLicense[] findByActive_PrevAndNext(
111: long licenseId, boolean active,
112: com.liferay.portal.kernel.util.OrderByComparator obc)
113: throws com.liferay.portal.SystemException,
114: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
115: return getPersistence().findByActive_PrevAndNext(licenseId,
116: active, obc);
117: }
118:
119: public static java.util.List findByA_R(boolean active,
120: boolean recommended)
121: throws com.liferay.portal.SystemException {
122: return getPersistence().findByA_R(active, recommended);
123: }
124:
125: public static java.util.List findByA_R(boolean active,
126: boolean recommended, int begin, int end)
127: throws com.liferay.portal.SystemException {
128: return getPersistence().findByA_R(active, recommended, begin,
129: end);
130: }
131:
132: public static java.util.List findByA_R(boolean active,
133: boolean recommended, int begin, int end,
134: com.liferay.portal.kernel.util.OrderByComparator obc)
135: throws com.liferay.portal.SystemException {
136: return getPersistence().findByA_R(active, recommended, begin,
137: end, obc);
138: }
139:
140: public static com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_First(
141: boolean active, boolean recommended,
142: com.liferay.portal.kernel.util.OrderByComparator obc)
143: throws com.liferay.portal.SystemException,
144: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
145: return getPersistence().findByA_R_First(active, recommended,
146: obc);
147: }
148:
149: public static com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_Last(
150: boolean active, boolean recommended,
151: com.liferay.portal.kernel.util.OrderByComparator obc)
152: throws com.liferay.portal.SystemException,
153: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
154: return getPersistence()
155: .findByA_R_Last(active, recommended, obc);
156: }
157:
158: public static com.liferay.portlet.softwarecatalog.model.SCLicense[] findByA_R_PrevAndNext(
159: long licenseId, boolean active, boolean recommended,
160: com.liferay.portal.kernel.util.OrderByComparator obc)
161: throws com.liferay.portal.SystemException,
162: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
163: return getPersistence().findByA_R_PrevAndNext(licenseId,
164: active, recommended, obc);
165: }
166:
167: public static java.util.List findWithDynamicQuery(
168: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
169: throws com.liferay.portal.SystemException {
170: return getPersistence().findWithDynamicQuery(queryInitializer);
171: }
172:
173: public static java.util.List findWithDynamicQuery(
174: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
175: int begin, int end)
176: throws com.liferay.portal.SystemException {
177: return getPersistence().findWithDynamicQuery(queryInitializer,
178: begin, end);
179: }
180:
181: public static java.util.List findAll()
182: throws com.liferay.portal.SystemException {
183: return getPersistence().findAll();
184: }
185:
186: public static java.util.List findAll(int begin, int end)
187: throws com.liferay.portal.SystemException {
188: return getPersistence().findAll(begin, end);
189: }
190:
191: public static java.util.List findAll(int begin, int end,
192: com.liferay.portal.kernel.util.OrderByComparator obc)
193: throws com.liferay.portal.SystemException {
194: return getPersistence().findAll(begin, end, obc);
195: }
196:
197: public static void removeByActive(boolean active)
198: throws com.liferay.portal.SystemException {
199: getPersistence().removeByActive(active);
200: }
201:
202: public static void removeByA_R(boolean active, boolean recommended)
203: throws com.liferay.portal.SystemException {
204: getPersistence().removeByA_R(active, recommended);
205: }
206:
207: public static void removeAll()
208: throws com.liferay.portal.SystemException {
209: getPersistence().removeAll();
210: }
211:
212: public static int countByActive(boolean active)
213: throws com.liferay.portal.SystemException {
214: return getPersistence().countByActive(active);
215: }
216:
217: public static int countByA_R(boolean active, boolean recommended)
218: throws com.liferay.portal.SystemException {
219: return getPersistence().countByA_R(active, recommended);
220: }
221:
222: public static int countAll()
223: throws com.liferay.portal.SystemException {
224: return getPersistence().countAll();
225: }
226:
227: public static java.util.List getSCProductEntries(long pk)
228: throws com.liferay.portal.SystemException,
229: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
230: return getPersistence().getSCProductEntries(pk);
231: }
232:
233: public static java.util.List getSCProductEntries(long pk,
234: int begin, int end)
235: throws com.liferay.portal.SystemException,
236: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
237: return getPersistence().getSCProductEntries(pk, begin, end);
238: }
239:
240: public static java.util.List getSCProductEntries(long pk,
241: int begin, int end,
242: com.liferay.portal.kernel.util.OrderByComparator obc)
243: throws com.liferay.portal.SystemException,
244: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
245: return getPersistence()
246: .getSCProductEntries(pk, begin, end, obc);
247: }
248:
249: public static int getSCProductEntriesSize(long pk)
250: throws com.liferay.portal.SystemException {
251: return getPersistence().getSCProductEntriesSize(pk);
252: }
253:
254: public static boolean containsSCProductEntry(long pk,
255: long scProductEntryPK)
256: throws com.liferay.portal.SystemException {
257: return getPersistence().containsSCProductEntry(pk,
258: scProductEntryPK);
259: }
260:
261: public static boolean containsSCProductEntries(long pk)
262: throws com.liferay.portal.SystemException {
263: return getPersistence().containsSCProductEntries(pk);
264: }
265:
266: public static void addSCProductEntry(long pk, long scProductEntryPK)
267: throws com.liferay.portal.SystemException,
268: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
269: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
270: getPersistence().addSCProductEntry(pk, scProductEntryPK);
271: }
272:
273: public static void addSCProductEntry(
274: long pk,
275: com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
276: throws com.liferay.portal.SystemException,
277: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
278: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
279: getPersistence().addSCProductEntry(pk, scProductEntry);
280: }
281:
282: public static void addSCProductEntries(long pk,
283: long[] scProductEntryPKs)
284: throws com.liferay.portal.SystemException,
285: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
286: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
287: getPersistence().addSCProductEntries(pk, scProductEntryPKs);
288: }
289:
290: public static void addSCProductEntries(long pk,
291: java.util.List scProductEntries)
292: throws com.liferay.portal.SystemException,
293: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
294: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
295: getPersistence().addSCProductEntries(pk, scProductEntries);
296: }
297:
298: public static void clearSCProductEntries(long pk)
299: throws com.liferay.portal.SystemException,
300: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
301: getPersistence().clearSCProductEntries(pk);
302: }
303:
304: public static void removeSCProductEntry(long pk,
305: long scProductEntryPK)
306: throws com.liferay.portal.SystemException,
307: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
308: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
309: getPersistence().removeSCProductEntry(pk, scProductEntryPK);
310: }
311:
312: public static void removeSCProductEntry(
313: long pk,
314: com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
315: throws com.liferay.portal.SystemException,
316: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
317: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
318: getPersistence().removeSCProductEntry(pk, scProductEntry);
319: }
320:
321: public static void removeSCProductEntries(long pk,
322: long[] scProductEntryPKs)
323: throws com.liferay.portal.SystemException,
324: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
325: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
326: getPersistence().removeSCProductEntries(pk, scProductEntryPKs);
327: }
328:
329: public static void removeSCProductEntries(long pk,
330: java.util.List scProductEntries)
331: throws com.liferay.portal.SystemException,
332: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
333: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
334: getPersistence().removeSCProductEntries(pk, scProductEntries);
335: }
336:
337: public static void setSCProductEntries(long pk,
338: long[] scProductEntryPKs)
339: throws com.liferay.portal.SystemException,
340: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
341: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
342: getPersistence().setSCProductEntries(pk, scProductEntryPKs);
343: }
344:
345: public static void setSCProductEntries(long pk,
346: java.util.List scProductEntries)
347: throws com.liferay.portal.SystemException,
348: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
349: com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
350: getPersistence().setSCProductEntries(pk, scProductEntries);
351: }
352:
353: public static SCLicensePersistence getPersistence() {
354: return _getUtil()._persistence;
355: }
356:
357: public void setPersistence(SCLicensePersistence persistence) {
358: _persistence = persistence;
359: }
360:
361: private static SCLicenseUtil _getUtil() {
362: if (_util == null) {
363: _util = (SCLicenseUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
364: .locate(_UTIL);
365: }
366:
367: return _util;
368: }
369:
370: private static final String _UTIL = SCLicenseUtil.class.getName();
371: private static SCLicenseUtil _util;
372: private SCLicensePersistence _persistence;
373: }
|