1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
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.SystemException,
47              com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
48  
49      /**
50       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
51       */
52      public com.liferay.portlet.documentlibrary.model.DLFileEntry update(
53          com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
54          throws com.liferay.portal.SystemException;
55  
56      public com.liferay.portlet.documentlibrary.model.DLFileEntry updateImpl(
57          com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
58          boolean merge) throws com.liferay.portal.SystemException;
59  
60      public com.liferay.portlet.documentlibrary.model.DLFileEntry findByPrimaryKey(
61          long fileEntryId)
62          throws com.liferay.portal.SystemException,
63              com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
64  
65      public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByPrimaryKey(
66          long fileEntryId) throws com.liferay.portal.SystemException;
67  
68      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByUuid(
69          java.lang.String uuid) throws com.liferay.portal.SystemException;
70  
71      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByUuid(
72          java.lang.String uuid, int start, int end)
73          throws com.liferay.portal.SystemException;
74  
75      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByUuid(
76          java.lang.String uuid, int start, int end,
77          com.liferay.portal.kernel.util.OrderByComparator obc)
78          throws com.liferay.portal.SystemException;
79  
80      public com.liferay.portlet.documentlibrary.model.DLFileEntry findByUuid_First(
81          java.lang.String uuid,
82          com.liferay.portal.kernel.util.OrderByComparator obc)
83          throws com.liferay.portal.SystemException,
84              com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
85  
86      public com.liferay.portlet.documentlibrary.model.DLFileEntry findByUuid_Last(
87          java.lang.String uuid,
88          com.liferay.portal.kernel.util.OrderByComparator obc)
89          throws com.liferay.portal.SystemException,
90              com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
91  
92      public com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByUuid_PrevAndNext(
93          long fileEntryId, java.lang.String uuid,
94          com.liferay.portal.kernel.util.OrderByComparator obc)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
97  
98      public com.liferay.portlet.documentlibrary.model.DLFileEntry findByUUID_G(
99          java.lang.String uuid, long groupId)
100         throws com.liferay.portal.SystemException,
101             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
102 
103     public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByUUID_G(
104         java.lang.String uuid, long groupId)
105         throws com.liferay.portal.SystemException;
106 
107     public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByUUID_G(
108         java.lang.String uuid, long groupId, boolean retrieveFromCache)
109         throws com.liferay.portal.SystemException;
110 
111     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByGroupId(
112         long groupId) throws com.liferay.portal.SystemException;
113 
114     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByGroupId(
115         long groupId, int start, int end)
116         throws com.liferay.portal.SystemException;
117 
118     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByGroupId(
119         long groupId, int start, int end,
120         com.liferay.portal.kernel.util.OrderByComparator obc)
121         throws com.liferay.portal.SystemException;
122 
123     public com.liferay.portlet.documentlibrary.model.DLFileEntry findByGroupId_First(
124         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
125         throws com.liferay.portal.SystemException,
126             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
127 
128     public com.liferay.portlet.documentlibrary.model.DLFileEntry findByGroupId_Last(
129         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
130         throws com.liferay.portal.SystemException,
131             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
132 
133     public com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByGroupId_PrevAndNext(
134         long fileEntryId, long groupId,
135         com.liferay.portal.kernel.util.OrderByComparator obc)
136         throws com.liferay.portal.SystemException,
137             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
138 
139     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByCompanyId(
140         long companyId) throws com.liferay.portal.SystemException;
141 
142     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByCompanyId(
143         long companyId, int start, int end)
144         throws com.liferay.portal.SystemException;
145 
146     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByCompanyId(
147         long companyId, 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.DLFileEntry findByCompanyId_First(
152         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
153         throws com.liferay.portal.SystemException,
154             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
155 
156     public com.liferay.portlet.documentlibrary.model.DLFileEntry findByCompanyId_Last(
157         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
158         throws com.liferay.portal.SystemException,
159             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
160 
161     public com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByCompanyId_PrevAndNext(
162         long fileEntryId, long companyId,
163         com.liferay.portal.kernel.util.OrderByComparator obc)
164         throws com.liferay.portal.SystemException,
165             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
166 
167     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByFolderId(
168         long folderId) throws com.liferay.portal.SystemException;
169 
170     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByFolderId(
171         long folderId, int start, int end)
172         throws com.liferay.portal.SystemException;
173 
174     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByFolderId(
175         long folderId, 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.DLFileEntry findByFolderId_First(
180         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
181         throws com.liferay.portal.SystemException,
182             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
183 
184     public com.liferay.portlet.documentlibrary.model.DLFileEntry findByFolderId_Last(
185         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
186         throws com.liferay.portal.SystemException,
187             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
188 
189     public com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByFolderId_PrevAndNext(
190         long fileEntryId, long folderId,
191         com.liferay.portal.kernel.util.OrderByComparator obc)
192         throws com.liferay.portal.SystemException,
193             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
194 
195     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U(
196         long groupId, long userId) throws com.liferay.portal.SystemException;
197 
198     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U(
199         long groupId, long userId, int start, int end)
200         throws com.liferay.portal.SystemException;
201 
202     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U(
203         long groupId, long userId, int start, int end,
204         com.liferay.portal.kernel.util.OrderByComparator obc)
205         throws com.liferay.portal.SystemException;
206 
207     public com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_U_First(
208         long groupId, long userId,
209         com.liferay.portal.kernel.util.OrderByComparator obc)
210         throws com.liferay.portal.SystemException,
211             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
212 
213     public com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_U_Last(
214         long groupId, long userId,
215         com.liferay.portal.kernel.util.OrderByComparator obc)
216         throws com.liferay.portal.SystemException,
217             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
218 
219     public com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByG_U_PrevAndNext(
220         long fileEntryId, long groupId, long userId,
221         com.liferay.portal.kernel.util.OrderByComparator obc)
222         throws com.liferay.portal.SystemException,
223             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
224 
225     public com.liferay.portlet.documentlibrary.model.DLFileEntry findByF_N(
226         long folderId, java.lang.String name)
227         throws com.liferay.portal.SystemException,
228             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
229 
230     public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByF_N(
231         long folderId, java.lang.String name)
232         throws com.liferay.portal.SystemException;
233 
234     public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByF_N(
235         long folderId, java.lang.String name, boolean retrieveFromCache)
236         throws com.liferay.portal.SystemException;
237 
238     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByF_T(
239         long folderId, java.lang.String title)
240         throws com.liferay.portal.SystemException;
241 
242     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByF_T(
243         long folderId, java.lang.String title, int start, int end)
244         throws com.liferay.portal.SystemException;
245 
246     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByF_T(
247         long folderId, java.lang.String title, int start, int end,
248         com.liferay.portal.kernel.util.OrderByComparator obc)
249         throws com.liferay.portal.SystemException;
250 
251     public com.liferay.portlet.documentlibrary.model.DLFileEntry findByF_T_First(
252         long folderId, java.lang.String title,
253         com.liferay.portal.kernel.util.OrderByComparator obc)
254         throws com.liferay.portal.SystemException,
255             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
256 
257     public com.liferay.portlet.documentlibrary.model.DLFileEntry findByF_T_Last(
258         long folderId, java.lang.String title,
259         com.liferay.portal.kernel.util.OrderByComparator obc)
260         throws com.liferay.portal.SystemException,
261             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
262 
263     public com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByF_T_PrevAndNext(
264         long fileEntryId, long folderId, java.lang.String title,
265         com.liferay.portal.kernel.util.OrderByComparator obc)
266         throws com.liferay.portal.SystemException,
267             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
268 
269     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findAll()
270         throws com.liferay.portal.SystemException;
271 
272     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findAll(
273         int start, int end) throws com.liferay.portal.SystemException;
274 
275     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findAll(
276         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
277         throws com.liferay.portal.SystemException;
278 
279     public void removeByUuid(java.lang.String uuid)
280         throws com.liferay.portal.SystemException;
281 
282     public void removeByUUID_G(java.lang.String uuid, long groupId)
283         throws com.liferay.portal.SystemException,
284             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
285 
286     public void removeByGroupId(long groupId)
287         throws com.liferay.portal.SystemException;
288 
289     public void removeByCompanyId(long companyId)
290         throws com.liferay.portal.SystemException;
291 
292     public void removeByFolderId(long folderId)
293         throws com.liferay.portal.SystemException;
294 
295     public void removeByG_U(long groupId, long userId)
296         throws com.liferay.portal.SystemException;
297 
298     public void removeByF_N(long folderId, java.lang.String name)
299         throws com.liferay.portal.SystemException,
300             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
301 
302     public void removeByF_T(long folderId, java.lang.String title)
303         throws com.liferay.portal.SystemException;
304 
305     public void removeAll() throws com.liferay.portal.SystemException;
306 
307     public int countByUuid(java.lang.String uuid)
308         throws com.liferay.portal.SystemException;
309 
310     public int countByUUID_G(java.lang.String uuid, long groupId)
311         throws com.liferay.portal.SystemException;
312 
313     public int countByGroupId(long groupId)
314         throws com.liferay.portal.SystemException;
315 
316     public int countByCompanyId(long companyId)
317         throws com.liferay.portal.SystemException;
318 
319     public int countByFolderId(long folderId)
320         throws com.liferay.portal.SystemException;
321 
322     public int countByG_U(long groupId, long userId)
323         throws com.liferay.portal.SystemException;
324 
325     public int countByF_N(long folderId, java.lang.String name)
326         throws com.liferay.portal.SystemException;
327 
328     public int countByF_T(long folderId, java.lang.String title)
329         throws com.liferay.portal.SystemException;
330 
331     public int countAll() throws com.liferay.portal.SystemException;
332 }