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 obc)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return getPersistence().findByGroupId(groupId, start, end, obc);
137 }
138
139 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_First(
140 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
141 throws com.liferay.portal.kernel.exception.SystemException,
142 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
143 return getPersistence().findByGroupId_First(groupId, obc);
144 }
145
146 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_Last(
147 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
148 throws com.liferay.portal.kernel.exception.SystemException,
149 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
150 return getPersistence().findByGroupId_Last(groupId, obc);
151 }
152
153 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByGroupId_PrevAndNext(
154 long productEntryId, long groupId,
155 com.liferay.portal.kernel.util.OrderByComparator obc)
156 throws com.liferay.portal.kernel.exception.SystemException,
157 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
158 return getPersistence()
159 .findByGroupId_PrevAndNext(productEntryId, groupId, obc);
160 }
161
162 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
163 long companyId)
164 throws com.liferay.portal.kernel.exception.SystemException {
165 return getPersistence().findByCompanyId(companyId);
166 }
167
168 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
169 long companyId, int start, int end)
170 throws com.liferay.portal.kernel.exception.SystemException {
171 return getPersistence().findByCompanyId(companyId, start, end);
172 }
173
174 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
175 long companyId, int start, int end,
176 com.liferay.portal.kernel.util.OrderByComparator obc)
177 throws com.liferay.portal.kernel.exception.SystemException {
178 return getPersistence().findByCompanyId(companyId, start, end, obc);
179 }
180
181 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByCompanyId_First(
182 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
183 throws com.liferay.portal.kernel.exception.SystemException,
184 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
185 return getPersistence().findByCompanyId_First(companyId, obc);
186 }
187
188 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByCompanyId_Last(
189 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
190 throws com.liferay.portal.kernel.exception.SystemException,
191 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
192 return getPersistence().findByCompanyId_Last(companyId, obc);
193 }
194
195 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByCompanyId_PrevAndNext(
196 long productEntryId, long companyId,
197 com.liferay.portal.kernel.util.OrderByComparator obc)
198 throws com.liferay.portal.kernel.exception.SystemException,
199 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
200 return getPersistence()
201 .findByCompanyId_PrevAndNext(productEntryId, companyId, obc);
202 }
203
204 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
205 long groupId, long userId)
206 throws com.liferay.portal.kernel.exception.SystemException {
207 return getPersistence().findByG_U(groupId, userId);
208 }
209
210 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
211 long groupId, long userId, int start, int end)
212 throws com.liferay.portal.kernel.exception.SystemException {
213 return getPersistence().findByG_U(groupId, userId, start, end);
214 }
215
216 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
217 long groupId, long userId, int start, int end,
218 com.liferay.portal.kernel.util.OrderByComparator obc)
219 throws com.liferay.portal.kernel.exception.SystemException {
220 return getPersistence().findByG_U(groupId, userId, start, end, obc);
221 }
222
223 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_First(
224 long groupId, long userId,
225 com.liferay.portal.kernel.util.OrderByComparator obc)
226 throws com.liferay.portal.kernel.exception.SystemException,
227 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
228 return getPersistence().findByG_U_First(groupId, userId, obc);
229 }
230
231 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_Last(
232 long groupId, long userId,
233 com.liferay.portal.kernel.util.OrderByComparator obc)
234 throws com.liferay.portal.kernel.exception.SystemException,
235 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
236 return getPersistence().findByG_U_Last(groupId, userId, obc);
237 }
238
239 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByG_U_PrevAndNext(
240 long productEntryId, long groupId, long userId,
241 com.liferay.portal.kernel.util.OrderByComparator obc)
242 throws com.liferay.portal.kernel.exception.SystemException,
243 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
244 return getPersistence()
245 .findByG_U_PrevAndNext(productEntryId, groupId, userId, obc);
246 }
247
248 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry findByRG_RA(
249 java.lang.String repoGroupId, java.lang.String repoArtifactId)
250 throws com.liferay.portal.kernel.exception.SystemException,
251 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
252 return getPersistence().findByRG_RA(repoGroupId, repoArtifactId);
253 }
254
255 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByRG_RA(
256 java.lang.String repoGroupId, java.lang.String repoArtifactId)
257 throws com.liferay.portal.kernel.exception.SystemException {
258 return getPersistence().fetchByRG_RA(repoGroupId, repoArtifactId);
259 }
260
261 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByRG_RA(
262 java.lang.String repoGroupId, java.lang.String repoArtifactId,
263 boolean retrieveFromCache)
264 throws com.liferay.portal.kernel.exception.SystemException {
265 return getPersistence()
266 .fetchByRG_RA(repoGroupId, repoArtifactId, retrieveFromCache);
267 }
268
269 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll()
270 throws com.liferay.portal.kernel.exception.SystemException {
271 return getPersistence().findAll();
272 }
273
274 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll(
275 int start, int end)
276 throws com.liferay.portal.kernel.exception.SystemException {
277 return getPersistence().findAll(start, end);
278 }
279
280 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll(
281 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
282 throws com.liferay.portal.kernel.exception.SystemException {
283 return getPersistence().findAll(start, end, obc);
284 }
285
286 public static void removeByGroupId(long groupId)
287 throws com.liferay.portal.kernel.exception.SystemException {
288 getPersistence().removeByGroupId(groupId);
289 }
290
291 public static void removeByCompanyId(long companyId)
292 throws com.liferay.portal.kernel.exception.SystemException {
293 getPersistence().removeByCompanyId(companyId);
294 }
295
296 public static void removeByG_U(long groupId, long userId)
297 throws com.liferay.portal.kernel.exception.SystemException {
298 getPersistence().removeByG_U(groupId, userId);
299 }
300
301 public static void removeByRG_RA(java.lang.String repoGroupId,
302 java.lang.String repoArtifactId)
303 throws com.liferay.portal.kernel.exception.SystemException,
304 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException {
305 getPersistence().removeByRG_RA(repoGroupId, repoArtifactId);
306 }
307
308 public static void removeAll()
309 throws com.liferay.portal.kernel.exception.SystemException {
310 getPersistence().removeAll();
311 }
312
313 public static int countByGroupId(long groupId)
314 throws com.liferay.portal.kernel.exception.SystemException {
315 return getPersistence().countByGroupId(groupId);
316 }
317
318 public static int countByCompanyId(long companyId)
319 throws com.liferay.portal.kernel.exception.SystemException {
320 return getPersistence().countByCompanyId(companyId);
321 }
322
323 public static int countByG_U(long groupId, long userId)
324 throws com.liferay.portal.kernel.exception.SystemException {
325 return getPersistence().countByG_U(groupId, userId);
326 }
327
328 public static int countByRG_RA(java.lang.String repoGroupId,
329 java.lang.String repoArtifactId)
330 throws com.liferay.portal.kernel.exception.SystemException {
331 return getPersistence().countByRG_RA(repoGroupId, repoArtifactId);
332 }
333
334 public static int countAll()
335 throws com.liferay.portal.kernel.exception.SystemException {
336 return getPersistence().countAll();
337 }
338
339 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
340 long pk) throws com.liferay.portal.kernel.exception.SystemException {
341 return getPersistence().getSCLicenses(pk);
342 }
343
344 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
345 long pk, int start, int end)
346 throws com.liferay.portal.kernel.exception.SystemException {
347 return getPersistence().getSCLicenses(pk, start, end);
348 }
349
350 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
351 long pk, int start, int end,
352 com.liferay.portal.kernel.util.OrderByComparator obc)
353 throws com.liferay.portal.kernel.exception.SystemException {
354 return getPersistence().getSCLicenses(pk, start, end, obc);
355 }
356
357 public static int getSCLicensesSize(long pk)
358 throws com.liferay.portal.kernel.exception.SystemException {
359 return getPersistence().getSCLicensesSize(pk);
360 }
361
362 public static boolean containsSCLicense(long pk, long scLicensePK)
363 throws com.liferay.portal.kernel.exception.SystemException {
364 return getPersistence().containsSCLicense(pk, scLicensePK);
365 }
366
367 public static boolean containsSCLicenses(long pk)
368 throws com.liferay.portal.kernel.exception.SystemException {
369 return getPersistence().containsSCLicenses(pk);
370 }
371
372 public static void addSCLicense(long pk, long scLicensePK)
373 throws com.liferay.portal.kernel.exception.SystemException {
374 getPersistence().addSCLicense(pk, scLicensePK);
375 }
376
377 public static void addSCLicense(long pk,
378 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
379 throws com.liferay.portal.kernel.exception.SystemException {
380 getPersistence().addSCLicense(pk, scLicense);
381 }
382
383 public static void addSCLicenses(long pk, long[] scLicensePKs)
384 throws com.liferay.portal.kernel.exception.SystemException {
385 getPersistence().addSCLicenses(pk, scLicensePKs);
386 }
387
388 public static void addSCLicenses(long pk,
389 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
390 throws com.liferay.portal.kernel.exception.SystemException {
391 getPersistence().addSCLicenses(pk, scLicenses);
392 }
393
394 public static void clearSCLicenses(long pk)
395 throws com.liferay.portal.kernel.exception.SystemException {
396 getPersistence().clearSCLicenses(pk);
397 }
398
399 public static void removeSCLicense(long pk, long scLicensePK)
400 throws com.liferay.portal.kernel.exception.SystemException {
401 getPersistence().removeSCLicense(pk, scLicensePK);
402 }
403
404 public static void removeSCLicense(long pk,
405 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
406 throws com.liferay.portal.kernel.exception.SystemException {
407 getPersistence().removeSCLicense(pk, scLicense);
408 }
409
410 public static void removeSCLicenses(long pk, long[] scLicensePKs)
411 throws com.liferay.portal.kernel.exception.SystemException {
412 getPersistence().removeSCLicenses(pk, scLicensePKs);
413 }
414
415 public static void removeSCLicenses(long pk,
416 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
417 throws com.liferay.portal.kernel.exception.SystemException {
418 getPersistence().removeSCLicenses(pk, scLicenses);
419 }
420
421 public static void setSCLicenses(long pk, long[] scLicensePKs)
422 throws com.liferay.portal.kernel.exception.SystemException {
423 getPersistence().setSCLicenses(pk, scLicensePKs);
424 }
425
426 public static void setSCLicenses(long pk,
427 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
428 throws com.liferay.portal.kernel.exception.SystemException {
429 getPersistence().setSCLicenses(pk, scLicenses);
430 }
431
432 public static SCProductEntryPersistence getPersistence() {
433 if (_persistence == null) {
434 _persistence = (SCProductEntryPersistence)PortalBeanLocatorUtil.locate(SCProductEntryPersistence.class.getName());
435 }
436
437 return _persistence;
438 }
439
440 public void setPersistence(SCProductEntryPersistence persistence) {
441 _persistence = persistence;
442 }
443
444 private static SCProductEntryPersistence _persistence;
445 }