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