1
22
23 package com.liferay.portlet.documentlibrary.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 import com.liferay.portal.service.persistence.BasePersistence;
30
31
37 @Transactional(rollbackFor = {
38 PortalException.class, SystemException.class})
39 public interface DLFolderPersistence extends BasePersistence {
40 public com.liferay.portlet.documentlibrary.model.DLFolder create(
41 long folderId);
42
43 public com.liferay.portlet.documentlibrary.model.DLFolder remove(
44 long folderId)
45 throws com.liferay.portal.SystemException,
46 com.liferay.portlet.documentlibrary.NoSuchFolderException;
47
48 public com.liferay.portlet.documentlibrary.model.DLFolder remove(
49 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
50 throws com.liferay.portal.SystemException;
51
52
55 public com.liferay.portlet.documentlibrary.model.DLFolder update(
56 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
57 throws com.liferay.portal.SystemException;
58
59
72 public com.liferay.portlet.documentlibrary.model.DLFolder update(
73 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
74 boolean merge) throws com.liferay.portal.SystemException;
75
76 public com.liferay.portlet.documentlibrary.model.DLFolder updateImpl(
77 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
78 boolean merge) throws com.liferay.portal.SystemException;
79
80 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
81 public com.liferay.portlet.documentlibrary.model.DLFolder findByPrimaryKey(
82 long folderId)
83 throws com.liferay.portal.SystemException,
84 com.liferay.portlet.documentlibrary.NoSuchFolderException;
85
86 public com.liferay.portlet.documentlibrary.model.DLFolder fetchByPrimaryKey(
87 long folderId) throws com.liferay.portal.SystemException;
88
89 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid(
91 java.lang.String uuid) throws com.liferay.portal.SystemException;
92
93 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
94 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid(
95 java.lang.String uuid, int start, int end)
96 throws com.liferay.portal.SystemException;
97
98 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
99 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid(
100 java.lang.String uuid, int start, int end,
101 com.liferay.portal.kernel.util.OrderByComparator obc)
102 throws com.liferay.portal.SystemException;
103
104 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
105 public com.liferay.portlet.documentlibrary.model.DLFolder findByUuid_First(
106 java.lang.String uuid,
107 com.liferay.portal.kernel.util.OrderByComparator obc)
108 throws com.liferay.portal.SystemException,
109 com.liferay.portlet.documentlibrary.NoSuchFolderException;
110
111 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
112 public com.liferay.portlet.documentlibrary.model.DLFolder findByUuid_Last(
113 java.lang.String uuid,
114 com.liferay.portal.kernel.util.OrderByComparator obc)
115 throws com.liferay.portal.SystemException,
116 com.liferay.portlet.documentlibrary.NoSuchFolderException;
117
118 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
119 public com.liferay.portlet.documentlibrary.model.DLFolder[] findByUuid_PrevAndNext(
120 long folderId, java.lang.String uuid,
121 com.liferay.portal.kernel.util.OrderByComparator obc)
122 throws com.liferay.portal.SystemException,
123 com.liferay.portlet.documentlibrary.NoSuchFolderException;
124
125 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
126 public com.liferay.portlet.documentlibrary.model.DLFolder findByUUID_G(
127 java.lang.String uuid, long groupId)
128 throws com.liferay.portal.SystemException,
129 com.liferay.portlet.documentlibrary.NoSuchFolderException;
130
131 public com.liferay.portlet.documentlibrary.model.DLFolder fetchByUUID_G(
132 java.lang.String uuid, long groupId)
133 throws com.liferay.portal.SystemException;
134
135 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId(
137 long groupId) throws com.liferay.portal.SystemException;
138
139 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
140 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId(
141 long groupId, int start, int end)
142 throws com.liferay.portal.SystemException;
143
144 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
145 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId(
146 long groupId, int start, int end,
147 com.liferay.portal.kernel.util.OrderByComparator obc)
148 throws com.liferay.portal.SystemException;
149
150 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
151 public com.liferay.portlet.documentlibrary.model.DLFolder findByGroupId_First(
152 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
153 throws com.liferay.portal.SystemException,
154 com.liferay.portlet.documentlibrary.NoSuchFolderException;
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public com.liferay.portlet.documentlibrary.model.DLFolder findByGroupId_Last(
158 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
159 throws com.liferay.portal.SystemException,
160 com.liferay.portlet.documentlibrary.NoSuchFolderException;
161
162 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163 public com.liferay.portlet.documentlibrary.model.DLFolder[] findByGroupId_PrevAndNext(
164 long folderId, long groupId,
165 com.liferay.portal.kernel.util.OrderByComparator obc)
166 throws com.liferay.portal.SystemException,
167 com.liferay.portlet.documentlibrary.NoSuchFolderException;
168
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId(
171 long companyId) throws com.liferay.portal.SystemException;
172
173 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId(
175 long companyId, int start, int end)
176 throws com.liferay.portal.SystemException;
177
178 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId(
180 long companyId, int start, int end,
181 com.liferay.portal.kernel.util.OrderByComparator obc)
182 throws com.liferay.portal.SystemException;
183
184 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185 public com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_First(
186 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
187 throws com.liferay.portal.SystemException,
188 com.liferay.portlet.documentlibrary.NoSuchFolderException;
189
190 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191 public com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_Last(
192 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
193 throws com.liferay.portal.SystemException,
194 com.liferay.portlet.documentlibrary.NoSuchFolderException;
195
196 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197 public com.liferay.portlet.documentlibrary.model.DLFolder[] findByCompanyId_PrevAndNext(
198 long folderId, long companyId,
199 com.liferay.portal.kernel.util.OrderByComparator obc)
200 throws com.liferay.portal.SystemException,
201 com.liferay.portlet.documentlibrary.NoSuchFolderException;
202
203 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P(
205 long groupId, long parentFolderId)
206 throws com.liferay.portal.SystemException;
207
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P(
210 long groupId, long parentFolderId, int start, int end)
211 throws com.liferay.portal.SystemException;
212
213 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P(
215 long groupId, long parentFolderId, int start, int end,
216 com.liferay.portal.kernel.util.OrderByComparator obc)
217 throws com.liferay.portal.SystemException;
218
219 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220 public com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_First(
221 long groupId, long parentFolderId,
222 com.liferay.portal.kernel.util.OrderByComparator obc)
223 throws com.liferay.portal.SystemException,
224 com.liferay.portlet.documentlibrary.NoSuchFolderException;
225
226 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
227 public com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_Last(
228 long groupId, long parentFolderId,
229 com.liferay.portal.kernel.util.OrderByComparator obc)
230 throws com.liferay.portal.SystemException,
231 com.liferay.portlet.documentlibrary.NoSuchFolderException;
232
233 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
234 public com.liferay.portlet.documentlibrary.model.DLFolder[] findByG_P_PrevAndNext(
235 long folderId, long groupId, long parentFolderId,
236 com.liferay.portal.kernel.util.OrderByComparator obc)
237 throws com.liferay.portal.SystemException,
238 com.liferay.portlet.documentlibrary.NoSuchFolderException;
239
240 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
241 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
242 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<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
247 long parentFolderId, java.lang.String name, int start, int end)
248 throws com.liferay.portal.SystemException;
249
250 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
251 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
252 long parentFolderId, java.lang.String name, int start, int end,
253 com.liferay.portal.kernel.util.OrderByComparator obc)
254 throws com.liferay.portal.SystemException;
255
256 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
257 public com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_First(
258 long parentFolderId, java.lang.String name,
259 com.liferay.portal.kernel.util.OrderByComparator obc)
260 throws com.liferay.portal.SystemException,
261 com.liferay.portlet.documentlibrary.NoSuchFolderException;
262
263 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264 public com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_Last(
265 long parentFolderId, java.lang.String name,
266 com.liferay.portal.kernel.util.OrderByComparator obc)
267 throws com.liferay.portal.SystemException,
268 com.liferay.portlet.documentlibrary.NoSuchFolderException;
269
270 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
271 public com.liferay.portlet.documentlibrary.model.DLFolder[] findByP_N_PrevAndNext(
272 long folderId, long parentFolderId, java.lang.String name,
273 com.liferay.portal.kernel.util.OrderByComparator obc)
274 throws com.liferay.portal.SystemException,
275 com.liferay.portlet.documentlibrary.NoSuchFolderException;
276
277 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
278 public com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_N(
279 long groupId, long parentFolderId, java.lang.String name)
280 throws com.liferay.portal.SystemException,
281 com.liferay.portlet.documentlibrary.NoSuchFolderException;
282
283 public com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_N(
284 long groupId, long parentFolderId, java.lang.String name)
285 throws com.liferay.portal.SystemException;
286
287 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
288 public java.util.List<Object> findWithDynamicQuery(
289 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
290 throws com.liferay.portal.SystemException;
291
292 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
293 public java.util.List<Object> findWithDynamicQuery(
294 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
295 int end) throws com.liferay.portal.SystemException;
296
297 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
298 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll()
299 throws com.liferay.portal.SystemException;
300
301 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
302 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll(
303 int start, int end) throws com.liferay.portal.SystemException;
304
305 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
306 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll(
307 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
308 throws com.liferay.portal.SystemException;
309
310 public void removeByUuid(java.lang.String uuid)
311 throws com.liferay.portal.SystemException;
312
313 public void removeByUUID_G(java.lang.String uuid, long groupId)
314 throws com.liferay.portal.SystemException,
315 com.liferay.portlet.documentlibrary.NoSuchFolderException;
316
317 public void removeByGroupId(long groupId)
318 throws com.liferay.portal.SystemException;
319
320 public void removeByCompanyId(long companyId)
321 throws com.liferay.portal.SystemException;
322
323 public void removeByG_P(long groupId, long parentFolderId)
324 throws com.liferay.portal.SystemException;
325
326 public void removeByP_N(long parentFolderId, java.lang.String name)
327 throws com.liferay.portal.SystemException;
328
329 public void removeByG_P_N(long groupId, long parentFolderId,
330 java.lang.String name)
331 throws com.liferay.portal.SystemException,
332 com.liferay.portlet.documentlibrary.NoSuchFolderException;
333
334 public void removeAll() throws com.liferay.portal.SystemException;
335
336 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
337 public int countByUuid(java.lang.String uuid)
338 throws com.liferay.portal.SystemException;
339
340 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
341 public int countByUUID_G(java.lang.String uuid, long groupId)
342 throws com.liferay.portal.SystemException;
343
344 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
345 public int countByGroupId(long groupId)
346 throws com.liferay.portal.SystemException;
347
348 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
349 public int countByCompanyId(long companyId)
350 throws com.liferay.portal.SystemException;
351
352 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
353 public int countByG_P(long groupId, long parentFolderId)
354 throws com.liferay.portal.SystemException;
355
356 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
357 public int countByP_N(long parentFolderId, java.lang.String name)
358 throws com.liferay.portal.SystemException;
359
360 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
361 public int countByG_P_N(long groupId, long parentFolderId,
362 java.lang.String name) throws com.liferay.portal.SystemException;
363
364 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
365 public int countAll() throws com.liferay.portal.SystemException;
366 }