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.SystemException;
26  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
27  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
28  
29  import com.liferay.portlet.documentlibrary.model.DLFileEntry;
30  
31  import java.util.List;
32  
33  /**
34   * <a href="DLFileEntryUtil.java.html"><b><i>View Source</i></b></a>
35   *
36   * <p>
37   * ServiceBuilder generated this class. Modifications in this class will be
38   * overwritten the next time is generated.
39   * </p>
40   *
41   * @author    Brian Wing Shun Chan
42   * @see       DLFileEntryPersistence
43   * @see       DLFileEntryPersistenceImpl
44   * @generated
45   */
46  public class DLFileEntryUtil {
47      /**
48       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
49       */
50      public static void clearCache() {
51          getPersistence().clearCache();
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
56       */
57      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
58          throws SystemException {
59          return getPersistence().findWithDynamicQuery(dynamicQuery);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
64       */
65      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
66          int start, int end) throws SystemException {
67          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
72       */
73      public static DLFileEntry remove(DLFileEntry dlFileEntry)
74          throws SystemException {
75          return getPersistence().remove(dlFileEntry);
76      }
77  
78      /**
79       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
80       */
81      public static DLFileEntry update(DLFileEntry dlFileEntry, boolean merge)
82          throws SystemException {
83          return getPersistence().update(dlFileEntry, merge);
84      }
85  
86      public static void cacheResult(
87          com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry) {
88          getPersistence().cacheResult(dlFileEntry);
89      }
90  
91      public static void cacheResult(
92          java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> dlFileEntries) {
93          getPersistence().cacheResult(dlFileEntries);
94      }
95  
96      public static com.liferay.portlet.documentlibrary.model.DLFileEntry create(
97          long fileEntryId) {
98          return getPersistence().create(fileEntryId);
99      }
100 
101     public static com.liferay.portlet.documentlibrary.model.DLFileEntry remove(
102         long fileEntryId)
103         throws com.liferay.portal.SystemException,
104             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
105         return getPersistence().remove(fileEntryId);
106     }
107 
108     /**
109      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
110      */
111     public static com.liferay.portlet.documentlibrary.model.DLFileEntry update(
112         com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
113         throws com.liferay.portal.SystemException {
114         return getPersistence().update(dlFileEntry);
115     }
116 
117     public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateImpl(
118         com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
119         boolean merge) throws com.liferay.portal.SystemException {
120         return getPersistence().updateImpl(dlFileEntry, merge);
121     }
122 
123     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByPrimaryKey(
124         long fileEntryId)
125         throws com.liferay.portal.SystemException,
126             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
127         return getPersistence().findByPrimaryKey(fileEntryId);
128     }
129 
130     public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByPrimaryKey(
131         long fileEntryId) throws com.liferay.portal.SystemException {
132         return getPersistence().fetchByPrimaryKey(fileEntryId);
133     }
134 
135     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByUuid(
136         java.lang.String uuid) throws com.liferay.portal.SystemException {
137         return getPersistence().findByUuid(uuid);
138     }
139 
140     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByUuid(
141         java.lang.String uuid, int start, int end)
142         throws com.liferay.portal.SystemException {
143         return getPersistence().findByUuid(uuid, start, end);
144     }
145 
146     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByUuid(
147         java.lang.String uuid, int start, int end,
148         com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.SystemException {
150         return getPersistence().findByUuid(uuid, start, end, obc);
151     }
152 
153     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByUuid_First(
154         java.lang.String uuid,
155         com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.SystemException,
157             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
158         return getPersistence().findByUuid_First(uuid, obc);
159     }
160 
161     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByUuid_Last(
162         java.lang.String uuid,
163         com.liferay.portal.kernel.util.OrderByComparator obc)
164         throws com.liferay.portal.SystemException,
165             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
166         return getPersistence().findByUuid_Last(uuid, obc);
167     }
168 
169     public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByUuid_PrevAndNext(
170         long fileEntryId, java.lang.String uuid,
171         com.liferay.portal.kernel.util.OrderByComparator obc)
172         throws com.liferay.portal.SystemException,
173             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
174         return getPersistence().findByUuid_PrevAndNext(fileEntryId, uuid, obc);
175     }
176 
177     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByUUID_G(
178         java.lang.String uuid, long groupId)
179         throws com.liferay.portal.SystemException,
180             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
181         return getPersistence().findByUUID_G(uuid, groupId);
182     }
183 
184     public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByUUID_G(
185         java.lang.String uuid, long groupId)
186         throws com.liferay.portal.SystemException {
187         return getPersistence().fetchByUUID_G(uuid, groupId);
188     }
189 
190     public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByUUID_G(
191         java.lang.String uuid, long groupId, boolean retrieveFromCache)
192         throws com.liferay.portal.SystemException {
193         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
194     }
195 
196     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByGroupId(
197         long groupId) throws com.liferay.portal.SystemException {
198         return getPersistence().findByGroupId(groupId);
199     }
200 
201     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByGroupId(
202         long groupId, int start, int end)
203         throws com.liferay.portal.SystemException {
204         return getPersistence().findByGroupId(groupId, start, end);
205     }
206 
207     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByGroupId(
208         long groupId, int start, int end,
209         com.liferay.portal.kernel.util.OrderByComparator obc)
210         throws com.liferay.portal.SystemException {
211         return getPersistence().findByGroupId(groupId, start, end, obc);
212     }
213 
214     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByGroupId_First(
215         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
216         throws com.liferay.portal.SystemException,
217             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
218         return getPersistence().findByGroupId_First(groupId, obc);
219     }
220 
221     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByGroupId_Last(
222         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
223         throws com.liferay.portal.SystemException,
224             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
225         return getPersistence().findByGroupId_Last(groupId, obc);
226     }
227 
228     public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByGroupId_PrevAndNext(
229         long fileEntryId, long groupId,
230         com.liferay.portal.kernel.util.OrderByComparator obc)
231         throws com.liferay.portal.SystemException,
232             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
233         return getPersistence()
234                    .findByGroupId_PrevAndNext(fileEntryId, groupId, obc);
235     }
236 
237     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByCompanyId(
238         long companyId) throws com.liferay.portal.SystemException {
239         return getPersistence().findByCompanyId(companyId);
240     }
241 
242     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByCompanyId(
243         long companyId, int start, int end)
244         throws com.liferay.portal.SystemException {
245         return getPersistence().findByCompanyId(companyId, start, end);
246     }
247 
248     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByCompanyId(
249         long companyId, int start, int end,
250         com.liferay.portal.kernel.util.OrderByComparator obc)
251         throws com.liferay.portal.SystemException {
252         return getPersistence().findByCompanyId(companyId, start, end, obc);
253     }
254 
255     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByCompanyId_First(
256         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
257         throws com.liferay.portal.SystemException,
258             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
259         return getPersistence().findByCompanyId_First(companyId, obc);
260     }
261 
262     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByCompanyId_Last(
263         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
264         throws com.liferay.portal.SystemException,
265             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
266         return getPersistence().findByCompanyId_Last(companyId, obc);
267     }
268 
269     public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByCompanyId_PrevAndNext(
270         long fileEntryId, long companyId,
271         com.liferay.portal.kernel.util.OrderByComparator obc)
272         throws com.liferay.portal.SystemException,
273             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
274         return getPersistence()
275                    .findByCompanyId_PrevAndNext(fileEntryId, companyId, obc);
276     }
277 
278     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByFolderId(
279         long folderId) throws com.liferay.portal.SystemException {
280         return getPersistence().findByFolderId(folderId);
281     }
282 
283     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByFolderId(
284         long folderId, int start, int end)
285         throws com.liferay.portal.SystemException {
286         return getPersistence().findByFolderId(folderId, start, end);
287     }
288 
289     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByFolderId(
290         long folderId, int start, int end,
291         com.liferay.portal.kernel.util.OrderByComparator obc)
292         throws com.liferay.portal.SystemException {
293         return getPersistence().findByFolderId(folderId, start, end, obc);
294     }
295 
296     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByFolderId_First(
297         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
298         throws com.liferay.portal.SystemException,
299             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
300         return getPersistence().findByFolderId_First(folderId, obc);
301     }
302 
303     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByFolderId_Last(
304         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
305         throws com.liferay.portal.SystemException,
306             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
307         return getPersistence().findByFolderId_Last(folderId, obc);
308     }
309 
310     public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByFolderId_PrevAndNext(
311         long fileEntryId, long folderId,
312         com.liferay.portal.kernel.util.OrderByComparator obc)
313         throws com.liferay.portal.SystemException,
314             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
315         return getPersistence()
316                    .findByFolderId_PrevAndNext(fileEntryId, folderId, obc);
317     }
318 
319     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U(
320         long groupId, long userId) throws com.liferay.portal.SystemException {
321         return getPersistence().findByG_U(groupId, userId);
322     }
323 
324     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U(
325         long groupId, long userId, int start, int end)
326         throws com.liferay.portal.SystemException {
327         return getPersistence().findByG_U(groupId, userId, start, end);
328     }
329 
330     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U(
331         long groupId, long userId, int start, int end,
332         com.liferay.portal.kernel.util.OrderByComparator obc)
333         throws com.liferay.portal.SystemException {
334         return getPersistence().findByG_U(groupId, userId, start, end, obc);
335     }
336 
337     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_U_First(
338         long groupId, long userId,
339         com.liferay.portal.kernel.util.OrderByComparator obc)
340         throws com.liferay.portal.SystemException,
341             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
342         return getPersistence().findByG_U_First(groupId, userId, obc);
343     }
344 
345     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_U_Last(
346         long groupId, long userId,
347         com.liferay.portal.kernel.util.OrderByComparator obc)
348         throws com.liferay.portal.SystemException,
349             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
350         return getPersistence().findByG_U_Last(groupId, userId, obc);
351     }
352 
353     public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByG_U_PrevAndNext(
354         long fileEntryId, long groupId, long userId,
355         com.liferay.portal.kernel.util.OrderByComparator obc)
356         throws com.liferay.portal.SystemException,
357             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
358         return getPersistence()
359                    .findByG_U_PrevAndNext(fileEntryId, groupId, userId, obc);
360     }
361 
362     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByF_N(
363         long folderId, java.lang.String name)
364         throws com.liferay.portal.SystemException,
365             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
366         return getPersistence().findByF_N(folderId, name);
367     }
368 
369     public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByF_N(
370         long folderId, java.lang.String name)
371         throws com.liferay.portal.SystemException {
372         return getPersistence().fetchByF_N(folderId, name);
373     }
374 
375     public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByF_N(
376         long folderId, java.lang.String name, boolean retrieveFromCache)
377         throws com.liferay.portal.SystemException {
378         return getPersistence().fetchByF_N(folderId, name, retrieveFromCache);
379     }
380 
381     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByF_T(
382         long folderId, java.lang.String title)
383         throws com.liferay.portal.SystemException {
384         return getPersistence().findByF_T(folderId, title);
385     }
386 
387     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByF_T(
388         long folderId, java.lang.String title, int start, int end)
389         throws com.liferay.portal.SystemException {
390         return getPersistence().findByF_T(folderId, title, start, end);
391     }
392 
393     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByF_T(
394         long folderId, java.lang.String title, int start, int end,
395         com.liferay.portal.kernel.util.OrderByComparator obc)
396         throws com.liferay.portal.SystemException {
397         return getPersistence().findByF_T(folderId, title, start, end, obc);
398     }
399 
400     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByF_T_First(
401         long folderId, java.lang.String title,
402         com.liferay.portal.kernel.util.OrderByComparator obc)
403         throws com.liferay.portal.SystemException,
404             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
405         return getPersistence().findByF_T_First(folderId, title, obc);
406     }
407 
408     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByF_T_Last(
409         long folderId, java.lang.String title,
410         com.liferay.portal.kernel.util.OrderByComparator obc)
411         throws com.liferay.portal.SystemException,
412             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
413         return getPersistence().findByF_T_Last(folderId, title, obc);
414     }
415 
416     public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByF_T_PrevAndNext(
417         long fileEntryId, long folderId, java.lang.String title,
418         com.liferay.portal.kernel.util.OrderByComparator obc)
419         throws com.liferay.portal.SystemException,
420             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
421         return getPersistence()
422                    .findByF_T_PrevAndNext(fileEntryId, folderId, title, obc);
423     }
424 
425     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findAll()
426         throws com.liferay.portal.SystemException {
427         return getPersistence().findAll();
428     }
429 
430     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findAll(
431         int start, int end) throws com.liferay.portal.SystemException {
432         return getPersistence().findAll(start, end);
433     }
434 
435     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findAll(
436         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
437         throws com.liferay.portal.SystemException {
438         return getPersistence().findAll(start, end, obc);
439     }
440 
441     public static void removeByUuid(java.lang.String uuid)
442         throws com.liferay.portal.SystemException {
443         getPersistence().removeByUuid(uuid);
444     }
445 
446     public static void removeByUUID_G(java.lang.String uuid, long groupId)
447         throws com.liferay.portal.SystemException,
448             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
449         getPersistence().removeByUUID_G(uuid, groupId);
450     }
451 
452     public static void removeByGroupId(long groupId)
453         throws com.liferay.portal.SystemException {
454         getPersistence().removeByGroupId(groupId);
455     }
456 
457     public static void removeByCompanyId(long companyId)
458         throws com.liferay.portal.SystemException {
459         getPersistence().removeByCompanyId(companyId);
460     }
461 
462     public static void removeByFolderId(long folderId)
463         throws com.liferay.portal.SystemException {
464         getPersistence().removeByFolderId(folderId);
465     }
466 
467     public static void removeByG_U(long groupId, long userId)
468         throws com.liferay.portal.SystemException {
469         getPersistence().removeByG_U(groupId, userId);
470     }
471 
472     public static void removeByF_N(long folderId, java.lang.String name)
473         throws com.liferay.portal.SystemException,
474             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
475         getPersistence().removeByF_N(folderId, name);
476     }
477 
478     public static void removeByF_T(long folderId, java.lang.String title)
479         throws com.liferay.portal.SystemException {
480         getPersistence().removeByF_T(folderId, title);
481     }
482 
483     public static void removeAll() throws com.liferay.portal.SystemException {
484         getPersistence().removeAll();
485     }
486 
487     public static int countByUuid(java.lang.String uuid)
488         throws com.liferay.portal.SystemException {
489         return getPersistence().countByUuid(uuid);
490     }
491 
492     public static int countByUUID_G(java.lang.String uuid, long groupId)
493         throws com.liferay.portal.SystemException {
494         return getPersistence().countByUUID_G(uuid, groupId);
495     }
496 
497     public static int countByGroupId(long groupId)
498         throws com.liferay.portal.SystemException {
499         return getPersistence().countByGroupId(groupId);
500     }
501 
502     public static int countByCompanyId(long companyId)
503         throws com.liferay.portal.SystemException {
504         return getPersistence().countByCompanyId(companyId);
505     }
506 
507     public static int countByFolderId(long folderId)
508         throws com.liferay.portal.SystemException {
509         return getPersistence().countByFolderId(folderId);
510     }
511 
512     public static int countByG_U(long groupId, long userId)
513         throws com.liferay.portal.SystemException {
514         return getPersistence().countByG_U(groupId, userId);
515     }
516 
517     public static int countByF_N(long folderId, java.lang.String name)
518         throws com.liferay.portal.SystemException {
519         return getPersistence().countByF_N(folderId, name);
520     }
521 
522     public static int countByF_T(long folderId, java.lang.String title)
523         throws com.liferay.portal.SystemException {
524         return getPersistence().countByF_T(folderId, title);
525     }
526 
527     public static int countAll() throws com.liferay.portal.SystemException {
528         return getPersistence().countAll();
529     }
530 
531     public static DLFileEntryPersistence getPersistence() {
532         if (_persistence == null) {
533             _persistence = (DLFileEntryPersistence)PortalBeanLocatorUtil.locate(DLFileEntryPersistence.class.getName());
534         }
535 
536         return _persistence;
537     }
538 
539     public void setPersistence(DLFileEntryPersistence persistence) {
540         _persistence = persistence;
541     }
542 
543     private static DLFileEntryPersistence _persistence;
544 }