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 public static com.liferay.portlet.imagegallery.model.IGImage update(
51 com.liferay.portlet.imagegallery.model.IGImage igImage)
52 throws com.liferay.portal.SystemException {
53 return getPersistence().update(igImage);
54 }
55
56 public static com.liferay.portlet.imagegallery.model.IGImage update(
57 com.liferay.portlet.imagegallery.model.IGImage igImage, boolean merge)
58 throws com.liferay.portal.SystemException {
59 return getPersistence().update(igImage, merge);
60 }
61
62 public static com.liferay.portlet.imagegallery.model.IGImage updateImpl(
63 com.liferay.portlet.imagegallery.model.IGImage igImage, boolean merge)
64 throws com.liferay.portal.SystemException {
65 return getPersistence().updateImpl(igImage, merge);
66 }
67
68 public static com.liferay.portlet.imagegallery.model.IGImage findByPrimaryKey(
69 long imageId)
70 throws com.liferay.portal.SystemException,
71 com.liferay.portlet.imagegallery.NoSuchImageException {
72 return getPersistence().findByPrimaryKey(imageId);
73 }
74
75 public static com.liferay.portlet.imagegallery.model.IGImage fetchByPrimaryKey(
76 long imageId) throws com.liferay.portal.SystemException {
77 return getPersistence().fetchByPrimaryKey(imageId);
78 }
79
80 public static java.util.List findByUuid(java.lang.String uuid)
81 throws com.liferay.portal.SystemException {
82 return getPersistence().findByUuid(uuid);
83 }
84
85 public static java.util.List findByUuid(java.lang.String uuid, int begin,
86 int end) throws com.liferay.portal.SystemException {
87 return getPersistence().findByUuid(uuid, begin, end);
88 }
89
90 public static java.util.List findByUuid(java.lang.String uuid, int begin,
91 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
92 throws com.liferay.portal.SystemException {
93 return getPersistence().findByUuid(uuid, begin, end, obc);
94 }
95
96 public static com.liferay.portlet.imagegallery.model.IGImage findByUuid_First(
97 java.lang.String uuid,
98 com.liferay.portal.kernel.util.OrderByComparator obc)
99 throws com.liferay.portal.SystemException,
100 com.liferay.portlet.imagegallery.NoSuchImageException {
101 return getPersistence().findByUuid_First(uuid, obc);
102 }
103
104 public static com.liferay.portlet.imagegallery.model.IGImage findByUuid_Last(
105 java.lang.String uuid,
106 com.liferay.portal.kernel.util.OrderByComparator obc)
107 throws com.liferay.portal.SystemException,
108 com.liferay.portlet.imagegallery.NoSuchImageException {
109 return getPersistence().findByUuid_Last(uuid, obc);
110 }
111
112 public static com.liferay.portlet.imagegallery.model.IGImage[] findByUuid_PrevAndNext(
113 long imageId, java.lang.String uuid,
114 com.liferay.portal.kernel.util.OrderByComparator obc)
115 throws com.liferay.portal.SystemException,
116 com.liferay.portlet.imagegallery.NoSuchImageException {
117 return getPersistence().findByUuid_PrevAndNext(imageId, uuid, obc);
118 }
119
120 public static java.util.List findByFolderId(long folderId)
121 throws com.liferay.portal.SystemException {
122 return getPersistence().findByFolderId(folderId);
123 }
124
125 public static java.util.List findByFolderId(long folderId, int begin,
126 int end) throws com.liferay.portal.SystemException {
127 return getPersistence().findByFolderId(folderId, begin, end);
128 }
129
130 public static java.util.List findByFolderId(long folderId, int begin,
131 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
132 throws com.liferay.portal.SystemException {
133 return getPersistence().findByFolderId(folderId, begin, end, obc);
134 }
135
136 public static com.liferay.portlet.imagegallery.model.IGImage findByFolderId_First(
137 long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
138 throws com.liferay.portal.SystemException,
139 com.liferay.portlet.imagegallery.NoSuchImageException {
140 return getPersistence().findByFolderId_First(folderId, obc);
141 }
142
143 public static com.liferay.portlet.imagegallery.model.IGImage findByFolderId_Last(
144 long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
145 throws com.liferay.portal.SystemException,
146 com.liferay.portlet.imagegallery.NoSuchImageException {
147 return getPersistence().findByFolderId_Last(folderId, obc);
148 }
149
150 public static com.liferay.portlet.imagegallery.model.IGImage[] findByFolderId_PrevAndNext(
151 long imageId, long folderId,
152 com.liferay.portal.kernel.util.OrderByComparator obc)
153 throws com.liferay.portal.SystemException,
154 com.liferay.portlet.imagegallery.NoSuchImageException {
155 return getPersistence().findByFolderId_PrevAndNext(imageId, folderId,
156 obc);
157 }
158
159 public static com.liferay.portlet.imagegallery.model.IGImage findBySmallImageId(
160 long smallImageId)
161 throws com.liferay.portal.SystemException,
162 com.liferay.portlet.imagegallery.NoSuchImageException {
163 return getPersistence().findBySmallImageId(smallImageId);
164 }
165
166 public static com.liferay.portlet.imagegallery.model.IGImage fetchBySmallImageId(
167 long smallImageId) throws com.liferay.portal.SystemException {
168 return getPersistence().fetchBySmallImageId(smallImageId);
169 }
170
171 public static com.liferay.portlet.imagegallery.model.IGImage findByLargeImageId(
172 long largeImageId)
173 throws com.liferay.portal.SystemException,
174 com.liferay.portlet.imagegallery.NoSuchImageException {
175 return getPersistence().findByLargeImageId(largeImageId);
176 }
177
178 public static com.liferay.portlet.imagegallery.model.IGImage fetchByLargeImageId(
179 long largeImageId) throws com.liferay.portal.SystemException {
180 return getPersistence().fetchByLargeImageId(largeImageId);
181 }
182
183 public static java.util.List findWithDynamicQuery(
184 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
185 throws com.liferay.portal.SystemException {
186 return getPersistence().findWithDynamicQuery(queryInitializer);
187 }
188
189 public static java.util.List findWithDynamicQuery(
190 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
191 int begin, int end) throws com.liferay.portal.SystemException {
192 return getPersistence().findWithDynamicQuery(queryInitializer, begin,
193 end);
194 }
195
196 public static java.util.List findAll()
197 throws com.liferay.portal.SystemException {
198 return getPersistence().findAll();
199 }
200
201 public static java.util.List findAll(int begin, int end)
202 throws com.liferay.portal.SystemException {
203 return getPersistence().findAll(begin, end);
204 }
205
206 public static java.util.List findAll(int begin, int end,
207 com.liferay.portal.kernel.util.OrderByComparator obc)
208 throws com.liferay.portal.SystemException {
209 return getPersistence().findAll(begin, end, obc);
210 }
211
212 public static void removeByUuid(java.lang.String uuid)
213 throws com.liferay.portal.SystemException {
214 getPersistence().removeByUuid(uuid);
215 }
216
217 public static void removeByFolderId(long folderId)
218 throws com.liferay.portal.SystemException {
219 getPersistence().removeByFolderId(folderId);
220 }
221
222 public static void removeBySmallImageId(long smallImageId)
223 throws com.liferay.portal.SystemException,
224 com.liferay.portlet.imagegallery.NoSuchImageException {
225 getPersistence().removeBySmallImageId(smallImageId);
226 }
227
228 public static void removeByLargeImageId(long largeImageId)
229 throws com.liferay.portal.SystemException,
230 com.liferay.portlet.imagegallery.NoSuchImageException {
231 getPersistence().removeByLargeImageId(largeImageId);
232 }
233
234 public static void removeAll() throws com.liferay.portal.SystemException {
235 getPersistence().removeAll();
236 }
237
238 public static int countByUuid(java.lang.String uuid)
239 throws com.liferay.portal.SystemException {
240 return getPersistence().countByUuid(uuid);
241 }
242
243 public static int countByFolderId(long folderId)
244 throws com.liferay.portal.SystemException {
245 return getPersistence().countByFolderId(folderId);
246 }
247
248 public static int countBySmallImageId(long smallImageId)
249 throws com.liferay.portal.SystemException {
250 return getPersistence().countBySmallImageId(smallImageId);
251 }
252
253 public static int countByLargeImageId(long largeImageId)
254 throws com.liferay.portal.SystemException {
255 return getPersistence().countByLargeImageId(largeImageId);
256 }
257
258 public static int countAll() throws com.liferay.portal.SystemException {
259 return getPersistence().countAll();
260 }
261
262 public static IGImagePersistence getPersistence() {
263 return _getUtil()._persistence;
264 }
265
266 public void setPersistence(IGImagePersistence persistence) {
267 _persistence = persistence;
268 }
269
270 private static IGImageUtil _getUtil() {
271 if (_util == null) {
272 _util = (IGImageUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
273 }
274
275 return _util;
276 }
277
278 private static final String _UTIL = IGImageUtil.class.getName();
279 private static IGImageUtil _util;
280 private IGImagePersistence _persistence;
281 }