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