1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.documentlibrary.service.persistence;
24  
25  /**
26   * <a href="DLFolderPersistence.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public interface DLFolderPersistence {
32      public com.liferay.portlet.documentlibrary.model.DLFolder create(
33          long folderId);
34  
35      public com.liferay.portlet.documentlibrary.model.DLFolder remove(
36          long folderId)
37          throws com.liferay.portal.SystemException, 
38              com.liferay.portlet.documentlibrary.NoSuchFolderException;
39  
40      public com.liferay.portlet.documentlibrary.model.DLFolder remove(
41          com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
42          throws com.liferay.portal.SystemException;
43  
44      public com.liferay.portlet.documentlibrary.model.DLFolder update(
45          com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
46          throws com.liferay.portal.SystemException;
47  
48      public com.liferay.portlet.documentlibrary.model.DLFolder update(
49          com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
50          boolean merge) throws com.liferay.portal.SystemException;
51  
52      public com.liferay.portlet.documentlibrary.model.DLFolder updateImpl(
53          com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
54          boolean merge) throws com.liferay.portal.SystemException;
55  
56      public com.liferay.portlet.documentlibrary.model.DLFolder findByPrimaryKey(
57          long folderId)
58          throws com.liferay.portal.SystemException, 
59              com.liferay.portlet.documentlibrary.NoSuchFolderException;
60  
61      public com.liferay.portlet.documentlibrary.model.DLFolder fetchByPrimaryKey(
62          long folderId) throws com.liferay.portal.SystemException;
63  
64      public java.util.List findByUuid(java.lang.String uuid)
65          throws com.liferay.portal.SystemException;
66  
67      public java.util.List findByUuid(java.lang.String uuid, int begin, int end)
68          throws com.liferay.portal.SystemException;
69  
70      public java.util.List findByUuid(java.lang.String uuid, int begin, int end,
71          com.liferay.portal.kernel.util.OrderByComparator obc)
72          throws com.liferay.portal.SystemException;
73  
74      public com.liferay.portlet.documentlibrary.model.DLFolder findByUuid_First(
75          java.lang.String uuid,
76          com.liferay.portal.kernel.util.OrderByComparator obc)
77          throws com.liferay.portal.SystemException, 
78              com.liferay.portlet.documentlibrary.NoSuchFolderException;
79  
80      public com.liferay.portlet.documentlibrary.model.DLFolder findByUuid_Last(
81          java.lang.String uuid,
82          com.liferay.portal.kernel.util.OrderByComparator obc)
83          throws com.liferay.portal.SystemException, 
84              com.liferay.portlet.documentlibrary.NoSuchFolderException;
85  
86      public com.liferay.portlet.documentlibrary.model.DLFolder[] findByUuid_PrevAndNext(
87          long folderId, java.lang.String uuid,
88          com.liferay.portal.kernel.util.OrderByComparator obc)
89          throws com.liferay.portal.SystemException, 
90              com.liferay.portlet.documentlibrary.NoSuchFolderException;
91  
92      public com.liferay.portlet.documentlibrary.model.DLFolder findByUUID_G(
93          java.lang.String uuid, long groupId)
94          throws com.liferay.portal.SystemException, 
95              com.liferay.portlet.documentlibrary.NoSuchFolderException;
96  
97      public com.liferay.portlet.documentlibrary.model.DLFolder fetchByUUID_G(
98          java.lang.String uuid, long groupId)
99          throws com.liferay.portal.SystemException;
100 
101     public java.util.List findByGroupId(long groupId)
102         throws com.liferay.portal.SystemException;
103 
104     public java.util.List findByGroupId(long groupId, int begin, int end)
105         throws com.liferay.portal.SystemException;
106 
107     public java.util.List findByGroupId(long groupId, int begin, int end,
108         com.liferay.portal.kernel.util.OrderByComparator obc)
109         throws com.liferay.portal.SystemException;
110 
111     public com.liferay.portlet.documentlibrary.model.DLFolder findByGroupId_First(
112         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
113         throws com.liferay.portal.SystemException, 
114             com.liferay.portlet.documentlibrary.NoSuchFolderException;
115 
116     public com.liferay.portlet.documentlibrary.model.DLFolder findByGroupId_Last(
117         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
118         throws com.liferay.portal.SystemException, 
119             com.liferay.portlet.documentlibrary.NoSuchFolderException;
120 
121     public com.liferay.portlet.documentlibrary.model.DLFolder[] findByGroupId_PrevAndNext(
122         long folderId, long groupId,
123         com.liferay.portal.kernel.util.OrderByComparator obc)
124         throws com.liferay.portal.SystemException, 
125             com.liferay.portlet.documentlibrary.NoSuchFolderException;
126 
127     public java.util.List findByCompanyId(long companyId)
128         throws com.liferay.portal.SystemException;
129 
130     public java.util.List findByCompanyId(long companyId, int begin, int end)
131         throws com.liferay.portal.SystemException;
132 
133     public java.util.List findByCompanyId(long companyId, int begin, int end,
134         com.liferay.portal.kernel.util.OrderByComparator obc)
135         throws com.liferay.portal.SystemException;
136 
137     public com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_First(
138         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
139         throws com.liferay.portal.SystemException, 
140             com.liferay.portlet.documentlibrary.NoSuchFolderException;
141 
142     public com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_Last(
143         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
144         throws com.liferay.portal.SystemException, 
145             com.liferay.portlet.documentlibrary.NoSuchFolderException;
146 
147     public com.liferay.portlet.documentlibrary.model.DLFolder[] findByCompanyId_PrevAndNext(
148         long folderId, long companyId,
149         com.liferay.portal.kernel.util.OrderByComparator obc)
150         throws com.liferay.portal.SystemException, 
151             com.liferay.portlet.documentlibrary.NoSuchFolderException;
152 
153     public java.util.List findByG_P(long groupId, long parentFolderId)
154         throws com.liferay.portal.SystemException;
155 
156     public java.util.List findByG_P(long groupId, long parentFolderId,
157         int begin, int end) throws com.liferay.portal.SystemException;
158 
159     public java.util.List findByG_P(long groupId, long parentFolderId,
160         int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
161         throws com.liferay.portal.SystemException;
162 
163     public com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_First(
164         long groupId, long parentFolderId,
165         com.liferay.portal.kernel.util.OrderByComparator obc)
166         throws com.liferay.portal.SystemException, 
167             com.liferay.portlet.documentlibrary.NoSuchFolderException;
168 
169     public com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_Last(
170         long groupId, long parentFolderId,
171         com.liferay.portal.kernel.util.OrderByComparator obc)
172         throws com.liferay.portal.SystemException, 
173             com.liferay.portlet.documentlibrary.NoSuchFolderException;
174 
175     public com.liferay.portlet.documentlibrary.model.DLFolder[] findByG_P_PrevAndNext(
176         long folderId, long groupId, long parentFolderId,
177         com.liferay.portal.kernel.util.OrderByComparator obc)
178         throws com.liferay.portal.SystemException, 
179             com.liferay.portlet.documentlibrary.NoSuchFolderException;
180 
181     public java.util.List findByP_N(long parentFolderId, java.lang.String name)
182         throws com.liferay.portal.SystemException;
183 
184     public java.util.List findByP_N(long parentFolderId, java.lang.String name,
185         int begin, int end) throws com.liferay.portal.SystemException;
186 
187     public java.util.List findByP_N(long parentFolderId, java.lang.String name,
188         int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
189         throws com.liferay.portal.SystemException;
190 
191     public com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_First(
192         long parentFolderId, java.lang.String name,
193         com.liferay.portal.kernel.util.OrderByComparator obc)
194         throws com.liferay.portal.SystemException, 
195             com.liferay.portlet.documentlibrary.NoSuchFolderException;
196 
197     public com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_Last(
198         long parentFolderId, java.lang.String name,
199         com.liferay.portal.kernel.util.OrderByComparator obc)
200         throws com.liferay.portal.SystemException, 
201             com.liferay.portlet.documentlibrary.NoSuchFolderException;
202 
203     public com.liferay.portlet.documentlibrary.model.DLFolder[] findByP_N_PrevAndNext(
204         long folderId, long parentFolderId, java.lang.String name,
205         com.liferay.portal.kernel.util.OrderByComparator obc)
206         throws com.liferay.portal.SystemException, 
207             com.liferay.portlet.documentlibrary.NoSuchFolderException;
208 
209     public com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_N(
210         long groupId, long parentFolderId, java.lang.String name)
211         throws com.liferay.portal.SystemException, 
212             com.liferay.portlet.documentlibrary.NoSuchFolderException;
213 
214     public com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_N(
215         long groupId, long parentFolderId, java.lang.String name)
216         throws com.liferay.portal.SystemException;
217 
218     public java.util.List findWithDynamicQuery(
219         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
220         throws com.liferay.portal.SystemException;
221 
222     public java.util.List findWithDynamicQuery(
223         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
224         int begin, int end) throws com.liferay.portal.SystemException;
225 
226     public java.util.List findAll() throws com.liferay.portal.SystemException;
227 
228     public java.util.List findAll(int begin, int end)
229         throws com.liferay.portal.SystemException;
230 
231     public java.util.List findAll(int begin, int end,
232         com.liferay.portal.kernel.util.OrderByComparator obc)
233         throws com.liferay.portal.SystemException;
234 
235     public void removeByUuid(java.lang.String uuid)
236         throws com.liferay.portal.SystemException;
237 
238     public void removeByUUID_G(java.lang.String uuid, long groupId)
239         throws com.liferay.portal.SystemException, 
240             com.liferay.portlet.documentlibrary.NoSuchFolderException;
241 
242     public void removeByGroupId(long groupId)
243         throws com.liferay.portal.SystemException;
244 
245     public void removeByCompanyId(long companyId)
246         throws com.liferay.portal.SystemException;
247 
248     public void removeByG_P(long groupId, long parentFolderId)
249         throws com.liferay.portal.SystemException;
250 
251     public void removeByP_N(long parentFolderId, java.lang.String name)
252         throws com.liferay.portal.SystemException;
253 
254     public void removeByG_P_N(long groupId, long parentFolderId,
255         java.lang.String name)
256         throws com.liferay.portal.SystemException, 
257             com.liferay.portlet.documentlibrary.NoSuchFolderException;
258 
259     public void removeAll() throws com.liferay.portal.SystemException;
260 
261     public int countByUuid(java.lang.String uuid)
262         throws com.liferay.portal.SystemException;
263 
264     public int countByUUID_G(java.lang.String uuid, long groupId)
265         throws com.liferay.portal.SystemException;
266 
267     public int countByGroupId(long groupId)
268         throws com.liferay.portal.SystemException;
269 
270     public int countByCompanyId(long companyId)
271         throws com.liferay.portal.SystemException;
272 
273     public int countByG_P(long groupId, long parentFolderId)
274         throws com.liferay.portal.SystemException;
275 
276     public int countByP_N(long parentFolderId, java.lang.String name)
277         throws com.liferay.portal.SystemException;
278 
279     public int countByG_P_N(long groupId, long parentFolderId,
280         java.lang.String name) throws com.liferay.portal.SystemException;
281 
282     public int countAll() throws com.liferay.portal.SystemException;
283 }