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 import com.liferay.portal.kernel.util.ReferenceRegistry;
21
22 import com.liferay.portlet.softwarecatalog.model.SCLicense;
23
24 import java.util.List;
25
26
39 public class SCLicenseUtil {
40
43 public static void clearCache() {
44 getPersistence().clearCache();
45 }
46
47
50 public static void clearCache(SCLicense scLicense) {
51 getPersistence().clearCache(scLicense);
52 }
53
54
57 public int countWithDynamicQuery(DynamicQuery dynamicQuery)
58 throws SystemException {
59 return getPersistence().countWithDynamicQuery(dynamicQuery);
60 }
61
62
65 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
66 throws SystemException {
67 return getPersistence().findWithDynamicQuery(dynamicQuery);
68 }
69
70
73 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
74 int start, int end) throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static SCLicense remove(SCLicense scLicense)
82 throws SystemException {
83 return getPersistence().remove(scLicense);
84 }
85
86
89 public static SCLicense update(SCLicense scLicense, boolean merge)
90 throws SystemException {
91 return getPersistence().update(scLicense, merge);
92 }
93
94 public static void cacheResult(
95 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense) {
96 getPersistence().cacheResult(scLicense);
97 }
98
99 public static void cacheResult(
100 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses) {
101 getPersistence().cacheResult(scLicenses);
102 }
103
104 public static com.liferay.portlet.softwarecatalog.model.SCLicense create(
105 long licenseId) {
106 return getPersistence().create(licenseId);
107 }
108
109 public static com.liferay.portlet.softwarecatalog.model.SCLicense remove(
110 long licenseId)
111 throws com.liferay.portal.SystemException,
112 com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
113 return getPersistence().remove(licenseId);
114 }
115
116
119 public static com.liferay.portlet.softwarecatalog.model.SCLicense update(
120 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
121 throws com.liferay.portal.SystemException {
122 return getPersistence().update(scLicense);
123 }
124
125 public static com.liferay.portlet.softwarecatalog.model.SCLicense updateImpl(
126 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense,
127 boolean merge) throws com.liferay.portal.SystemException {
128 return getPersistence().updateImpl(scLicense, merge);
129 }
130
131 public static com.liferay.portlet.softwarecatalog.model.SCLicense findByPrimaryKey(
132 long licenseId)
133 throws com.liferay.portal.SystemException,
134 com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
135 return getPersistence().findByPrimaryKey(licenseId);
136 }
137
138 public static com.liferay.portlet.softwarecatalog.model.SCLicense fetchByPrimaryKey(
139 long licenseId) throws com.liferay.portal.SystemException {
140 return getPersistence().fetchByPrimaryKey(licenseId);
141 }
142
143 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(
144 boolean active) throws com.liferay.portal.SystemException {
145 return getPersistence().findByActive(active);
146 }
147
148 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(
149 boolean active, int start, int end)
150 throws com.liferay.portal.SystemException {
151 return getPersistence().findByActive(active, start, end);
152 }
153
154 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(
155 boolean active, int start, int end,
156 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157 throws com.liferay.portal.SystemException {
158 return getPersistence()
159 .findByActive(active, start, end, orderByComparator);
160 }
161
162 public static com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_First(
163 boolean active,
164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165 throws com.liferay.portal.SystemException,
166 com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
167 return getPersistence().findByActive_First(active, orderByComparator);
168 }
169
170 public static com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_Last(
171 boolean active,
172 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173 throws com.liferay.portal.SystemException,
174 com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
175 return getPersistence().findByActive_Last(active, orderByComparator);
176 }
177
178 public static com.liferay.portlet.softwarecatalog.model.SCLicense[] findByActive_PrevAndNext(
179 long licenseId, boolean active,
180 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181 throws com.liferay.portal.SystemException,
182 com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
183 return getPersistence()
184 .findByActive_PrevAndNext(licenseId, active,
185 orderByComparator);
186 }
187
188 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(
189 boolean active, boolean recommended)
190 throws com.liferay.portal.SystemException {
191 return getPersistence().findByA_R(active, recommended);
192 }
193
194 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(
195 boolean active, boolean recommended, int start, int end)
196 throws com.liferay.portal.SystemException {
197 return getPersistence().findByA_R(active, recommended, start, end);
198 }
199
200 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(
201 boolean active, boolean recommended, int start, int end,
202 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
203 throws com.liferay.portal.SystemException {
204 return getPersistence()
205 .findByA_R(active, recommended, start, end, orderByComparator);
206 }
207
208 public static com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_First(
209 boolean active, boolean recommended,
210 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
211 throws com.liferay.portal.SystemException,
212 com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
213 return getPersistence()
214 .findByA_R_First(active, recommended, orderByComparator);
215 }
216
217 public static com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_Last(
218 boolean active, boolean recommended,
219 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
220 throws com.liferay.portal.SystemException,
221 com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
222 return getPersistence()
223 .findByA_R_Last(active, recommended, orderByComparator);
224 }
225
226 public static com.liferay.portlet.softwarecatalog.model.SCLicense[] findByA_R_PrevAndNext(
227 long licenseId, boolean active, boolean recommended,
228 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
229 throws com.liferay.portal.SystemException,
230 com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
231 return getPersistence()
232 .findByA_R_PrevAndNext(licenseId, active, recommended,
233 orderByComparator);
234 }
235
236 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll()
237 throws com.liferay.portal.SystemException {
238 return getPersistence().findAll();
239 }
240
241 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll(
242 int start, int end) throws com.liferay.portal.SystemException {
243 return getPersistence().findAll(start, end);
244 }
245
246 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll(
247 int start, int end,
248 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
249 throws com.liferay.portal.SystemException {
250 return getPersistence().findAll(start, end, orderByComparator);
251 }
252
253 public static void removeByActive(boolean active)
254 throws com.liferay.portal.SystemException {
255 getPersistence().removeByActive(active);
256 }
257
258 public static void removeByA_R(boolean active, boolean recommended)
259 throws com.liferay.portal.SystemException {
260 getPersistence().removeByA_R(active, recommended);
261 }
262
263 public static void removeAll() throws com.liferay.portal.SystemException {
264 getPersistence().removeAll();
265 }
266
267 public static int countByActive(boolean active)
268 throws com.liferay.portal.SystemException {
269 return getPersistence().countByActive(active);
270 }
271
272 public static int countByA_R(boolean active, boolean recommended)
273 throws com.liferay.portal.SystemException {
274 return getPersistence().countByA_R(active, recommended);
275 }
276
277 public static int countAll() throws com.liferay.portal.SystemException {
278 return getPersistence().countAll();
279 }
280
281 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
282 long pk) throws com.liferay.portal.SystemException {
283 return getPersistence().getSCProductEntries(pk);
284 }
285
286 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
287 long pk, int start, int end) throws com.liferay.portal.SystemException {
288 return getPersistence().getSCProductEntries(pk, start, end);
289 }
290
291 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
292 long pk, int start, int end,
293 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
294 throws com.liferay.portal.SystemException {
295 return getPersistence()
296 .getSCProductEntries(pk, start, end, orderByComparator);
297 }
298
299 public static int getSCProductEntriesSize(long pk)
300 throws com.liferay.portal.SystemException {
301 return getPersistence().getSCProductEntriesSize(pk);
302 }
303
304 public static boolean containsSCProductEntry(long pk, long scProductEntryPK)
305 throws com.liferay.portal.SystemException {
306 return getPersistence().containsSCProductEntry(pk, scProductEntryPK);
307 }
308
309 public static boolean containsSCProductEntries(long pk)
310 throws com.liferay.portal.SystemException {
311 return getPersistence().containsSCProductEntries(pk);
312 }
313
314 public static void addSCProductEntry(long pk, long scProductEntryPK)
315 throws com.liferay.portal.SystemException {
316 getPersistence().addSCProductEntry(pk, scProductEntryPK);
317 }
318
319 public static void addSCProductEntry(long pk,
320 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
321 throws com.liferay.portal.SystemException {
322 getPersistence().addSCProductEntry(pk, scProductEntry);
323 }
324
325 public static void addSCProductEntries(long pk, long[] scProductEntryPKs)
326 throws com.liferay.portal.SystemException {
327 getPersistence().addSCProductEntries(pk, scProductEntryPKs);
328 }
329
330 public static void addSCProductEntries(long pk,
331 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
332 throws com.liferay.portal.SystemException {
333 getPersistence().addSCProductEntries(pk, scProductEntries);
334 }
335
336 public static void clearSCProductEntries(long pk)
337 throws com.liferay.portal.SystemException {
338 getPersistence().clearSCProductEntries(pk);
339 }
340
341 public static void removeSCProductEntry(long pk, long scProductEntryPK)
342 throws com.liferay.portal.SystemException {
343 getPersistence().removeSCProductEntry(pk, scProductEntryPK);
344 }
345
346 public static void removeSCProductEntry(long pk,
347 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
348 throws com.liferay.portal.SystemException {
349 getPersistence().removeSCProductEntry(pk, scProductEntry);
350 }
351
352 public static void removeSCProductEntries(long pk, long[] scProductEntryPKs)
353 throws com.liferay.portal.SystemException {
354 getPersistence().removeSCProductEntries(pk, scProductEntryPKs);
355 }
356
357 public static void removeSCProductEntries(long pk,
358 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
359 throws com.liferay.portal.SystemException {
360 getPersistence().removeSCProductEntries(pk, scProductEntries);
361 }
362
363 public static void setSCProductEntries(long pk, long[] scProductEntryPKs)
364 throws com.liferay.portal.SystemException {
365 getPersistence().setSCProductEntries(pk, scProductEntryPKs);
366 }
367
368 public static void setSCProductEntries(long pk,
369 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
370 throws com.liferay.portal.SystemException {
371 getPersistence().setSCProductEntries(pk, scProductEntries);
372 }
373
374 public static SCLicensePersistence getPersistence() {
375 if (_persistence == null) {
376 _persistence = (SCLicensePersistence)PortalBeanLocatorUtil.locate(SCLicensePersistence.class.getName());
377
378 ReferenceRegistry.registerReference(SCLicenseUtil.class,
379 "_persistence");
380 }
381
382 return _persistence;
383 }
384
385 public void setPersistence(SCLicensePersistence persistence) {
386 _persistence = persistence;
387
388 ReferenceRegistry.registerReference(SCLicenseUtil.class, "_persistence");
389 }
390
391 private static SCLicensePersistence _persistence;
392 }