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