1
19
20 package com.liferay.portlet.documentlibrary.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 DLFolderPersistence extends BasePersistence {
37 public com.liferay.portlet.documentlibrary.model.DLFolder create(
38 long folderId);
39
40 public com.liferay.portlet.documentlibrary.model.DLFolder remove(
41 long folderId)
42 throws com.liferay.portal.SystemException,
43 com.liferay.portlet.documentlibrary.NoSuchFolderException;
44
45 public com.liferay.portlet.documentlibrary.model.DLFolder remove(
46 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
47 throws com.liferay.portal.SystemException;
48
49
52 public com.liferay.portlet.documentlibrary.model.DLFolder update(
53 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
54 throws com.liferay.portal.SystemException;
55
56
69 public com.liferay.portlet.documentlibrary.model.DLFolder update(
70 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
71 boolean merge) throws com.liferay.portal.SystemException;
72
73 public com.liferay.portlet.documentlibrary.model.DLFolder updateImpl(
74 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
75 boolean merge) throws com.liferay.portal.SystemException;
76
77 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78 public com.liferay.portlet.documentlibrary.model.DLFolder findByPrimaryKey(
79 long folderId)
80 throws com.liferay.portal.SystemException,
81 com.liferay.portlet.documentlibrary.NoSuchFolderException;
82
83 public com.liferay.portlet.documentlibrary.model.DLFolder 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.documentlibrary.model.DLFolder> 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.documentlibrary.model.DLFolder> 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.documentlibrary.model.DLFolder> 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.documentlibrary.model.DLFolder 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.documentlibrary.NoSuchFolderException;
107
108 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
109 public com.liferay.portlet.documentlibrary.model.DLFolder 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.documentlibrary.NoSuchFolderException;
114
115 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116 public com.liferay.portlet.documentlibrary.model.DLFolder[] 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.documentlibrary.NoSuchFolderException;
121
122 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123 public com.liferay.portlet.documentlibrary.model.DLFolder findByUUID_G(
124 java.lang.String uuid, long groupId)
125 throws com.liferay.portal.SystemException,
126 com.liferay.portlet.documentlibrary.NoSuchFolderException;
127
128 public com.liferay.portlet.documentlibrary.model.DLFolder 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.documentlibrary.model.DLFolder> 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.documentlibrary.model.DLFolder> 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.documentlibrary.model.DLFolder> 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.documentlibrary.model.DLFolder findByGroupId_First(
149 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
150 throws com.liferay.portal.SystemException,
151 com.liferay.portlet.documentlibrary.NoSuchFolderException;
152
153 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
154 public com.liferay.portlet.documentlibrary.model.DLFolder findByGroupId_Last(
155 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
156 throws com.liferay.portal.SystemException,
157 com.liferay.portlet.documentlibrary.NoSuchFolderException;
158
159 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
160 public com.liferay.portlet.documentlibrary.model.DLFolder[] 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.documentlibrary.NoSuchFolderException;
165
166 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> 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.documentlibrary.model.DLFolder> 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.documentlibrary.model.DLFolder> 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.documentlibrary.model.DLFolder findByCompanyId_First(
183 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
184 throws com.liferay.portal.SystemException,
185 com.liferay.portlet.documentlibrary.NoSuchFolderException;
186
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_Last(
189 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
190 throws com.liferay.portal.SystemException,
191 com.liferay.portlet.documentlibrary.NoSuchFolderException;
192
193 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194 public com.liferay.portlet.documentlibrary.model.DLFolder[] 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.documentlibrary.NoSuchFolderException;
199
200 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> 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.documentlibrary.model.DLFolder> 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.documentlibrary.model.DLFolder> 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.documentlibrary.model.DLFolder 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.documentlibrary.NoSuchFolderException;
222
223 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
224 public com.liferay.portlet.documentlibrary.model.DLFolder 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.documentlibrary.NoSuchFolderException;
229
230 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
231 public com.liferay.portlet.documentlibrary.model.DLFolder[] 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.documentlibrary.NoSuchFolderException;
236
237 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
238 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
239 long parentFolderId, java.lang.String name)
240 throws com.liferay.portal.SystemException;
241
242 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
243 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
244 long parentFolderId, java.lang.String name, int start, int end)
245 throws com.liferay.portal.SystemException;
246
247 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
249 long parentFolderId, java.lang.String name, int start, int end,
250 com.liferay.portal.kernel.util.OrderByComparator obc)
251 throws com.liferay.portal.SystemException;
252
253 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
254 public com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_First(
255 long parentFolderId, java.lang.String name,
256 com.liferay.portal.kernel.util.OrderByComparator obc)
257 throws com.liferay.portal.SystemException,
258 com.liferay.portlet.documentlibrary.NoSuchFolderException;
259
260 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
261 public com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_Last(
262 long parentFolderId, java.lang.String name,
263 com.liferay.portal.kernel.util.OrderByComparator obc)
264 throws com.liferay.portal.SystemException,
265 com.liferay.portlet.documentlibrary.NoSuchFolderException;
266
267 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
268 public com.liferay.portlet.documentlibrary.model.DLFolder[] findByP_N_PrevAndNext(
269 long folderId, long parentFolderId, java.lang.String name,
270 com.liferay.portal.kernel.util.OrderByComparator obc)
271 throws com.liferay.portal.SystemException,
272 com.liferay.portlet.documentlibrary.NoSuchFolderException;
273
274 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
275 public com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_N(
276 long groupId, long parentFolderId, java.lang.String name)
277 throws com.liferay.portal.SystemException,
278 com.liferay.portlet.documentlibrary.NoSuchFolderException;
279
280 public com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_N(
281 long groupId, long parentFolderId, java.lang.String name)
282 throws com.liferay.portal.SystemException;
283
284 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
285 public java.util.List<Object> findWithDynamicQuery(
286 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
287 throws com.liferay.portal.SystemException;
288
289 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
290 public java.util.List<Object> findWithDynamicQuery(
291 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
292 int end) throws com.liferay.portal.SystemException;
293
294 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
295 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll()
296 throws com.liferay.portal.SystemException;
297
298 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
299 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll(
300 int start, int end) throws com.liferay.portal.SystemException;
301
302 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
303 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll(
304 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
305 throws com.liferay.portal.SystemException;
306
307 public void removeByUuid(java.lang.String uuid)
308 throws com.liferay.portal.SystemException;
309
310 public void removeByUUID_G(java.lang.String uuid, long groupId)
311 throws com.liferay.portal.SystemException,
312 com.liferay.portlet.documentlibrary.NoSuchFolderException;
313
314 public void removeByGroupId(long groupId)
315 throws com.liferay.portal.SystemException;
316
317 public void removeByCompanyId(long companyId)
318 throws com.liferay.portal.SystemException;
319
320 public void removeByG_P(long groupId, long parentFolderId)
321 throws com.liferay.portal.SystemException;
322
323 public void removeByP_N(long parentFolderId, java.lang.String name)
324 throws com.liferay.portal.SystemException;
325
326 public void removeByG_P_N(long groupId, long parentFolderId,
327 java.lang.String name)
328 throws com.liferay.portal.SystemException,
329 com.liferay.portlet.documentlibrary.NoSuchFolderException;
330
331 public void removeAll() throws com.liferay.portal.SystemException;
332
333 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
334 public int countByUuid(java.lang.String uuid)
335 throws com.liferay.portal.SystemException;
336
337 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
338 public int countByUUID_G(java.lang.String uuid, long groupId)
339 throws com.liferay.portal.SystemException;
340
341 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
342 public int countByGroupId(long groupId)
343 throws com.liferay.portal.SystemException;
344
345 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
346 public int countByCompanyId(long companyId)
347 throws com.liferay.portal.SystemException;
348
349 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
350 public int countByG_P(long groupId, long parentFolderId)
351 throws com.liferay.portal.SystemException;
352
353 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
354 public int countByP_N(long parentFolderId, java.lang.String name)
355 throws com.liferay.portal.SystemException;
356
357 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
358 public int countByG_P_N(long groupId, long parentFolderId,
359 java.lang.String name) throws com.liferay.portal.SystemException;
360
361 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
362 public int countAll() throws com.liferay.portal.SystemException;
363 }