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