001
014
015 package com.liferay.portlet.softwarecatalog.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019 import com.liferay.portal.kernel.exception.SystemException;
020 import com.liferay.portal.kernel.util.OrderByComparator;
021 import com.liferay.portal.service.ServiceContext;
022
023 import com.liferay.portlet.softwarecatalog.model.SCProductVersion;
024
025 import java.util.List;
026
027
033 public class SCProductVersionUtil {
034
037 public static void clearCache() {
038 getPersistence().clearCache();
039 }
040
041
044 public static void clearCache(SCProductVersion scProductVersion) {
045 getPersistence().clearCache(scProductVersion);
046 }
047
048
051 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052 throws SystemException {
053 return getPersistence().countWithDynamicQuery(dynamicQuery);
054 }
055
056
059 public static List<SCProductVersion> findWithDynamicQuery(
060 DynamicQuery dynamicQuery) throws SystemException {
061 return getPersistence().findWithDynamicQuery(dynamicQuery);
062 }
063
064
067 public static List<SCProductVersion> findWithDynamicQuery(
068 DynamicQuery dynamicQuery, int start, int end)
069 throws SystemException {
070 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071 }
072
073
076 public static List<SCProductVersion> findWithDynamicQuery(
077 DynamicQuery dynamicQuery, int start, int end,
078 OrderByComparator orderByComparator) throws SystemException {
079 return getPersistence()
080 .findWithDynamicQuery(dynamicQuery, start, end,
081 orderByComparator);
082 }
083
084
087 public static SCProductVersion remove(SCProductVersion scProductVersion)
088 throws SystemException {
089 return getPersistence().remove(scProductVersion);
090 }
091
092
095 public static SCProductVersion update(SCProductVersion scProductVersion,
096 boolean merge) throws SystemException {
097 return getPersistence().update(scProductVersion, merge);
098 }
099
100
103 public static SCProductVersion update(SCProductVersion scProductVersion,
104 boolean merge, ServiceContext serviceContext) throws SystemException {
105 return getPersistence().update(scProductVersion, merge, serviceContext);
106 }
107
108 public static void cacheResult(
109 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion) {
110 getPersistence().cacheResult(scProductVersion);
111 }
112
113 public static void cacheResult(
114 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions) {
115 getPersistence().cacheResult(scProductVersions);
116 }
117
118 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion create(
119 long productVersionId) {
120 return getPersistence().create(productVersionId);
121 }
122
123 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion remove(
124 long productVersionId)
125 throws com.liferay.portal.kernel.exception.SystemException,
126 com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
127 return getPersistence().remove(productVersionId);
128 }
129
130 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateImpl(
131 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion,
132 boolean merge)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getPersistence().updateImpl(scProductVersion, merge);
135 }
136
137 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion findByPrimaryKey(
138 long productVersionId)
139 throws com.liferay.portal.kernel.exception.SystemException,
140 com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
141 return getPersistence().findByPrimaryKey(productVersionId);
142 }
143
144 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByPrimaryKey(
145 long productVersionId)
146 throws com.liferay.portal.kernel.exception.SystemException {
147 return getPersistence().fetchByPrimaryKey(productVersionId);
148 }
149
150 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findByProductEntryId(
151 long productEntryId)
152 throws com.liferay.portal.kernel.exception.SystemException {
153 return getPersistence().findByProductEntryId(productEntryId);
154 }
155
156 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findByProductEntryId(
157 long productEntryId, int start, int end)
158 throws com.liferay.portal.kernel.exception.SystemException {
159 return getPersistence().findByProductEntryId(productEntryId, start, end);
160 }
161
162 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findByProductEntryId(
163 long productEntryId, int start, int end,
164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165 throws com.liferay.portal.kernel.exception.SystemException {
166 return getPersistence()
167 .findByProductEntryId(productEntryId, start, end,
168 orderByComparator);
169 }
170
171 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion findByProductEntryId_First(
172 long productEntryId,
173 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
174 throws com.liferay.portal.kernel.exception.SystemException,
175 com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
176 return getPersistence()
177 .findByProductEntryId_First(productEntryId, orderByComparator);
178 }
179
180 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion findByProductEntryId_Last(
181 long productEntryId,
182 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
183 throws com.liferay.portal.kernel.exception.SystemException,
184 com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
185 return getPersistence()
186 .findByProductEntryId_Last(productEntryId, orderByComparator);
187 }
188
189 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion[] findByProductEntryId_PrevAndNext(
190 long productVersionId, long productEntryId,
191 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
192 throws com.liferay.portal.kernel.exception.SystemException,
193 com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
194 return getPersistence()
195 .findByProductEntryId_PrevAndNext(productVersionId,
196 productEntryId, orderByComparator);
197 }
198
199 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion findByDirectDownloadURL(
200 java.lang.String directDownloadURL)
201 throws com.liferay.portal.kernel.exception.SystemException,
202 com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
203 return getPersistence().findByDirectDownloadURL(directDownloadURL);
204 }
205
206 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByDirectDownloadURL(
207 java.lang.String directDownloadURL)
208 throws com.liferay.portal.kernel.exception.SystemException {
209 return getPersistence().fetchByDirectDownloadURL(directDownloadURL);
210 }
211
212 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByDirectDownloadURL(
213 java.lang.String directDownloadURL, boolean retrieveFromCache)
214 throws com.liferay.portal.kernel.exception.SystemException {
215 return getPersistence()
216 .fetchByDirectDownloadURL(directDownloadURL,
217 retrieveFromCache);
218 }
219
220 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll()
221 throws com.liferay.portal.kernel.exception.SystemException {
222 return getPersistence().findAll();
223 }
224
225 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll(
226 int start, int end)
227 throws com.liferay.portal.kernel.exception.SystemException {
228 return getPersistence().findAll(start, end);
229 }
230
231 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll(
232 int start, int end,
233 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
234 throws com.liferay.portal.kernel.exception.SystemException {
235 return getPersistence().findAll(start, end, orderByComparator);
236 }
237
238 public static void removeByProductEntryId(long productEntryId)
239 throws com.liferay.portal.kernel.exception.SystemException {
240 getPersistence().removeByProductEntryId(productEntryId);
241 }
242
243 public static void removeByDirectDownloadURL(
244 java.lang.String directDownloadURL)
245 throws com.liferay.portal.kernel.exception.SystemException,
246 com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
247 getPersistence().removeByDirectDownloadURL(directDownloadURL);
248 }
249
250 public static void removeAll()
251 throws com.liferay.portal.kernel.exception.SystemException {
252 getPersistence().removeAll();
253 }
254
255 public static int countByProductEntryId(long productEntryId)
256 throws com.liferay.portal.kernel.exception.SystemException {
257 return getPersistence().countByProductEntryId(productEntryId);
258 }
259
260 public static int countByDirectDownloadURL(
261 java.lang.String directDownloadURL)
262 throws com.liferay.portal.kernel.exception.SystemException {
263 return getPersistence().countByDirectDownloadURL(directDownloadURL);
264 }
265
266 public static int countAll()
267 throws com.liferay.portal.kernel.exception.SystemException {
268 return getPersistence().countAll();
269 }
270
271 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
272 long pk) throws com.liferay.portal.kernel.exception.SystemException {
273 return getPersistence().getSCFrameworkVersions(pk);
274 }
275
276 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
277 long pk, int start, int end)
278 throws com.liferay.portal.kernel.exception.SystemException {
279 return getPersistence().getSCFrameworkVersions(pk, start, end);
280 }
281
282 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
283 long pk, int start, int end,
284 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
285 throws com.liferay.portal.kernel.exception.SystemException {
286 return getPersistence()
287 .getSCFrameworkVersions(pk, start, end, orderByComparator);
288 }
289
290 public static int getSCFrameworkVersionsSize(long pk)
291 throws com.liferay.portal.kernel.exception.SystemException {
292 return getPersistence().getSCFrameworkVersionsSize(pk);
293 }
294
295 public static boolean containsSCFrameworkVersion(long pk,
296 long scFrameworkVersionPK)
297 throws com.liferay.portal.kernel.exception.SystemException {
298 return getPersistence()
299 .containsSCFrameworkVersion(pk, scFrameworkVersionPK);
300 }
301
302 public static boolean containsSCFrameworkVersions(long pk)
303 throws com.liferay.portal.kernel.exception.SystemException {
304 return getPersistence().containsSCFrameworkVersions(pk);
305 }
306
307 public static void addSCFrameworkVersion(long pk, long scFrameworkVersionPK)
308 throws com.liferay.portal.kernel.exception.SystemException {
309 getPersistence().addSCFrameworkVersion(pk, scFrameworkVersionPK);
310 }
311
312 public static void addSCFrameworkVersion(long pk,
313 com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
314 throws com.liferay.portal.kernel.exception.SystemException {
315 getPersistence().addSCFrameworkVersion(pk, scFrameworkVersion);
316 }
317
318 public static void addSCFrameworkVersions(long pk,
319 long[] scFrameworkVersionPKs)
320 throws com.liferay.portal.kernel.exception.SystemException {
321 getPersistence().addSCFrameworkVersions(pk, scFrameworkVersionPKs);
322 }
323
324 public static void addSCFrameworkVersions(long pk,
325 java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
326 throws com.liferay.portal.kernel.exception.SystemException {
327 getPersistence().addSCFrameworkVersions(pk, scFrameworkVersions);
328 }
329
330 public static void clearSCFrameworkVersions(long pk)
331 throws com.liferay.portal.kernel.exception.SystemException {
332 getPersistence().clearSCFrameworkVersions(pk);
333 }
334
335 public static void removeSCFrameworkVersion(long pk,
336 long scFrameworkVersionPK)
337 throws com.liferay.portal.kernel.exception.SystemException {
338 getPersistence().removeSCFrameworkVersion(pk, scFrameworkVersionPK);
339 }
340
341 public static void removeSCFrameworkVersion(long pk,
342 com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
343 throws com.liferay.portal.kernel.exception.SystemException {
344 getPersistence().removeSCFrameworkVersion(pk, scFrameworkVersion);
345 }
346
347 public static void removeSCFrameworkVersions(long pk,
348 long[] scFrameworkVersionPKs)
349 throws com.liferay.portal.kernel.exception.SystemException {
350 getPersistence().removeSCFrameworkVersions(pk, scFrameworkVersionPKs);
351 }
352
353 public static void removeSCFrameworkVersions(long pk,
354 java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
355 throws com.liferay.portal.kernel.exception.SystemException {
356 getPersistence().removeSCFrameworkVersions(pk, scFrameworkVersions);
357 }
358
359 public static void setSCFrameworkVersions(long pk,
360 long[] scFrameworkVersionPKs)
361 throws com.liferay.portal.kernel.exception.SystemException {
362 getPersistence().setSCFrameworkVersions(pk, scFrameworkVersionPKs);
363 }
364
365 public static void setSCFrameworkVersions(long pk,
366 java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
367 throws com.liferay.portal.kernel.exception.SystemException {
368 getPersistence().setSCFrameworkVersions(pk, scFrameworkVersions);
369 }
370
371 public static SCProductVersionPersistence getPersistence() {
372 if (_persistence == null) {
373 _persistence = (SCProductVersionPersistence)PortalBeanLocatorUtil.locate(SCProductVersionPersistence.class.getName());
374 }
375
376 return _persistence;
377 }
378
379 public void setPersistence(SCProductVersionPersistence persistence) {
380 _persistence = persistence;
381 }
382
383 private static SCProductVersionPersistence _persistence;
384 }