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