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