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.SCProductEntry;
024
025 import java.util.List;
026
027
033 public class SCProductEntryUtil {
034
037 public static void clearCache() {
038 getPersistence().clearCache();
039 }
040
041
044 public static void clearCache(SCProductEntry scProductEntry) {
045 getPersistence().clearCache(scProductEntry);
046 }
047
048
051 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052 throws SystemException {
053 return getPersistence().countWithDynamicQuery(dynamicQuery);
054 }
055
056
059 public static List<SCProductEntry> findWithDynamicQuery(
060 DynamicQuery dynamicQuery) throws SystemException {
061 return getPersistence().findWithDynamicQuery(dynamicQuery);
062 }
063
064
067 public static List<SCProductEntry> 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<SCProductEntry> 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 SCProductEntry remove(SCProductEntry scProductEntry)
088 throws SystemException {
089 return getPersistence().remove(scProductEntry);
090 }
091
092
095 public static SCProductEntry update(SCProductEntry scProductEntry,
096 boolean merge) throws SystemException {
097 return getPersistence().update(scProductEntry, merge);
098 }
099
100
103 public static SCProductEntry update(SCProductEntry scProductEntry,
104 boolean merge, ServiceContext serviceContext) throws SystemException {
105 return getPersistence().update(scProductEntry, merge, serviceContext);
106 }
107
108 public static void cacheResult(
109 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry) {
110 getPersistence().cacheResult(scProductEntry);
111 }
112
113 public static void cacheResult(
114 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries) {
115 getPersistence().cacheResult(scProductEntries);
116 }
117
118 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry create(
119 long productEntryId) {
120 return getPersistence().create(productEntryId);
121 }
122
123 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry remove(
124 long productEntryId)
125 throws com.liferay.portal.kernel.exception.SystemException,
126 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
127 return getPersistence().remove(productEntryId);
128 }
129
130 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateImpl(
131 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
132 boolean merge)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getPersistence().updateImpl(scProductEntry, merge);
135 }
136
137 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByPrimaryKey(
138 long productEntryId)
139 throws com.liferay.portal.kernel.exception.SystemException,
140 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
141 return getPersistence().findByPrimaryKey(productEntryId);
142 }
143
144 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByPrimaryKey(
145 long productEntryId)
146 throws com.liferay.portal.kernel.exception.SystemException {
147 return getPersistence().fetchByPrimaryKey(productEntryId);
148 }
149
150 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId(
151 long groupId)
152 throws com.liferay.portal.kernel.exception.SystemException {
153 return getPersistence().findByGroupId(groupId);
154 }
155
156 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId(
157 long groupId, int start, int end)
158 throws com.liferay.portal.kernel.exception.SystemException {
159 return getPersistence().findByGroupId(groupId, start, end);
160 }
161
162 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId(
163 long groupId, int start, int end,
164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165 throws com.liferay.portal.kernel.exception.SystemException {
166 return getPersistence()
167 .findByGroupId(groupId, start, end, orderByComparator);
168 }
169
170 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_First(
171 long groupId,
172 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173 throws com.liferay.portal.kernel.exception.SystemException,
174 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
175 return getPersistence().findByGroupId_First(groupId, orderByComparator);
176 }
177
178 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_Last(
179 long groupId,
180 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181 throws com.liferay.portal.kernel.exception.SystemException,
182 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
183 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
184 }
185
186 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByGroupId_PrevAndNext(
187 long productEntryId, long groupId,
188 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
189 throws com.liferay.portal.kernel.exception.SystemException,
190 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
191 return getPersistence()
192 .findByGroupId_PrevAndNext(productEntryId, groupId,
193 orderByComparator);
194 }
195
196 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByGroupId(
197 long groupId)
198 throws com.liferay.portal.kernel.exception.SystemException {
199 return getPersistence().filterFindByGroupId(groupId);
200 }
201
202 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByGroupId(
203 long groupId, int start, int end)
204 throws com.liferay.portal.kernel.exception.SystemException {
205 return getPersistence().filterFindByGroupId(groupId, start, end);
206 }
207
208 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByGroupId(
209 long groupId, int start, int end,
210 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
211 throws com.liferay.portal.kernel.exception.SystemException {
212 return getPersistence()
213 .filterFindByGroupId(groupId, start, end, orderByComparator);
214 }
215
216 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
217 long companyId)
218 throws com.liferay.portal.kernel.exception.SystemException {
219 return getPersistence().findByCompanyId(companyId);
220 }
221
222 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
223 long companyId, int start, int end)
224 throws com.liferay.portal.kernel.exception.SystemException {
225 return getPersistence().findByCompanyId(companyId, start, end);
226 }
227
228 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
229 long companyId, int start, int end,
230 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
231 throws com.liferay.portal.kernel.exception.SystemException {
232 return getPersistence()
233 .findByCompanyId(companyId, start, end, orderByComparator);
234 }
235
236 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByCompanyId_First(
237 long companyId,
238 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
239 throws com.liferay.portal.kernel.exception.SystemException,
240 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
241 return getPersistence()
242 .findByCompanyId_First(companyId, orderByComparator);
243 }
244
245 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByCompanyId_Last(
246 long companyId,
247 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
248 throws com.liferay.portal.kernel.exception.SystemException,
249 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
250 return getPersistence()
251 .findByCompanyId_Last(companyId, orderByComparator);
252 }
253
254 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByCompanyId_PrevAndNext(
255 long productEntryId, long companyId,
256 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
257 throws com.liferay.portal.kernel.exception.SystemException,
258 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
259 return getPersistence()
260 .findByCompanyId_PrevAndNext(productEntryId, companyId,
261 orderByComparator);
262 }
263
264 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
265 long groupId, long userId)
266 throws com.liferay.portal.kernel.exception.SystemException {
267 return getPersistence().findByG_U(groupId, userId);
268 }
269
270 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
271 long groupId, long userId, int start, int end)
272 throws com.liferay.portal.kernel.exception.SystemException {
273 return getPersistence().findByG_U(groupId, userId, start, end);
274 }
275
276 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
277 long groupId, long userId, int start, int end,
278 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
279 throws com.liferay.portal.kernel.exception.SystemException {
280 return getPersistence()
281 .findByG_U(groupId, userId, start, end, orderByComparator);
282 }
283
284 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_First(
285 long groupId, long userId,
286 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
287 throws com.liferay.portal.kernel.exception.SystemException,
288 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
289 return getPersistence()
290 .findByG_U_First(groupId, userId, orderByComparator);
291 }
292
293 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_Last(
294 long groupId, long userId,
295 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
296 throws com.liferay.portal.kernel.exception.SystemException,
297 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
298 return getPersistence()
299 .findByG_U_Last(groupId, userId, orderByComparator);
300 }
301
302 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByG_U_PrevAndNext(
303 long productEntryId, long groupId, long userId,
304 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
305 throws com.liferay.portal.kernel.exception.SystemException,
306 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
307 return getPersistence()
308 .findByG_U_PrevAndNext(productEntryId, groupId, userId,
309 orderByComparator);
310 }
311
312 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByG_U(
313 long groupId, long userId)
314 throws com.liferay.portal.kernel.exception.SystemException {
315 return getPersistence().filterFindByG_U(groupId, userId);
316 }
317
318 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByG_U(
319 long groupId, long userId, int start, int end)
320 throws com.liferay.portal.kernel.exception.SystemException {
321 return getPersistence().filterFindByG_U(groupId, userId, start, end);
322 }
323
324 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByG_U(
325 long groupId, long userId, int start, int end,
326 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
327 throws com.liferay.portal.kernel.exception.SystemException {
328 return getPersistence()
329 .filterFindByG_U(groupId, userId, start, end,
330 orderByComparator);
331 }
332
333 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByRG_RA(
334 java.lang.String repoGroupId, java.lang.String repoArtifactId)
335 throws com.liferay.portal.kernel.exception.SystemException,
336 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
337 return getPersistence().findByRG_RA(repoGroupId, repoArtifactId);
338 }
339
340 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByRG_RA(
341 java.lang.String repoGroupId, java.lang.String repoArtifactId)
342 throws com.liferay.portal.kernel.exception.SystemException {
343 return getPersistence().fetchByRG_RA(repoGroupId, repoArtifactId);
344 }
345
346 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByRG_RA(
347 java.lang.String repoGroupId, java.lang.String repoArtifactId,
348 boolean retrieveFromCache)
349 throws com.liferay.portal.kernel.exception.SystemException {
350 return getPersistence()
351 .fetchByRG_RA(repoGroupId, repoArtifactId, retrieveFromCache);
352 }
353
354 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll()
355 throws com.liferay.portal.kernel.exception.SystemException {
356 return getPersistence().findAll();
357 }
358
359 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll(
360 int start, int end)
361 throws com.liferay.portal.kernel.exception.SystemException {
362 return getPersistence().findAll(start, end);
363 }
364
365 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll(
366 int start, int end,
367 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
368 throws com.liferay.portal.kernel.exception.SystemException {
369 return getPersistence().findAll(start, end, orderByComparator);
370 }
371
372 public static void removeByGroupId(long groupId)
373 throws com.liferay.portal.kernel.exception.SystemException {
374 getPersistence().removeByGroupId(groupId);
375 }
376
377 public static void removeByCompanyId(long companyId)
378 throws com.liferay.portal.kernel.exception.SystemException {
379 getPersistence().removeByCompanyId(companyId);
380 }
381
382 public static void removeByG_U(long groupId, long userId)
383 throws com.liferay.portal.kernel.exception.SystemException {
384 getPersistence().removeByG_U(groupId, userId);
385 }
386
387 public static void removeByRG_RA(java.lang.String repoGroupId,
388 java.lang.String repoArtifactId)
389 throws com.liferay.portal.kernel.exception.SystemException,
390 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
391 getPersistence().removeByRG_RA(repoGroupId, repoArtifactId);
392 }
393
394 public static void removeAll()
395 throws com.liferay.portal.kernel.exception.SystemException {
396 getPersistence().removeAll();
397 }
398
399 public static int countByGroupId(long groupId)
400 throws com.liferay.portal.kernel.exception.SystemException {
401 return getPersistence().countByGroupId(groupId);
402 }
403
404 public static int filterCountByGroupId(long groupId)
405 throws com.liferay.portal.kernel.exception.SystemException {
406 return getPersistence().filterCountByGroupId(groupId);
407 }
408
409 public static int countByCompanyId(long companyId)
410 throws com.liferay.portal.kernel.exception.SystemException {
411 return getPersistence().countByCompanyId(companyId);
412 }
413
414 public static int countByG_U(long groupId, long userId)
415 throws com.liferay.portal.kernel.exception.SystemException {
416 return getPersistence().countByG_U(groupId, userId);
417 }
418
419 public static int filterCountByG_U(long groupId, long userId)
420 throws com.liferay.portal.kernel.exception.SystemException {
421 return getPersistence().filterCountByG_U(groupId, userId);
422 }
423
424 public static int countByRG_RA(java.lang.String repoGroupId,
425 java.lang.String repoArtifactId)
426 throws com.liferay.portal.kernel.exception.SystemException {
427 return getPersistence().countByRG_RA(repoGroupId, repoArtifactId);
428 }
429
430 public static int countAll()
431 throws com.liferay.portal.kernel.exception.SystemException {
432 return getPersistence().countAll();
433 }
434
435 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
436 long pk) throws com.liferay.portal.kernel.exception.SystemException {
437 return getPersistence().getSCLicenses(pk);
438 }
439
440 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
441 long pk, int start, int end)
442 throws com.liferay.portal.kernel.exception.SystemException {
443 return getPersistence().getSCLicenses(pk, start, end);
444 }
445
446 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
447 long pk, int start, int end,
448 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
449 throws com.liferay.portal.kernel.exception.SystemException {
450 return getPersistence().getSCLicenses(pk, start, end, orderByComparator);
451 }
452
453 public static int getSCLicensesSize(long pk)
454 throws com.liferay.portal.kernel.exception.SystemException {
455 return getPersistence().getSCLicensesSize(pk);
456 }
457
458 public static boolean containsSCLicense(long pk, long scLicensePK)
459 throws com.liferay.portal.kernel.exception.SystemException {
460 return getPersistence().containsSCLicense(pk, scLicensePK);
461 }
462
463 public static boolean containsSCLicenses(long pk)
464 throws com.liferay.portal.kernel.exception.SystemException {
465 return getPersistence().containsSCLicenses(pk);
466 }
467
468 public static void addSCLicense(long pk, long scLicensePK)
469 throws com.liferay.portal.kernel.exception.SystemException {
470 getPersistence().addSCLicense(pk, scLicensePK);
471 }
472
473 public static void addSCLicense(long pk,
474 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
475 throws com.liferay.portal.kernel.exception.SystemException {
476 getPersistence().addSCLicense(pk, scLicense);
477 }
478
479 public static void addSCLicenses(long pk, long[] scLicensePKs)
480 throws com.liferay.portal.kernel.exception.SystemException {
481 getPersistence().addSCLicenses(pk, scLicensePKs);
482 }
483
484 public static void addSCLicenses(long pk,
485 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
486 throws com.liferay.portal.kernel.exception.SystemException {
487 getPersistence().addSCLicenses(pk, scLicenses);
488 }
489
490 public static void clearSCLicenses(long pk)
491 throws com.liferay.portal.kernel.exception.SystemException {
492 getPersistence().clearSCLicenses(pk);
493 }
494
495 public static void removeSCLicense(long pk, long scLicensePK)
496 throws com.liferay.portal.kernel.exception.SystemException {
497 getPersistence().removeSCLicense(pk, scLicensePK);
498 }
499
500 public static void removeSCLicense(long pk,
501 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
502 throws com.liferay.portal.kernel.exception.SystemException {
503 getPersistence().removeSCLicense(pk, scLicense);
504 }
505
506 public static void removeSCLicenses(long pk, long[] scLicensePKs)
507 throws com.liferay.portal.kernel.exception.SystemException {
508 getPersistence().removeSCLicenses(pk, scLicensePKs);
509 }
510
511 public static void removeSCLicenses(long pk,
512 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
513 throws com.liferay.portal.kernel.exception.SystemException {
514 getPersistence().removeSCLicenses(pk, scLicenses);
515 }
516
517 public static void setSCLicenses(long pk, long[] scLicensePKs)
518 throws com.liferay.portal.kernel.exception.SystemException {
519 getPersistence().setSCLicenses(pk, scLicensePKs);
520 }
521
522 public static void setSCLicenses(long pk,
523 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
524 throws com.liferay.portal.kernel.exception.SystemException {
525 getPersistence().setSCLicenses(pk, scLicenses);
526 }
527
528 public static SCProductEntryPersistence getPersistence() {
529 if (_persistence == null) {
530 _persistence = (SCProductEntryPersistence)PortalBeanLocatorUtil.locate(SCProductEntryPersistence.class.getName());
531 }
532
533 return _persistence;
534 }
535
536 public void setPersistence(SCProductEntryPersistence persistence) {
537 _persistence = persistence;
538 }
539
540 private static SCProductEntryPersistence _persistence;
541 }