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