1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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  /**
26   * <a href="DLFileShortcutUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class DLFileShortcutUtil {
32      public static com.liferay.portlet.documentlibrary.model.DLFileShortcut create(
33          long fileShortcutId) {
34          return getPersistence().create(fileShortcutId);
35      }
36  
37      public static com.liferay.portlet.documentlibrary.model.DLFileShortcut remove(
38          long fileShortcutId)
39          throws com.liferay.portal.SystemException, 
40              com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
41          return getPersistence().remove(fileShortcutId);
42      }
43  
44      public static com.liferay.portlet.documentlibrary.model.DLFileShortcut remove(
45          com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
46          throws com.liferay.portal.SystemException {
47          return getPersistence().remove(dlFileShortcut);
48      }
49  
50      public static com.liferay.portlet.documentlibrary.model.DLFileShortcut update(
51          com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
52          throws com.liferay.portal.SystemException {
53          return getPersistence().update(dlFileShortcut);
54      }
55  
56      public static com.liferay.portlet.documentlibrary.model.DLFileShortcut update(
57          com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
58          boolean merge) throws com.liferay.portal.SystemException {
59          return getPersistence().update(dlFileShortcut, merge);
60      }
61  
62      public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateImpl(
63          com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
64          boolean merge) throws com.liferay.portal.SystemException {
65          return getPersistence().updateImpl(dlFileShortcut, merge);
66      }
67  
68      public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByPrimaryKey(
69          long fileShortcutId)
70          throws com.liferay.portal.SystemException, 
71              com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
72          return getPersistence().findByPrimaryKey(fileShortcutId);
73      }
74  
75      public static com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByPrimaryKey(
76          long fileShortcutId) throws com.liferay.portal.SystemException {
77          return getPersistence().fetchByPrimaryKey(fileShortcutId);
78      }
79  
80      public static java.util.List findByUuid(java.lang.String uuid)
81          throws com.liferay.portal.SystemException {
82          return getPersistence().findByUuid(uuid);
83      }
84  
85      public static java.util.List findByUuid(java.lang.String uuid, int begin,
86          int end) throws com.liferay.portal.SystemException {
87          return getPersistence().findByUuid(uuid, begin, end);
88      }
89  
90      public static java.util.List findByUuid(java.lang.String uuid, int begin,
91          int end, com.liferay.portal.kernel.util.OrderByComparator obc)
92          throws com.liferay.portal.SystemException {
93          return getPersistence().findByUuid(uuid, begin, end, obc);
94      }
95  
96      public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUuid_First(
97          java.lang.String uuid,
98          com.liferay.portal.kernel.util.OrderByComparator obc)
99          throws com.liferay.portal.SystemException, 
100             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
101         return getPersistence().findByUuid_First(uuid, obc);
102     }
103 
104     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUuid_Last(
105         java.lang.String uuid,
106         com.liferay.portal.kernel.util.OrderByComparator obc)
107         throws com.liferay.portal.SystemException, 
108             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
109         return getPersistence().findByUuid_Last(uuid, obc);
110     }
111 
112     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByUuid_PrevAndNext(
113         long fileShortcutId, java.lang.String uuid,
114         com.liferay.portal.kernel.util.OrderByComparator obc)
115         throws com.liferay.portal.SystemException, 
116             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
117         return getPersistence().findByUuid_PrevAndNext(fileShortcutId, uuid, obc);
118     }
119 
120     public static java.util.List findByFolderId(long folderId)
121         throws com.liferay.portal.SystemException {
122         return getPersistence().findByFolderId(folderId);
123     }
124 
125     public static java.util.List findByFolderId(long folderId, int begin,
126         int end) throws com.liferay.portal.SystemException {
127         return getPersistence().findByFolderId(folderId, begin, end);
128     }
129 
130     public static java.util.List findByFolderId(long folderId, int begin,
131         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
132         throws com.liferay.portal.SystemException {
133         return getPersistence().findByFolderId(folderId, begin, end, obc);
134     }
135 
136     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByFolderId_First(
137         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.SystemException, 
139             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
140         return getPersistence().findByFolderId_First(folderId, obc);
141     }
142 
143     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByFolderId_Last(
144         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
145         throws com.liferay.portal.SystemException, 
146             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
147         return getPersistence().findByFolderId_Last(folderId, obc);
148     }
149 
150     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByFolderId_PrevAndNext(
151         long fileShortcutId, long folderId,
152         com.liferay.portal.kernel.util.OrderByComparator obc)
153         throws com.liferay.portal.SystemException, 
154             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
155         return getPersistence().findByFolderId_PrevAndNext(fileShortcutId,
156             folderId, obc);
157     }
158 
159     public static java.util.List findByTF_TN(long toFolderId,
160         java.lang.String toName) throws com.liferay.portal.SystemException {
161         return getPersistence().findByTF_TN(toFolderId, toName);
162     }
163 
164     public static java.util.List findByTF_TN(long toFolderId,
165         java.lang.String toName, int begin, int end)
166         throws com.liferay.portal.SystemException {
167         return getPersistence().findByTF_TN(toFolderId, toName, begin, end);
168     }
169 
170     public static java.util.List findByTF_TN(long toFolderId,
171         java.lang.String toName, int begin, int end,
172         com.liferay.portal.kernel.util.OrderByComparator obc)
173         throws com.liferay.portal.SystemException {
174         return getPersistence().findByTF_TN(toFolderId, toName, begin, end, obc);
175     }
176 
177     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByTF_TN_First(
178         long toFolderId, java.lang.String toName,
179         com.liferay.portal.kernel.util.OrderByComparator obc)
180         throws com.liferay.portal.SystemException, 
181             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
182         return getPersistence().findByTF_TN_First(toFolderId, toName, obc);
183     }
184 
185     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByTF_TN_Last(
186         long toFolderId, java.lang.String toName,
187         com.liferay.portal.kernel.util.OrderByComparator obc)
188         throws com.liferay.portal.SystemException, 
189             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
190         return getPersistence().findByTF_TN_Last(toFolderId, toName, obc);
191     }
192 
193     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByTF_TN_PrevAndNext(
194         long fileShortcutId, long toFolderId, java.lang.String toName,
195         com.liferay.portal.kernel.util.OrderByComparator obc)
196         throws com.liferay.portal.SystemException, 
197             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
198         return getPersistence().findByTF_TN_PrevAndNext(fileShortcutId,
199             toFolderId, toName, obc);
200     }
201 
202     public static java.util.List findWithDynamicQuery(
203         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
204         throws com.liferay.portal.SystemException {
205         return getPersistence().findWithDynamicQuery(queryInitializer);
206     }
207 
208     public static java.util.List findWithDynamicQuery(
209         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
210         int begin, int end) throws com.liferay.portal.SystemException {
211         return getPersistence().findWithDynamicQuery(queryInitializer, begin,
212             end);
213     }
214 
215     public static java.util.List findAll()
216         throws com.liferay.portal.SystemException {
217         return getPersistence().findAll();
218     }
219 
220     public static java.util.List findAll(int begin, int end)
221         throws com.liferay.portal.SystemException {
222         return getPersistence().findAll(begin, end);
223     }
224 
225     public static java.util.List findAll(int begin, int end,
226         com.liferay.portal.kernel.util.OrderByComparator obc)
227         throws com.liferay.portal.SystemException {
228         return getPersistence().findAll(begin, end, obc);
229     }
230 
231     public static void removeByUuid(java.lang.String uuid)
232         throws com.liferay.portal.SystemException {
233         getPersistence().removeByUuid(uuid);
234     }
235 
236     public static void removeByFolderId(long folderId)
237         throws com.liferay.portal.SystemException {
238         getPersistence().removeByFolderId(folderId);
239     }
240 
241     public static void removeByTF_TN(long toFolderId, java.lang.String toName)
242         throws com.liferay.portal.SystemException {
243         getPersistence().removeByTF_TN(toFolderId, toName);
244     }
245 
246     public static void removeAll() throws com.liferay.portal.SystemException {
247         getPersistence().removeAll();
248     }
249 
250     public static int countByUuid(java.lang.String uuid)
251         throws com.liferay.portal.SystemException {
252         return getPersistence().countByUuid(uuid);
253     }
254 
255     public static int countByFolderId(long folderId)
256         throws com.liferay.portal.SystemException {
257         return getPersistence().countByFolderId(folderId);
258     }
259 
260     public static int countByTF_TN(long toFolderId, java.lang.String toName)
261         throws com.liferay.portal.SystemException {
262         return getPersistence().countByTF_TN(toFolderId, toName);
263     }
264 
265     public static int countAll() throws com.liferay.portal.SystemException {
266         return getPersistence().countAll();
267     }
268 
269     public static DLFileShortcutPersistence getPersistence() {
270         return _getUtil()._persistence;
271     }
272 
273     public void setPersistence(DLFileShortcutPersistence persistence) {
274         _persistence = persistence;
275     }
276 
277     private static DLFileShortcutUtil _getUtil() {
278         if (_util == null) {
279             _util = (DLFileShortcutUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
280         }
281 
282         return _util;
283     }
284 
285     private static final String _UTIL = DLFileShortcutUtil.class.getName();
286     private static DLFileShortcutUtil _util;
287     private DLFileShortcutPersistence _persistence;
288 }