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.SCFrameworkVersion;
23
24 import java.util.List;
25
26
39 public class SCFrameworkVersionUtil {
40
43 public static void clearCache() {
44 getPersistence().clearCache();
45 }
46
47
50 public static void clearCache(SCFrameworkVersion scFrameworkVersion) {
51 getPersistence().clearCache(scFrameworkVersion);
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 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.SystemException,
113 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
114 return getPersistence().remove(frameworkVersionId);
115 }
116
117
120 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion update(
121 com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
122 throws com.liferay.portal.SystemException {
123 return getPersistence().update(scFrameworkVersion);
124 }
125
126 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateImpl(
127 com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion,
128 boolean merge) throws com.liferay.portal.SystemException {
129 return getPersistence().updateImpl(scFrameworkVersion, merge);
130 }
131
132 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByPrimaryKey(
133 long frameworkVersionId)
134 throws com.liferay.portal.SystemException,
135 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
136 return getPersistence().findByPrimaryKey(frameworkVersionId);
137 }
138
139 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion fetchByPrimaryKey(
140 long frameworkVersionId) throws com.liferay.portal.SystemException {
141 return getPersistence().fetchByPrimaryKey(frameworkVersionId);
142 }
143
144 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByGroupId(
145 long groupId) throws com.liferay.portal.SystemException {
146 return getPersistence().findByGroupId(groupId);
147 }
148
149 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByGroupId(
150 long groupId, int start, int end)
151 throws com.liferay.portal.SystemException {
152 return getPersistence().findByGroupId(groupId, start, end);
153 }
154
155 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByGroupId(
156 long groupId, int start, int end,
157 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
158 throws com.liferay.portal.SystemException {
159 return getPersistence()
160 .findByGroupId(groupId, start, end, orderByComparator);
161 }
162
163 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByGroupId_First(
164 long groupId,
165 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166 throws com.liferay.portal.SystemException,
167 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
168 return getPersistence().findByGroupId_First(groupId, orderByComparator);
169 }
170
171 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByGroupId_Last(
172 long groupId,
173 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
174 throws com.liferay.portal.SystemException,
175 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
176 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
177 }
178
179 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByGroupId_PrevAndNext(
180 long frameworkVersionId, long groupId,
181 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
182 throws com.liferay.portal.SystemException,
183 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
184 return getPersistence()
185 .findByGroupId_PrevAndNext(frameworkVersionId, groupId,
186 orderByComparator);
187 }
188
189 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
190 long companyId) throws com.liferay.portal.SystemException {
191 return getPersistence().findByCompanyId(companyId);
192 }
193
194 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
195 long companyId, int start, int end)
196 throws com.liferay.portal.SystemException {
197 return getPersistence().findByCompanyId(companyId, start, end);
198 }
199
200 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
201 long companyId, int start, int end,
202 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
203 throws com.liferay.portal.SystemException {
204 return getPersistence()
205 .findByCompanyId(companyId, start, end, orderByComparator);
206 }
207
208 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByCompanyId_First(
209 long companyId,
210 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
211 throws com.liferay.portal.SystemException,
212 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
213 return getPersistence()
214 .findByCompanyId_First(companyId, orderByComparator);
215 }
216
217 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByCompanyId_Last(
218 long companyId,
219 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
220 throws com.liferay.portal.SystemException,
221 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
222 return getPersistence()
223 .findByCompanyId_Last(companyId, orderByComparator);
224 }
225
226 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByCompanyId_PrevAndNext(
227 long frameworkVersionId, long companyId,
228 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
229 throws com.liferay.portal.SystemException,
230 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
231 return getPersistence()
232 .findByCompanyId_PrevAndNext(frameworkVersionId, companyId,
233 orderByComparator);
234 }
235
236 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
237 long groupId, boolean active) throws com.liferay.portal.SystemException {
238 return getPersistence().findByG_A(groupId, active);
239 }
240
241 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
242 long groupId, boolean active, int start, int end)
243 throws com.liferay.portal.SystemException {
244 return getPersistence().findByG_A(groupId, active, start, end);
245 }
246
247 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
248 long groupId, boolean active, int start, int end,
249 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
250 throws com.liferay.portal.SystemException {
251 return getPersistence()
252 .findByG_A(groupId, active, start, end, orderByComparator);
253 }
254
255 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByG_A_First(
256 long groupId, boolean active,
257 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
258 throws com.liferay.portal.SystemException,
259 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
260 return getPersistence()
261 .findByG_A_First(groupId, active, orderByComparator);
262 }
263
264 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByG_A_Last(
265 long groupId, boolean active,
266 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
267 throws com.liferay.portal.SystemException,
268 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
269 return getPersistence()
270 .findByG_A_Last(groupId, active, orderByComparator);
271 }
272
273 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByG_A_PrevAndNext(
274 long frameworkVersionId, long groupId, boolean active,
275 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
276 throws com.liferay.portal.SystemException,
277 com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException {
278 return getPersistence()
279 .findByG_A_PrevAndNext(frameworkVersionId, groupId, active,
280 orderByComparator);
281 }
282
283 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll()
284 throws com.liferay.portal.SystemException {
285 return getPersistence().findAll();
286 }
287
288 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll(
289 int start, int end) throws com.liferay.portal.SystemException {
290 return getPersistence().findAll(start, end);
291 }
292
293 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll(
294 int start, int end,
295 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
296 throws com.liferay.portal.SystemException {
297 return getPersistence().findAll(start, end, orderByComparator);
298 }
299
300 public static void removeByGroupId(long groupId)
301 throws com.liferay.portal.SystemException {
302 getPersistence().removeByGroupId(groupId);
303 }
304
305 public static void removeByCompanyId(long companyId)
306 throws com.liferay.portal.SystemException {
307 getPersistence().removeByCompanyId(companyId);
308 }
309
310 public static void removeByG_A(long groupId, boolean active)
311 throws com.liferay.portal.SystemException {
312 getPersistence().removeByG_A(groupId, active);
313 }
314
315 public static void removeAll() throws com.liferay.portal.SystemException {
316 getPersistence().removeAll();
317 }
318
319 public static int countByGroupId(long groupId)
320 throws com.liferay.portal.SystemException {
321 return getPersistence().countByGroupId(groupId);
322 }
323
324 public static int countByCompanyId(long companyId)
325 throws com.liferay.portal.SystemException {
326 return getPersistence().countByCompanyId(companyId);
327 }
328
329 public static int countByG_A(long groupId, boolean active)
330 throws com.liferay.portal.SystemException {
331 return getPersistence().countByG_A(groupId, active);
332 }
333
334 public static int countAll() throws com.liferay.portal.SystemException {
335 return getPersistence().countAll();
336 }
337
338 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
339 long pk) throws com.liferay.portal.SystemException {
340 return getPersistence().getSCProductVersions(pk);
341 }
342
343 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
344 long pk, int start, int end) throws com.liferay.portal.SystemException {
345 return getPersistence().getSCProductVersions(pk, start, end);
346 }
347
348 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
349 long pk, int start, int end,
350 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
351 throws com.liferay.portal.SystemException {
352 return getPersistence()
353 .getSCProductVersions(pk, start, end, orderByComparator);
354 }
355
356 public static int getSCProductVersionsSize(long pk)
357 throws com.liferay.portal.SystemException {
358 return getPersistence().getSCProductVersionsSize(pk);
359 }
360
361 public static boolean containsSCProductVersion(long pk,
362 long scProductVersionPK) throws com.liferay.portal.SystemException {
363 return getPersistence().containsSCProductVersion(pk, scProductVersionPK);
364 }
365
366 public static boolean containsSCProductVersions(long pk)
367 throws com.liferay.portal.SystemException {
368 return getPersistence().containsSCProductVersions(pk);
369 }
370
371 public static void addSCProductVersion(long pk, long scProductVersionPK)
372 throws com.liferay.portal.SystemException {
373 getPersistence().addSCProductVersion(pk, scProductVersionPK);
374 }
375
376 public static void addSCProductVersion(long pk,
377 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
378 throws com.liferay.portal.SystemException {
379 getPersistence().addSCProductVersion(pk, scProductVersion);
380 }
381
382 public static void addSCProductVersions(long pk, long[] scProductVersionPKs)
383 throws com.liferay.portal.SystemException {
384 getPersistence().addSCProductVersions(pk, scProductVersionPKs);
385 }
386
387 public static void addSCProductVersions(long pk,
388 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
389 throws com.liferay.portal.SystemException {
390 getPersistence().addSCProductVersions(pk, scProductVersions);
391 }
392
393 public static void clearSCProductVersions(long pk)
394 throws com.liferay.portal.SystemException {
395 getPersistence().clearSCProductVersions(pk);
396 }
397
398 public static void removeSCProductVersion(long pk, long scProductVersionPK)
399 throws com.liferay.portal.SystemException {
400 getPersistence().removeSCProductVersion(pk, scProductVersionPK);
401 }
402
403 public static void removeSCProductVersion(long pk,
404 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
405 throws com.liferay.portal.SystemException {
406 getPersistence().removeSCProductVersion(pk, scProductVersion);
407 }
408
409 public static void removeSCProductVersions(long pk,
410 long[] scProductVersionPKs) throws com.liferay.portal.SystemException {
411 getPersistence().removeSCProductVersions(pk, scProductVersionPKs);
412 }
413
414 public static void removeSCProductVersions(long pk,
415 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
416 throws com.liferay.portal.SystemException {
417 getPersistence().removeSCProductVersions(pk, scProductVersions);
418 }
419
420 public static void setSCProductVersions(long pk, long[] scProductVersionPKs)
421 throws com.liferay.portal.SystemException {
422 getPersistence().setSCProductVersions(pk, scProductVersionPKs);
423 }
424
425 public static void setSCProductVersions(long pk,
426 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
427 throws com.liferay.portal.SystemException {
428 getPersistence().setSCProductVersions(pk, scProductVersions);
429 }
430
431 public static SCFrameworkVersionPersistence getPersistence() {
432 if (_persistence == null) {
433 _persistence = (SCFrameworkVersionPersistence)PortalBeanLocatorUtil.locate(SCFrameworkVersionPersistence.class.getName());
434
435 ReferenceRegistry.registerReference(SCFrameworkVersionUtil.class,
436 "_persistence");
437 }
438
439 return _persistence;
440 }
441
442 public void setPersistence(SCFrameworkVersionPersistence persistence) {
443 _persistence = persistence;
444
445 ReferenceRegistry.registerReference(SCFrameworkVersionUtil.class,
446 "_persistence");
447 }
448
449 private static SCFrameworkVersionPersistence _persistence;
450 }