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