001
014
015 package com.liferay.portlet.softwarecatalog.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019 import com.liferay.portal.kernel.exception.SystemException;
020 import com.liferay.portal.kernel.util.OrderByComparator;
021 import com.liferay.portal.service.ServiceContext;
022
023 import com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion;
024
025 import java.util.List;
026
027
033 public class SCFrameworkVersionUtil {
034
037 public static void clearCache() {
038 getPersistence().clearCache();
039 }
040
041
044 public static void clearCache(SCFrameworkVersion scFrameworkVersion) {
045 getPersistence().clearCache(scFrameworkVersion);
046 }
047
048
051 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052 throws SystemException {
053 return getPersistence().countWithDynamicQuery(dynamicQuery);
054 }
055
056
059 public static List<SCFrameworkVersion> findWithDynamicQuery(
060 DynamicQuery dynamicQuery) throws SystemException {
061 return getPersistence().findWithDynamicQuery(dynamicQuery);
062 }
063
064
067 public static List<SCFrameworkVersion> findWithDynamicQuery(
068 DynamicQuery dynamicQuery, int start, int end)
069 throws SystemException {
070 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071 }
072
073
076 public static List<SCFrameworkVersion> findWithDynamicQuery(
077 DynamicQuery dynamicQuery, int start, int end,
078 OrderByComparator orderByComparator) throws SystemException {
079 return getPersistence()
080 .findWithDynamicQuery(dynamicQuery, start, end,
081 orderByComparator);
082 }
083
084
087 public static SCFrameworkVersion remove(
088 SCFrameworkVersion scFrameworkVersion) throws SystemException {
089 return getPersistence().remove(scFrameworkVersion);
090 }
091
092
095 public static SCFrameworkVersion update(
096 SCFrameworkVersion scFrameworkVersion, boolean merge)
097 throws SystemException {
098 return getPersistence().update(scFrameworkVersion, merge);
099 }
100
101
104 public static SCFrameworkVersion update(
105 SCFrameworkVersion scFrameworkVersion, boolean merge,
106 ServiceContext serviceContext) throws SystemException {
107 return getPersistence().update(scFrameworkVersion, merge, serviceContext);
108 }
109
110 public static void cacheResult(
111 com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion) {
112 getPersistence().cacheResult(scFrameworkVersion);
113 }
114
115 public static void cacheResult(
116 java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions) {
117 getPersistence().cacheResult(scFrameworkVersions);
118 }
119
120 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion create(
121 long frameworkVersionId) {
122 return getPersistence().create(frameworkVersionId);
123 }
124
125 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion remove(
126 long frameworkVersionId)
127 throws com.liferay.portal.kernel.exception.SystemException,
128 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
129 return getPersistence().remove(frameworkVersionId);
130 }
131
132 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateImpl(
133 com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion,
134 boolean merge)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return getPersistence().updateImpl(scFrameworkVersion, merge);
137 }
138
139 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByPrimaryKey(
140 long frameworkVersionId)
141 throws com.liferay.portal.kernel.exception.SystemException,
142 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
143 return getPersistence().findByPrimaryKey(frameworkVersionId);
144 }
145
146 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion fetchByPrimaryKey(
147 long frameworkVersionId)
148 throws com.liferay.portal.kernel.exception.SystemException {
149 return getPersistence().fetchByPrimaryKey(frameworkVersionId);
150 }
151
152 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByGroupId(
153 long groupId)
154 throws com.liferay.portal.kernel.exception.SystemException {
155 return getPersistence().findByGroupId(groupId);
156 }
157
158 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByGroupId(
159 long groupId, int start, int end)
160 throws com.liferay.portal.kernel.exception.SystemException {
161 return getPersistence().findByGroupId(groupId, start, end);
162 }
163
164 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByGroupId(
165 long groupId, int start, int end,
166 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167 throws com.liferay.portal.kernel.exception.SystemException {
168 return getPersistence()
169 .findByGroupId(groupId, start, end, orderByComparator);
170 }
171
172 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByGroupId_First(
173 long groupId,
174 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
175 throws com.liferay.portal.kernel.exception.SystemException,
176 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
177 return getPersistence().findByGroupId_First(groupId, orderByComparator);
178 }
179
180 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByGroupId_Last(
181 long groupId,
182 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
183 throws com.liferay.portal.kernel.exception.SystemException,
184 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
185 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
186 }
187
188 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByGroupId_PrevAndNext(
189 long frameworkVersionId, long groupId,
190 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
191 throws com.liferay.portal.kernel.exception.SystemException,
192 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
193 return getPersistence()
194 .findByGroupId_PrevAndNext(frameworkVersionId, groupId,
195 orderByComparator);
196 }
197
198 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> filterFindByGroupId(
199 long groupId)
200 throws com.liferay.portal.kernel.exception.SystemException {
201 return getPersistence().filterFindByGroupId(groupId);
202 }
203
204 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> filterFindByGroupId(
205 long groupId, int start, int end)
206 throws com.liferay.portal.kernel.exception.SystemException {
207 return getPersistence().filterFindByGroupId(groupId, start, end);
208 }
209
210 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> filterFindByGroupId(
211 long groupId, int start, int end,
212 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
213 throws com.liferay.portal.kernel.exception.SystemException {
214 return getPersistence()
215 .filterFindByGroupId(groupId, start, end, orderByComparator);
216 }
217
218 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
219 long companyId)
220 throws com.liferay.portal.kernel.exception.SystemException {
221 return getPersistence().findByCompanyId(companyId);
222 }
223
224 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
225 long companyId, int start, int end)
226 throws com.liferay.portal.kernel.exception.SystemException {
227 return getPersistence().findByCompanyId(companyId, start, end);
228 }
229
230 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
231 long companyId, int start, int end,
232 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
233 throws com.liferay.portal.kernel.exception.SystemException {
234 return getPersistence()
235 .findByCompanyId(companyId, start, end, orderByComparator);
236 }
237
238 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByCompanyId_First(
239 long companyId,
240 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
241 throws com.liferay.portal.kernel.exception.SystemException,
242 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
243 return getPersistence()
244 .findByCompanyId_First(companyId, orderByComparator);
245 }
246
247 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByCompanyId_Last(
248 long companyId,
249 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
250 throws com.liferay.portal.kernel.exception.SystemException,
251 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
252 return getPersistence()
253 .findByCompanyId_Last(companyId, orderByComparator);
254 }
255
256 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByCompanyId_PrevAndNext(
257 long frameworkVersionId, long companyId,
258 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
259 throws com.liferay.portal.kernel.exception.SystemException,
260 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
261 return getPersistence()
262 .findByCompanyId_PrevAndNext(frameworkVersionId, companyId,
263 orderByComparator);
264 }
265
266 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
267 long groupId, boolean active)
268 throws com.liferay.portal.kernel.exception.SystemException {
269 return getPersistence().findByG_A(groupId, active);
270 }
271
272 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
273 long groupId, boolean active, int start, int end)
274 throws com.liferay.portal.kernel.exception.SystemException {
275 return getPersistence().findByG_A(groupId, active, start, end);
276 }
277
278 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
279 long groupId, boolean active, int start, int end,
280 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
281 throws com.liferay.portal.kernel.exception.SystemException {
282 return getPersistence()
283 .findByG_A(groupId, active, start, end, orderByComparator);
284 }
285
286 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByG_A_First(
287 long groupId, boolean active,
288 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
289 throws com.liferay.portal.kernel.exception.SystemException,
290 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
291 return getPersistence()
292 .findByG_A_First(groupId, active, orderByComparator);
293 }
294
295 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByG_A_Last(
296 long groupId, boolean active,
297 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
298 throws com.liferay.portal.kernel.exception.SystemException,
299 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
300 return getPersistence()
301 .findByG_A_Last(groupId, active, orderByComparator);
302 }
303
304 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByG_A_PrevAndNext(
305 long frameworkVersionId, long groupId, boolean active,
306 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
307 throws com.liferay.portal.kernel.exception.SystemException,
308 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
309 return getPersistence()
310 .findByG_A_PrevAndNext(frameworkVersionId, groupId, active,
311 orderByComparator);
312 }
313
314 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> filterFindByG_A(
315 long groupId, boolean active)
316 throws com.liferay.portal.kernel.exception.SystemException {
317 return getPersistence().filterFindByG_A(groupId, active);
318 }
319
320 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> filterFindByG_A(
321 long groupId, boolean active, int start, int end)
322 throws com.liferay.portal.kernel.exception.SystemException {
323 return getPersistence().filterFindByG_A(groupId, active, start, end);
324 }
325
326 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> filterFindByG_A(
327 long groupId, boolean active, int start, int end,
328 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
329 throws com.liferay.portal.kernel.exception.SystemException {
330 return getPersistence()
331 .filterFindByG_A(groupId, active, start, end,
332 orderByComparator);
333 }
334
335 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll()
336 throws com.liferay.portal.kernel.exception.SystemException {
337 return getPersistence().findAll();
338 }
339
340 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll(
341 int start, int end)
342 throws com.liferay.portal.kernel.exception.SystemException {
343 return getPersistence().findAll(start, end);
344 }
345
346 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll(
347 int start, int end,
348 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
349 throws com.liferay.portal.kernel.exception.SystemException {
350 return getPersistence().findAll(start, end, orderByComparator);
351 }
352
353 public static void removeByGroupId(long groupId)
354 throws com.liferay.portal.kernel.exception.SystemException {
355 getPersistence().removeByGroupId(groupId);
356 }
357
358 public static void removeByCompanyId(long companyId)
359 throws com.liferay.portal.kernel.exception.SystemException {
360 getPersistence().removeByCompanyId(companyId);
361 }
362
363 public static void removeByG_A(long groupId, boolean active)
364 throws com.liferay.portal.kernel.exception.SystemException {
365 getPersistence().removeByG_A(groupId, active);
366 }
367
368 public static void removeAll()
369 throws com.liferay.portal.kernel.exception.SystemException {
370 getPersistence().removeAll();
371 }
372
373 public static int countByGroupId(long groupId)
374 throws com.liferay.portal.kernel.exception.SystemException {
375 return getPersistence().countByGroupId(groupId);
376 }
377
378 public static int filterCountByGroupId(long groupId)
379 throws com.liferay.portal.kernel.exception.SystemException {
380 return getPersistence().filterCountByGroupId(groupId);
381 }
382
383 public static int countByCompanyId(long companyId)
384 throws com.liferay.portal.kernel.exception.SystemException {
385 return getPersistence().countByCompanyId(companyId);
386 }
387
388 public static int countByG_A(long groupId, boolean active)
389 throws com.liferay.portal.kernel.exception.SystemException {
390 return getPersistence().countByG_A(groupId, active);
391 }
392
393 public static int filterCountByG_A(long groupId, boolean active)
394 throws com.liferay.portal.kernel.exception.SystemException {
395 return getPersistence().filterCountByG_A(groupId, active);
396 }
397
398 public static int countAll()
399 throws com.liferay.portal.kernel.exception.SystemException {
400 return getPersistence().countAll();
401 }
402
403 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
404 long pk) throws com.liferay.portal.kernel.exception.SystemException {
405 return getPersistence().getSCProductVersions(pk);
406 }
407
408 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
409 long pk, int start, int end)
410 throws com.liferay.portal.kernel.exception.SystemException {
411 return getPersistence().getSCProductVersions(pk, start, end);
412 }
413
414 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
415 long pk, int start, int end,
416 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
417 throws com.liferay.portal.kernel.exception.SystemException {
418 return getPersistence()
419 .getSCProductVersions(pk, start, end, orderByComparator);
420 }
421
422 public static int getSCProductVersionsSize(long pk)
423 throws com.liferay.portal.kernel.exception.SystemException {
424 return getPersistence().getSCProductVersionsSize(pk);
425 }
426
427 public static boolean containsSCProductVersion(long pk,
428 long scProductVersionPK)
429 throws com.liferay.portal.kernel.exception.SystemException {
430 return getPersistence().containsSCProductVersion(pk, scProductVersionPK);
431 }
432
433 public static boolean containsSCProductVersions(long pk)
434 throws com.liferay.portal.kernel.exception.SystemException {
435 return getPersistence().containsSCProductVersions(pk);
436 }
437
438 public static void addSCProductVersion(long pk, long scProductVersionPK)
439 throws com.liferay.portal.kernel.exception.SystemException {
440 getPersistence().addSCProductVersion(pk, scProductVersionPK);
441 }
442
443 public static void addSCProductVersion(long pk,
444 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
445 throws com.liferay.portal.kernel.exception.SystemException {
446 getPersistence().addSCProductVersion(pk, scProductVersion);
447 }
448
449 public static void addSCProductVersions(long pk, long[] scProductVersionPKs)
450 throws com.liferay.portal.kernel.exception.SystemException {
451 getPersistence().addSCProductVersions(pk, scProductVersionPKs);
452 }
453
454 public static void addSCProductVersions(long pk,
455 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
456 throws com.liferay.portal.kernel.exception.SystemException {
457 getPersistence().addSCProductVersions(pk, scProductVersions);
458 }
459
460 public static void clearSCProductVersions(long pk)
461 throws com.liferay.portal.kernel.exception.SystemException {
462 getPersistence().clearSCProductVersions(pk);
463 }
464
465 public static void removeSCProductVersion(long pk, long scProductVersionPK)
466 throws com.liferay.portal.kernel.exception.SystemException {
467 getPersistence().removeSCProductVersion(pk, scProductVersionPK);
468 }
469
470 public static void removeSCProductVersion(long pk,
471 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
472 throws com.liferay.portal.kernel.exception.SystemException {
473 getPersistence().removeSCProductVersion(pk, scProductVersion);
474 }
475
476 public static void removeSCProductVersions(long pk,
477 long[] scProductVersionPKs)
478 throws com.liferay.portal.kernel.exception.SystemException {
479 getPersistence().removeSCProductVersions(pk, scProductVersionPKs);
480 }
481
482 public static void removeSCProductVersions(long pk,
483 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
484 throws com.liferay.portal.kernel.exception.SystemException {
485 getPersistence().removeSCProductVersions(pk, scProductVersions);
486 }
487
488 public static void setSCProductVersions(long pk, long[] scProductVersionPKs)
489 throws com.liferay.portal.kernel.exception.SystemException {
490 getPersistence().setSCProductVersions(pk, scProductVersionPKs);
491 }
492
493 public static void setSCProductVersions(long pk,
494 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
495 throws com.liferay.portal.kernel.exception.SystemException {
496 getPersistence().setSCProductVersions(pk, scProductVersions);
497 }
498
499 public static SCFrameworkVersionPersistence getPersistence() {
500 if (_persistence == null) {
501 _persistence = (SCFrameworkVersionPersistence)PortalBeanLocatorUtil.locate(SCFrameworkVersionPersistence.class.getName());
502 }
503
504 return _persistence;
505 }
506
507 public void setPersistence(SCFrameworkVersionPersistence persistence) {
508 _persistence = persistence;
509 }
510
511 private static SCFrameworkVersionPersistence _persistence;
512 }