1
14
15 package com.liferay.portlet.softwarecatalog.service.persistence;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19 import com.liferay.portal.kernel.exception.SystemException;
20
21 import com.liferay.portlet.softwarecatalog.model.SCProductVersion;
22
23 import java.util.List;
24
25
38 public class SCProductVersionUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50 throws SystemException {
51 return getPersistence().findWithDynamicQuery(dynamicQuery);
52 }
53
54
57 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
58 int start, int end) throws SystemException {
59 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
60 }
61
62
65 public static SCProductVersion remove(SCProductVersion scProductVersion)
66 throws SystemException {
67 return getPersistence().remove(scProductVersion);
68 }
69
70
73 public static SCProductVersion update(SCProductVersion scProductVersion,
74 boolean merge) throws SystemException {
75 return getPersistence().update(scProductVersion, merge);
76 }
77
78 public static void cacheResult(
79 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion) {
80 getPersistence().cacheResult(scProductVersion);
81 }
82
83 public static void cacheResult(
84 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions) {
85 getPersistence().cacheResult(scProductVersions);
86 }
87
88 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion create(
89 long productVersionId) {
90 return getPersistence().create(productVersionId);
91 }
92
93 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion remove(
94 long productVersionId)
95 throws com.liferay.portal.kernel.exception.SystemException,
96 com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
97 return getPersistence().remove(productVersionId);
98 }
99
100 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateImpl(
101 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion,
102 boolean merge)
103 throws com.liferay.portal.kernel.exception.SystemException {
104 return getPersistence().updateImpl(scProductVersion, merge);
105 }
106
107 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion findByPrimaryKey(
108 long productVersionId)
109 throws com.liferay.portal.kernel.exception.SystemException,
110 com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
111 return getPersistence().findByPrimaryKey(productVersionId);
112 }
113
114 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByPrimaryKey(
115 long productVersionId)
116 throws com.liferay.portal.kernel.exception.SystemException {
117 return getPersistence().fetchByPrimaryKey(productVersionId);
118 }
119
120 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findByProductEntryId(
121 long productEntryId)
122 throws com.liferay.portal.kernel.exception.SystemException {
123 return getPersistence().findByProductEntryId(productEntryId);
124 }
125
126 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findByProductEntryId(
127 long productEntryId, int start, int end)
128 throws com.liferay.portal.kernel.exception.SystemException {
129 return getPersistence().findByProductEntryId(productEntryId, start, end);
130 }
131
132 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findByProductEntryId(
133 long productEntryId, int start, int end,
134 com.liferay.portal.kernel.util.OrderByComparator obc)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return getPersistence()
137 .findByProductEntryId(productEntryId, start, end, obc);
138 }
139
140 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion findByProductEntryId_First(
141 long productEntryId,
142 com.liferay.portal.kernel.util.OrderByComparator obc)
143 throws com.liferay.portal.kernel.exception.SystemException,
144 com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
145 return getPersistence().findByProductEntryId_First(productEntryId, obc);
146 }
147
148 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion findByProductEntryId_Last(
149 long productEntryId,
150 com.liferay.portal.kernel.util.OrderByComparator obc)
151 throws com.liferay.portal.kernel.exception.SystemException,
152 com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
153 return getPersistence().findByProductEntryId_Last(productEntryId, obc);
154 }
155
156 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion[] findByProductEntryId_PrevAndNext(
157 long productVersionId, long productEntryId,
158 com.liferay.portal.kernel.util.OrderByComparator obc)
159 throws com.liferay.portal.kernel.exception.SystemException,
160 com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
161 return getPersistence()
162 .findByProductEntryId_PrevAndNext(productVersionId,
163 productEntryId, obc);
164 }
165
166 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion findByDirectDownloadURL(
167 java.lang.String directDownloadURL)
168 throws com.liferay.portal.kernel.exception.SystemException,
169 com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
170 return getPersistence().findByDirectDownloadURL(directDownloadURL);
171 }
172
173 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByDirectDownloadURL(
174 java.lang.String directDownloadURL)
175 throws com.liferay.portal.kernel.exception.SystemException {
176 return getPersistence().fetchByDirectDownloadURL(directDownloadURL);
177 }
178
179 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByDirectDownloadURL(
180 java.lang.String directDownloadURL, boolean retrieveFromCache)
181 throws com.liferay.portal.kernel.exception.SystemException {
182 return getPersistence()
183 .fetchByDirectDownloadURL(directDownloadURL,
184 retrieveFromCache);
185 }
186
187 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll()
188 throws com.liferay.portal.kernel.exception.SystemException {
189 return getPersistence().findAll();
190 }
191
192 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll(
193 int start, int end)
194 throws com.liferay.portal.kernel.exception.SystemException {
195 return getPersistence().findAll(start, end);
196 }
197
198 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll(
199 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
200 throws com.liferay.portal.kernel.exception.SystemException {
201 return getPersistence().findAll(start, end, obc);
202 }
203
204 public static void removeByProductEntryId(long productEntryId)
205 throws com.liferay.portal.kernel.exception.SystemException {
206 getPersistence().removeByProductEntryId(productEntryId);
207 }
208
209 public static void removeByDirectDownloadURL(
210 java.lang.String directDownloadURL)
211 throws com.liferay.portal.kernel.exception.SystemException,
212 com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
213 getPersistence().removeByDirectDownloadURL(directDownloadURL);
214 }
215
216 public static void removeAll()
217 throws com.liferay.portal.kernel.exception.SystemException {
218 getPersistence().removeAll();
219 }
220
221 public static int countByProductEntryId(long productEntryId)
222 throws com.liferay.portal.kernel.exception.SystemException {
223 return getPersistence().countByProductEntryId(productEntryId);
224 }
225
226 public static int countByDirectDownloadURL(
227 java.lang.String directDownloadURL)
228 throws com.liferay.portal.kernel.exception.SystemException {
229 return getPersistence().countByDirectDownloadURL(directDownloadURL);
230 }
231
232 public static int countAll()
233 throws com.liferay.portal.kernel.exception.SystemException {
234 return getPersistence().countAll();
235 }
236
237 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
238 long pk) throws com.liferay.portal.kernel.exception.SystemException {
239 return getPersistence().getSCFrameworkVersions(pk);
240 }
241
242 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
243 long pk, int start, int end)
244 throws com.liferay.portal.kernel.exception.SystemException {
245 return getPersistence().getSCFrameworkVersions(pk, start, end);
246 }
247
248 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
249 long pk, int start, int end,
250 com.liferay.portal.kernel.util.OrderByComparator obc)
251 throws com.liferay.portal.kernel.exception.SystemException {
252 return getPersistence().getSCFrameworkVersions(pk, start, end, obc);
253 }
254
255 public static int getSCFrameworkVersionsSize(long pk)
256 throws com.liferay.portal.kernel.exception.SystemException {
257 return getPersistence().getSCFrameworkVersionsSize(pk);
258 }
259
260 public static boolean containsSCFrameworkVersion(long pk,
261 long scFrameworkVersionPK)
262 throws com.liferay.portal.kernel.exception.SystemException {
263 return getPersistence()
264 .containsSCFrameworkVersion(pk, scFrameworkVersionPK);
265 }
266
267 public static boolean containsSCFrameworkVersions(long pk)
268 throws com.liferay.portal.kernel.exception.SystemException {
269 return getPersistence().containsSCFrameworkVersions(pk);
270 }
271
272 public static void addSCFrameworkVersion(long pk, long scFrameworkVersionPK)
273 throws com.liferay.portal.kernel.exception.SystemException {
274 getPersistence().addSCFrameworkVersion(pk, scFrameworkVersionPK);
275 }
276
277 public static void addSCFrameworkVersion(long pk,
278 com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
279 throws com.liferay.portal.kernel.exception.SystemException {
280 getPersistence().addSCFrameworkVersion(pk, scFrameworkVersion);
281 }
282
283 public static void addSCFrameworkVersions(long pk,
284 long[] scFrameworkVersionPKs)
285 throws com.liferay.portal.kernel.exception.SystemException {
286 getPersistence().addSCFrameworkVersions(pk, scFrameworkVersionPKs);
287 }
288
289 public static void addSCFrameworkVersions(long pk,
290 java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
291 throws com.liferay.portal.kernel.exception.SystemException {
292 getPersistence().addSCFrameworkVersions(pk, scFrameworkVersions);
293 }
294
295 public static void clearSCFrameworkVersions(long pk)
296 throws com.liferay.portal.kernel.exception.SystemException {
297 getPersistence().clearSCFrameworkVersions(pk);
298 }
299
300 public static void removeSCFrameworkVersion(long pk,
301 long scFrameworkVersionPK)
302 throws com.liferay.portal.kernel.exception.SystemException {
303 getPersistence().removeSCFrameworkVersion(pk, scFrameworkVersionPK);
304 }
305
306 public static void removeSCFrameworkVersion(long pk,
307 com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
308 throws com.liferay.portal.kernel.exception.SystemException {
309 getPersistence().removeSCFrameworkVersion(pk, scFrameworkVersion);
310 }
311
312 public static void removeSCFrameworkVersions(long pk,
313 long[] scFrameworkVersionPKs)
314 throws com.liferay.portal.kernel.exception.SystemException {
315 getPersistence().removeSCFrameworkVersions(pk, scFrameworkVersionPKs);
316 }
317
318 public static void removeSCFrameworkVersions(long pk,
319 java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
320 throws com.liferay.portal.kernel.exception.SystemException {
321 getPersistence().removeSCFrameworkVersions(pk, scFrameworkVersions);
322 }
323
324 public static void setSCFrameworkVersions(long pk,
325 long[] scFrameworkVersionPKs)
326 throws com.liferay.portal.kernel.exception.SystemException {
327 getPersistence().setSCFrameworkVersions(pk, scFrameworkVersionPKs);
328 }
329
330 public static void setSCFrameworkVersions(long pk,
331 java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
332 throws com.liferay.portal.kernel.exception.SystemException {
333 getPersistence().setSCFrameworkVersions(pk, scFrameworkVersions);
334 }
335
336 public static SCProductVersionPersistence getPersistence() {
337 if (_persistence == null) {
338 _persistence = (SCProductVersionPersistence)PortalBeanLocatorUtil.locate(SCProductVersionPersistence.class.getName());
339 }
340
341 return _persistence;
342 }
343
344 public void setPersistence(SCProductVersionPersistence persistence) {
345 _persistence = persistence;
346 }
347
348 private static SCProductVersionPersistence _persistence;
349 }