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