1
22
23 package com.liferay.portlet.imagegallery.service.persistence;
24
25
31 public class IGImageUtil {
32 public static com.liferay.portlet.imagegallery.model.IGImage create(
33 long imageId) {
34 return getPersistence().create(imageId);
35 }
36
37 public static com.liferay.portlet.imagegallery.model.IGImage remove(
38 long imageId)
39 throws com.liferay.portal.SystemException,
40 com.liferay.portlet.imagegallery.NoSuchImageException {
41 return getPersistence().remove(imageId);
42 }
43
44 public static com.liferay.portlet.imagegallery.model.IGImage remove(
45 com.liferay.portlet.imagegallery.model.IGImage igImage)
46 throws com.liferay.portal.SystemException {
47 return getPersistence().remove(igImage);
48 }
49
50
53 public static com.liferay.portlet.imagegallery.model.IGImage update(
54 com.liferay.portlet.imagegallery.model.IGImage igImage)
55 throws com.liferay.portal.SystemException {
56 return getPersistence().update(igImage);
57 }
58
59
72 public static com.liferay.portlet.imagegallery.model.IGImage update(
73 com.liferay.portlet.imagegallery.model.IGImage igImage, boolean merge)
74 throws com.liferay.portal.SystemException {
75 return getPersistence().update(igImage, merge);
76 }
77
78 public static com.liferay.portlet.imagegallery.model.IGImage updateImpl(
79 com.liferay.portlet.imagegallery.model.IGImage igImage, boolean merge)
80 throws com.liferay.portal.SystemException {
81 return getPersistence().updateImpl(igImage, merge);
82 }
83
84 public static com.liferay.portlet.imagegallery.model.IGImage findByPrimaryKey(
85 long imageId)
86 throws com.liferay.portal.SystemException,
87 com.liferay.portlet.imagegallery.NoSuchImageException {
88 return getPersistence().findByPrimaryKey(imageId);
89 }
90
91 public static com.liferay.portlet.imagegallery.model.IGImage fetchByPrimaryKey(
92 long imageId) throws com.liferay.portal.SystemException {
93 return getPersistence().fetchByPrimaryKey(imageId);
94 }
95
96 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByUuid(
97 java.lang.String uuid) throws com.liferay.portal.SystemException {
98 return getPersistence().findByUuid(uuid);
99 }
100
101 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByUuid(
102 java.lang.String uuid, int start, int end)
103 throws com.liferay.portal.SystemException {
104 return getPersistence().findByUuid(uuid, start, end);
105 }
106
107 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByUuid(
108 java.lang.String uuid, int start, int end,
109 com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException {
111 return getPersistence().findByUuid(uuid, start, end, obc);
112 }
113
114 public static com.liferay.portlet.imagegallery.model.IGImage findByUuid_First(
115 java.lang.String uuid,
116 com.liferay.portal.kernel.util.OrderByComparator obc)
117 throws com.liferay.portal.SystemException,
118 com.liferay.portlet.imagegallery.NoSuchImageException {
119 return getPersistence().findByUuid_First(uuid, obc);
120 }
121
122 public static com.liferay.portlet.imagegallery.model.IGImage findByUuid_Last(
123 java.lang.String uuid,
124 com.liferay.portal.kernel.util.OrderByComparator obc)
125 throws com.liferay.portal.SystemException,
126 com.liferay.portlet.imagegallery.NoSuchImageException {
127 return getPersistence().findByUuid_Last(uuid, obc);
128 }
129
130 public static com.liferay.portlet.imagegallery.model.IGImage[] findByUuid_PrevAndNext(
131 long imageId, java.lang.String uuid,
132 com.liferay.portal.kernel.util.OrderByComparator obc)
133 throws com.liferay.portal.SystemException,
134 com.liferay.portlet.imagegallery.NoSuchImageException {
135 return getPersistence().findByUuid_PrevAndNext(imageId, uuid, obc);
136 }
137
138 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByFolderId(
139 long folderId) throws com.liferay.portal.SystemException {
140 return getPersistence().findByFolderId(folderId);
141 }
142
143 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByFolderId(
144 long folderId, int start, int end)
145 throws com.liferay.portal.SystemException {
146 return getPersistence().findByFolderId(folderId, start, end);
147 }
148
149 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByFolderId(
150 long folderId, int start, int end,
151 com.liferay.portal.kernel.util.OrderByComparator obc)
152 throws com.liferay.portal.SystemException {
153 return getPersistence().findByFolderId(folderId, start, end, obc);
154 }
155
156 public static com.liferay.portlet.imagegallery.model.IGImage findByFolderId_First(
157 long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
158 throws com.liferay.portal.SystemException,
159 com.liferay.portlet.imagegallery.NoSuchImageException {
160 return getPersistence().findByFolderId_First(folderId, obc);
161 }
162
163 public static com.liferay.portlet.imagegallery.model.IGImage findByFolderId_Last(
164 long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
165 throws com.liferay.portal.SystemException,
166 com.liferay.portlet.imagegallery.NoSuchImageException {
167 return getPersistence().findByFolderId_Last(folderId, obc);
168 }
169
170 public static com.liferay.portlet.imagegallery.model.IGImage[] findByFolderId_PrevAndNext(
171 long imageId, long folderId,
172 com.liferay.portal.kernel.util.OrderByComparator obc)
173 throws com.liferay.portal.SystemException,
174 com.liferay.portlet.imagegallery.NoSuchImageException {
175 return getPersistence()
176 .findByFolderId_PrevAndNext(imageId, folderId, obc);
177 }
178
179 public static com.liferay.portlet.imagegallery.model.IGImage findBySmallImageId(
180 long smallImageId)
181 throws com.liferay.portal.SystemException,
182 com.liferay.portlet.imagegallery.NoSuchImageException {
183 return getPersistence().findBySmallImageId(smallImageId);
184 }
185
186 public static com.liferay.portlet.imagegallery.model.IGImage fetchBySmallImageId(
187 long smallImageId) throws com.liferay.portal.SystemException {
188 return getPersistence().fetchBySmallImageId(smallImageId);
189 }
190
191 public static com.liferay.portlet.imagegallery.model.IGImage findByLargeImageId(
192 long largeImageId)
193 throws com.liferay.portal.SystemException,
194 com.liferay.portlet.imagegallery.NoSuchImageException {
195 return getPersistence().findByLargeImageId(largeImageId);
196 }
197
198 public static com.liferay.portlet.imagegallery.model.IGImage fetchByLargeImageId(
199 long largeImageId) throws com.liferay.portal.SystemException {
200 return getPersistence().fetchByLargeImageId(largeImageId);
201 }
202
203 public static com.liferay.portlet.imagegallery.model.IGImage findByCustom1ImageId(
204 long custom1ImageId)
205 throws com.liferay.portal.SystemException,
206 com.liferay.portlet.imagegallery.NoSuchImageException {
207 return getPersistence().findByCustom1ImageId(custom1ImageId);
208 }
209
210 public static com.liferay.portlet.imagegallery.model.IGImage fetchByCustom1ImageId(
211 long custom1ImageId) throws com.liferay.portal.SystemException {
212 return getPersistence().fetchByCustom1ImageId(custom1ImageId);
213 }
214
215 public static com.liferay.portlet.imagegallery.model.IGImage findByCustom2ImageId(
216 long custom2ImageId)
217 throws com.liferay.portal.SystemException,
218 com.liferay.portlet.imagegallery.NoSuchImageException {
219 return getPersistence().findByCustom2ImageId(custom2ImageId);
220 }
221
222 public static com.liferay.portlet.imagegallery.model.IGImage fetchByCustom2ImageId(
223 long custom2ImageId) throws com.liferay.portal.SystemException {
224 return getPersistence().fetchByCustom2ImageId(custom2ImageId);
225 }
226
227 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByF_N(
228 long folderId, java.lang.String name)
229 throws com.liferay.portal.SystemException {
230 return getPersistence().findByF_N(folderId, name);
231 }
232
233 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByF_N(
234 long folderId, java.lang.String name, int start, int end)
235 throws com.liferay.portal.SystemException {
236 return getPersistence().findByF_N(folderId, name, start, end);
237 }
238
239 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByF_N(
240 long folderId, java.lang.String name, int start, int end,
241 com.liferay.portal.kernel.util.OrderByComparator obc)
242 throws com.liferay.portal.SystemException {
243 return getPersistence().findByF_N(folderId, name, start, end, obc);
244 }
245
246 public static com.liferay.portlet.imagegallery.model.IGImage findByF_N_First(
247 long folderId, java.lang.String name,
248 com.liferay.portal.kernel.util.OrderByComparator obc)
249 throws com.liferay.portal.SystemException,
250 com.liferay.portlet.imagegallery.NoSuchImageException {
251 return getPersistence().findByF_N_First(folderId, name, obc);
252 }
253
254 public static com.liferay.portlet.imagegallery.model.IGImage findByF_N_Last(
255 long folderId, java.lang.String name,
256 com.liferay.portal.kernel.util.OrderByComparator obc)
257 throws com.liferay.portal.SystemException,
258 com.liferay.portlet.imagegallery.NoSuchImageException {
259 return getPersistence().findByF_N_Last(folderId, name, obc);
260 }
261
262 public static com.liferay.portlet.imagegallery.model.IGImage[] findByF_N_PrevAndNext(
263 long imageId, long folderId, java.lang.String name,
264 com.liferay.portal.kernel.util.OrderByComparator obc)
265 throws com.liferay.portal.SystemException,
266 com.liferay.portlet.imagegallery.NoSuchImageException {
267 return getPersistence()
268 .findByF_N_PrevAndNext(imageId, folderId, name, obc);
269 }
270
271 public static java.util.List<Object> findWithDynamicQuery(
272 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
273 throws com.liferay.portal.SystemException {
274 return getPersistence().findWithDynamicQuery(dynamicQuery);
275 }
276
277 public static java.util.List<Object> findWithDynamicQuery(
278 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
279 int end) throws com.liferay.portal.SystemException {
280 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
281 }
282
283 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findAll()
284 throws com.liferay.portal.SystemException {
285 return getPersistence().findAll();
286 }
287
288 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findAll(
289 int start, int end) throws com.liferay.portal.SystemException {
290 return getPersistence().findAll(start, end);
291 }
292
293 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findAll(
294 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
295 throws com.liferay.portal.SystemException {
296 return getPersistence().findAll(start, end, obc);
297 }
298
299 public static void removeByUuid(java.lang.String uuid)
300 throws com.liferay.portal.SystemException {
301 getPersistence().removeByUuid(uuid);
302 }
303
304 public static void removeByFolderId(long folderId)
305 throws com.liferay.portal.SystemException {
306 getPersistence().removeByFolderId(folderId);
307 }
308
309 public static void removeBySmallImageId(long smallImageId)
310 throws com.liferay.portal.SystemException,
311 com.liferay.portlet.imagegallery.NoSuchImageException {
312 getPersistence().removeBySmallImageId(smallImageId);
313 }
314
315 public static void removeByLargeImageId(long largeImageId)
316 throws com.liferay.portal.SystemException,
317 com.liferay.portlet.imagegallery.NoSuchImageException {
318 getPersistence().removeByLargeImageId(largeImageId);
319 }
320
321 public static void removeByCustom1ImageId(long custom1ImageId)
322 throws com.liferay.portal.SystemException,
323 com.liferay.portlet.imagegallery.NoSuchImageException {
324 getPersistence().removeByCustom1ImageId(custom1ImageId);
325 }
326
327 public static void removeByCustom2ImageId(long custom2ImageId)
328 throws com.liferay.portal.SystemException,
329 com.liferay.portlet.imagegallery.NoSuchImageException {
330 getPersistence().removeByCustom2ImageId(custom2ImageId);
331 }
332
333 public static void removeByF_N(long folderId, java.lang.String name)
334 throws com.liferay.portal.SystemException {
335 getPersistence().removeByF_N(folderId, name);
336 }
337
338 public static void removeAll() throws com.liferay.portal.SystemException {
339 getPersistence().removeAll();
340 }
341
342 public static int countByUuid(java.lang.String uuid)
343 throws com.liferay.portal.SystemException {
344 return getPersistence().countByUuid(uuid);
345 }
346
347 public static int countByFolderId(long folderId)
348 throws com.liferay.portal.SystemException {
349 return getPersistence().countByFolderId(folderId);
350 }
351
352 public static int countBySmallImageId(long smallImageId)
353 throws com.liferay.portal.SystemException {
354 return getPersistence().countBySmallImageId(smallImageId);
355 }
356
357 public static int countByLargeImageId(long largeImageId)
358 throws com.liferay.portal.SystemException {
359 return getPersistence().countByLargeImageId(largeImageId);
360 }
361
362 public static int countByCustom1ImageId(long custom1ImageId)
363 throws com.liferay.portal.SystemException {
364 return getPersistence().countByCustom1ImageId(custom1ImageId);
365 }
366
367 public static int countByCustom2ImageId(long custom2ImageId)
368 throws com.liferay.portal.SystemException {
369 return getPersistence().countByCustom2ImageId(custom2ImageId);
370 }
371
372 public static int countByF_N(long folderId, java.lang.String name)
373 throws com.liferay.portal.SystemException {
374 return getPersistence().countByF_N(folderId, name);
375 }
376
377 public static int countAll() throws com.liferay.portal.SystemException {
378 return getPersistence().countAll();
379 }
380
381 public static void registerListener(
382 com.liferay.portal.model.ModelListener listener) {
383 getPersistence().registerListener(listener);
384 }
385
386 public static void unregisterListener(
387 com.liferay.portal.model.ModelListener listener) {
388 getPersistence().unregisterListener(listener);
389 }
390
391 public static IGImagePersistence getPersistence() {
392 return _persistence;
393 }
394
395 public void setPersistence(IGImagePersistence persistence) {
396 _persistence = persistence;
397 }
398
399 private static IGImagePersistence _persistence;
400 }