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="SCFrameworkVersionUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class SCFrameworkVersionUtil {
030: public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion create(
031: long frameworkVersionId) {
032: return getPersistence().create(frameworkVersionId);
033: }
034:
035: public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion remove(
036: long frameworkVersionId)
037: throws com.liferay.portal.SystemException,
038: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
039: return getPersistence().remove(frameworkVersionId);
040: }
041:
042: public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion remove(
043: com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
044: throws com.liferay.portal.SystemException {
045: return getPersistence().remove(scFrameworkVersion);
046: }
047:
048: public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion update(
049: com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
050: throws com.liferay.portal.SystemException {
051: return getPersistence().update(scFrameworkVersion);
052: }
053:
054: public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion update(
055: com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion,
056: boolean merge) throws com.liferay.portal.SystemException {
057: return getPersistence().update(scFrameworkVersion, merge);
058: }
059:
060: public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateImpl(
061: com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion,
062: boolean merge) throws com.liferay.portal.SystemException {
063: return getPersistence().updateImpl(scFrameworkVersion, merge);
064: }
065:
066: public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByPrimaryKey(
067: long frameworkVersionId)
068: throws com.liferay.portal.SystemException,
069: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
070: return getPersistence().findByPrimaryKey(frameworkVersionId);
071: }
072:
073: public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion fetchByPrimaryKey(
074: long frameworkVersionId)
075: throws com.liferay.portal.SystemException {
076: return getPersistence().fetchByPrimaryKey(frameworkVersionId);
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.SCFrameworkVersion findByGroupId_First(
097: long groupId,
098: com.liferay.portal.kernel.util.OrderByComparator obc)
099: throws com.liferay.portal.SystemException,
100: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
101: return getPersistence().findByGroupId_First(groupId, obc);
102: }
103:
104: public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByGroupId_Last(
105: long groupId,
106: com.liferay.portal.kernel.util.OrderByComparator obc)
107: throws com.liferay.portal.SystemException,
108: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
109: return getPersistence().findByGroupId_Last(groupId, obc);
110: }
111:
112: public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByGroupId_PrevAndNext(
113: long frameworkVersionId, long groupId,
114: com.liferay.portal.kernel.util.OrderByComparator obc)
115: throws com.liferay.portal.SystemException,
116: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
117: return getPersistence().findByGroupId_PrevAndNext(
118: frameworkVersionId, 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.SCFrameworkVersion findByCompanyId_First(
141: long companyId,
142: com.liferay.portal.kernel.util.OrderByComparator obc)
143: throws com.liferay.portal.SystemException,
144: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
145: return getPersistence().findByCompanyId_First(companyId, obc);
146: }
147:
148: public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByCompanyId_Last(
149: long companyId,
150: com.liferay.portal.kernel.util.OrderByComparator obc)
151: throws com.liferay.portal.SystemException,
152: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
153: return getPersistence().findByCompanyId_Last(companyId, obc);
154: }
155:
156: public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByCompanyId_PrevAndNext(
157: long frameworkVersionId, long companyId,
158: com.liferay.portal.kernel.util.OrderByComparator obc)
159: throws com.liferay.portal.SystemException,
160: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
161: return getPersistence().findByCompanyId_PrevAndNext(
162: frameworkVersionId, companyId, obc);
163: }
164:
165: public static java.util.List findByG_A(long groupId, boolean active)
166: throws com.liferay.portal.SystemException {
167: return getPersistence().findByG_A(groupId, active);
168: }
169:
170: public static java.util.List findByG_A(long groupId,
171: boolean active, int begin, int end)
172: throws com.liferay.portal.SystemException {
173: return getPersistence().findByG_A(groupId, active, begin, end);
174: }
175:
176: public static java.util.List findByG_A(long groupId,
177: boolean active, int begin, int end,
178: com.liferay.portal.kernel.util.OrderByComparator obc)
179: throws com.liferay.portal.SystemException {
180: return getPersistence().findByG_A(groupId, active, begin, end,
181: obc);
182: }
183:
184: public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByG_A_First(
185: long groupId, boolean active,
186: com.liferay.portal.kernel.util.OrderByComparator obc)
187: throws com.liferay.portal.SystemException,
188: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
189: return getPersistence().findByG_A_First(groupId, active, obc);
190: }
191:
192: public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByG_A_Last(
193: long groupId, boolean active,
194: com.liferay.portal.kernel.util.OrderByComparator obc)
195: throws com.liferay.portal.SystemException,
196: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
197: return getPersistence().findByG_A_Last(groupId, active, obc);
198: }
199:
200: public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByG_A_PrevAndNext(
201: long frameworkVersionId, long groupId, boolean active,
202: com.liferay.portal.kernel.util.OrderByComparator obc)
203: throws com.liferay.portal.SystemException,
204: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
205: return getPersistence().findByG_A_PrevAndNext(
206: frameworkVersionId, groupId, active, obc);
207: }
208:
209: public static java.util.List findWithDynamicQuery(
210: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
211: throws com.liferay.portal.SystemException {
212: return getPersistence().findWithDynamicQuery(queryInitializer);
213: }
214:
215: public static java.util.List findWithDynamicQuery(
216: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
217: int begin, int end)
218: throws com.liferay.portal.SystemException {
219: return getPersistence().findWithDynamicQuery(queryInitializer,
220: begin, end);
221: }
222:
223: public static java.util.List findAll()
224: throws com.liferay.portal.SystemException {
225: return getPersistence().findAll();
226: }
227:
228: public static java.util.List findAll(int begin, int end)
229: throws com.liferay.portal.SystemException {
230: return getPersistence().findAll(begin, end);
231: }
232:
233: public static java.util.List findAll(int begin, int end,
234: com.liferay.portal.kernel.util.OrderByComparator obc)
235: throws com.liferay.portal.SystemException {
236: return getPersistence().findAll(begin, end, obc);
237: }
238:
239: public static void removeByGroupId(long groupId)
240: throws com.liferay.portal.SystemException {
241: getPersistence().removeByGroupId(groupId);
242: }
243:
244: public static void removeByCompanyId(long companyId)
245: throws com.liferay.portal.SystemException {
246: getPersistence().removeByCompanyId(companyId);
247: }
248:
249: public static void removeByG_A(long groupId, boolean active)
250: throws com.liferay.portal.SystemException {
251: getPersistence().removeByG_A(groupId, active);
252: }
253:
254: public static void removeAll()
255: throws com.liferay.portal.SystemException {
256: getPersistence().removeAll();
257: }
258:
259: public static int countByGroupId(long groupId)
260: throws com.liferay.portal.SystemException {
261: return getPersistence().countByGroupId(groupId);
262: }
263:
264: public static int countByCompanyId(long companyId)
265: throws com.liferay.portal.SystemException {
266: return getPersistence().countByCompanyId(companyId);
267: }
268:
269: public static int countByG_A(long groupId, boolean active)
270: throws com.liferay.portal.SystemException {
271: return getPersistence().countByG_A(groupId, active);
272: }
273:
274: public static int countAll()
275: throws com.liferay.portal.SystemException {
276: return getPersistence().countAll();
277: }
278:
279: public static java.util.List getSCProductVersions(long pk)
280: throws com.liferay.portal.SystemException,
281: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
282: return getPersistence().getSCProductVersions(pk);
283: }
284:
285: public static java.util.List getSCProductVersions(long pk,
286: int begin, int end)
287: throws com.liferay.portal.SystemException,
288: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
289: return getPersistence().getSCProductVersions(pk, begin, end);
290: }
291:
292: public static java.util.List getSCProductVersions(long pk,
293: int begin, int end,
294: com.liferay.portal.kernel.util.OrderByComparator obc)
295: throws com.liferay.portal.SystemException,
296: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
297: return getPersistence().getSCProductVersions(pk, begin, end,
298: obc);
299: }
300:
301: public static int getSCProductVersionsSize(long pk)
302: throws com.liferay.portal.SystemException {
303: return getPersistence().getSCProductVersionsSize(pk);
304: }
305:
306: public static boolean containsSCProductVersion(long pk,
307: long scProductVersionPK)
308: throws com.liferay.portal.SystemException {
309: return getPersistence().containsSCProductVersion(pk,
310: scProductVersionPK);
311: }
312:
313: public static boolean containsSCProductVersions(long pk)
314: throws com.liferay.portal.SystemException {
315: return getPersistence().containsSCProductVersions(pk);
316: }
317:
318: public static void addSCProductVersion(long pk,
319: long scProductVersionPK)
320: throws com.liferay.portal.SystemException,
321: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException,
322: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
323: getPersistence().addSCProductVersion(pk, scProductVersionPK);
324: }
325:
326: public static void addSCProductVersion(
327: long pk,
328: com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
329: throws com.liferay.portal.SystemException,
330: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException,
331: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
332: getPersistence().addSCProductVersion(pk, scProductVersion);
333: }
334:
335: public static void addSCProductVersions(long pk,
336: long[] scProductVersionPKs)
337: throws com.liferay.portal.SystemException,
338: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException,
339: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
340: getPersistence().addSCProductVersions(pk, scProductVersionPKs);
341: }
342:
343: public static void addSCProductVersions(long pk,
344: java.util.List scProductVersions)
345: throws com.liferay.portal.SystemException,
346: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException,
347: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
348: getPersistence().addSCProductVersions(pk, scProductVersions);
349: }
350:
351: public static void clearSCProductVersions(long pk)
352: throws com.liferay.portal.SystemException,
353: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
354: getPersistence().clearSCProductVersions(pk);
355: }
356:
357: public static void removeSCProductVersion(long pk,
358: long scProductVersionPK)
359: throws com.liferay.portal.SystemException,
360: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException,
361: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
362: getPersistence().removeSCProductVersion(pk, scProductVersionPK);
363: }
364:
365: public static void removeSCProductVersion(
366: long pk,
367: com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
368: throws com.liferay.portal.SystemException,
369: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException,
370: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
371: getPersistence().removeSCProductVersion(pk, scProductVersion);
372: }
373:
374: public static void removeSCProductVersions(long pk,
375: long[] scProductVersionPKs)
376: throws com.liferay.portal.SystemException,
377: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException,
378: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
379: getPersistence().removeSCProductVersions(pk,
380: scProductVersionPKs);
381: }
382:
383: public static void removeSCProductVersions(long pk,
384: java.util.List scProductVersions)
385: throws com.liferay.portal.SystemException,
386: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException,
387: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
388: getPersistence().removeSCProductVersions(pk, scProductVersions);
389: }
390:
391: public static void setSCProductVersions(long pk,
392: long[] scProductVersionPKs)
393: throws com.liferay.portal.SystemException,
394: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException,
395: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
396: getPersistence().setSCProductVersions(pk, scProductVersionPKs);
397: }
398:
399: public static void setSCProductVersions(long pk,
400: java.util.List scProductVersions)
401: throws com.liferay.portal.SystemException,
402: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException,
403: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
404: getPersistence().setSCProductVersions(pk, scProductVersions);
405: }
406:
407: public static SCFrameworkVersionPersistence getPersistence() {
408: return _getUtil()._persistence;
409: }
410:
411: public void setPersistence(SCFrameworkVersionPersistence persistence) {
412: _persistence = persistence;
413: }
414:
415: private static SCFrameworkVersionUtil _getUtil() {
416: if (_util == null) {
417: _util = (SCFrameworkVersionUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
418: .locate(_UTIL);
419: }
420:
421: return _util;
422: }
423:
424: private static final String _UTIL = SCFrameworkVersionUtil.class
425: .getName();
426: private static SCFrameworkVersionUtil _util;
427: private SCFrameworkVersionPersistence _persistence;
428: }
|