1
22
23 package com.liferay.portlet.imagegallery.service.persistence;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Propagation;
28 import com.liferay.portal.kernel.annotation.Transactional;
29
30
36 @Transactional(rollbackFor = {
37 PortalException.class, SystemException.class})
38 public interface IGImagePersistence {
39 public com.liferay.portlet.imagegallery.model.IGImage create(long imageId);
40
41 public com.liferay.portlet.imagegallery.model.IGImage remove(long imageId)
42 throws com.liferay.portal.SystemException,
43 com.liferay.portlet.imagegallery.NoSuchImageException;
44
45 public com.liferay.portlet.imagegallery.model.IGImage remove(
46 com.liferay.portlet.imagegallery.model.IGImage igImage)
47 throws com.liferay.portal.SystemException;
48
49
52 public com.liferay.portlet.imagegallery.model.IGImage update(
53 com.liferay.portlet.imagegallery.model.IGImage igImage)
54 throws com.liferay.portal.SystemException;
55
56
69 public com.liferay.portlet.imagegallery.model.IGImage update(
70 com.liferay.portlet.imagegallery.model.IGImage igImage, boolean merge)
71 throws com.liferay.portal.SystemException;
72
73 public com.liferay.portlet.imagegallery.model.IGImage updateImpl(
74 com.liferay.portlet.imagegallery.model.IGImage igImage, boolean merge)
75 throws com.liferay.portal.SystemException;
76
77 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78 public com.liferay.portlet.imagegallery.model.IGImage findByPrimaryKey(
79 long imageId)
80 throws com.liferay.portal.SystemException,
81 com.liferay.portlet.imagegallery.NoSuchImageException;
82
83 public com.liferay.portlet.imagegallery.model.IGImage fetchByPrimaryKey(
84 long imageId) throws com.liferay.portal.SystemException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByUuid(
88 java.lang.String uuid) throws com.liferay.portal.SystemException;
89
90 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByUuid(
92 java.lang.String uuid, int start, int end)
93 throws com.liferay.portal.SystemException;
94
95 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
96 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByUuid(
97 java.lang.String uuid, int start, int end,
98 com.liferay.portal.kernel.util.OrderByComparator obc)
99 throws com.liferay.portal.SystemException;
100
101 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
102 public com.liferay.portlet.imagegallery.model.IGImage findByUuid_First(
103 java.lang.String uuid,
104 com.liferay.portal.kernel.util.OrderByComparator obc)
105 throws com.liferay.portal.SystemException,
106 com.liferay.portlet.imagegallery.NoSuchImageException;
107
108 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
109 public com.liferay.portlet.imagegallery.model.IGImage findByUuid_Last(
110 java.lang.String uuid,
111 com.liferay.portal.kernel.util.OrderByComparator obc)
112 throws com.liferay.portal.SystemException,
113 com.liferay.portlet.imagegallery.NoSuchImageException;
114
115 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116 public com.liferay.portlet.imagegallery.model.IGImage[] findByUuid_PrevAndNext(
117 long imageId, java.lang.String uuid,
118 com.liferay.portal.kernel.util.OrderByComparator obc)
119 throws com.liferay.portal.SystemException,
120 com.liferay.portlet.imagegallery.NoSuchImageException;
121
122 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByFolderId(
124 long folderId) throws com.liferay.portal.SystemException;
125
126 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByFolderId(
128 long folderId, int start, int end)
129 throws com.liferay.portal.SystemException;
130
131 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByFolderId(
133 long folderId, int start, int end,
134 com.liferay.portal.kernel.util.OrderByComparator obc)
135 throws com.liferay.portal.SystemException;
136
137 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
138 public com.liferay.portlet.imagegallery.model.IGImage findByFolderId_First(
139 long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
140 throws com.liferay.portal.SystemException,
141 com.liferay.portlet.imagegallery.NoSuchImageException;
142
143 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
144 public com.liferay.portlet.imagegallery.model.IGImage findByFolderId_Last(
145 long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
146 throws com.liferay.portal.SystemException,
147 com.liferay.portlet.imagegallery.NoSuchImageException;
148
149 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150 public 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
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public com.liferay.portlet.imagegallery.model.IGImage findBySmallImageId(
158 long smallImageId)
159 throws com.liferay.portal.SystemException,
160 com.liferay.portlet.imagegallery.NoSuchImageException;
161
162 public com.liferay.portlet.imagegallery.model.IGImage fetchBySmallImageId(
163 long smallImageId) throws com.liferay.portal.SystemException;
164
165 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166 public com.liferay.portlet.imagegallery.model.IGImage findByLargeImageId(
167 long largeImageId)
168 throws com.liferay.portal.SystemException,
169 com.liferay.portlet.imagegallery.NoSuchImageException;
170
171 public com.liferay.portlet.imagegallery.model.IGImage fetchByLargeImageId(
172 long largeImageId) throws com.liferay.portal.SystemException;
173
174 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175 public com.liferay.portlet.imagegallery.model.IGImage findByCustom1ImageId(
176 long custom1ImageId)
177 throws com.liferay.portal.SystemException,
178 com.liferay.portlet.imagegallery.NoSuchImageException;
179
180 public com.liferay.portlet.imagegallery.model.IGImage fetchByCustom1ImageId(
181 long custom1ImageId) throws com.liferay.portal.SystemException;
182
183 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184 public com.liferay.portlet.imagegallery.model.IGImage findByCustom2ImageId(
185 long custom2ImageId)
186 throws com.liferay.portal.SystemException,
187 com.liferay.portlet.imagegallery.NoSuchImageException;
188
189 public com.liferay.portlet.imagegallery.model.IGImage fetchByCustom2ImageId(
190 long custom2ImageId) throws com.liferay.portal.SystemException;
191
192 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByF_N(
194 long folderId, java.lang.String name)
195 throws com.liferay.portal.SystemException;
196
197 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByF_N(
199 long folderId, java.lang.String name, int start, int end)
200 throws com.liferay.portal.SystemException;
201
202 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByF_N(
204 long folderId, java.lang.String name, int start, int end,
205 com.liferay.portal.kernel.util.OrderByComparator obc)
206 throws com.liferay.portal.SystemException;
207
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public com.liferay.portlet.imagegallery.model.IGImage findByF_N_First(
210 long folderId, java.lang.String name,
211 com.liferay.portal.kernel.util.OrderByComparator obc)
212 throws com.liferay.portal.SystemException,
213 com.liferay.portlet.imagegallery.NoSuchImageException;
214
215 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216 public com.liferay.portlet.imagegallery.model.IGImage findByF_N_Last(
217 long folderId, java.lang.String name,
218 com.liferay.portal.kernel.util.OrderByComparator obc)
219 throws com.liferay.portal.SystemException,
220 com.liferay.portlet.imagegallery.NoSuchImageException;
221
222 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223 public com.liferay.portlet.imagegallery.model.IGImage[] findByF_N_PrevAndNext(
224 long imageId, long folderId, java.lang.String name,
225 com.liferay.portal.kernel.util.OrderByComparator obc)
226 throws com.liferay.portal.SystemException,
227 com.liferay.portlet.imagegallery.NoSuchImageException;
228
229 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
230 public java.util.List<Object> findWithDynamicQuery(
231 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
232 throws com.liferay.portal.SystemException;
233
234 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
235 public java.util.List<Object> findWithDynamicQuery(
236 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
237 int end) throws com.liferay.portal.SystemException;
238
239 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
240 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findAll()
241 throws com.liferay.portal.SystemException;
242
243 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
244 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findAll(
245 int start, int end) throws com.liferay.portal.SystemException;
246
247 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findAll(
249 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
250 throws com.liferay.portal.SystemException;
251
252 public void removeByUuid(java.lang.String uuid)
253 throws com.liferay.portal.SystemException;
254
255 public void removeByFolderId(long folderId)
256 throws com.liferay.portal.SystemException;
257
258 public void removeBySmallImageId(long smallImageId)
259 throws com.liferay.portal.SystemException,
260 com.liferay.portlet.imagegallery.NoSuchImageException;
261
262 public void removeByLargeImageId(long largeImageId)
263 throws com.liferay.portal.SystemException,
264 com.liferay.portlet.imagegallery.NoSuchImageException;
265
266 public void removeByCustom1ImageId(long custom1ImageId)
267 throws com.liferay.portal.SystemException,
268 com.liferay.portlet.imagegallery.NoSuchImageException;
269
270 public void removeByCustom2ImageId(long custom2ImageId)
271 throws com.liferay.portal.SystemException,
272 com.liferay.portlet.imagegallery.NoSuchImageException;
273
274 public void removeByF_N(long folderId, java.lang.String name)
275 throws com.liferay.portal.SystemException;
276
277 public void removeAll() throws com.liferay.portal.SystemException;
278
279 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
280 public int countByUuid(java.lang.String uuid)
281 throws com.liferay.portal.SystemException;
282
283 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
284 public int countByFolderId(long folderId)
285 throws com.liferay.portal.SystemException;
286
287 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
288 public int countBySmallImageId(long smallImageId)
289 throws com.liferay.portal.SystemException;
290
291 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292 public int countByLargeImageId(long largeImageId)
293 throws com.liferay.portal.SystemException;
294
295 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
296 public int countByCustom1ImageId(long custom1ImageId)
297 throws com.liferay.portal.SystemException;
298
299 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300 public int countByCustom2ImageId(long custom2ImageId)
301 throws com.liferay.portal.SystemException;
302
303 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
304 public int countByF_N(long folderId, java.lang.String name)
305 throws com.liferay.portal.SystemException;
306
307 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
308 public int countAll() throws com.liferay.portal.SystemException;
309
310 public void registerListener(
311 com.liferay.portal.model.ModelListener listener);
312
313 public void unregisterListener(
314 com.liferay.portal.model.ModelListener listener);
315 }