1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.documentlibrary.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.documentlibrary.model.DLFolder;
20  
21  /**
22   * <a href="DLFolderPersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       DLFolderPersistenceImpl
31   * @see       DLFolderUtil
32   * @generated
33   */
34  public interface DLFolderPersistence extends BasePersistence<DLFolder> {
35      public void cacheResult(
36          com.liferay.portlet.documentlibrary.model.DLFolder dlFolder);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> dlFolders);
40  
41      public com.liferay.portlet.documentlibrary.model.DLFolder create(
42          long folderId);
43  
44      public com.liferay.portlet.documentlibrary.model.DLFolder remove(
45          long folderId)
46          throws com.liferay.portal.kernel.exception.SystemException,
47              com.liferay.portlet.documentlibrary.NoSuchFolderException;
48  
49      public com.liferay.portlet.documentlibrary.model.DLFolder updateImpl(
50          com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
51          boolean merge)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.documentlibrary.model.DLFolder findByPrimaryKey(
55          long folderId)
56          throws com.liferay.portal.kernel.exception.SystemException,
57              com.liferay.portlet.documentlibrary.NoSuchFolderException;
58  
59      public com.liferay.portlet.documentlibrary.model.DLFolder fetchByPrimaryKey(
60          long folderId)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid(
64          java.lang.String uuid)
65          throws com.liferay.portal.kernel.exception.SystemException;
66  
67      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid(
68          java.lang.String uuid, int start, int end)
69          throws com.liferay.portal.kernel.exception.SystemException;
70  
71      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid(
72          java.lang.String uuid, int start, int end,
73          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
74          throws com.liferay.portal.kernel.exception.SystemException;
75  
76      public com.liferay.portlet.documentlibrary.model.DLFolder findByUuid_First(
77          java.lang.String uuid,
78          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79          throws com.liferay.portal.kernel.exception.SystemException,
80              com.liferay.portlet.documentlibrary.NoSuchFolderException;
81  
82      public com.liferay.portlet.documentlibrary.model.DLFolder findByUuid_Last(
83          java.lang.String uuid,
84          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
85          throws com.liferay.portal.kernel.exception.SystemException,
86              com.liferay.portlet.documentlibrary.NoSuchFolderException;
87  
88      public com.liferay.portlet.documentlibrary.model.DLFolder[] findByUuid_PrevAndNext(
89          long folderId, java.lang.String uuid,
90          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
91          throws com.liferay.portal.kernel.exception.SystemException,
92              com.liferay.portlet.documentlibrary.NoSuchFolderException;
93  
94      public com.liferay.portlet.documentlibrary.model.DLFolder findByUUID_G(
95          java.lang.String uuid, long groupId)
96          throws com.liferay.portal.kernel.exception.SystemException,
97              com.liferay.portlet.documentlibrary.NoSuchFolderException;
98  
99      public com.liferay.portlet.documentlibrary.model.DLFolder fetchByUUID_G(
100         java.lang.String uuid, long groupId)
101         throws com.liferay.portal.kernel.exception.SystemException;
102 
103     public com.liferay.portlet.documentlibrary.model.DLFolder fetchByUUID_G(
104         java.lang.String uuid, long groupId, boolean retrieveFromCache)
105         throws com.liferay.portal.kernel.exception.SystemException;
106 
107     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId(
108         long groupId)
109         throws com.liferay.portal.kernel.exception.SystemException;
110 
111     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId(
112         long groupId, int start, int end)
113         throws com.liferay.portal.kernel.exception.SystemException;
114 
115     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId(
116         long groupId, int start, int end,
117         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
118         throws com.liferay.portal.kernel.exception.SystemException;
119 
120     public com.liferay.portlet.documentlibrary.model.DLFolder findByGroupId_First(
121         long groupId,
122         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
123         throws com.liferay.portal.kernel.exception.SystemException,
124             com.liferay.portlet.documentlibrary.NoSuchFolderException;
125 
126     public com.liferay.portlet.documentlibrary.model.DLFolder findByGroupId_Last(
127         long groupId,
128         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
129         throws com.liferay.portal.kernel.exception.SystemException,
130             com.liferay.portlet.documentlibrary.NoSuchFolderException;
131 
132     public com.liferay.portlet.documentlibrary.model.DLFolder[] findByGroupId_PrevAndNext(
133         long folderId, long groupId,
134         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135         throws com.liferay.portal.kernel.exception.SystemException,
136             com.liferay.portlet.documentlibrary.NoSuchFolderException;
137 
138     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByGroupId(
139         long groupId)
140         throws com.liferay.portal.kernel.exception.SystemException;
141 
142     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByGroupId(
143         long groupId, int start, int end)
144         throws com.liferay.portal.kernel.exception.SystemException;
145 
146     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByGroupId(
147         long groupId, int start, int end,
148         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149         throws com.liferay.portal.kernel.exception.SystemException;
150 
151     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId(
152         long companyId)
153         throws com.liferay.portal.kernel.exception.SystemException;
154 
155     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId(
156         long companyId, int start, int end)
157         throws com.liferay.portal.kernel.exception.SystemException;
158 
159     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId(
160         long companyId, int start, int end,
161         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
162         throws com.liferay.portal.kernel.exception.SystemException;
163 
164     public com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_First(
165         long companyId,
166         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167         throws com.liferay.portal.kernel.exception.SystemException,
168             com.liferay.portlet.documentlibrary.NoSuchFolderException;
169 
170     public com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_Last(
171         long companyId,
172         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173         throws com.liferay.portal.kernel.exception.SystemException,
174             com.liferay.portlet.documentlibrary.NoSuchFolderException;
175 
176     public com.liferay.portlet.documentlibrary.model.DLFolder[] findByCompanyId_PrevAndNext(
177         long folderId, long companyId,
178         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179         throws com.liferay.portal.kernel.exception.SystemException,
180             com.liferay.portlet.documentlibrary.NoSuchFolderException;
181 
182     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P(
183         long groupId, long parentFolderId)
184         throws com.liferay.portal.kernel.exception.SystemException;
185 
186     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P(
187         long groupId, long parentFolderId, int start, int end)
188         throws com.liferay.portal.kernel.exception.SystemException;
189 
190     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P(
191         long groupId, long parentFolderId, int start, int end,
192         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
193         throws com.liferay.portal.kernel.exception.SystemException;
194 
195     public com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_First(
196         long groupId, long parentFolderId,
197         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
198         throws com.liferay.portal.kernel.exception.SystemException,
199             com.liferay.portlet.documentlibrary.NoSuchFolderException;
200 
201     public com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_Last(
202         long groupId, long parentFolderId,
203         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
204         throws com.liferay.portal.kernel.exception.SystemException,
205             com.liferay.portlet.documentlibrary.NoSuchFolderException;
206 
207     public com.liferay.portlet.documentlibrary.model.DLFolder[] findByG_P_PrevAndNext(
208         long folderId, long groupId, long parentFolderId,
209         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210         throws com.liferay.portal.kernel.exception.SystemException,
211             com.liferay.portlet.documentlibrary.NoSuchFolderException;
212 
213     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P(
214         long groupId, long parentFolderId)
215         throws com.liferay.portal.kernel.exception.SystemException;
216 
217     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P(
218         long groupId, long parentFolderId, int start, int end)
219         throws com.liferay.portal.kernel.exception.SystemException;
220 
221     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P(
222         long groupId, long parentFolderId, int start, int end,
223         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
224         throws com.liferay.portal.kernel.exception.SystemException;
225 
226     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
227         long parentFolderId, java.lang.String name)
228         throws com.liferay.portal.kernel.exception.SystemException;
229 
230     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
231         long parentFolderId, java.lang.String name, int start, int end)
232         throws com.liferay.portal.kernel.exception.SystemException;
233 
234     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
235         long parentFolderId, java.lang.String name, int start, int end,
236         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
237         throws com.liferay.portal.kernel.exception.SystemException;
238 
239     public com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_First(
240         long parentFolderId, java.lang.String name,
241         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
242         throws com.liferay.portal.kernel.exception.SystemException,
243             com.liferay.portlet.documentlibrary.NoSuchFolderException;
244 
245     public com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_Last(
246         long parentFolderId, java.lang.String name,
247         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
248         throws com.liferay.portal.kernel.exception.SystemException,
249             com.liferay.portlet.documentlibrary.NoSuchFolderException;
250 
251     public com.liferay.portlet.documentlibrary.model.DLFolder[] findByP_N_PrevAndNext(
252         long folderId, long parentFolderId, java.lang.String name,
253         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
254         throws com.liferay.portal.kernel.exception.SystemException,
255             com.liferay.portlet.documentlibrary.NoSuchFolderException;
256 
257     public com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_N(
258         long groupId, long parentFolderId, java.lang.String name)
259         throws com.liferay.portal.kernel.exception.SystemException,
260             com.liferay.portlet.documentlibrary.NoSuchFolderException;
261 
262     public com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_N(
263         long groupId, long parentFolderId, java.lang.String name)
264         throws com.liferay.portal.kernel.exception.SystemException;
265 
266     public com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_N(
267         long groupId, long parentFolderId, java.lang.String name,
268         boolean retrieveFromCache)
269         throws com.liferay.portal.kernel.exception.SystemException;
270 
271     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll()
272         throws com.liferay.portal.kernel.exception.SystemException;
273 
274     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll(
275         int start, int end)
276         throws com.liferay.portal.kernel.exception.SystemException;
277 
278     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll(
279         int start, int end,
280         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
281         throws com.liferay.portal.kernel.exception.SystemException;
282 
283     public void removeByUuid(java.lang.String uuid)
284         throws com.liferay.portal.kernel.exception.SystemException;
285 
286     public void removeByUUID_G(java.lang.String uuid, long groupId)
287         throws com.liferay.portal.kernel.exception.SystemException,
288             com.liferay.portlet.documentlibrary.NoSuchFolderException;
289 
290     public void removeByGroupId(long groupId)
291         throws com.liferay.portal.kernel.exception.SystemException;
292 
293     public void removeByCompanyId(long companyId)
294         throws com.liferay.portal.kernel.exception.SystemException;
295 
296     public void removeByG_P(long groupId, long parentFolderId)
297         throws com.liferay.portal.kernel.exception.SystemException;
298 
299     public void removeByP_N(long parentFolderId, java.lang.String name)
300         throws com.liferay.portal.kernel.exception.SystemException;
301 
302     public void removeByG_P_N(long groupId, long parentFolderId,
303         java.lang.String name)
304         throws com.liferay.portal.kernel.exception.SystemException,
305             com.liferay.portlet.documentlibrary.NoSuchFolderException;
306 
307     public void removeAll()
308         throws com.liferay.portal.kernel.exception.SystemException;
309 
310     public int countByUuid(java.lang.String uuid)
311         throws com.liferay.portal.kernel.exception.SystemException;
312 
313     public int countByUUID_G(java.lang.String uuid, long groupId)
314         throws com.liferay.portal.kernel.exception.SystemException;
315 
316     public int countByGroupId(long groupId)
317         throws com.liferay.portal.kernel.exception.SystemException;
318 
319     public int filterCountByGroupId(long groupId)
320         throws com.liferay.portal.kernel.exception.SystemException;
321 
322     public int countByCompanyId(long companyId)
323         throws com.liferay.portal.kernel.exception.SystemException;
324 
325     public int countByG_P(long groupId, long parentFolderId)
326         throws com.liferay.portal.kernel.exception.SystemException;
327 
328     public int filterCountByG_P(long groupId, long parentFolderId)
329         throws com.liferay.portal.kernel.exception.SystemException;
330 
331     public int countByP_N(long parentFolderId, java.lang.String name)
332         throws com.liferay.portal.kernel.exception.SystemException;
333 
334     public int countByG_P_N(long groupId, long parentFolderId,
335         java.lang.String name)
336         throws com.liferay.portal.kernel.exception.SystemException;
337 
338     public int filterCountByG_P_N(long groupId, long parentFolderId,
339         java.lang.String name)
340         throws com.liferay.portal.kernel.exception.SystemException;
341 
342     public int countAll()
343         throws com.liferay.portal.kernel.exception.SystemException;
344 }