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 obc)
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 obc)
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 obc)
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 obc)
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 obc)
118         throws com.liferay.portal.kernel.exception.SystemException;
119 
120     public com.liferay.portlet.documentlibrary.model.DLFolder findByGroupId_First(
121         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
122         throws com.liferay.portal.kernel.exception.SystemException,
123             com.liferay.portlet.documentlibrary.NoSuchFolderException;
124 
125     public com.liferay.portlet.documentlibrary.model.DLFolder findByGroupId_Last(
126         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
127         throws com.liferay.portal.kernel.exception.SystemException,
128             com.liferay.portlet.documentlibrary.NoSuchFolderException;
129 
130     public com.liferay.portlet.documentlibrary.model.DLFolder[] findByGroupId_PrevAndNext(
131         long folderId, long groupId,
132         com.liferay.portal.kernel.util.OrderByComparator obc)
133         throws com.liferay.portal.kernel.exception.SystemException,
134             com.liferay.portlet.documentlibrary.NoSuchFolderException;
135 
136     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId(
137         long companyId)
138         throws com.liferay.portal.kernel.exception.SystemException;
139 
140     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId(
141         long companyId, int start, int end)
142         throws com.liferay.portal.kernel.exception.SystemException;
143 
144     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId(
145         long companyId, int start, int end,
146         com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.kernel.exception.SystemException;
148 
149     public com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_First(
150         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.kernel.exception.SystemException,
152             com.liferay.portlet.documentlibrary.NoSuchFolderException;
153 
154     public com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_Last(
155         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.kernel.exception.SystemException,
157             com.liferay.portlet.documentlibrary.NoSuchFolderException;
158 
159     public com.liferay.portlet.documentlibrary.model.DLFolder[] findByCompanyId_PrevAndNext(
160         long folderId, long companyId,
161         com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.kernel.exception.SystemException,
163             com.liferay.portlet.documentlibrary.NoSuchFolderException;
164 
165     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P(
166         long groupId, long parentFolderId)
167         throws com.liferay.portal.kernel.exception.SystemException;
168 
169     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P(
170         long groupId, long parentFolderId, int start, int end)
171         throws com.liferay.portal.kernel.exception.SystemException;
172 
173     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P(
174         long groupId, long parentFolderId, int start, int end,
175         com.liferay.portal.kernel.util.OrderByComparator obc)
176         throws com.liferay.portal.kernel.exception.SystemException;
177 
178     public com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_First(
179         long groupId, long parentFolderId,
180         com.liferay.portal.kernel.util.OrderByComparator obc)
181         throws com.liferay.portal.kernel.exception.SystemException,
182             com.liferay.portlet.documentlibrary.NoSuchFolderException;
183 
184     public com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_Last(
185         long groupId, long parentFolderId,
186         com.liferay.portal.kernel.util.OrderByComparator obc)
187         throws com.liferay.portal.kernel.exception.SystemException,
188             com.liferay.portlet.documentlibrary.NoSuchFolderException;
189 
190     public com.liferay.portlet.documentlibrary.model.DLFolder[] findByG_P_PrevAndNext(
191         long folderId, long groupId, long parentFolderId,
192         com.liferay.portal.kernel.util.OrderByComparator obc)
193         throws com.liferay.portal.kernel.exception.SystemException,
194             com.liferay.portlet.documentlibrary.NoSuchFolderException;
195 
196     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
197         long parentFolderId, java.lang.String name)
198         throws com.liferay.portal.kernel.exception.SystemException;
199 
200     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
201         long parentFolderId, java.lang.String name, int start, int end)
202         throws com.liferay.portal.kernel.exception.SystemException;
203 
204     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
205         long parentFolderId, java.lang.String name, int start, int end,
206         com.liferay.portal.kernel.util.OrderByComparator obc)
207         throws com.liferay.portal.kernel.exception.SystemException;
208 
209     public com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_First(
210         long parentFolderId, java.lang.String name,
211         com.liferay.portal.kernel.util.OrderByComparator obc)
212         throws com.liferay.portal.kernel.exception.SystemException,
213             com.liferay.portlet.documentlibrary.NoSuchFolderException;
214 
215     public com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_Last(
216         long parentFolderId, java.lang.String name,
217         com.liferay.portal.kernel.util.OrderByComparator obc)
218         throws com.liferay.portal.kernel.exception.SystemException,
219             com.liferay.portlet.documentlibrary.NoSuchFolderException;
220 
221     public com.liferay.portlet.documentlibrary.model.DLFolder[] findByP_N_PrevAndNext(
222         long folderId, long parentFolderId, java.lang.String name,
223         com.liferay.portal.kernel.util.OrderByComparator obc)
224         throws com.liferay.portal.kernel.exception.SystemException,
225             com.liferay.portlet.documentlibrary.NoSuchFolderException;
226 
227     public com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_N(
228         long groupId, long parentFolderId, java.lang.String name)
229         throws com.liferay.portal.kernel.exception.SystemException,
230             com.liferay.portlet.documentlibrary.NoSuchFolderException;
231 
232     public com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_N(
233         long groupId, long parentFolderId, java.lang.String name)
234         throws com.liferay.portal.kernel.exception.SystemException;
235 
236     public com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_N(
237         long groupId, long parentFolderId, java.lang.String name,
238         boolean retrieveFromCache)
239         throws com.liferay.portal.kernel.exception.SystemException;
240 
241     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll()
242         throws com.liferay.portal.kernel.exception.SystemException;
243 
244     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll(
245         int start, int end)
246         throws com.liferay.portal.kernel.exception.SystemException;
247 
248     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll(
249         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
250         throws com.liferay.portal.kernel.exception.SystemException;
251 
252     public void removeByUuid(java.lang.String uuid)
253         throws com.liferay.portal.kernel.exception.SystemException;
254 
255     public void removeByUUID_G(java.lang.String uuid, long groupId)
256         throws com.liferay.portal.kernel.exception.SystemException,
257             com.liferay.portlet.documentlibrary.NoSuchFolderException;
258 
259     public void removeByGroupId(long groupId)
260         throws com.liferay.portal.kernel.exception.SystemException;
261 
262     public void removeByCompanyId(long companyId)
263         throws com.liferay.portal.kernel.exception.SystemException;
264 
265     public void removeByG_P(long groupId, long parentFolderId)
266         throws com.liferay.portal.kernel.exception.SystemException;
267 
268     public void removeByP_N(long parentFolderId, java.lang.String name)
269         throws com.liferay.portal.kernel.exception.SystemException;
270 
271     public void removeByG_P_N(long groupId, long parentFolderId,
272         java.lang.String name)
273         throws com.liferay.portal.kernel.exception.SystemException,
274             com.liferay.portlet.documentlibrary.NoSuchFolderException;
275 
276     public void removeAll()
277         throws com.liferay.portal.kernel.exception.SystemException;
278 
279     public int countByUuid(java.lang.String uuid)
280         throws com.liferay.portal.kernel.exception.SystemException;
281 
282     public int countByUUID_G(java.lang.String uuid, long groupId)
283         throws com.liferay.portal.kernel.exception.SystemException;
284 
285     public int countByGroupId(long groupId)
286         throws com.liferay.portal.kernel.exception.SystemException;
287 
288     public int countByCompanyId(long companyId)
289         throws com.liferay.portal.kernel.exception.SystemException;
290 
291     public int countByG_P(long groupId, long parentFolderId)
292         throws com.liferay.portal.kernel.exception.SystemException;
293 
294     public int countByP_N(long parentFolderId, java.lang.String name)
295         throws com.liferay.portal.kernel.exception.SystemException;
296 
297     public int countByG_P_N(long groupId, long parentFolderId,
298         java.lang.String name)
299         throws com.liferay.portal.kernel.exception.SystemException;
300 
301     public int countAll()
302         throws com.liferay.portal.kernel.exception.SystemException;
303 }