1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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  import com.liferay.portal.service.persistence.BasePersistence;
26  
27  /**
28   * <a href="DLFolderPersistence.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       DLFolderPersistenceImpl
37   * @see       DLFolderUtil
38   * @generated
39   */
40  public interface DLFolderPersistence extends BasePersistence {
41      public void cacheResult(
42          com.liferay.portlet.documentlibrary.model.DLFolder dlFolder);
43  
44      public void cacheResult(
45          java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> dlFolders);
46  
47      public void clearCache();
48  
49      public com.liferay.portlet.documentlibrary.model.DLFolder create(
50          long folderId);
51  
52      public com.liferay.portlet.documentlibrary.model.DLFolder remove(
53          long folderId)
54          throws com.liferay.portal.SystemException,
55              com.liferay.portlet.documentlibrary.NoSuchFolderException;
56  
57      public com.liferay.portlet.documentlibrary.model.DLFolder remove(
58          com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
59          throws com.liferay.portal.SystemException;
60  
61      /**
62       * @deprecated Use {@link #update(DLFolder, boolean merge)}.
63       */
64      public com.liferay.portlet.documentlibrary.model.DLFolder update(
65          com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
66          throws com.liferay.portal.SystemException;
67  
68      /**
69       * Add, update, or merge, the entity. This method also calls the model
70       * listeners to trigger the proper events associated with adding, deleting,
71       * or updating an entity.
72       *
73       * @param  dlFolder the entity to add, update, or merge
74       * @param  merge boolean value for whether to merge the entity. The default
75       *         value is false. Setting merge to true is more expensive and
76       *         should only be true when dlFolder is transient. See
77       *         LEP-5473 for a detailed discussion of this method.
78       * @return the entity that was added, updated, or merged
79       */
80      public com.liferay.portlet.documentlibrary.model.DLFolder update(
81          com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
82          boolean merge) throws com.liferay.portal.SystemException;
83  
84      public com.liferay.portlet.documentlibrary.model.DLFolder updateImpl(
85          com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
86          boolean merge) throws com.liferay.portal.SystemException;
87  
88      public com.liferay.portlet.documentlibrary.model.DLFolder findByPrimaryKey(
89          long folderId)
90          throws com.liferay.portal.SystemException,
91              com.liferay.portlet.documentlibrary.NoSuchFolderException;
92  
93      public com.liferay.portlet.documentlibrary.model.DLFolder fetchByPrimaryKey(
94          long folderId) throws com.liferay.portal.SystemException;
95  
96      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid(
97          java.lang.String uuid) throws com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid(
100         java.lang.String uuid, int start, int end)
101         throws com.liferay.portal.SystemException;
102 
103     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid(
104         java.lang.String uuid, int start, int end,
105         com.liferay.portal.kernel.util.OrderByComparator obc)
106         throws com.liferay.portal.SystemException;
107 
108     public com.liferay.portlet.documentlibrary.model.DLFolder findByUuid_First(
109         java.lang.String uuid,
110         com.liferay.portal.kernel.util.OrderByComparator obc)
111         throws com.liferay.portal.SystemException,
112             com.liferay.portlet.documentlibrary.NoSuchFolderException;
113 
114     public com.liferay.portlet.documentlibrary.model.DLFolder findByUuid_Last(
115         java.lang.String uuid,
116         com.liferay.portal.kernel.util.OrderByComparator obc)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portlet.documentlibrary.NoSuchFolderException;
119 
120     public com.liferay.portlet.documentlibrary.model.DLFolder[] findByUuid_PrevAndNext(
121         long folderId, java.lang.String uuid,
122         com.liferay.portal.kernel.util.OrderByComparator obc)
123         throws com.liferay.portal.SystemException,
124             com.liferay.portlet.documentlibrary.NoSuchFolderException;
125 
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     public com.liferay.portlet.documentlibrary.model.DLFolder fetchByUUID_G(
136         java.lang.String uuid, long groupId, boolean retrieveFromCache)
137         throws com.liferay.portal.SystemException;
138 
139     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId(
140         long groupId) throws com.liferay.portal.SystemException;
141 
142     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId(
143         long groupId, int start, int end)
144         throws com.liferay.portal.SystemException;
145 
146     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId(
147         long groupId, int start, int end,
148         com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.SystemException;
150 
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     public com.liferay.portlet.documentlibrary.model.DLFolder findByGroupId_Last(
157         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
158         throws com.liferay.portal.SystemException,
159             com.liferay.portlet.documentlibrary.NoSuchFolderException;
160 
161     public com.liferay.portlet.documentlibrary.model.DLFolder[] findByGroupId_PrevAndNext(
162         long folderId, long groupId,
163         com.liferay.portal.kernel.util.OrderByComparator obc)
164         throws com.liferay.portal.SystemException,
165             com.liferay.portlet.documentlibrary.NoSuchFolderException;
166 
167     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId(
168         long companyId) throws com.liferay.portal.SystemException;
169 
170     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId(
171         long companyId, int start, int end)
172         throws com.liferay.portal.SystemException;
173 
174     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId(
175         long companyId, int start, int end,
176         com.liferay.portal.kernel.util.OrderByComparator obc)
177         throws com.liferay.portal.SystemException;
178 
179     public com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_First(
180         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
181         throws com.liferay.portal.SystemException,
182             com.liferay.portlet.documentlibrary.NoSuchFolderException;
183 
184     public com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_Last(
185         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
186         throws com.liferay.portal.SystemException,
187             com.liferay.portlet.documentlibrary.NoSuchFolderException;
188 
189     public com.liferay.portlet.documentlibrary.model.DLFolder[] findByCompanyId_PrevAndNext(
190         long folderId, long companyId,
191         com.liferay.portal.kernel.util.OrderByComparator obc)
192         throws com.liferay.portal.SystemException,
193             com.liferay.portlet.documentlibrary.NoSuchFolderException;
194 
195     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P(
196         long groupId, long parentFolderId)
197         throws com.liferay.portal.SystemException;
198 
199     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P(
200         long groupId, long parentFolderId, int start, int end)
201         throws com.liferay.portal.SystemException;
202 
203     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P(
204         long groupId, long parentFolderId, int start, int end,
205         com.liferay.portal.kernel.util.OrderByComparator obc)
206         throws com.liferay.portal.SystemException;
207 
208     public com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_First(
209         long groupId, long parentFolderId,
210         com.liferay.portal.kernel.util.OrderByComparator obc)
211         throws com.liferay.portal.SystemException,
212             com.liferay.portlet.documentlibrary.NoSuchFolderException;
213 
214     public com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_Last(
215         long groupId, long parentFolderId,
216         com.liferay.portal.kernel.util.OrderByComparator obc)
217         throws com.liferay.portal.SystemException,
218             com.liferay.portlet.documentlibrary.NoSuchFolderException;
219 
220     public com.liferay.portlet.documentlibrary.model.DLFolder[] findByG_P_PrevAndNext(
221         long folderId, 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     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
227         long parentFolderId, java.lang.String name)
228         throws com.liferay.portal.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.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 obc)
237         throws com.liferay.portal.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 obc)
242         throws com.liferay.portal.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 obc)
248         throws com.liferay.portal.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 obc)
254         throws com.liferay.portal.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.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.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) throws com.liferay.portal.SystemException;
269 
270     public java.util.List<Object> findWithDynamicQuery(
271         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
272         throws com.liferay.portal.SystemException;
273 
274     public java.util.List<Object> findWithDynamicQuery(
275         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
276         int end) throws com.liferay.portal.SystemException;
277 
278     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll()
279         throws com.liferay.portal.SystemException;
280 
281     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll(
282         int start, int end) throws com.liferay.portal.SystemException;
283 
284     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll(
285         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
286         throws com.liferay.portal.SystemException;
287 
288     public void removeByUuid(java.lang.String uuid)
289         throws com.liferay.portal.SystemException;
290 
291     public void removeByUUID_G(java.lang.String uuid, long groupId)
292         throws com.liferay.portal.SystemException,
293             com.liferay.portlet.documentlibrary.NoSuchFolderException;
294 
295     public void removeByGroupId(long groupId)
296         throws com.liferay.portal.SystemException;
297 
298     public void removeByCompanyId(long companyId)
299         throws com.liferay.portal.SystemException;
300 
301     public void removeByG_P(long groupId, long parentFolderId)
302         throws com.liferay.portal.SystemException;
303 
304     public void removeByP_N(long parentFolderId, java.lang.String name)
305         throws com.liferay.portal.SystemException;
306 
307     public void removeByG_P_N(long groupId, long parentFolderId,
308         java.lang.String name)
309         throws com.liferay.portal.SystemException,
310             com.liferay.portlet.documentlibrary.NoSuchFolderException;
311 
312     public void removeAll() throws com.liferay.portal.SystemException;
313 
314     public int countByUuid(java.lang.String uuid)
315         throws com.liferay.portal.SystemException;
316 
317     public int countByUUID_G(java.lang.String uuid, long groupId)
318         throws com.liferay.portal.SystemException;
319 
320     public int countByGroupId(long groupId)
321         throws com.liferay.portal.SystemException;
322 
323     public int countByCompanyId(long companyId)
324         throws com.liferay.portal.SystemException;
325 
326     public int countByG_P(long groupId, long parentFolderId)
327         throws com.liferay.portal.SystemException;
328 
329     public int countByP_N(long parentFolderId, java.lang.String name)
330         throws com.liferay.portal.SystemException;
331 
332     public int countByG_P_N(long groupId, long parentFolderId,
333         java.lang.String name) throws com.liferay.portal.SystemException;
334 
335     public int countAll() throws com.liferay.portal.SystemException;
336 }