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