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="DLFileEntryUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class DLFileEntryUtil {
32      public static com.liferay.portlet.documentlibrary.model.DLFileEntry create(
33          long fileEntryId) {
34          return getPersistence().create(fileEntryId);
35      }
36  
37      public static com.liferay.portlet.documentlibrary.model.DLFileEntry remove(
38          long fileEntryId)
39          throws com.liferay.portal.SystemException, 
40              com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
41          return getPersistence().remove(fileEntryId);
42      }
43  
44      public static com.liferay.portlet.documentlibrary.model.DLFileEntry remove(
45          com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
46          throws com.liferay.portal.SystemException {
47          return getPersistence().remove(dlFileEntry);
48      }
49  
50      public static com.liferay.portlet.documentlibrary.model.DLFileEntry update(
51          com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
52          throws com.liferay.portal.SystemException {
53          return getPersistence().update(dlFileEntry);
54      }
55  
56      public static com.liferay.portlet.documentlibrary.model.DLFileEntry update(
57          com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
58          boolean merge) throws com.liferay.portal.SystemException {
59          return getPersistence().update(dlFileEntry, merge);
60      }
61  
62      public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateImpl(
63          com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
64          boolean merge) throws com.liferay.portal.SystemException {
65          return getPersistence().updateImpl(dlFileEntry, merge);
66      }
67  
68      public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByPrimaryKey(
69          long fileEntryId)
70          throws com.liferay.portal.SystemException, 
71              com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
72          return getPersistence().findByPrimaryKey(fileEntryId);
73      }
74  
75      public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByPrimaryKey(
76          long fileEntryId) throws com.liferay.portal.SystemException {
77          return getPersistence().fetchByPrimaryKey(fileEntryId);
78      }
79  
80      public static java.util.List findByUuid(java.lang.String uuid)
81          throws com.liferay.portal.SystemException {
82          return getPersistence().findByUuid(uuid);
83      }
84  
85      public static java.util.List findByUuid(java.lang.String uuid, int begin,
86          int end) throws com.liferay.portal.SystemException {
87          return getPersistence().findByUuid(uuid, begin, end);
88      }
89  
90      public static java.util.List findByUuid(java.lang.String uuid, int begin,
91          int end, com.liferay.portal.kernel.util.OrderByComparator obc)
92          throws com.liferay.portal.SystemException {
93          return getPersistence().findByUuid(uuid, begin, end, obc);
94      }
95  
96      public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByUuid_First(
97          java.lang.String uuid,
98          com.liferay.portal.kernel.util.OrderByComparator obc)
99          throws com.liferay.portal.SystemException, 
100             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
101         return getPersistence().findByUuid_First(uuid, obc);
102     }
103 
104     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByUuid_Last(
105         java.lang.String uuid,
106         com.liferay.portal.kernel.util.OrderByComparator obc)
107         throws com.liferay.portal.SystemException, 
108             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
109         return getPersistence().findByUuid_Last(uuid, obc);
110     }
111 
112     public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByUuid_PrevAndNext(
113         long fileEntryId, java.lang.String uuid,
114         com.liferay.portal.kernel.util.OrderByComparator obc)
115         throws com.liferay.portal.SystemException, 
116             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
117         return getPersistence().findByUuid_PrevAndNext(fileEntryId, uuid, obc);
118     }
119 
120     public static java.util.List findByCompanyId(long companyId)
121         throws com.liferay.portal.SystemException {
122         return getPersistence().findByCompanyId(companyId);
123     }
124 
125     public static java.util.List findByCompanyId(long companyId, int begin,
126         int end) throws com.liferay.portal.SystemException {
127         return getPersistence().findByCompanyId(companyId, begin, end);
128     }
129 
130     public static java.util.List findByCompanyId(long companyId, int begin,
131         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
132         throws com.liferay.portal.SystemException {
133         return getPersistence().findByCompanyId(companyId, begin, end, obc);
134     }
135 
136     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByCompanyId_First(
137         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.SystemException, 
139             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
140         return getPersistence().findByCompanyId_First(companyId, obc);
141     }
142 
143     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByCompanyId_Last(
144         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
145         throws com.liferay.portal.SystemException, 
146             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
147         return getPersistence().findByCompanyId_Last(companyId, obc);
148     }
149 
150     public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByCompanyId_PrevAndNext(
151         long fileEntryId, long companyId,
152         com.liferay.portal.kernel.util.OrderByComparator obc)
153         throws com.liferay.portal.SystemException, 
154             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
155         return getPersistence().findByCompanyId_PrevAndNext(fileEntryId,
156             companyId, obc);
157     }
158 
159     public static java.util.List findByFolderId(long folderId)
160         throws com.liferay.portal.SystemException {
161         return getPersistence().findByFolderId(folderId);
162     }
163 
164     public static java.util.List findByFolderId(long folderId, int begin,
165         int end) throws com.liferay.portal.SystemException {
166         return getPersistence().findByFolderId(folderId, begin, end);
167     }
168 
169     public static java.util.List findByFolderId(long folderId, int begin,
170         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
171         throws com.liferay.portal.SystemException {
172         return getPersistence().findByFolderId(folderId, begin, end, obc);
173     }
174 
175     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByFolderId_First(
176         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
177         throws com.liferay.portal.SystemException, 
178             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
179         return getPersistence().findByFolderId_First(folderId, obc);
180     }
181 
182     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByFolderId_Last(
183         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
184         throws com.liferay.portal.SystemException, 
185             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
186         return getPersistence().findByFolderId_Last(folderId, obc);
187     }
188 
189     public static 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         return getPersistence().findByFolderId_PrevAndNext(fileEntryId,
195             folderId, obc);
196     }
197 
198     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByF_N(
199         long folderId, java.lang.String name)
200         throws com.liferay.portal.SystemException, 
201             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
202         return getPersistence().findByF_N(folderId, name);
203     }
204 
205     public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByF_N(
206         long folderId, java.lang.String name)
207         throws com.liferay.portal.SystemException {
208         return getPersistence().fetchByF_N(folderId, name);
209     }
210 
211     public static java.util.List findByF_T(long folderId, java.lang.String title)
212         throws com.liferay.portal.SystemException {
213         return getPersistence().findByF_T(folderId, title);
214     }
215 
216     public static java.util.List findByF_T(long folderId,
217         java.lang.String title, int begin, int end)
218         throws com.liferay.portal.SystemException {
219         return getPersistence().findByF_T(folderId, title, begin, end);
220     }
221 
222     public static java.util.List findByF_T(long folderId,
223         java.lang.String title, int begin, int end,
224         com.liferay.portal.kernel.util.OrderByComparator obc)
225         throws com.liferay.portal.SystemException {
226         return getPersistence().findByF_T(folderId, title, begin, end, obc);
227     }
228 
229     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByF_T_First(
230         long folderId, java.lang.String title,
231         com.liferay.portal.kernel.util.OrderByComparator obc)
232         throws com.liferay.portal.SystemException, 
233             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
234         return getPersistence().findByF_T_First(folderId, title, obc);
235     }
236 
237     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByF_T_Last(
238         long folderId, java.lang.String title,
239         com.liferay.portal.kernel.util.OrderByComparator obc)
240         throws com.liferay.portal.SystemException, 
241             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
242         return getPersistence().findByF_T_Last(folderId, title, obc);
243     }
244 
245     public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByF_T_PrevAndNext(
246         long fileEntryId, long folderId, java.lang.String title,
247         com.liferay.portal.kernel.util.OrderByComparator obc)
248         throws com.liferay.portal.SystemException, 
249             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
250         return getPersistence().findByF_T_PrevAndNext(fileEntryId, folderId,
251             title, obc);
252     }
253 
254     public static java.util.List findWithDynamicQuery(
255         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
256         throws com.liferay.portal.SystemException {
257         return getPersistence().findWithDynamicQuery(queryInitializer);
258     }
259 
260     public static java.util.List findWithDynamicQuery(
261         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
262         int begin, int end) throws com.liferay.portal.SystemException {
263         return getPersistence().findWithDynamicQuery(queryInitializer, begin,
264             end);
265     }
266 
267     public static java.util.List findAll()
268         throws com.liferay.portal.SystemException {
269         return getPersistence().findAll();
270     }
271 
272     public static java.util.List findAll(int begin, int end)
273         throws com.liferay.portal.SystemException {
274         return getPersistence().findAll(begin, end);
275     }
276 
277     public static java.util.List findAll(int begin, int end,
278         com.liferay.portal.kernel.util.OrderByComparator obc)
279         throws com.liferay.portal.SystemException {
280         return getPersistence().findAll(begin, end, obc);
281     }
282 
283     public static void removeByUuid(java.lang.String uuid)
284         throws com.liferay.portal.SystemException {
285         getPersistence().removeByUuid(uuid);
286     }
287 
288     public static void removeByCompanyId(long companyId)
289         throws com.liferay.portal.SystemException {
290         getPersistence().removeByCompanyId(companyId);
291     }
292 
293     public static void removeByFolderId(long folderId)
294         throws com.liferay.portal.SystemException {
295         getPersistence().removeByFolderId(folderId);
296     }
297 
298     public static void removeByF_N(long folderId, java.lang.String name)
299         throws com.liferay.portal.SystemException, 
300             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
301         getPersistence().removeByF_N(folderId, name);
302     }
303 
304     public static void removeByF_T(long folderId, java.lang.String title)
305         throws com.liferay.portal.SystemException {
306         getPersistence().removeByF_T(folderId, title);
307     }
308 
309     public static void removeAll() throws com.liferay.portal.SystemException {
310         getPersistence().removeAll();
311     }
312 
313     public static int countByUuid(java.lang.String uuid)
314         throws com.liferay.portal.SystemException {
315         return getPersistence().countByUuid(uuid);
316     }
317 
318     public static int countByCompanyId(long companyId)
319         throws com.liferay.portal.SystemException {
320         return getPersistence().countByCompanyId(companyId);
321     }
322 
323     public static int countByFolderId(long folderId)
324         throws com.liferay.portal.SystemException {
325         return getPersistence().countByFolderId(folderId);
326     }
327 
328     public static int countByF_N(long folderId, java.lang.String name)
329         throws com.liferay.portal.SystemException {
330         return getPersistence().countByF_N(folderId, name);
331     }
332 
333     public static int countByF_T(long folderId, java.lang.String title)
334         throws com.liferay.portal.SystemException {
335         return getPersistence().countByF_T(folderId, title);
336     }
337 
338     public static int countAll() throws com.liferay.portal.SystemException {
339         return getPersistence().countAll();
340     }
341 
342     public static DLFileEntryPersistence getPersistence() {
343         return _getUtil()._persistence;
344     }
345 
346     public void setPersistence(DLFileEntryPersistence persistence) {
347         _persistence = persistence;
348     }
349 
350     private static DLFileEntryUtil _getUtil() {
351         if (_util == null) {
352             _util = (DLFileEntryUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
353         }
354 
355         return _util;
356     }
357 
358     private static final String _UTIL = DLFileEntryUtil.class.getName();
359     private static DLFileEntryUtil _util;
360     private DLFileEntryPersistence _persistence;
361 }