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