1
22
23 package com.liferay.portlet.softwarecatalog.service.persistence;
24
25 import com.liferay.portal.SystemException;
26 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
27 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
28
29 import com.liferay.portlet.softwarecatalog.model.SCProductVersion;
30
31 import java.util.List;
32
33
46 public class SCProductVersionUtil {
47
50 public static void clearCache() {
51 getPersistence().clearCache();
52 }
53
54
57 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
58 throws SystemException {
59 return getPersistence().findWithDynamicQuery(dynamicQuery);
60 }
61
62
65 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
66 int start, int end) throws SystemException {
67 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
68 }
69
70
73 public static SCProductVersion remove(SCProductVersion scProductVersion)
74 throws SystemException {
75 return getPersistence().remove(scProductVersion);
76 }
77
78
81 public static SCProductVersion update(SCProductVersion scProductVersion,
82 boolean merge) throws SystemException {
83 return getPersistence().update(scProductVersion, merge);
84 }
85
86 public static void cacheResult(
87 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion) {
88 getPersistence().cacheResult(scProductVersion);
89 }
90
91 public static void cacheResult(
92 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions) {
93 getPersistence().cacheResult(scProductVersions);
94 }
95
96 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion create(
97 long productVersionId) {
98 return getPersistence().create(productVersionId);
99 }
100
101 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion remove(
102 long productVersionId)
103 throws com.liferay.portal.SystemException,
104 com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
105 return getPersistence().remove(productVersionId);
106 }
107
108
111 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion update(
112 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
113 throws com.liferay.portal.SystemException {
114 return getPersistence().update(scProductVersion);
115 }
116
117 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateImpl(
118 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion,
119 boolean merge) throws com.liferay.portal.SystemException {
120 return getPersistence().updateImpl(scProductVersion, merge);
121 }
122
123 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion findByPrimaryKey(
124 long productVersionId)
125 throws com.liferay.portal.SystemException,
126 com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
127 return getPersistence().findByPrimaryKey(productVersionId);
128 }
129
130 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByPrimaryKey(
131 long productVersionId) throws com.liferay.portal.SystemException {
132 return getPersistence().fetchByPrimaryKey(productVersionId);
133 }
134
135 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findByProductEntryId(
136 long productEntryId) throws com.liferay.portal.SystemException {
137 return getPersistence().findByProductEntryId(productEntryId);
138 }
139
140 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findByProductEntryId(
141 long productEntryId, int start, int end)
142 throws com.liferay.portal.SystemException {
143 return getPersistence().findByProductEntryId(productEntryId, start, end);
144 }
145
146 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findByProductEntryId(
147 long productEntryId, int start, int end,
148 com.liferay.portal.kernel.util.OrderByComparator obc)
149 throws com.liferay.portal.SystemException {
150 return getPersistence()
151 .findByProductEntryId(productEntryId, start, end, obc);
152 }
153
154 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion findByProductEntryId_First(
155 long productEntryId,
156 com.liferay.portal.kernel.util.OrderByComparator obc)
157 throws com.liferay.portal.SystemException,
158 com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
159 return getPersistence().findByProductEntryId_First(productEntryId, obc);
160 }
161
162 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion findByProductEntryId_Last(
163 long productEntryId,
164 com.liferay.portal.kernel.util.OrderByComparator obc)
165 throws com.liferay.portal.SystemException,
166 com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
167 return getPersistence().findByProductEntryId_Last(productEntryId, obc);
168 }
169
170 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion[] findByProductEntryId_PrevAndNext(
171 long productVersionId, long productEntryId,
172 com.liferay.portal.kernel.util.OrderByComparator obc)
173 throws com.liferay.portal.SystemException,
174 com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
175 return getPersistence()
176 .findByProductEntryId_PrevAndNext(productVersionId,
177 productEntryId, obc);
178 }
179
180 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion findByDirectDownloadURL(
181 java.lang.String directDownloadURL)
182 throws com.liferay.portal.SystemException,
183 com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
184 return getPersistence().findByDirectDownloadURL(directDownloadURL);
185 }
186
187 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByDirectDownloadURL(
188 java.lang.String directDownloadURL)
189 throws com.liferay.portal.SystemException {
190 return getPersistence().fetchByDirectDownloadURL(directDownloadURL);
191 }
192
193 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByDirectDownloadURL(
194 java.lang.String directDownloadURL, boolean retrieveFromCache)
195 throws com.liferay.portal.SystemException {
196 return getPersistence()
197 .fetchByDirectDownloadURL(directDownloadURL,
198 retrieveFromCache);
199 }
200
201 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll()
202 throws com.liferay.portal.SystemException {
203 return getPersistence().findAll();
204 }
205
206 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll(
207 int start, int end) throws com.liferay.portal.SystemException {
208 return getPersistence().findAll(start, end);
209 }
210
211 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll(
212 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
213 throws com.liferay.portal.SystemException {
214 return getPersistence().findAll(start, end, obc);
215 }
216
217 public static void removeByProductEntryId(long productEntryId)
218 throws com.liferay.portal.SystemException {
219 getPersistence().removeByProductEntryId(productEntryId);
220 }
221
222 public static void removeByDirectDownloadURL(
223 java.lang.String directDownloadURL)
224 throws com.liferay.portal.SystemException,
225 com.liferay.portlet.softwarecatalog.NoSuchProductVersionException {
226 getPersistence().removeByDirectDownloadURL(directDownloadURL);
227 }
228
229 public static void removeAll() throws com.liferay.portal.SystemException {
230 getPersistence().removeAll();
231 }
232
233 public static int countByProductEntryId(long productEntryId)
234 throws com.liferay.portal.SystemException {
235 return getPersistence().countByProductEntryId(productEntryId);
236 }
237
238 public static int countByDirectDownloadURL(
239 java.lang.String directDownloadURL)
240 throws com.liferay.portal.SystemException {
241 return getPersistence().countByDirectDownloadURL(directDownloadURL);
242 }
243
244 public static int countAll() throws com.liferay.portal.SystemException {
245 return getPersistence().countAll();
246 }
247
248 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
249 long pk) throws com.liferay.portal.SystemException {
250 return getPersistence().getSCFrameworkVersions(pk);
251 }
252
253 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
254 long pk, int start, int end) throws com.liferay.portal.SystemException {
255 return getPersistence().getSCFrameworkVersions(pk, start, end);
256 }
257
258 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
259 long pk, int start, int end,
260 com.liferay.portal.kernel.util.OrderByComparator obc)
261 throws com.liferay.portal.SystemException {
262 return getPersistence().getSCFrameworkVersions(pk, start, end, obc);
263 }
264
265 public static int getSCFrameworkVersionsSize(long pk)
266 throws com.liferay.portal.SystemException {
267 return getPersistence().getSCFrameworkVersionsSize(pk);
268 }
269
270 public static boolean containsSCFrameworkVersion(long pk,
271 long scFrameworkVersionPK) throws com.liferay.portal.SystemException {
272 return getPersistence()
273 .containsSCFrameworkVersion(pk, scFrameworkVersionPK);
274 }
275
276 public static boolean containsSCFrameworkVersions(long pk)
277 throws com.liferay.portal.SystemException {
278 return getPersistence().containsSCFrameworkVersions(pk);
279 }
280
281 public static void addSCFrameworkVersion(long pk, long scFrameworkVersionPK)
282 throws com.liferay.portal.SystemException {
283 getPersistence().addSCFrameworkVersion(pk, scFrameworkVersionPK);
284 }
285
286 public static void addSCFrameworkVersion(long pk,
287 com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
288 throws com.liferay.portal.SystemException {
289 getPersistence().addSCFrameworkVersion(pk, scFrameworkVersion);
290 }
291
292 public static void addSCFrameworkVersions(long pk,
293 long[] scFrameworkVersionPKs) throws com.liferay.portal.SystemException {
294 getPersistence().addSCFrameworkVersions(pk, scFrameworkVersionPKs);
295 }
296
297 public static void addSCFrameworkVersions(long pk,
298 java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
299 throws com.liferay.portal.SystemException {
300 getPersistence().addSCFrameworkVersions(pk, scFrameworkVersions);
301 }
302
303 public static void clearSCFrameworkVersions(long pk)
304 throws com.liferay.portal.SystemException {
305 getPersistence().clearSCFrameworkVersions(pk);
306 }
307
308 public static void removeSCFrameworkVersion(long pk,
309 long scFrameworkVersionPK) throws com.liferay.portal.SystemException {
310 getPersistence().removeSCFrameworkVersion(pk, scFrameworkVersionPK);
311 }
312
313 public static void removeSCFrameworkVersion(long pk,
314 com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
315 throws com.liferay.portal.SystemException {
316 getPersistence().removeSCFrameworkVersion(pk, scFrameworkVersion);
317 }
318
319 public static void removeSCFrameworkVersions(long pk,
320 long[] scFrameworkVersionPKs) throws com.liferay.portal.SystemException {
321 getPersistence().removeSCFrameworkVersions(pk, scFrameworkVersionPKs);
322 }
323
324 public static void removeSCFrameworkVersions(long pk,
325 java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
326 throws com.liferay.portal.SystemException {
327 getPersistence().removeSCFrameworkVersions(pk, scFrameworkVersions);
328 }
329
330 public static void setSCFrameworkVersions(long pk,
331 long[] scFrameworkVersionPKs) throws com.liferay.portal.SystemException {
332 getPersistence().setSCFrameworkVersions(pk, scFrameworkVersionPKs);
333 }
334
335 public static void setSCFrameworkVersions(long pk,
336 java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
337 throws com.liferay.portal.SystemException {
338 getPersistence().setSCFrameworkVersions(pk, scFrameworkVersions);
339 }
340
341 public static SCProductVersionPersistence getPersistence() {
342 if (_persistence == null) {
343 _persistence = (SCProductVersionPersistence)PortalBeanLocatorUtil.locate(SCProductVersionPersistence.class.getName());
344 }
345
346 return _persistence;
347 }
348
349 public void setPersistence(SCProductVersionPersistence persistence) {
350 _persistence = persistence;
351 }
352
353 private static SCProductVersionPersistence _persistence;
354 }