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