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