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 import com.liferay.portal.kernel.util.ReferenceRegistry;
21
22 import com.liferay.portlet.softwarecatalog.model.SCProductScreenshot;
23
24 import java.util.List;
25
26
39 public class SCProductScreenshotUtil {
40
43 public static void clearCache() {
44 getPersistence().clearCache();
45 }
46
47
50 public static void clearCache(SCProductScreenshot scProductScreenshot) {
51 getPersistence().clearCache(scProductScreenshot);
52 }
53
54
57 public int countWithDynamicQuery(DynamicQuery dynamicQuery)
58 throws SystemException {
59 return getPersistence().countWithDynamicQuery(dynamicQuery);
60 }
61
62
65 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
66 throws SystemException {
67 return getPersistence().findWithDynamicQuery(dynamicQuery);
68 }
69
70
73 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
74 int start, int end) throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static SCProductScreenshot remove(
82 SCProductScreenshot scProductScreenshot) throws SystemException {
83 return getPersistence().remove(scProductScreenshot);
84 }
85
86
89 public static SCProductScreenshot update(
90 SCProductScreenshot scProductScreenshot, boolean merge)
91 throws SystemException {
92 return getPersistence().update(scProductScreenshot, merge);
93 }
94
95 public static void cacheResult(
96 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot) {
97 getPersistence().cacheResult(scProductScreenshot);
98 }
99
100 public static void cacheResult(
101 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> scProductScreenshots) {
102 getPersistence().cacheResult(scProductScreenshots);
103 }
104
105 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot create(
106 long productScreenshotId) {
107 return getPersistence().create(productScreenshotId);
108 }
109
110 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot remove(
111 long productScreenshotId)
112 throws com.liferay.portal.SystemException,
113 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
114 return getPersistence().remove(productScreenshotId);
115 }
116
117
120 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot update(
121 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot)
122 throws com.liferay.portal.SystemException {
123 return getPersistence().update(scProductScreenshot);
124 }
125
126 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot updateImpl(
127 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot,
128 boolean merge) throws com.liferay.portal.SystemException {
129 return getPersistence().updateImpl(scProductScreenshot, merge);
130 }
131
132 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByPrimaryKey(
133 long productScreenshotId)
134 throws com.liferay.portal.SystemException,
135 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
136 return getPersistence().findByPrimaryKey(productScreenshotId);
137 }
138
139 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByPrimaryKey(
140 long productScreenshotId) throws com.liferay.portal.SystemException {
141 return getPersistence().fetchByPrimaryKey(productScreenshotId);
142 }
143
144 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
145 long productEntryId) throws com.liferay.portal.SystemException {
146 return getPersistence().findByProductEntryId(productEntryId);
147 }
148
149 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
150 long productEntryId, int start, int end)
151 throws com.liferay.portal.SystemException {
152 return getPersistence().findByProductEntryId(productEntryId, start, end);
153 }
154
155 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
156 long productEntryId, int start, int end,
157 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
158 throws com.liferay.portal.SystemException {
159 return getPersistence()
160 .findByProductEntryId(productEntryId, start, end,
161 orderByComparator);
162 }
163
164 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_First(
165 long productEntryId,
166 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167 throws com.liferay.portal.SystemException,
168 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
169 return getPersistence()
170 .findByProductEntryId_First(productEntryId, orderByComparator);
171 }
172
173 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_Last(
174 long productEntryId,
175 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
176 throws com.liferay.portal.SystemException,
177 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
178 return getPersistence()
179 .findByProductEntryId_Last(productEntryId, orderByComparator);
180 }
181
182 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot[] findByProductEntryId_PrevAndNext(
183 long productScreenshotId, long productEntryId,
184 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
185 throws com.liferay.portal.SystemException,
186 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
187 return getPersistence()
188 .findByProductEntryId_PrevAndNext(productScreenshotId,
189 productEntryId, orderByComparator);
190 }
191
192 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByThumbnailId(
193 long thumbnailId)
194 throws com.liferay.portal.SystemException,
195 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
196 return getPersistence().findByThumbnailId(thumbnailId);
197 }
198
199 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(
200 long thumbnailId) throws com.liferay.portal.SystemException {
201 return getPersistence().fetchByThumbnailId(thumbnailId);
202 }
203
204 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(
205 long thumbnailId, boolean retrieveFromCache)
206 throws com.liferay.portal.SystemException {
207 return getPersistence()
208 .fetchByThumbnailId(thumbnailId, retrieveFromCache);
209 }
210
211 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByFullImageId(
212 long fullImageId)
213 throws com.liferay.portal.SystemException,
214 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
215 return getPersistence().findByFullImageId(fullImageId);
216 }
217
218 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(
219 long fullImageId) throws com.liferay.portal.SystemException {
220 return getPersistence().fetchByFullImageId(fullImageId);
221 }
222
223 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(
224 long fullImageId, boolean retrieveFromCache)
225 throws com.liferay.portal.SystemException {
226 return getPersistence()
227 .fetchByFullImageId(fullImageId, retrieveFromCache);
228 }
229
230 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByP_P(
231 long productEntryId, int priority)
232 throws com.liferay.portal.SystemException,
233 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
234 return getPersistence().findByP_P(productEntryId, priority);
235 }
236
237 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P(
238 long productEntryId, int priority)
239 throws com.liferay.portal.SystemException {
240 return getPersistence().fetchByP_P(productEntryId, priority);
241 }
242
243 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P(
244 long productEntryId, int priority, boolean retrieveFromCache)
245 throws com.liferay.portal.SystemException {
246 return getPersistence()
247 .fetchByP_P(productEntryId, priority, retrieveFromCache);
248 }
249
250 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll()
251 throws com.liferay.portal.SystemException {
252 return getPersistence().findAll();
253 }
254
255 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(
256 int start, int end) throws com.liferay.portal.SystemException {
257 return getPersistence().findAll(start, end);
258 }
259
260 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(
261 int start, int end,
262 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
263 throws com.liferay.portal.SystemException {
264 return getPersistence().findAll(start, end, orderByComparator);
265 }
266
267 public static void removeByProductEntryId(long productEntryId)
268 throws com.liferay.portal.SystemException {
269 getPersistence().removeByProductEntryId(productEntryId);
270 }
271
272 public static void removeByThumbnailId(long thumbnailId)
273 throws com.liferay.portal.SystemException,
274 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
275 getPersistence().removeByThumbnailId(thumbnailId);
276 }
277
278 public static void removeByFullImageId(long fullImageId)
279 throws com.liferay.portal.SystemException,
280 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
281 getPersistence().removeByFullImageId(fullImageId);
282 }
283
284 public static void removeByP_P(long productEntryId, int priority)
285 throws com.liferay.portal.SystemException,
286 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
287 getPersistence().removeByP_P(productEntryId, priority);
288 }
289
290 public static void removeAll() throws com.liferay.portal.SystemException {
291 getPersistence().removeAll();
292 }
293
294 public static int countByProductEntryId(long productEntryId)
295 throws com.liferay.portal.SystemException {
296 return getPersistence().countByProductEntryId(productEntryId);
297 }
298
299 public static int countByThumbnailId(long thumbnailId)
300 throws com.liferay.portal.SystemException {
301 return getPersistence().countByThumbnailId(thumbnailId);
302 }
303
304 public static int countByFullImageId(long fullImageId)
305 throws com.liferay.portal.SystemException {
306 return getPersistence().countByFullImageId(fullImageId);
307 }
308
309 public static int countByP_P(long productEntryId, int priority)
310 throws com.liferay.portal.SystemException {
311 return getPersistence().countByP_P(productEntryId, priority);
312 }
313
314 public static int countAll() throws com.liferay.portal.SystemException {
315 return getPersistence().countAll();
316 }
317
318 public static SCProductScreenshotPersistence getPersistence() {
319 if (_persistence == null) {
320 _persistence = (SCProductScreenshotPersistence)PortalBeanLocatorUtil.locate(SCProductScreenshotPersistence.class.getName());
321
322 ReferenceRegistry.registerReference(SCProductScreenshotUtil.class,
323 "_persistence");
324 }
325
326 return _persistence;
327 }
328
329 public void setPersistence(SCProductScreenshotPersistence persistence) {
330 _persistence = persistence;
331
332 ReferenceRegistry.registerReference(SCProductScreenshotUtil.class,
333 "_persistence");
334 }
335
336 private static SCProductScreenshotPersistence _persistence;
337 }