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