1
22
23 package com.liferay.portlet.softwarecatalog.service.persistence;
24
25
31 public class SCProductEntryUtil {
32 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry create(
33 long productEntryId) {
34 return getPersistence().create(productEntryId);
35 }
36
37 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry remove(
38 long productEntryId)
39 throws com.liferay.portal.SystemException,
40 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
41 return getPersistence().remove(productEntryId);
42 }
43
44 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry remove(
45 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
46 throws com.liferay.portal.SystemException {
47 return getPersistence().remove(scProductEntry);
48 }
49
50
53 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry update(
54 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
55 throws com.liferay.portal.SystemException {
56 return getPersistence().update(scProductEntry);
57 }
58
59
72 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry update(
73 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
74 boolean merge) throws com.liferay.portal.SystemException {
75 return getPersistence().update(scProductEntry, merge);
76 }
77
78 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateImpl(
79 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
80 boolean merge) throws com.liferay.portal.SystemException {
81 return getPersistence().updateImpl(scProductEntry, merge);
82 }
83
84 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByPrimaryKey(
85 long productEntryId)
86 throws com.liferay.portal.SystemException,
87 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
88 return getPersistence().findByPrimaryKey(productEntryId);
89 }
90
91 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByPrimaryKey(
92 long productEntryId) throws com.liferay.portal.SystemException {
93 return getPersistence().fetchByPrimaryKey(productEntryId);
94 }
95
96 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId(
97 long groupId) throws com.liferay.portal.SystemException {
98 return getPersistence().findByGroupId(groupId);
99 }
100
101 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId(
102 long groupId, int begin, int end)
103 throws com.liferay.portal.SystemException {
104 return getPersistence().findByGroupId(groupId, begin, end);
105 }
106
107 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId(
108 long groupId, int begin, int end,
109 com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException {
111 return getPersistence().findByGroupId(groupId, begin, end, obc);
112 }
113
114 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_First(
115 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
116 throws com.liferay.portal.SystemException,
117 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
118 return getPersistence().findByGroupId_First(groupId, obc);
119 }
120
121 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_Last(
122 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
123 throws com.liferay.portal.SystemException,
124 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
125 return getPersistence().findByGroupId_Last(groupId, obc);
126 }
127
128 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByGroupId_PrevAndNext(
129 long productEntryId, long groupId,
130 com.liferay.portal.kernel.util.OrderByComparator obc)
131 throws com.liferay.portal.SystemException,
132 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
133 return getPersistence()
134 .findByGroupId_PrevAndNext(productEntryId, groupId, obc);
135 }
136
137 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
138 long companyId) throws com.liferay.portal.SystemException {
139 return getPersistence().findByCompanyId(companyId);
140 }
141
142 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
143 long companyId, int begin, int end)
144 throws com.liferay.portal.SystemException {
145 return getPersistence().findByCompanyId(companyId, begin, end);
146 }
147
148 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
149 long companyId, int begin, int end,
150 com.liferay.portal.kernel.util.OrderByComparator obc)
151 throws com.liferay.portal.SystemException {
152 return getPersistence().findByCompanyId(companyId, begin, end, obc);
153 }
154
155 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByCompanyId_First(
156 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
157 throws com.liferay.portal.SystemException,
158 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
159 return getPersistence().findByCompanyId_First(companyId, obc);
160 }
161
162 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByCompanyId_Last(
163 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
164 throws com.liferay.portal.SystemException,
165 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
166 return getPersistence().findByCompanyId_Last(companyId, obc);
167 }
168
169 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByCompanyId_PrevAndNext(
170 long productEntryId, long companyId,
171 com.liferay.portal.kernel.util.OrderByComparator obc)
172 throws com.liferay.portal.SystemException,
173 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
174 return getPersistence()
175 .findByCompanyId_PrevAndNext(productEntryId, companyId, obc);
176 }
177
178 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
179 long groupId, long userId) throws com.liferay.portal.SystemException {
180 return getPersistence().findByG_U(groupId, userId);
181 }
182
183 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
184 long groupId, long userId, int begin, int end)
185 throws com.liferay.portal.SystemException {
186 return getPersistence().findByG_U(groupId, userId, begin, end);
187 }
188
189 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
190 long groupId, long userId, int begin, int end,
191 com.liferay.portal.kernel.util.OrderByComparator obc)
192 throws com.liferay.portal.SystemException {
193 return getPersistence().findByG_U(groupId, userId, begin, end, obc);
194 }
195
196 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_First(
197 long groupId, long userId,
198 com.liferay.portal.kernel.util.OrderByComparator obc)
199 throws com.liferay.portal.SystemException,
200 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
201 return getPersistence().findByG_U_First(groupId, userId, obc);
202 }
203
204 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_Last(
205 long groupId, long userId,
206 com.liferay.portal.kernel.util.OrderByComparator obc)
207 throws com.liferay.portal.SystemException,
208 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
209 return getPersistence().findByG_U_Last(groupId, userId, obc);
210 }
211
212 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByG_U_PrevAndNext(
213 long productEntryId, long groupId, long userId,
214 com.liferay.portal.kernel.util.OrderByComparator obc)
215 throws com.liferay.portal.SystemException,
216 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
217 return getPersistence()
218 .findByG_U_PrevAndNext(productEntryId, groupId, userId, obc);
219 }
220
221 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByRG_RA(
222 java.lang.String repoGroupId, java.lang.String repoArtifactId)
223 throws com.liferay.portal.SystemException,
224 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
225 return getPersistence().findByRG_RA(repoGroupId, repoArtifactId);
226 }
227
228 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByRG_RA(
229 java.lang.String repoGroupId, java.lang.String repoArtifactId)
230 throws com.liferay.portal.SystemException {
231 return getPersistence().fetchByRG_RA(repoGroupId, repoArtifactId);
232 }
233
234 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findWithDynamicQuery(
235 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
236 throws com.liferay.portal.SystemException {
237 return getPersistence().findWithDynamicQuery(queryInitializer);
238 }
239
240 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findWithDynamicQuery(
241 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
242 int begin, int end) throws com.liferay.portal.SystemException {
243 return getPersistence()
244 .findWithDynamicQuery(queryInitializer, begin, end);
245 }
246
247 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll()
248 throws com.liferay.portal.SystemException {
249 return getPersistence().findAll();
250 }
251
252 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll(
253 int begin, int end) throws com.liferay.portal.SystemException {
254 return getPersistence().findAll(begin, end);
255 }
256
257 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll(
258 int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
259 throws com.liferay.portal.SystemException {
260 return getPersistence().findAll(begin, end, obc);
261 }
262
263 public static void removeByGroupId(long groupId)
264 throws com.liferay.portal.SystemException {
265 getPersistence().removeByGroupId(groupId);
266 }
267
268 public static void removeByCompanyId(long companyId)
269 throws com.liferay.portal.SystemException {
270 getPersistence().removeByCompanyId(companyId);
271 }
272
273 public static void removeByG_U(long groupId, long userId)
274 throws com.liferay.portal.SystemException {
275 getPersistence().removeByG_U(groupId, userId);
276 }
277
278 public static void removeByRG_RA(java.lang.String repoGroupId,
279 java.lang.String repoArtifactId)
280 throws com.liferay.portal.SystemException,
281 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
282 getPersistence().removeByRG_RA(repoGroupId, repoArtifactId);
283 }
284
285 public static void removeAll() throws com.liferay.portal.SystemException {
286 getPersistence().removeAll();
287 }
288
289 public static int countByGroupId(long groupId)
290 throws com.liferay.portal.SystemException {
291 return getPersistence().countByGroupId(groupId);
292 }
293
294 public static int countByCompanyId(long companyId)
295 throws com.liferay.portal.SystemException {
296 return getPersistence().countByCompanyId(companyId);
297 }
298
299 public static int countByG_U(long groupId, long userId)
300 throws com.liferay.portal.SystemException {
301 return getPersistence().countByG_U(groupId, userId);
302 }
303
304 public static int countByRG_RA(java.lang.String repoGroupId,
305 java.lang.String repoArtifactId)
306 throws com.liferay.portal.SystemException {
307 return getPersistence().countByRG_RA(repoGroupId, repoArtifactId);
308 }
309
310 public static int countAll() throws com.liferay.portal.SystemException {
311 return getPersistence().countAll();
312 }
313
314 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
315 long pk)
316 throws com.liferay.portal.SystemException,
317 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
318 return getPersistence().getSCLicenses(pk);
319 }
320
321 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
322 long pk, int begin, int end)
323 throws com.liferay.portal.SystemException,
324 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
325 return getPersistence().getSCLicenses(pk, begin, end);
326 }
327
328 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
329 long pk, int begin, int end,
330 com.liferay.portal.kernel.util.OrderByComparator obc)
331 throws com.liferay.portal.SystemException,
332 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
333 return getPersistence().getSCLicenses(pk, begin, end, obc);
334 }
335
336 public static int getSCLicensesSize(long pk)
337 throws com.liferay.portal.SystemException {
338 return getPersistence().getSCLicensesSize(pk);
339 }
340
341 public static boolean containsSCLicense(long pk, long scLicensePK)
342 throws com.liferay.portal.SystemException {
343 return getPersistence().containsSCLicense(pk, scLicensePK);
344 }
345
346 public static boolean containsSCLicenses(long pk)
347 throws com.liferay.portal.SystemException {
348 return getPersistence().containsSCLicenses(pk);
349 }
350
351 public static void addSCLicense(long pk, long scLicensePK)
352 throws com.liferay.portal.SystemException,
353 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
354 com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
355 getPersistence().addSCLicense(pk, scLicensePK);
356 }
357
358 public static void addSCLicense(long pk,
359 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
360 throws com.liferay.portal.SystemException,
361 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
362 com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
363 getPersistence().addSCLicense(pk, scLicense);
364 }
365
366 public static void addSCLicenses(long pk, long[] scLicensePKs)
367 throws com.liferay.portal.SystemException,
368 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
369 com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
370 getPersistence().addSCLicenses(pk, scLicensePKs);
371 }
372
373 public static void addSCLicenses(long pk,
374 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
375 throws com.liferay.portal.SystemException,
376 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
377 com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
378 getPersistence().addSCLicenses(pk, scLicenses);
379 }
380
381 public static void clearSCLicenses(long pk)
382 throws com.liferay.portal.SystemException,
383 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
384 getPersistence().clearSCLicenses(pk);
385 }
386
387 public static void removeSCLicense(long pk, long scLicensePK)
388 throws com.liferay.portal.SystemException,
389 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
390 com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
391 getPersistence().removeSCLicense(pk, scLicensePK);
392 }
393
394 public static void removeSCLicense(long pk,
395 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
396 throws com.liferay.portal.SystemException,
397 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
398 com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
399 getPersistence().removeSCLicense(pk, scLicense);
400 }
401
402 public static void removeSCLicenses(long pk, long[] scLicensePKs)
403 throws com.liferay.portal.SystemException,
404 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
405 com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
406 getPersistence().removeSCLicenses(pk, scLicensePKs);
407 }
408
409 public static void removeSCLicenses(long pk,
410 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
411 throws com.liferay.portal.SystemException,
412 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
413 com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
414 getPersistence().removeSCLicenses(pk, scLicenses);
415 }
416
417 public static void setSCLicenses(long pk, long[] scLicensePKs)
418 throws com.liferay.portal.SystemException,
419 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
420 com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
421 getPersistence().setSCLicenses(pk, scLicensePKs);
422 }
423
424 public static void setSCLicenses(long pk,
425 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
426 throws com.liferay.portal.SystemException,
427 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
428 com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
429 getPersistence().setSCLicenses(pk, scLicenses);
430 }
431
432 public static SCProductEntryPersistence getPersistence() {
433 return _getUtil()._persistence;
434 }
435
436 public void setPersistence(SCProductEntryPersistence persistence) {
437 _persistence = persistence;
438 }
439
440 private static SCProductEntryUtil _getUtil() {
441 if (_util == null) {
442 _util = (SCProductEntryUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
443 }
444
445 return _util;
446 }
447
448 private static final String _UTIL = SCProductEntryUtil.class.getName();
449 private static SCProductEntryUtil _util;
450 private SCProductEntryPersistence _persistence;
451 }