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.DLFileShortcut;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="DLFileShortcutUtil.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       DLFileShortcutPersistence
35   * @see       DLFileShortcutPersistenceImpl
36   * @generated
37   */
38  public class DLFileShortcutUtil {
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 DLFileShortcut remove(DLFileShortcut dlFileShortcut)
66          throws SystemException {
67          return getPersistence().remove(dlFileShortcut);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static DLFileShortcut update(DLFileShortcut dlFileShortcut,
74          boolean merge) throws SystemException {
75          return getPersistence().update(dlFileShortcut, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut) {
80          getPersistence().cacheResult(dlFileShortcut);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> dlFileShortcuts) {
85          getPersistence().cacheResult(dlFileShortcuts);
86      }
87  
88      public static com.liferay.portlet.documentlibrary.model.DLFileShortcut create(
89          long fileShortcutId) {
90          return getPersistence().create(fileShortcutId);
91      }
92  
93      public static com.liferay.portlet.documentlibrary.model.DLFileShortcut remove(
94          long fileShortcutId)
95          throws com.liferay.portal.kernel.exception.SystemException,
96              com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
97          return getPersistence().remove(fileShortcutId);
98      }
99  
100     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateImpl(
101         com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
102         boolean merge)
103         throws com.liferay.portal.kernel.exception.SystemException {
104         return getPersistence().updateImpl(dlFileShortcut, merge);
105     }
106 
107     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByPrimaryKey(
108         long fileShortcutId)
109         throws com.liferay.portal.kernel.exception.SystemException,
110             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
111         return getPersistence().findByPrimaryKey(fileShortcutId);
112     }
113 
114     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByPrimaryKey(
115         long fileShortcutId)
116         throws com.liferay.portal.kernel.exception.SystemException {
117         return getPersistence().fetchByPrimaryKey(fileShortcutId);
118     }
119 
120     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByUuid(
121         java.lang.String uuid)
122         throws com.liferay.portal.kernel.exception.SystemException {
123         return getPersistence().findByUuid(uuid);
124     }
125 
126     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByUuid(
127         java.lang.String uuid, int start, int end)
128         throws com.liferay.portal.kernel.exception.SystemException {
129         return getPersistence().findByUuid(uuid, start, end);
130     }
131 
132     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByUuid(
133         java.lang.String uuid, int start, int end,
134         com.liferay.portal.kernel.util.OrderByComparator obc)
135         throws com.liferay.portal.kernel.exception.SystemException {
136         return getPersistence().findByUuid(uuid, start, end, obc);
137     }
138 
139     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUuid_First(
140         java.lang.String uuid,
141         com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.kernel.exception.SystemException,
143             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
144         return getPersistence().findByUuid_First(uuid, obc);
145     }
146 
147     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUuid_Last(
148         java.lang.String uuid,
149         com.liferay.portal.kernel.util.OrderByComparator obc)
150         throws com.liferay.portal.kernel.exception.SystemException,
151             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
152         return getPersistence().findByUuid_Last(uuid, obc);
153     }
154 
155     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByUuid_PrevAndNext(
156         long fileShortcutId, java.lang.String uuid,
157         com.liferay.portal.kernel.util.OrderByComparator obc)
158         throws com.liferay.portal.kernel.exception.SystemException,
159             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
160         return getPersistence().findByUuid_PrevAndNext(fileShortcutId, uuid, obc);
161     }
162 
163     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUUID_G(
164         java.lang.String uuid, long groupId)
165         throws com.liferay.portal.kernel.exception.SystemException,
166             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
167         return getPersistence().findByUUID_G(uuid, groupId);
168     }
169 
170     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByUUID_G(
171         java.lang.String uuid, long groupId)
172         throws com.liferay.portal.kernel.exception.SystemException {
173         return getPersistence().fetchByUUID_G(uuid, groupId);
174     }
175 
176     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByUUID_G(
177         java.lang.String uuid, long groupId, boolean retrieveFromCache)
178         throws com.liferay.portal.kernel.exception.SystemException {
179         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
180     }
181 
182     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_F(
183         long groupId, long folderId)
184         throws com.liferay.portal.kernel.exception.SystemException {
185         return getPersistence().findByG_F(groupId, folderId);
186     }
187 
188     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_F(
189         long groupId, long folderId, int start, int end)
190         throws com.liferay.portal.kernel.exception.SystemException {
191         return getPersistence().findByG_F(groupId, folderId, start, end);
192     }
193 
194     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_F(
195         long groupId, long folderId, int start, int end,
196         com.liferay.portal.kernel.util.OrderByComparator obc)
197         throws com.liferay.portal.kernel.exception.SystemException {
198         return getPersistence().findByG_F(groupId, folderId, start, end, obc);
199     }
200 
201     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByG_F_First(
202         long groupId, long folderId,
203         com.liferay.portal.kernel.util.OrderByComparator obc)
204         throws com.liferay.portal.kernel.exception.SystemException,
205             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
206         return getPersistence().findByG_F_First(groupId, folderId, obc);
207     }
208 
209     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByG_F_Last(
210         long groupId, long folderId,
211         com.liferay.portal.kernel.util.OrderByComparator obc)
212         throws com.liferay.portal.kernel.exception.SystemException,
213             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
214         return getPersistence().findByG_F_Last(groupId, folderId, obc);
215     }
216 
217     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByG_F_PrevAndNext(
218         long fileShortcutId, long groupId, long folderId,
219         com.liferay.portal.kernel.util.OrderByComparator obc)
220         throws com.liferay.portal.kernel.exception.SystemException,
221             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
222         return getPersistence()
223                    .findByG_F_PrevAndNext(fileShortcutId, groupId, folderId, obc);
224     }
225 
226     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_F_S(
227         long groupId, long folderId, int status)
228         throws com.liferay.portal.kernel.exception.SystemException {
229         return getPersistence().findByG_F_S(groupId, folderId, status);
230     }
231 
232     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_F_S(
233         long groupId, long folderId, int status, int start, int end)
234         throws com.liferay.portal.kernel.exception.SystemException {
235         return getPersistence()
236                    .findByG_F_S(groupId, folderId, status, start, end);
237     }
238 
239     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_F_S(
240         long groupId, long folderId, int status, int start, int end,
241         com.liferay.portal.kernel.util.OrderByComparator obc)
242         throws com.liferay.portal.kernel.exception.SystemException {
243         return getPersistence()
244                    .findByG_F_S(groupId, folderId, status, start, end, obc);
245     }
246 
247     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByG_F_S_First(
248         long groupId, long folderId, int status,
249         com.liferay.portal.kernel.util.OrderByComparator obc)
250         throws com.liferay.portal.kernel.exception.SystemException,
251             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
252         return getPersistence().findByG_F_S_First(groupId, folderId, status, obc);
253     }
254 
255     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByG_F_S_Last(
256         long groupId, long folderId, int status,
257         com.liferay.portal.kernel.util.OrderByComparator obc)
258         throws com.liferay.portal.kernel.exception.SystemException,
259             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
260         return getPersistence().findByG_F_S_Last(groupId, folderId, status, obc);
261     }
262 
263     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByG_F_S_PrevAndNext(
264         long fileShortcutId, long groupId, long folderId, int status,
265         com.liferay.portal.kernel.util.OrderByComparator obc)
266         throws com.liferay.portal.kernel.exception.SystemException,
267             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
268         return getPersistence()
269                    .findByG_F_S_PrevAndNext(fileShortcutId, groupId, folderId,
270             status, obc);
271     }
272 
273     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_TF_TN(
274         long groupId, long toFolderId, java.lang.String toName)
275         throws com.liferay.portal.kernel.exception.SystemException {
276         return getPersistence().findByG_TF_TN(groupId, toFolderId, toName);
277     }
278 
279     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_TF_TN(
280         long groupId, long toFolderId, java.lang.String toName, int start,
281         int end) throws com.liferay.portal.kernel.exception.SystemException {
282         return getPersistence()
283                    .findByG_TF_TN(groupId, toFolderId, toName, start, end);
284     }
285 
286     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_TF_TN(
287         long groupId, long toFolderId, java.lang.String toName, int start,
288         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
289         throws com.liferay.portal.kernel.exception.SystemException {
290         return getPersistence()
291                    .findByG_TF_TN(groupId, toFolderId, toName, start, end, obc);
292     }
293 
294     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByG_TF_TN_First(
295         long groupId, long toFolderId, java.lang.String toName,
296         com.liferay.portal.kernel.util.OrderByComparator obc)
297         throws com.liferay.portal.kernel.exception.SystemException,
298             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
299         return getPersistence()
300                    .findByG_TF_TN_First(groupId, toFolderId, toName, obc);
301     }
302 
303     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByG_TF_TN_Last(
304         long groupId, long toFolderId, java.lang.String toName,
305         com.liferay.portal.kernel.util.OrderByComparator obc)
306         throws com.liferay.portal.kernel.exception.SystemException,
307             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
308         return getPersistence()
309                    .findByG_TF_TN_Last(groupId, toFolderId, toName, obc);
310     }
311 
312     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByG_TF_TN_PrevAndNext(
313         long fileShortcutId, long groupId, long toFolderId,
314         java.lang.String toName,
315         com.liferay.portal.kernel.util.OrderByComparator obc)
316         throws com.liferay.portal.kernel.exception.SystemException,
317             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
318         return getPersistence()
319                    .findByG_TF_TN_PrevAndNext(fileShortcutId, groupId,
320             toFolderId, toName, obc);
321     }
322 
323     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_TF_TN_S(
324         long groupId, long toFolderId, java.lang.String toName, int status)
325         throws com.liferay.portal.kernel.exception.SystemException {
326         return getPersistence()
327                    .findByG_TF_TN_S(groupId, toFolderId, toName, status);
328     }
329 
330     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_TF_TN_S(
331         long groupId, long toFolderId, java.lang.String toName, int status,
332         int start, int end)
333         throws com.liferay.portal.kernel.exception.SystemException {
334         return getPersistence()
335                    .findByG_TF_TN_S(groupId, toFolderId, toName, status, start,
336             end);
337     }
338 
339     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_TF_TN_S(
340         long groupId, long toFolderId, java.lang.String toName, int status,
341         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
342         throws com.liferay.portal.kernel.exception.SystemException {
343         return getPersistence()
344                    .findByG_TF_TN_S(groupId, toFolderId, toName, status, start,
345             end, obc);
346     }
347 
348     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByG_TF_TN_S_First(
349         long groupId, long toFolderId, java.lang.String toName, int status,
350         com.liferay.portal.kernel.util.OrderByComparator obc)
351         throws com.liferay.portal.kernel.exception.SystemException,
352             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
353         return getPersistence()
354                    .findByG_TF_TN_S_First(groupId, toFolderId, toName, status,
355             obc);
356     }
357 
358     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByG_TF_TN_S_Last(
359         long groupId, long toFolderId, java.lang.String toName, int status,
360         com.liferay.portal.kernel.util.OrderByComparator obc)
361         throws com.liferay.portal.kernel.exception.SystemException,
362             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
363         return getPersistence()
364                    .findByG_TF_TN_S_Last(groupId, toFolderId, toName, status,
365             obc);
366     }
367 
368     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByG_TF_TN_S_PrevAndNext(
369         long fileShortcutId, long groupId, long toFolderId,
370         java.lang.String toName, int status,
371         com.liferay.portal.kernel.util.OrderByComparator obc)
372         throws com.liferay.portal.kernel.exception.SystemException,
373             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
374         return getPersistence()
375                    .findByG_TF_TN_S_PrevAndNext(fileShortcutId, groupId,
376             toFolderId, toName, status, obc);
377     }
378 
379     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findAll()
380         throws com.liferay.portal.kernel.exception.SystemException {
381         return getPersistence().findAll();
382     }
383 
384     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findAll(
385         int start, int end)
386         throws com.liferay.portal.kernel.exception.SystemException {
387         return getPersistence().findAll(start, end);
388     }
389 
390     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findAll(
391         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
392         throws com.liferay.portal.kernel.exception.SystemException {
393         return getPersistence().findAll(start, end, obc);
394     }
395 
396     public static void removeByUuid(java.lang.String uuid)
397         throws com.liferay.portal.kernel.exception.SystemException {
398         getPersistence().removeByUuid(uuid);
399     }
400 
401     public static void removeByUUID_G(java.lang.String uuid, long groupId)
402         throws com.liferay.portal.kernel.exception.SystemException,
403             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
404         getPersistence().removeByUUID_G(uuid, groupId);
405     }
406 
407     public static void removeByG_F(long groupId, long folderId)
408         throws com.liferay.portal.kernel.exception.SystemException {
409         getPersistence().removeByG_F(groupId, folderId);
410     }
411 
412     public static void removeByG_F_S(long groupId, long folderId, int status)
413         throws com.liferay.portal.kernel.exception.SystemException {
414         getPersistence().removeByG_F_S(groupId, folderId, status);
415     }
416 
417     public static void removeByG_TF_TN(long groupId, long toFolderId,
418         java.lang.String toName)
419         throws com.liferay.portal.kernel.exception.SystemException {
420         getPersistence().removeByG_TF_TN(groupId, toFolderId, toName);
421     }
422 
423     public static void removeByG_TF_TN_S(long groupId, long toFolderId,
424         java.lang.String toName, int status)
425         throws com.liferay.portal.kernel.exception.SystemException {
426         getPersistence().removeByG_TF_TN_S(groupId, toFolderId, toName, status);
427     }
428 
429     public static void removeAll()
430         throws com.liferay.portal.kernel.exception.SystemException {
431         getPersistence().removeAll();
432     }
433 
434     public static int countByUuid(java.lang.String uuid)
435         throws com.liferay.portal.kernel.exception.SystemException {
436         return getPersistence().countByUuid(uuid);
437     }
438 
439     public static int countByUUID_G(java.lang.String uuid, long groupId)
440         throws com.liferay.portal.kernel.exception.SystemException {
441         return getPersistence().countByUUID_G(uuid, groupId);
442     }
443 
444     public static int countByG_F(long groupId, long folderId)
445         throws com.liferay.portal.kernel.exception.SystemException {
446         return getPersistence().countByG_F(groupId, folderId);
447     }
448 
449     public static int countByG_F_S(long groupId, long folderId, int status)
450         throws com.liferay.portal.kernel.exception.SystemException {
451         return getPersistence().countByG_F_S(groupId, folderId, status);
452     }
453 
454     public static int countByG_TF_TN(long groupId, long toFolderId,
455         java.lang.String toName)
456         throws com.liferay.portal.kernel.exception.SystemException {
457         return getPersistence().countByG_TF_TN(groupId, toFolderId, toName);
458     }
459 
460     public static int countByG_TF_TN_S(long groupId, long toFolderId,
461         java.lang.String toName, int status)
462         throws com.liferay.portal.kernel.exception.SystemException {
463         return getPersistence()
464                    .countByG_TF_TN_S(groupId, toFolderId, toName, status);
465     }
466 
467     public static int countAll()
468         throws com.liferay.portal.kernel.exception.SystemException {
469         return getPersistence().countAll();
470     }
471 
472     public static DLFileShortcutPersistence getPersistence() {
473         if (_persistence == null) {
474             _persistence = (DLFileShortcutPersistence)PortalBeanLocatorUtil.locate(DLFileShortcutPersistence.class.getName());
475         }
476 
477         return _persistence;
478     }
479 
480     public void setPersistence(DLFileShortcutPersistence persistence) {
481         _persistence = persistence;
482     }
483 
484     private static DLFileShortcutPersistence _persistence;
485 }