1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.documentlibrary.service.persistence;
16  
17  import com.liferay.portal.SystemException;
18  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
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.SystemException,
96              com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
97          return getPersistence().remove(fileShortcutId);
98      }
99  
100     /**
101      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
102      */
103     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut update(
104         com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
105         throws com.liferay.portal.SystemException {
106         return getPersistence().update(dlFileShortcut);
107     }
108 
109     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateImpl(
110         com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
111         boolean merge) throws com.liferay.portal.SystemException {
112         return getPersistence().updateImpl(dlFileShortcut, merge);
113     }
114 
115     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByPrimaryKey(
116         long fileShortcutId)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
119         return getPersistence().findByPrimaryKey(fileShortcutId);
120     }
121 
122     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByPrimaryKey(
123         long fileShortcutId) throws com.liferay.portal.SystemException {
124         return getPersistence().fetchByPrimaryKey(fileShortcutId);
125     }
126 
127     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByUuid(
128         java.lang.String uuid) throws com.liferay.portal.SystemException {
129         return getPersistence().findByUuid(uuid);
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         throws com.liferay.portal.SystemException {
135         return getPersistence().findByUuid(uuid, start, end);
136     }
137 
138     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByUuid(
139         java.lang.String uuid, int start, int end,
140         com.liferay.portal.kernel.util.OrderByComparator obc)
141         throws com.liferay.portal.SystemException {
142         return getPersistence().findByUuid(uuid, start, end, obc);
143     }
144 
145     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUuid_First(
146         java.lang.String uuid,
147         com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.SystemException,
149             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
150         return getPersistence().findByUuid_First(uuid, obc);
151     }
152 
153     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUuid_Last(
154         java.lang.String uuid,
155         com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.SystemException,
157             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
158         return getPersistence().findByUuid_Last(uuid, obc);
159     }
160 
161     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByUuid_PrevAndNext(
162         long fileShortcutId, java.lang.String uuid,
163         com.liferay.portal.kernel.util.OrderByComparator obc)
164         throws com.liferay.portal.SystemException,
165             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
166         return getPersistence().findByUuid_PrevAndNext(fileShortcutId, uuid, obc);
167     }
168 
169     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUUID_G(
170         java.lang.String uuid, long groupId)
171         throws com.liferay.portal.SystemException,
172             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
173         return getPersistence().findByUUID_G(uuid, groupId);
174     }
175 
176     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByUUID_G(
177         java.lang.String uuid, long groupId)
178         throws com.liferay.portal.SystemException {
179         return getPersistence().fetchByUUID_G(uuid, groupId);
180     }
181 
182     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByUUID_G(
183         java.lang.String uuid, long groupId, boolean retrieveFromCache)
184         throws com.liferay.portal.SystemException {
185         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
186     }
187 
188     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByFolderId(
189         long folderId) throws com.liferay.portal.SystemException {
190         return getPersistence().findByFolderId(folderId);
191     }
192 
193     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByFolderId(
194         long folderId, int start, int end)
195         throws com.liferay.portal.SystemException {
196         return getPersistence().findByFolderId(folderId, start, end);
197     }
198 
199     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByFolderId(
200         long folderId, int start, int end,
201         com.liferay.portal.kernel.util.OrderByComparator obc)
202         throws com.liferay.portal.SystemException {
203         return getPersistence().findByFolderId(folderId, start, end, obc);
204     }
205 
206     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByFolderId_First(
207         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
208         throws com.liferay.portal.SystemException,
209             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
210         return getPersistence().findByFolderId_First(folderId, obc);
211     }
212 
213     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByFolderId_Last(
214         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
215         throws com.liferay.portal.SystemException,
216             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
217         return getPersistence().findByFolderId_Last(folderId, obc);
218     }
219 
220     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByFolderId_PrevAndNext(
221         long fileShortcutId, long folderId,
222         com.liferay.portal.kernel.util.OrderByComparator obc)
223         throws com.liferay.portal.SystemException,
224             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
225         return getPersistence()
226                    .findByFolderId_PrevAndNext(fileShortcutId, folderId, obc);
227     }
228 
229     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByTF_TN(
230         long toFolderId, java.lang.String toName)
231         throws com.liferay.portal.SystemException {
232         return getPersistence().findByTF_TN(toFolderId, toName);
233     }
234 
235     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByTF_TN(
236         long toFolderId, java.lang.String toName, int start, int end)
237         throws com.liferay.portal.SystemException {
238         return getPersistence().findByTF_TN(toFolderId, toName, start, end);
239     }
240 
241     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByTF_TN(
242         long toFolderId, java.lang.String toName, int start, int end,
243         com.liferay.portal.kernel.util.OrderByComparator obc)
244         throws com.liferay.portal.SystemException {
245         return getPersistence().findByTF_TN(toFolderId, toName, start, end, obc);
246     }
247 
248     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByTF_TN_First(
249         long toFolderId, java.lang.String toName,
250         com.liferay.portal.kernel.util.OrderByComparator obc)
251         throws com.liferay.portal.SystemException,
252             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
253         return getPersistence().findByTF_TN_First(toFolderId, toName, obc);
254     }
255 
256     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByTF_TN_Last(
257         long toFolderId, java.lang.String toName,
258         com.liferay.portal.kernel.util.OrderByComparator obc)
259         throws com.liferay.portal.SystemException,
260             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
261         return getPersistence().findByTF_TN_Last(toFolderId, toName, obc);
262     }
263 
264     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByTF_TN_PrevAndNext(
265         long fileShortcutId, long toFolderId, java.lang.String toName,
266         com.liferay.portal.kernel.util.OrderByComparator obc)
267         throws com.liferay.portal.SystemException,
268             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
269         return getPersistence()
270                    .findByTF_TN_PrevAndNext(fileShortcutId, toFolderId, toName,
271             obc);
272     }
273 
274     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findAll()
275         throws com.liferay.portal.SystemException {
276         return getPersistence().findAll();
277     }
278 
279     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findAll(
280         int start, int end) throws com.liferay.portal.SystemException {
281         return getPersistence().findAll(start, end);
282     }
283 
284     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findAll(
285         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
286         throws com.liferay.portal.SystemException {
287         return getPersistence().findAll(start, end, obc);
288     }
289 
290     public static void removeByUuid(java.lang.String uuid)
291         throws com.liferay.portal.SystemException {
292         getPersistence().removeByUuid(uuid);
293     }
294 
295     public static void removeByUUID_G(java.lang.String uuid, long groupId)
296         throws com.liferay.portal.SystemException,
297             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
298         getPersistence().removeByUUID_G(uuid, groupId);
299     }
300 
301     public static void removeByFolderId(long folderId)
302         throws com.liferay.portal.SystemException {
303         getPersistence().removeByFolderId(folderId);
304     }
305 
306     public static void removeByTF_TN(long toFolderId, java.lang.String toName)
307         throws com.liferay.portal.SystemException {
308         getPersistence().removeByTF_TN(toFolderId, toName);
309     }
310 
311     public static void removeAll() throws com.liferay.portal.SystemException {
312         getPersistence().removeAll();
313     }
314 
315     public static int countByUuid(java.lang.String uuid)
316         throws com.liferay.portal.SystemException {
317         return getPersistence().countByUuid(uuid);
318     }
319 
320     public static int countByUUID_G(java.lang.String uuid, long groupId)
321         throws com.liferay.portal.SystemException {
322         return getPersistence().countByUUID_G(uuid, groupId);
323     }
324 
325     public static int countByFolderId(long folderId)
326         throws com.liferay.portal.SystemException {
327         return getPersistence().countByFolderId(folderId);
328     }
329 
330     public static int countByTF_TN(long toFolderId, java.lang.String toName)
331         throws com.liferay.portal.SystemException {
332         return getPersistence().countByTF_TN(toFolderId, toName);
333     }
334 
335     public static int countAll() throws com.liferay.portal.SystemException {
336         return getPersistence().countAll();
337     }
338 
339     public static DLFileShortcutPersistence getPersistence() {
340         if (_persistence == null) {
341             _persistence = (DLFileShortcutPersistence)PortalBeanLocatorUtil.locate(DLFileShortcutPersistence.class.getName());
342         }
343 
344         return _persistence;
345     }
346 
347     public void setPersistence(DLFileShortcutPersistence persistence) {
348         _persistence = persistence;
349     }
350 
351     private static DLFileShortcutPersistence _persistence;
352 }