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.DLFileEntry;
20  
21  /**
22   * <a href="DLFileEntryPersistence.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       DLFileEntryPersistenceImpl
31   * @see       DLFileEntryUtil
32   * @generated
33   */
34  public interface DLFileEntryPersistence extends BasePersistence<DLFileEntry> {
35      public void cacheResult(
36          com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> dlFileEntries);
40  
41      public com.liferay.portlet.documentlibrary.model.DLFileEntry create(
42          long fileEntryId);
43  
44      public com.liferay.portlet.documentlibrary.model.DLFileEntry remove(
45          long fileEntryId)
46          throws com.liferay.portal.kernel.exception.SystemException,
47              com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
48  
49      public com.liferay.portlet.documentlibrary.model.DLFileEntry updateImpl(
50          com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
51          boolean merge)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.documentlibrary.model.DLFileEntry findByPrimaryKey(
55          long fileEntryId)
56          throws com.liferay.portal.kernel.exception.SystemException,
57              com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
58  
59      public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByPrimaryKey(
60          long fileEntryId)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> 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.DLFileEntry> 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.DLFileEntry> 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.DLFileEntry 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.NoSuchFileEntryException;
81  
82      public com.liferay.portlet.documentlibrary.model.DLFileEntry 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.NoSuchFileEntryException;
87  
88      public com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByUuid_PrevAndNext(
89          long fileEntryId, 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.NoSuchFileEntryException;
93  
94      public com.liferay.portlet.documentlibrary.model.DLFileEntry findByUUID_G(
95          java.lang.String uuid, long groupId)
96          throws com.liferay.portal.kernel.exception.SystemException,
97              com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
98  
99      public com.liferay.portlet.documentlibrary.model.DLFileEntry 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.DLFileEntry 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.DLFileEntry> findByGroupId(
108         long groupId)
109         throws com.liferay.portal.kernel.exception.SystemException;
110 
111     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> 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.DLFileEntry> 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.DLFileEntry 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.NoSuchFileEntryException;
124 
125     public com.liferay.portlet.documentlibrary.model.DLFileEntry 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.NoSuchFileEntryException;
129 
130     public com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByGroupId_PrevAndNext(
131         long fileEntryId, long groupId,
132         com.liferay.portal.kernel.util.OrderByComparator obc)
133         throws com.liferay.portal.kernel.exception.SystemException,
134             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
135 
136     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByCompanyId(
137         long companyId)
138         throws com.liferay.portal.kernel.exception.SystemException;
139 
140     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> 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.DLFileEntry> 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.DLFileEntry 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.NoSuchFileEntryException;
153 
154     public com.liferay.portlet.documentlibrary.model.DLFileEntry 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.NoSuchFileEntryException;
158 
159     public com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByCompanyId_PrevAndNext(
160         long fileEntryId, long companyId,
161         com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.kernel.exception.SystemException,
163             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
164 
165     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U(
166         long groupId, long userId)
167         throws com.liferay.portal.kernel.exception.SystemException;
168 
169     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U(
170         long groupId, long userId, int start, int end)
171         throws com.liferay.portal.kernel.exception.SystemException;
172 
173     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U(
174         long groupId, long userId, 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.DLFileEntry findByG_U_First(
179         long groupId, long userId,
180         com.liferay.portal.kernel.util.OrderByComparator obc)
181         throws com.liferay.portal.kernel.exception.SystemException,
182             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
183 
184     public com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_U_Last(
185         long groupId, long userId,
186         com.liferay.portal.kernel.util.OrderByComparator obc)
187         throws com.liferay.portal.kernel.exception.SystemException,
188             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
189 
190     public com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByG_U_PrevAndNext(
191         long fileEntryId, long groupId, long userId,
192         com.liferay.portal.kernel.util.OrderByComparator obc)
193         throws com.liferay.portal.kernel.exception.SystemException,
194             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
195 
196     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F(
197         long groupId, long folderId)
198         throws com.liferay.portal.kernel.exception.SystemException;
199 
200     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F(
201         long groupId, long folderId, int start, int end)
202         throws com.liferay.portal.kernel.exception.SystemException;
203 
204     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F(
205         long groupId, long folderId, 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.DLFileEntry findByG_F_First(
210         long groupId, long folderId,
211         com.liferay.portal.kernel.util.OrderByComparator obc)
212         throws com.liferay.portal.kernel.exception.SystemException,
213             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
214 
215     public com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_F_Last(
216         long groupId, long folderId,
217         com.liferay.portal.kernel.util.OrderByComparator obc)
218         throws com.liferay.portal.kernel.exception.SystemException,
219             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
220 
221     public com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByG_F_PrevAndNext(
222         long fileEntryId, long groupId, long folderId,
223         com.liferay.portal.kernel.util.OrderByComparator obc)
224         throws com.liferay.portal.kernel.exception.SystemException,
225             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
226 
227     public com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_F_N(
228         long groupId, long folderId, java.lang.String name)
229         throws com.liferay.portal.kernel.exception.SystemException,
230             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
231 
232     public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_F_N(
233         long groupId, long folderId, java.lang.String name)
234         throws com.liferay.portal.kernel.exception.SystemException;
235 
236     public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_F_N(
237         long groupId, long folderId, java.lang.String name,
238         boolean retrieveFromCache)
239         throws com.liferay.portal.kernel.exception.SystemException;
240 
241     public com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_F_T(
242         long groupId, long folderId, java.lang.String title)
243         throws com.liferay.portal.kernel.exception.SystemException,
244             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
245 
246     public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_F_T(
247         long groupId, long folderId, java.lang.String title)
248         throws com.liferay.portal.kernel.exception.SystemException;
249 
250     public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_F_T(
251         long groupId, long folderId, java.lang.String title,
252         boolean retrieveFromCache)
253         throws com.liferay.portal.kernel.exception.SystemException;
254 
255     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findAll()
256         throws com.liferay.portal.kernel.exception.SystemException;
257 
258     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findAll(
259         int start, int end)
260         throws com.liferay.portal.kernel.exception.SystemException;
261 
262     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findAll(
263         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
264         throws com.liferay.portal.kernel.exception.SystemException;
265 
266     public void removeByUuid(java.lang.String uuid)
267         throws com.liferay.portal.kernel.exception.SystemException;
268 
269     public void removeByUUID_G(java.lang.String uuid, long groupId)
270         throws com.liferay.portal.kernel.exception.SystemException,
271             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
272 
273     public void removeByGroupId(long groupId)
274         throws com.liferay.portal.kernel.exception.SystemException;
275 
276     public void removeByCompanyId(long companyId)
277         throws com.liferay.portal.kernel.exception.SystemException;
278 
279     public void removeByG_U(long groupId, long userId)
280         throws com.liferay.portal.kernel.exception.SystemException;
281 
282     public void removeByG_F(long groupId, long folderId)
283         throws com.liferay.portal.kernel.exception.SystemException;
284 
285     public void removeByG_F_N(long groupId, long folderId, java.lang.String name)
286         throws com.liferay.portal.kernel.exception.SystemException,
287             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
288 
289     public void removeByG_F_T(long groupId, long folderId,
290         java.lang.String title)
291         throws com.liferay.portal.kernel.exception.SystemException,
292             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
293 
294     public void removeAll()
295         throws com.liferay.portal.kernel.exception.SystemException;
296 
297     public int countByUuid(java.lang.String uuid)
298         throws com.liferay.portal.kernel.exception.SystemException;
299 
300     public int countByUUID_G(java.lang.String uuid, long groupId)
301         throws com.liferay.portal.kernel.exception.SystemException;
302 
303     public int countByGroupId(long groupId)
304         throws com.liferay.portal.kernel.exception.SystemException;
305 
306     public int countByCompanyId(long companyId)
307         throws com.liferay.portal.kernel.exception.SystemException;
308 
309     public int countByG_U(long groupId, long userId)
310         throws com.liferay.portal.kernel.exception.SystemException;
311 
312     public int countByG_F(long groupId, long folderId)
313         throws com.liferay.portal.kernel.exception.SystemException;
314 
315     public int countByG_F_N(long groupId, long folderId, java.lang.String name)
316         throws com.liferay.portal.kernel.exception.SystemException;
317 
318     public int countByG_F_T(long groupId, long folderId, java.lang.String title)
319         throws com.liferay.portal.kernel.exception.SystemException;
320 
321     public int countAll()
322         throws com.liferay.portal.kernel.exception.SystemException;
323 }