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 orderByComparator)
135         throws com.liferay.portal.kernel.exception.SystemException {
136         return getPersistence().findByUuid(uuid, start, end, orderByComparator);
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 orderByComparator)
142         throws com.liferay.portal.kernel.exception.SystemException,
143             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
144         return getPersistence().findByUuid_First(uuid, orderByComparator);
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 orderByComparator)
150         throws com.liferay.portal.kernel.exception.SystemException,
151             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
152         return getPersistence().findByUuid_Last(uuid, orderByComparator);
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 orderByComparator)
158         throws com.liferay.portal.kernel.exception.SystemException,
159             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
160         return getPersistence()
161                    .findByUuid_PrevAndNext(fileShortcutId, uuid,
162             orderByComparator);
163     }
164 
165     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUUID_G(
166         java.lang.String uuid, long groupId)
167         throws com.liferay.portal.kernel.exception.SystemException,
168             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
169         return getPersistence().findByUUID_G(uuid, groupId);
170     }
171 
172     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByUUID_G(
173         java.lang.String uuid, long groupId)
174         throws com.liferay.portal.kernel.exception.SystemException {
175         return getPersistence().fetchByUUID_G(uuid, groupId);
176     }
177 
178     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByUUID_G(
179         java.lang.String uuid, long groupId, boolean retrieveFromCache)
180         throws com.liferay.portal.kernel.exception.SystemException {
181         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
182     }
183 
184     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_F(
185         long groupId, long folderId)
186         throws com.liferay.portal.kernel.exception.SystemException {
187         return getPersistence().findByG_F(groupId, folderId);
188     }
189 
190     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_F(
191         long groupId, long folderId, int start, int end)
192         throws com.liferay.portal.kernel.exception.SystemException {
193         return getPersistence().findByG_F(groupId, folderId, start, end);
194     }
195 
196     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_F(
197         long groupId, long folderId, int start, int end,
198         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
199         throws com.liferay.portal.kernel.exception.SystemException {
200         return getPersistence()
201                    .findByG_F(groupId, folderId, start, end, orderByComparator);
202     }
203 
204     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByG_F_First(
205         long groupId, long folderId,
206         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207         throws com.liferay.portal.kernel.exception.SystemException,
208             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
209         return getPersistence()
210                    .findByG_F_First(groupId, folderId, orderByComparator);
211     }
212 
213     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByG_F_Last(
214         long groupId, long folderId,
215         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
216         throws com.liferay.portal.kernel.exception.SystemException,
217             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
218         return getPersistence()
219                    .findByG_F_Last(groupId, folderId, orderByComparator);
220     }
221 
222     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByG_F_PrevAndNext(
223         long fileShortcutId, long groupId, long folderId,
224         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
225         throws com.liferay.portal.kernel.exception.SystemException,
226             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
227         return getPersistence()
228                    .findByG_F_PrevAndNext(fileShortcutId, groupId, folderId,
229             orderByComparator);
230     }
231 
232     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_F_S(
233         long groupId, long folderId, int status)
234         throws com.liferay.portal.kernel.exception.SystemException {
235         return getPersistence().findByG_F_S(groupId, folderId, status);
236     }
237 
238     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_F_S(
239         long groupId, long folderId, int status, int start, int end)
240         throws com.liferay.portal.kernel.exception.SystemException {
241         return getPersistence()
242                    .findByG_F_S(groupId, folderId, status, start, end);
243     }
244 
245     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_F_S(
246         long groupId, long folderId, int status, int start, int end,
247         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
248         throws com.liferay.portal.kernel.exception.SystemException {
249         return getPersistence()
250                    .findByG_F_S(groupId, folderId, status, start, end,
251             orderByComparator);
252     }
253 
254     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByG_F_S_First(
255         long groupId, long folderId, int status,
256         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
257         throws com.liferay.portal.kernel.exception.SystemException,
258             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
259         return getPersistence()
260                    .findByG_F_S_First(groupId, folderId, status,
261             orderByComparator);
262     }
263 
264     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByG_F_S_Last(
265         long groupId, long folderId, int status,
266         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
267         throws com.liferay.portal.kernel.exception.SystemException,
268             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
269         return getPersistence()
270                    .findByG_F_S_Last(groupId, folderId, status,
271             orderByComparator);
272     }
273 
274     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByG_F_S_PrevAndNext(
275         long fileShortcutId, long groupId, long folderId, int status,
276         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
277         throws com.liferay.portal.kernel.exception.SystemException,
278             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
279         return getPersistence()
280                    .findByG_F_S_PrevAndNext(fileShortcutId, groupId, folderId,
281             status, orderByComparator);
282     }
283 
284     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_TF_TN(
285         long groupId, long toFolderId, java.lang.String toName)
286         throws com.liferay.portal.kernel.exception.SystemException {
287         return getPersistence().findByG_TF_TN(groupId, toFolderId, toName);
288     }
289 
290     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_TF_TN(
291         long groupId, long toFolderId, java.lang.String toName, int start,
292         int end) throws com.liferay.portal.kernel.exception.SystemException {
293         return getPersistence()
294                    .findByG_TF_TN(groupId, toFolderId, toName, start, end);
295     }
296 
297     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_TF_TN(
298         long groupId, long toFolderId, java.lang.String toName, int start,
299         int end,
300         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
301         throws com.liferay.portal.kernel.exception.SystemException {
302         return getPersistence()
303                    .findByG_TF_TN(groupId, toFolderId, toName, start, end,
304             orderByComparator);
305     }
306 
307     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByG_TF_TN_First(
308         long groupId, long toFolderId, java.lang.String toName,
309         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
310         throws com.liferay.portal.kernel.exception.SystemException,
311             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
312         return getPersistence()
313                    .findByG_TF_TN_First(groupId, toFolderId, toName,
314             orderByComparator);
315     }
316 
317     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByG_TF_TN_Last(
318         long groupId, long toFolderId, java.lang.String toName,
319         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
320         throws com.liferay.portal.kernel.exception.SystemException,
321             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
322         return getPersistence()
323                    .findByG_TF_TN_Last(groupId, toFolderId, toName,
324             orderByComparator);
325     }
326 
327     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByG_TF_TN_PrevAndNext(
328         long fileShortcutId, long groupId, long toFolderId,
329         java.lang.String toName,
330         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
331         throws com.liferay.portal.kernel.exception.SystemException,
332             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
333         return getPersistence()
334                    .findByG_TF_TN_PrevAndNext(fileShortcutId, groupId,
335             toFolderId, toName, orderByComparator);
336     }
337 
338     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_TF_TN_S(
339         long groupId, long toFolderId, java.lang.String toName, int status)
340         throws com.liferay.portal.kernel.exception.SystemException {
341         return getPersistence()
342                    .findByG_TF_TN_S(groupId, toFolderId, toName, status);
343     }
344 
345     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_TF_TN_S(
346         long groupId, long toFolderId, java.lang.String toName, int status,
347         int start, int end)
348         throws com.liferay.portal.kernel.exception.SystemException {
349         return getPersistence()
350                    .findByG_TF_TN_S(groupId, toFolderId, toName, status, start,
351             end);
352     }
353 
354     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_TF_TN_S(
355         long groupId, long toFolderId, java.lang.String toName, int status,
356         int start, int end,
357         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
358         throws com.liferay.portal.kernel.exception.SystemException {
359         return getPersistence()
360                    .findByG_TF_TN_S(groupId, toFolderId, toName, status, start,
361             end, orderByComparator);
362     }
363 
364     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByG_TF_TN_S_First(
365         long groupId, long toFolderId, java.lang.String toName, int status,
366         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
367         throws com.liferay.portal.kernel.exception.SystemException,
368             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
369         return getPersistence()
370                    .findByG_TF_TN_S_First(groupId, toFolderId, toName, status,
371             orderByComparator);
372     }
373 
374     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByG_TF_TN_S_Last(
375         long groupId, long toFolderId, java.lang.String toName, int status,
376         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
377         throws com.liferay.portal.kernel.exception.SystemException,
378             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
379         return getPersistence()
380                    .findByG_TF_TN_S_Last(groupId, toFolderId, toName, status,
381             orderByComparator);
382     }
383 
384     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByG_TF_TN_S_PrevAndNext(
385         long fileShortcutId, long groupId, long toFolderId,
386         java.lang.String toName, int status,
387         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
388         throws com.liferay.portal.kernel.exception.SystemException,
389             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
390         return getPersistence()
391                    .findByG_TF_TN_S_PrevAndNext(fileShortcutId, groupId,
392             toFolderId, toName, status, orderByComparator);
393     }
394 
395     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findAll()
396         throws com.liferay.portal.kernel.exception.SystemException {
397         return getPersistence().findAll();
398     }
399 
400     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findAll(
401         int start, int end)
402         throws com.liferay.portal.kernel.exception.SystemException {
403         return getPersistence().findAll(start, end);
404     }
405 
406     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findAll(
407         int start, int end,
408         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
409         throws com.liferay.portal.kernel.exception.SystemException {
410         return getPersistence().findAll(start, end, orderByComparator);
411     }
412 
413     public static void removeByUuid(java.lang.String uuid)
414         throws com.liferay.portal.kernel.exception.SystemException {
415         getPersistence().removeByUuid(uuid);
416     }
417 
418     public static void removeByUUID_G(java.lang.String uuid, long groupId)
419         throws com.liferay.portal.kernel.exception.SystemException,
420             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
421         getPersistence().removeByUUID_G(uuid, groupId);
422     }
423 
424     public static void removeByG_F(long groupId, long folderId)
425         throws com.liferay.portal.kernel.exception.SystemException {
426         getPersistence().removeByG_F(groupId, folderId);
427     }
428 
429     public static void removeByG_F_S(long groupId, long folderId, int status)
430         throws com.liferay.portal.kernel.exception.SystemException {
431         getPersistence().removeByG_F_S(groupId, folderId, status);
432     }
433 
434     public static void removeByG_TF_TN(long groupId, long toFolderId,
435         java.lang.String toName)
436         throws com.liferay.portal.kernel.exception.SystemException {
437         getPersistence().removeByG_TF_TN(groupId, toFolderId, toName);
438     }
439 
440     public static void removeByG_TF_TN_S(long groupId, long toFolderId,
441         java.lang.String toName, int status)
442         throws com.liferay.portal.kernel.exception.SystemException {
443         getPersistence().removeByG_TF_TN_S(groupId, toFolderId, toName, status);
444     }
445 
446     public static void removeAll()
447         throws com.liferay.portal.kernel.exception.SystemException {
448         getPersistence().removeAll();
449     }
450 
451     public static int countByUuid(java.lang.String uuid)
452         throws com.liferay.portal.kernel.exception.SystemException {
453         return getPersistence().countByUuid(uuid);
454     }
455 
456     public static int countByUUID_G(java.lang.String uuid, long groupId)
457         throws com.liferay.portal.kernel.exception.SystemException {
458         return getPersistence().countByUUID_G(uuid, groupId);
459     }
460 
461     public static int countByG_F(long groupId, long folderId)
462         throws com.liferay.portal.kernel.exception.SystemException {
463         return getPersistence().countByG_F(groupId, folderId);
464     }
465 
466     public static int countByG_F_S(long groupId, long folderId, int status)
467         throws com.liferay.portal.kernel.exception.SystemException {
468         return getPersistence().countByG_F_S(groupId, folderId, status);
469     }
470 
471     public static int countByG_TF_TN(long groupId, long toFolderId,
472         java.lang.String toName)
473         throws com.liferay.portal.kernel.exception.SystemException {
474         return getPersistence().countByG_TF_TN(groupId, toFolderId, toName);
475     }
476 
477     public static int countByG_TF_TN_S(long groupId, long toFolderId,
478         java.lang.String toName, int status)
479         throws com.liferay.portal.kernel.exception.SystemException {
480         return getPersistence()
481                    .countByG_TF_TN_S(groupId, toFolderId, toName, status);
482     }
483 
484     public static int countAll()
485         throws com.liferay.portal.kernel.exception.SystemException {
486         return getPersistence().countAll();
487     }
488 
489     public static DLFileShortcutPersistence getPersistence() {
490         if (_persistence == null) {
491             _persistence = (DLFileShortcutPersistence)PortalBeanLocatorUtil.locate(DLFileShortcutPersistence.class.getName());
492         }
493 
494         return _persistence;
495     }
496 
497     public void setPersistence(DLFileShortcutPersistence persistence) {
498         _persistence = persistence;
499     }
500 
501     private static DLFileShortcutPersistence _persistence;
502 }