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