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