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