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="DLFileEntryPersistence.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       DLFileEntryPersistenceImpl
37   * @see       DLFileEntryUtil
38   * @generated
39   */
40  public interface DLFileEntryPersistence extends BasePersistence {
41      public void cacheResult(
42          com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry);
43  
44      public void cacheResult(
45          java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> dlFileEntries);
46  
47      public void clearCache();
48  
49      public com.liferay.portlet.documentlibrary.model.DLFileEntry create(
50          long fileEntryId);
51  
52      public com.liferay.portlet.documentlibrary.model.DLFileEntry remove(
53          long fileEntryId)
54          throws com.liferay.portal.SystemException,
55              com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
56  
57      public com.liferay.portlet.documentlibrary.model.DLFileEntry remove(
58          com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
59          throws com.liferay.portal.SystemException;
60  
61      /**
62       * @deprecated Use {@link #update(DLFileEntry, boolean merge)}.
63       */
64      public com.liferay.portlet.documentlibrary.model.DLFileEntry update(
65          com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
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  dlFileEntry 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 dlFileEntry 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.DLFileEntry update(
81          com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
82          boolean merge) throws com.liferay.portal.SystemException;
83  
84      public com.liferay.portlet.documentlibrary.model.DLFileEntry updateImpl(
85          com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
86          boolean merge) throws com.liferay.portal.SystemException;
87  
88      public com.liferay.portlet.documentlibrary.model.DLFileEntry findByPrimaryKey(
89          long fileEntryId)
90          throws com.liferay.portal.SystemException,
91              com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
92  
93      public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByPrimaryKey(
94          long fileEntryId) throws com.liferay.portal.SystemException;
95  
96      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByUuid(
97          java.lang.String uuid) throws com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> 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.DLFileEntry> 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.DLFileEntry 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.NoSuchFileEntryException;
113 
114     public com.liferay.portlet.documentlibrary.model.DLFileEntry 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.NoSuchFileEntryException;
119 
120     public com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByUuid_PrevAndNext(
121         long fileEntryId, java.lang.String uuid,
122         com.liferay.portal.kernel.util.OrderByComparator obc)
123         throws com.liferay.portal.SystemException,
124             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
125 
126     public com.liferay.portlet.documentlibrary.model.DLFileEntry findByUUID_G(
127         java.lang.String uuid, long groupId)
128         throws com.liferay.portal.SystemException,
129             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
130 
131     public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByUUID_G(
132         java.lang.String uuid, long groupId)
133         throws com.liferay.portal.SystemException;
134 
135     public com.liferay.portlet.documentlibrary.model.DLFileEntry 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.DLFileEntry> findByGroupId(
140         long groupId) throws com.liferay.portal.SystemException;
141 
142     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> 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.DLFileEntry> 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.DLFileEntry findByGroupId_First(
152         long groupId, 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 findByGroupId_Last(
157         long groupId, 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[] findByGroupId_PrevAndNext(
162         long fileEntryId, long groupId,
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> findByCompanyId(
168         long companyId) throws com.liferay.portal.SystemException;
169 
170     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> 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.DLFileEntry> 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.DLFileEntry findByCompanyId_First(
180         long companyId, 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 findByCompanyId_Last(
185         long companyId, 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[] findByCompanyId_PrevAndNext(
190         long fileEntryId, long companyId,
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> findByFolderId(
196         long folderId) throws com.liferay.portal.SystemException;
197 
198     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByFolderId(
199         long folderId, int start, int end)
200         throws com.liferay.portal.SystemException;
201 
202     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByFolderId(
203         long folderId, 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 findByFolderId_First(
208         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
209         throws com.liferay.portal.SystemException,
210             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
211 
212     public com.liferay.portlet.documentlibrary.model.DLFileEntry findByFolderId_Last(
213         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
214         throws com.liferay.portal.SystemException,
215             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
216 
217     public com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByFolderId_PrevAndNext(
218         long fileEntryId, long folderId,
219         com.liferay.portal.kernel.util.OrderByComparator obc)
220         throws com.liferay.portal.SystemException,
221             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
222 
223     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U(
224         long groupId, long userId) throws com.liferay.portal.SystemException;
225 
226     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U(
227         long groupId, long userId, int start, int end)
228         throws com.liferay.portal.SystemException;
229 
230     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U(
231         long groupId, long userId, int start, int end,
232         com.liferay.portal.kernel.util.OrderByComparator obc)
233         throws com.liferay.portal.SystemException;
234 
235     public com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_U_First(
236         long groupId, long userId,
237         com.liferay.portal.kernel.util.OrderByComparator obc)
238         throws com.liferay.portal.SystemException,
239             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
240 
241     public com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_U_Last(
242         long groupId, long userId,
243         com.liferay.portal.kernel.util.OrderByComparator obc)
244         throws com.liferay.portal.SystemException,
245             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
246 
247     public com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByG_U_PrevAndNext(
248         long fileEntryId, long groupId, long userId,
249         com.liferay.portal.kernel.util.OrderByComparator obc)
250         throws com.liferay.portal.SystemException,
251             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
252 
253     public com.liferay.portlet.documentlibrary.model.DLFileEntry findByF_N(
254         long folderId, java.lang.String name)
255         throws com.liferay.portal.SystemException,
256             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
257 
258     public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByF_N(
259         long folderId, java.lang.String name)
260         throws com.liferay.portal.SystemException;
261 
262     public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByF_N(
263         long folderId, java.lang.String name, boolean retrieveFromCache)
264         throws com.liferay.portal.SystemException;
265 
266     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByF_T(
267         long folderId, java.lang.String title)
268         throws com.liferay.portal.SystemException;
269 
270     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByF_T(
271         long folderId, java.lang.String title, int start, int end)
272         throws com.liferay.portal.SystemException;
273 
274     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByF_T(
275         long folderId, java.lang.String title, int start, int end,
276         com.liferay.portal.kernel.util.OrderByComparator obc)
277         throws com.liferay.portal.SystemException;
278 
279     public com.liferay.portlet.documentlibrary.model.DLFileEntry findByF_T_First(
280         long folderId, java.lang.String title,
281         com.liferay.portal.kernel.util.OrderByComparator obc)
282         throws com.liferay.portal.SystemException,
283             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
284 
285     public com.liferay.portlet.documentlibrary.model.DLFileEntry findByF_T_Last(
286         long folderId, java.lang.String title,
287         com.liferay.portal.kernel.util.OrderByComparator obc)
288         throws com.liferay.portal.SystemException,
289             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
290 
291     public com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByF_T_PrevAndNext(
292         long fileEntryId, long folderId, java.lang.String title,
293         com.liferay.portal.kernel.util.OrderByComparator obc)
294         throws com.liferay.portal.SystemException,
295             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
296 
297     public java.util.List<Object> findWithDynamicQuery(
298         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
299         throws com.liferay.portal.SystemException;
300 
301     public java.util.List<Object> findWithDynamicQuery(
302         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
303         int end) throws com.liferay.portal.SystemException;
304 
305     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findAll()
306         throws com.liferay.portal.SystemException;
307 
308     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findAll(
309         int start, int end) throws com.liferay.portal.SystemException;
310 
311     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findAll(
312         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
313         throws com.liferay.portal.SystemException;
314 
315     public void removeByUuid(java.lang.String uuid)
316         throws com.liferay.portal.SystemException;
317 
318     public void removeByUUID_G(java.lang.String uuid, long groupId)
319         throws com.liferay.portal.SystemException,
320             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
321 
322     public void removeByGroupId(long groupId)
323         throws com.liferay.portal.SystemException;
324 
325     public void removeByCompanyId(long companyId)
326         throws com.liferay.portal.SystemException;
327 
328     public void removeByFolderId(long folderId)
329         throws com.liferay.portal.SystemException;
330 
331     public void removeByG_U(long groupId, long userId)
332         throws com.liferay.portal.SystemException;
333 
334     public void removeByF_N(long folderId, java.lang.String name)
335         throws com.liferay.portal.SystemException,
336             com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
337 
338     public void removeByF_T(long folderId, java.lang.String title)
339         throws com.liferay.portal.SystemException;
340 
341     public void removeAll() throws com.liferay.portal.SystemException;
342 
343     public int countByUuid(java.lang.String uuid)
344         throws com.liferay.portal.SystemException;
345 
346     public int countByUUID_G(java.lang.String uuid, long groupId)
347         throws com.liferay.portal.SystemException;
348 
349     public int countByGroupId(long groupId)
350         throws com.liferay.portal.SystemException;
351 
352     public int countByCompanyId(long companyId)
353         throws com.liferay.portal.SystemException;
354 
355     public int countByFolderId(long folderId)
356         throws com.liferay.portal.SystemException;
357 
358     public int countByG_U(long groupId, long userId)
359         throws com.liferay.portal.SystemException;
360 
361     public int countByF_N(long folderId, java.lang.String name)
362         throws com.liferay.portal.SystemException;
363 
364     public int countByF_T(long folderId, java.lang.String title)
365         throws com.liferay.portal.SystemException;
366 
367     public int countAll() throws com.liferay.portal.SystemException;
368 }