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.SCFrameworkVersion;
22
23 import java.util.List;
24
25
38 public class SCFrameworkVersionUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static void clearCache(SCFrameworkVersion scFrameworkVersion) {
50 getPersistence().clearCache(scFrameworkVersion);
51 }
52
53
56 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57 throws SystemException {
58 return getPersistence().countWithDynamicQuery(dynamicQuery);
59 }
60
61
64 public static List<SCFrameworkVersion> findWithDynamicQuery(
65 DynamicQuery dynamicQuery) throws SystemException {
66 return getPersistence().findWithDynamicQuery(dynamicQuery);
67 }
68
69
72 public static List<SCFrameworkVersion> findWithDynamicQuery(
73 DynamicQuery dynamicQuery, int start, int end)
74 throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static SCFrameworkVersion remove(
82 SCFrameworkVersion scFrameworkVersion) throws SystemException {
83 return getPersistence().remove(scFrameworkVersion);
84 }
85
86
89 public static SCFrameworkVersion update(
90 SCFrameworkVersion scFrameworkVersion, boolean merge)
91 throws SystemException {
92 return getPersistence().update(scFrameworkVersion, merge);
93 }
94
95 public static void cacheResult(
96 com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion) {
97 getPersistence().cacheResult(scFrameworkVersion);
98 }
99
100 public static void cacheResult(
101 java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions) {
102 getPersistence().cacheResult(scFrameworkVersions);
103 }
104
105 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion create(
106 long frameworkVersionId) {
107 return getPersistence().create(frameworkVersionId);
108 }
109
110 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion remove(
111 long frameworkVersionId)
112 throws com.liferay.portal.kernel.exception.SystemException,
113 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
114 return getPersistence().remove(frameworkVersionId);
115 }
116
117 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateImpl(
118 com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion,
119 boolean merge)
120 throws com.liferay.portal.kernel.exception.SystemException {
121 return getPersistence().updateImpl(scFrameworkVersion, merge);
122 }
123
124 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByPrimaryKey(
125 long frameworkVersionId)
126 throws com.liferay.portal.kernel.exception.SystemException,
127 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
128 return getPersistence().findByPrimaryKey(frameworkVersionId);
129 }
130
131 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion fetchByPrimaryKey(
132 long frameworkVersionId)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getPersistence().fetchByPrimaryKey(frameworkVersionId);
135 }
136
137 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByGroupId(
138 long groupId)
139 throws com.liferay.portal.kernel.exception.SystemException {
140 return getPersistence().findByGroupId(groupId);
141 }
142
143 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByGroupId(
144 long groupId, int start, int end)
145 throws com.liferay.portal.kernel.exception.SystemException {
146 return getPersistence().findByGroupId(groupId, start, end);
147 }
148
149 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByGroupId(
150 long groupId, int start, int end,
151 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152 throws com.liferay.portal.kernel.exception.SystemException {
153 return getPersistence()
154 .findByGroupId(groupId, start, end, orderByComparator);
155 }
156
157 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByGroupId_First(
158 long groupId,
159 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
160 throws com.liferay.portal.kernel.exception.SystemException,
161 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
162 return getPersistence().findByGroupId_First(groupId, orderByComparator);
163 }
164
165 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByGroupId_Last(
166 long groupId,
167 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168 throws com.liferay.portal.kernel.exception.SystemException,
169 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
170 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
171 }
172
173 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByGroupId_PrevAndNext(
174 long frameworkVersionId, long groupId,
175 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
176 throws com.liferay.portal.kernel.exception.SystemException,
177 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
178 return getPersistence()
179 .findByGroupId_PrevAndNext(frameworkVersionId, groupId,
180 orderByComparator);
181 }
182
183 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> filterFindByGroupId(
184 long groupId)
185 throws com.liferay.portal.kernel.exception.SystemException {
186 return getPersistence().filterFindByGroupId(groupId);
187 }
188
189 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> filterFindByGroupId(
190 long groupId, int start, int end)
191 throws com.liferay.portal.kernel.exception.SystemException {
192 return getPersistence().filterFindByGroupId(groupId, start, end);
193 }
194
195 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> filterFindByGroupId(
196 long groupId, int start, int end,
197 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
198 throws com.liferay.portal.kernel.exception.SystemException {
199 return getPersistence()
200 .filterFindByGroupId(groupId, start, end, orderByComparator);
201 }
202
203 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
204 long companyId)
205 throws com.liferay.portal.kernel.exception.SystemException {
206 return getPersistence().findByCompanyId(companyId);
207 }
208
209 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
210 long companyId, int start, int end)
211 throws com.liferay.portal.kernel.exception.SystemException {
212 return getPersistence().findByCompanyId(companyId, start, end);
213 }
214
215 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
216 long companyId, int start, int end,
217 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
218 throws com.liferay.portal.kernel.exception.SystemException {
219 return getPersistence()
220 .findByCompanyId(companyId, start, end, orderByComparator);
221 }
222
223 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByCompanyId_First(
224 long companyId,
225 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
226 throws com.liferay.portal.kernel.exception.SystemException,
227 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
228 return getPersistence()
229 .findByCompanyId_First(companyId, orderByComparator);
230 }
231
232 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByCompanyId_Last(
233 long companyId,
234 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
235 throws com.liferay.portal.kernel.exception.SystemException,
236 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
237 return getPersistence()
238 .findByCompanyId_Last(companyId, orderByComparator);
239 }
240
241 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByCompanyId_PrevAndNext(
242 long frameworkVersionId, long companyId,
243 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
244 throws com.liferay.portal.kernel.exception.SystemException,
245 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
246 return getPersistence()
247 .findByCompanyId_PrevAndNext(frameworkVersionId, companyId,
248 orderByComparator);
249 }
250
251 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
252 long groupId, boolean active)
253 throws com.liferay.portal.kernel.exception.SystemException {
254 return getPersistence().findByG_A(groupId, active);
255 }
256
257 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
258 long groupId, boolean active, int start, int end)
259 throws com.liferay.portal.kernel.exception.SystemException {
260 return getPersistence().findByG_A(groupId, active, start, end);
261 }
262
263 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
264 long groupId, boolean active, int start, int end,
265 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
266 throws com.liferay.portal.kernel.exception.SystemException {
267 return getPersistence()
268 .findByG_A(groupId, active, start, end, orderByComparator);
269 }
270
271 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByG_A_First(
272 long groupId, boolean active,
273 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
274 throws com.liferay.portal.kernel.exception.SystemException,
275 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
276 return getPersistence()
277 .findByG_A_First(groupId, active, orderByComparator);
278 }
279
280 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByG_A_Last(
281 long groupId, boolean active,
282 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
283 throws com.liferay.portal.kernel.exception.SystemException,
284 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
285 return getPersistence()
286 .findByG_A_Last(groupId, active, orderByComparator);
287 }
288
289 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByG_A_PrevAndNext(
290 long frameworkVersionId, long groupId, boolean active,
291 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
292 throws com.liferay.portal.kernel.exception.SystemException,
293 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
294 return getPersistence()
295 .findByG_A_PrevAndNext(frameworkVersionId, groupId, active,
296 orderByComparator);
297 }
298
299 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> filterFindByG_A(
300 long groupId, boolean active)
301 throws com.liferay.portal.kernel.exception.SystemException {
302 return getPersistence().filterFindByG_A(groupId, active);
303 }
304
305 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> filterFindByG_A(
306 long groupId, boolean active, int start, int end)
307 throws com.liferay.portal.kernel.exception.SystemException {
308 return getPersistence().filterFindByG_A(groupId, active, start, end);
309 }
310
311 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> filterFindByG_A(
312 long groupId, boolean active, int start, int end,
313 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
314 throws com.liferay.portal.kernel.exception.SystemException {
315 return getPersistence()
316 .filterFindByG_A(groupId, active, start, end,
317 orderByComparator);
318 }
319
320 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll()
321 throws com.liferay.portal.kernel.exception.SystemException {
322 return getPersistence().findAll();
323 }
324
325 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll(
326 int start, int end)
327 throws com.liferay.portal.kernel.exception.SystemException {
328 return getPersistence().findAll(start, end);
329 }
330
331 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll(
332 int start, int end,
333 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
334 throws com.liferay.portal.kernel.exception.SystemException {
335 return getPersistence().findAll(start, end, orderByComparator);
336 }
337
338 public static void removeByGroupId(long groupId)
339 throws com.liferay.portal.kernel.exception.SystemException {
340 getPersistence().removeByGroupId(groupId);
341 }
342
343 public static void removeByCompanyId(long companyId)
344 throws com.liferay.portal.kernel.exception.SystemException {
345 getPersistence().removeByCompanyId(companyId);
346 }
347
348 public static void removeByG_A(long groupId, boolean active)
349 throws com.liferay.portal.kernel.exception.SystemException {
350 getPersistence().removeByG_A(groupId, active);
351 }
352
353 public static void removeAll()
354 throws com.liferay.portal.kernel.exception.SystemException {
355 getPersistence().removeAll();
356 }
357
358 public static int countByGroupId(long groupId)
359 throws com.liferay.portal.kernel.exception.SystemException {
360 return getPersistence().countByGroupId(groupId);
361 }
362
363 public static int filterCountByGroupId(long groupId)
364 throws com.liferay.portal.kernel.exception.SystemException {
365 return getPersistence().filterCountByGroupId(groupId);
366 }
367
368 public static int countByCompanyId(long companyId)
369 throws com.liferay.portal.kernel.exception.SystemException {
370 return getPersistence().countByCompanyId(companyId);
371 }
372
373 public static int countByG_A(long groupId, boolean active)
374 throws com.liferay.portal.kernel.exception.SystemException {
375 return getPersistence().countByG_A(groupId, active);
376 }
377
378 public static int filterCountByG_A(long groupId, boolean active)
379 throws com.liferay.portal.kernel.exception.SystemException {
380 return getPersistence().filterCountByG_A(groupId, active);
381 }
382
383 public static int countAll()
384 throws com.liferay.portal.kernel.exception.SystemException {
385 return getPersistence().countAll();
386 }
387
388 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
389 long pk) throws com.liferay.portal.kernel.exception.SystemException {
390 return getPersistence().getSCProductVersions(pk);
391 }
392
393 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
394 long pk, int start, int end)
395 throws com.liferay.portal.kernel.exception.SystemException {
396 return getPersistence().getSCProductVersions(pk, start, end);
397 }
398
399 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
400 long pk, int start, int end,
401 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
402 throws com.liferay.portal.kernel.exception.SystemException {
403 return getPersistence()
404 .getSCProductVersions(pk, start, end, orderByComparator);
405 }
406
407 public static int getSCProductVersionsSize(long pk)
408 throws com.liferay.portal.kernel.exception.SystemException {
409 return getPersistence().getSCProductVersionsSize(pk);
410 }
411
412 public static boolean containsSCProductVersion(long pk,
413 long scProductVersionPK)
414 throws com.liferay.portal.kernel.exception.SystemException {
415 return getPersistence().containsSCProductVersion(pk, scProductVersionPK);
416 }
417
418 public static boolean containsSCProductVersions(long pk)
419 throws com.liferay.portal.kernel.exception.SystemException {
420 return getPersistence().containsSCProductVersions(pk);
421 }
422
423 public static void addSCProductVersion(long pk, long scProductVersionPK)
424 throws com.liferay.portal.kernel.exception.SystemException {
425 getPersistence().addSCProductVersion(pk, scProductVersionPK);
426 }
427
428 public static void addSCProductVersion(long pk,
429 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
430 throws com.liferay.portal.kernel.exception.SystemException {
431 getPersistence().addSCProductVersion(pk, scProductVersion);
432 }
433
434 public static void addSCProductVersions(long pk, long[] scProductVersionPKs)
435 throws com.liferay.portal.kernel.exception.SystemException {
436 getPersistence().addSCProductVersions(pk, scProductVersionPKs);
437 }
438
439 public static void addSCProductVersions(long pk,
440 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
441 throws com.liferay.portal.kernel.exception.SystemException {
442 getPersistence().addSCProductVersions(pk, scProductVersions);
443 }
444
445 public static void clearSCProductVersions(long pk)
446 throws com.liferay.portal.kernel.exception.SystemException {
447 getPersistence().clearSCProductVersions(pk);
448 }
449
450 public static void removeSCProductVersion(long pk, long scProductVersionPK)
451 throws com.liferay.portal.kernel.exception.SystemException {
452 getPersistence().removeSCProductVersion(pk, scProductVersionPK);
453 }
454
455 public static void removeSCProductVersion(long pk,
456 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
457 throws com.liferay.portal.kernel.exception.SystemException {
458 getPersistence().removeSCProductVersion(pk, scProductVersion);
459 }
460
461 public static void removeSCProductVersions(long pk,
462 long[] scProductVersionPKs)
463 throws com.liferay.portal.kernel.exception.SystemException {
464 getPersistence().removeSCProductVersions(pk, scProductVersionPKs);
465 }
466
467 public static void removeSCProductVersions(long pk,
468 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
469 throws com.liferay.portal.kernel.exception.SystemException {
470 getPersistence().removeSCProductVersions(pk, scProductVersions);
471 }
472
473 public static void setSCProductVersions(long pk, long[] scProductVersionPKs)
474 throws com.liferay.portal.kernel.exception.SystemException {
475 getPersistence().setSCProductVersions(pk, scProductVersionPKs);
476 }
477
478 public static void setSCProductVersions(long pk,
479 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
480 throws com.liferay.portal.kernel.exception.SystemException {
481 getPersistence().setSCProductVersions(pk, scProductVersions);
482 }
483
484 public static SCFrameworkVersionPersistence getPersistence() {
485 if (_persistence == null) {
486 _persistence = (SCFrameworkVersionPersistence)PortalBeanLocatorUtil.locate(SCFrameworkVersionPersistence.class.getName());
487 }
488
489 return _persistence;
490 }
491
492 public void setPersistence(SCFrameworkVersionPersistence persistence) {
493 _persistence = persistence;
494 }
495
496 private static SCFrameworkVersionPersistence _persistence;
497 }