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 IGFolderPersistence {
39 public com.liferay.portlet.imagegallery.model.IGFolder create(long folderId);
40
41 public com.liferay.portlet.imagegallery.model.IGFolder remove(long folderId)
42 throws com.liferay.portal.SystemException,
43 com.liferay.portlet.imagegallery.NoSuchFolderException;
44
45 public com.liferay.portlet.imagegallery.model.IGFolder remove(
46 com.liferay.portlet.imagegallery.model.IGFolder igFolder)
47 throws com.liferay.portal.SystemException;
48
49
52 public com.liferay.portlet.imagegallery.model.IGFolder update(
53 com.liferay.portlet.imagegallery.model.IGFolder igFolder)
54 throws com.liferay.portal.SystemException;
55
56
69 public com.liferay.portlet.imagegallery.model.IGFolder update(
70 com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge)
71 throws com.liferay.portal.SystemException;
72
73 public com.liferay.portlet.imagegallery.model.IGFolder updateImpl(
74 com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge)
75 throws com.liferay.portal.SystemException;
76
77 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78 public com.liferay.portlet.imagegallery.model.IGFolder findByPrimaryKey(
79 long folderId)
80 throws com.liferay.portal.SystemException,
81 com.liferay.portlet.imagegallery.NoSuchFolderException;
82
83 public com.liferay.portlet.imagegallery.model.IGFolder fetchByPrimaryKey(
84 long folderId) throws com.liferay.portal.SystemException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> 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.IGFolder> 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.IGFolder> 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.IGFolder 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.NoSuchFolderException;
107
108 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
109 public com.liferay.portlet.imagegallery.model.IGFolder 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.NoSuchFolderException;
114
115 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116 public com.liferay.portlet.imagegallery.model.IGFolder[] findByUuid_PrevAndNext(
117 long folderId, java.lang.String uuid,
118 com.liferay.portal.kernel.util.OrderByComparator obc)
119 throws com.liferay.portal.SystemException,
120 com.liferay.portlet.imagegallery.NoSuchFolderException;
121
122 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123 public com.liferay.portlet.imagegallery.model.IGFolder findByUUID_G(
124 java.lang.String uuid, long groupId)
125 throws com.liferay.portal.SystemException,
126 com.liferay.portlet.imagegallery.NoSuchFolderException;
127
128 public com.liferay.portlet.imagegallery.model.IGFolder fetchByUUID_G(
129 java.lang.String uuid, long groupId)
130 throws com.liferay.portal.SystemException;
131
132 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
133 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByGroupId(
134 long groupId) throws com.liferay.portal.SystemException;
135
136 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
137 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByGroupId(
138 long groupId, int start, int end)
139 throws com.liferay.portal.SystemException;
140
141 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByGroupId(
143 long groupId, int start, int end,
144 com.liferay.portal.kernel.util.OrderByComparator obc)
145 throws com.liferay.portal.SystemException;
146
147 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148 public com.liferay.portlet.imagegallery.model.IGFolder findByGroupId_First(
149 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
150 throws com.liferay.portal.SystemException,
151 com.liferay.portlet.imagegallery.NoSuchFolderException;
152
153 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
154 public com.liferay.portlet.imagegallery.model.IGFolder findByGroupId_Last(
155 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
156 throws com.liferay.portal.SystemException,
157 com.liferay.portlet.imagegallery.NoSuchFolderException;
158
159 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
160 public com.liferay.portlet.imagegallery.model.IGFolder[] findByGroupId_PrevAndNext(
161 long folderId, long groupId,
162 com.liferay.portal.kernel.util.OrderByComparator obc)
163 throws com.liferay.portal.SystemException,
164 com.liferay.portlet.imagegallery.NoSuchFolderException;
165
166 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
168 long companyId) throws com.liferay.portal.SystemException;
169
170 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
171 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
172 long companyId, int start, int end)
173 throws com.liferay.portal.SystemException;
174
175 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
177 long companyId, int start, int end,
178 com.liferay.portal.kernel.util.OrderByComparator obc)
179 throws com.liferay.portal.SystemException;
180
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public com.liferay.portlet.imagegallery.model.IGFolder findByCompanyId_First(
183 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
184 throws com.liferay.portal.SystemException,
185 com.liferay.portlet.imagegallery.NoSuchFolderException;
186
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public com.liferay.portlet.imagegallery.model.IGFolder findByCompanyId_Last(
189 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
190 throws com.liferay.portal.SystemException,
191 com.liferay.portlet.imagegallery.NoSuchFolderException;
192
193 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194 public com.liferay.portlet.imagegallery.model.IGFolder[] findByCompanyId_PrevAndNext(
195 long folderId, long companyId,
196 com.liferay.portal.kernel.util.OrderByComparator obc)
197 throws com.liferay.portal.SystemException,
198 com.liferay.portlet.imagegallery.NoSuchFolderException;
199
200 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
202 long groupId, long parentFolderId)
203 throws com.liferay.portal.SystemException;
204
205 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
206 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
207 long groupId, long parentFolderId, int start, int end)
208 throws com.liferay.portal.SystemException;
209
210 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
211 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
212 long groupId, long parentFolderId, int start, int end,
213 com.liferay.portal.kernel.util.OrderByComparator obc)
214 throws com.liferay.portal.SystemException;
215
216 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
217 public com.liferay.portlet.imagegallery.model.IGFolder findByG_P_First(
218 long groupId, long parentFolderId,
219 com.liferay.portal.kernel.util.OrderByComparator obc)
220 throws com.liferay.portal.SystemException,
221 com.liferay.portlet.imagegallery.NoSuchFolderException;
222
223 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
224 public com.liferay.portlet.imagegallery.model.IGFolder findByG_P_Last(
225 long groupId, long parentFolderId,
226 com.liferay.portal.kernel.util.OrderByComparator obc)
227 throws com.liferay.portal.SystemException,
228 com.liferay.portlet.imagegallery.NoSuchFolderException;
229
230 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
231 public com.liferay.portlet.imagegallery.model.IGFolder[] findByG_P_PrevAndNext(
232 long folderId, long groupId, long parentFolderId,
233 com.liferay.portal.kernel.util.OrderByComparator obc)
234 throws com.liferay.portal.SystemException,
235 com.liferay.portlet.imagegallery.NoSuchFolderException;
236
237 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
238 public com.liferay.portlet.imagegallery.model.IGFolder findByG_P_N(
239 long groupId, long parentFolderId, java.lang.String name)
240 throws com.liferay.portal.SystemException,
241 com.liferay.portlet.imagegallery.NoSuchFolderException;
242
243 public com.liferay.portlet.imagegallery.model.IGFolder fetchByG_P_N(
244 long groupId, long parentFolderId, java.lang.String name)
245 throws com.liferay.portal.SystemException;
246
247 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248 public java.util.List<Object> findWithDynamicQuery(
249 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
250 throws com.liferay.portal.SystemException;
251
252 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
253 public java.util.List<Object> findWithDynamicQuery(
254 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
255 int end) throws com.liferay.portal.SystemException;
256
257 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
258 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll()
259 throws com.liferay.portal.SystemException;
260
261 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
262 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll(
263 int start, int end) throws com.liferay.portal.SystemException;
264
265 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
266 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll(
267 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
268 throws com.liferay.portal.SystemException;
269
270 public void removeByUuid(java.lang.String uuid)
271 throws com.liferay.portal.SystemException;
272
273 public void removeByUUID_G(java.lang.String uuid, long groupId)
274 throws com.liferay.portal.SystemException,
275 com.liferay.portlet.imagegallery.NoSuchFolderException;
276
277 public void removeByGroupId(long groupId)
278 throws com.liferay.portal.SystemException;
279
280 public void removeByCompanyId(long companyId)
281 throws com.liferay.portal.SystemException;
282
283 public void removeByG_P(long groupId, long parentFolderId)
284 throws com.liferay.portal.SystemException;
285
286 public void removeByG_P_N(long groupId, long parentFolderId,
287 java.lang.String name)
288 throws com.liferay.portal.SystemException,
289 com.liferay.portlet.imagegallery.NoSuchFolderException;
290
291 public void removeAll() throws com.liferay.portal.SystemException;
292
293 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294 public int countByUuid(java.lang.String uuid)
295 throws com.liferay.portal.SystemException;
296
297 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
298 public int countByUUID_G(java.lang.String uuid, long groupId)
299 throws com.liferay.portal.SystemException;
300
301 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
302 public int countByGroupId(long groupId)
303 throws com.liferay.portal.SystemException;
304
305 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
306 public int countByCompanyId(long companyId)
307 throws com.liferay.portal.SystemException;
308
309 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
310 public int countByG_P(long groupId, long parentFolderId)
311 throws com.liferay.portal.SystemException;
312
313 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
314 public int countByG_P_N(long groupId, long parentFolderId,
315 java.lang.String name) throws com.liferay.portal.SystemException;
316
317 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
318 public int countAll() throws com.liferay.portal.SystemException;
319
320 public void registerListener(
321 com.liferay.portal.model.ModelListener listener);
322
323 public void unregisterListener(
324 com.liferay.portal.model.ModelListener listener);
325 }