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