1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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  import com.liferay.portal.SystemException;
26  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
27  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
28  
29  import com.liferay.portlet.documentlibrary.model.DLFileRank;
30  
31  import java.util.List;
32  
33  /**
34   * <a href="DLFileRankUtil.java.html"><b><i>View Source</i></b></a>
35   *
36   * <p>
37   * ServiceBuilder generated this class. Modifications in this class will be
38   * overwritten the next time is generated.
39   * </p>
40   *
41   * @author    Brian Wing Shun Chan
42   * @see       DLFileRankPersistence
43   * @see       DLFileRankPersistenceImpl
44   * @generated
45   */
46  public class DLFileRankUtil {
47      /**
48       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
49       */
50      public static void clearCache() {
51          getPersistence().clearCache();
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
56       */
57      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
58          throws SystemException {
59          return getPersistence().findWithDynamicQuery(dynamicQuery);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
64       */
65      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
66          int start, int end) throws SystemException {
67          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
72       */
73      public static DLFileRank remove(DLFileRank dlFileRank)
74          throws SystemException {
75          return getPersistence().remove(dlFileRank);
76      }
77  
78      /**
79       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
80       */
81      public static DLFileRank update(DLFileRank dlFileRank, boolean merge)
82          throws SystemException {
83          return getPersistence().update(dlFileRank, merge);
84      }
85  
86      public static void cacheResult(
87          com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank) {
88          getPersistence().cacheResult(dlFileRank);
89      }
90  
91      public static void cacheResult(
92          java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> dlFileRanks) {
93          getPersistence().cacheResult(dlFileRanks);
94      }
95  
96      public static com.liferay.portlet.documentlibrary.model.DLFileRank create(
97          long fileRankId) {
98          return getPersistence().create(fileRankId);
99      }
100 
101     public static com.liferay.portlet.documentlibrary.model.DLFileRank remove(
102         long fileRankId)
103         throws com.liferay.portal.SystemException,
104             com.liferay.portlet.documentlibrary.NoSuchFileRankException {
105         return getPersistence().remove(fileRankId);
106     }
107 
108     /**
109      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
110      */
111     public static com.liferay.portlet.documentlibrary.model.DLFileRank update(
112         com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank)
113         throws com.liferay.portal.SystemException {
114         return getPersistence().update(dlFileRank);
115     }
116 
117     public static com.liferay.portlet.documentlibrary.model.DLFileRank updateImpl(
118         com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank,
119         boolean merge) throws com.liferay.portal.SystemException {
120         return getPersistence().updateImpl(dlFileRank, merge);
121     }
122 
123     public static com.liferay.portlet.documentlibrary.model.DLFileRank findByPrimaryKey(
124         long fileRankId)
125         throws com.liferay.portal.SystemException,
126             com.liferay.portlet.documentlibrary.NoSuchFileRankException {
127         return getPersistence().findByPrimaryKey(fileRankId);
128     }
129 
130     public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByPrimaryKey(
131         long fileRankId) throws com.liferay.portal.SystemException {
132         return getPersistence().fetchByPrimaryKey(fileRankId);
133     }
134 
135     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId(
136         long userId) throws com.liferay.portal.SystemException {
137         return getPersistence().findByUserId(userId);
138     }
139 
140     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId(
141         long userId, int start, int end)
142         throws com.liferay.portal.SystemException {
143         return getPersistence().findByUserId(userId, start, end);
144     }
145 
146     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId(
147         long userId, int start, int end,
148         com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.SystemException {
150         return getPersistence().findByUserId(userId, start, end, obc);
151     }
152 
153     public static com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_First(
154         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
155         throws com.liferay.portal.SystemException,
156             com.liferay.portlet.documentlibrary.NoSuchFileRankException {
157         return getPersistence().findByUserId_First(userId, obc);
158     }
159 
160     public static com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_Last(
161         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.SystemException,
163             com.liferay.portlet.documentlibrary.NoSuchFileRankException {
164         return getPersistence().findByUserId_Last(userId, obc);
165     }
166 
167     public static com.liferay.portlet.documentlibrary.model.DLFileRank[] findByUserId_PrevAndNext(
168         long fileRankId, long userId,
169         com.liferay.portal.kernel.util.OrderByComparator obc)
170         throws com.liferay.portal.SystemException,
171             com.liferay.portlet.documentlibrary.NoSuchFileRankException {
172         return getPersistence().findByUserId_PrevAndNext(fileRankId, userId, obc);
173     }
174 
175     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U(
176         long groupId, long userId) throws com.liferay.portal.SystemException {
177         return getPersistence().findByG_U(groupId, userId);
178     }
179 
180     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U(
181         long groupId, long userId, int start, int end)
182         throws com.liferay.portal.SystemException {
183         return getPersistence().findByG_U(groupId, userId, start, end);
184     }
185 
186     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U(
187         long groupId, long userId, int start, int end,
188         com.liferay.portal.kernel.util.OrderByComparator obc)
189         throws com.liferay.portal.SystemException {
190         return getPersistence().findByG_U(groupId, userId, start, end, obc);
191     }
192 
193     public static com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_First(
194         long groupId, long userId,
195         com.liferay.portal.kernel.util.OrderByComparator obc)
196         throws com.liferay.portal.SystemException,
197             com.liferay.portlet.documentlibrary.NoSuchFileRankException {
198         return getPersistence().findByG_U_First(groupId, userId, obc);
199     }
200 
201     public static com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_Last(
202         long groupId, long userId,
203         com.liferay.portal.kernel.util.OrderByComparator obc)
204         throws com.liferay.portal.SystemException,
205             com.liferay.portlet.documentlibrary.NoSuchFileRankException {
206         return getPersistence().findByG_U_Last(groupId, userId, obc);
207     }
208 
209     public static com.liferay.portlet.documentlibrary.model.DLFileRank[] findByG_U_PrevAndNext(
210         long fileRankId, long groupId, long userId,
211         com.liferay.portal.kernel.util.OrderByComparator obc)
212         throws com.liferay.portal.SystemException,
213             com.liferay.portlet.documentlibrary.NoSuchFileRankException {
214         return getPersistence()
215                    .findByG_U_PrevAndNext(fileRankId, groupId, userId, obc);
216     }
217 
218     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByF_N(
219         long folderId, java.lang.String name)
220         throws com.liferay.portal.SystemException {
221         return getPersistence().findByF_N(folderId, name);
222     }
223 
224     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByF_N(
225         long folderId, java.lang.String name, int start, int end)
226         throws com.liferay.portal.SystemException {
227         return getPersistence().findByF_N(folderId, name, start, end);
228     }
229 
230     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByF_N(
231         long folderId, java.lang.String name, int start, int end,
232         com.liferay.portal.kernel.util.OrderByComparator obc)
233         throws com.liferay.portal.SystemException {
234         return getPersistence().findByF_N(folderId, name, start, end, obc);
235     }
236 
237     public static com.liferay.portlet.documentlibrary.model.DLFileRank findByF_N_First(
238         long folderId, java.lang.String name,
239         com.liferay.portal.kernel.util.OrderByComparator obc)
240         throws com.liferay.portal.SystemException,
241             com.liferay.portlet.documentlibrary.NoSuchFileRankException {
242         return getPersistence().findByF_N_First(folderId, name, obc);
243     }
244 
245     public static com.liferay.portlet.documentlibrary.model.DLFileRank findByF_N_Last(
246         long folderId, java.lang.String name,
247         com.liferay.portal.kernel.util.OrderByComparator obc)
248         throws com.liferay.portal.SystemException,
249             com.liferay.portlet.documentlibrary.NoSuchFileRankException {
250         return getPersistence().findByF_N_Last(folderId, name, obc);
251     }
252 
253     public static com.liferay.portlet.documentlibrary.model.DLFileRank[] findByF_N_PrevAndNext(
254         long fileRankId, long folderId, java.lang.String name,
255         com.liferay.portal.kernel.util.OrderByComparator obc)
256         throws com.liferay.portal.SystemException,
257             com.liferay.portlet.documentlibrary.NoSuchFileRankException {
258         return getPersistence()
259                    .findByF_N_PrevAndNext(fileRankId, folderId, name, obc);
260     }
261 
262     public static com.liferay.portlet.documentlibrary.model.DLFileRank findByC_U_F_N(
263         long companyId, long userId, long folderId, java.lang.String name)
264         throws com.liferay.portal.SystemException,
265             com.liferay.portlet.documentlibrary.NoSuchFileRankException {
266         return getPersistence().findByC_U_F_N(companyId, userId, folderId, name);
267     }
268 
269     public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F_N(
270         long companyId, long userId, long folderId, java.lang.String name)
271         throws com.liferay.portal.SystemException {
272         return getPersistence().fetchByC_U_F_N(companyId, userId, folderId, name);
273     }
274 
275     public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F_N(
276         long companyId, long userId, long folderId, java.lang.String name,
277         boolean retrieveFromCache) throws com.liferay.portal.SystemException {
278         return getPersistence()
279                    .fetchByC_U_F_N(companyId, userId, folderId, name,
280             retrieveFromCache);
281     }
282 
283     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll()
284         throws com.liferay.portal.SystemException {
285         return getPersistence().findAll();
286     }
287 
288     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll(
289         int start, int end) throws com.liferay.portal.SystemException {
290         return getPersistence().findAll(start, end);
291     }
292 
293     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll(
294         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
295         throws com.liferay.portal.SystemException {
296         return getPersistence().findAll(start, end, obc);
297     }
298 
299     public static void removeByUserId(long userId)
300         throws com.liferay.portal.SystemException {
301         getPersistence().removeByUserId(userId);
302     }
303 
304     public static void removeByG_U(long groupId, long userId)
305         throws com.liferay.portal.SystemException {
306         getPersistence().removeByG_U(groupId, userId);
307     }
308 
309     public static void removeByF_N(long folderId, java.lang.String name)
310         throws com.liferay.portal.SystemException {
311         getPersistence().removeByF_N(folderId, name);
312     }
313 
314     public static void removeByC_U_F_N(long companyId, long userId,
315         long folderId, java.lang.String name)
316         throws com.liferay.portal.SystemException,
317             com.liferay.portlet.documentlibrary.NoSuchFileRankException {
318         getPersistence().removeByC_U_F_N(companyId, userId, folderId, name);
319     }
320 
321     public static void removeAll() throws com.liferay.portal.SystemException {
322         getPersistence().removeAll();
323     }
324 
325     public static int countByUserId(long userId)
326         throws com.liferay.portal.SystemException {
327         return getPersistence().countByUserId(userId);
328     }
329 
330     public static int countByG_U(long groupId, long userId)
331         throws com.liferay.portal.SystemException {
332         return getPersistence().countByG_U(groupId, userId);
333     }
334 
335     public static int countByF_N(long folderId, java.lang.String name)
336         throws com.liferay.portal.SystemException {
337         return getPersistence().countByF_N(folderId, name);
338     }
339 
340     public static int countByC_U_F_N(long companyId, long userId,
341         long folderId, java.lang.String name)
342         throws com.liferay.portal.SystemException {
343         return getPersistence().countByC_U_F_N(companyId, userId, folderId, name);
344     }
345 
346     public static int countAll() throws com.liferay.portal.SystemException {
347         return getPersistence().countAll();
348     }
349 
350     public static DLFileRankPersistence getPersistence() {
351         if (_persistence == null) {
352             _persistence = (DLFileRankPersistence)PortalBeanLocatorUtil.locate(DLFileRankPersistence.class.getName());
353         }
354 
355         return _persistence;
356     }
357 
358     public void setPersistence(DLFileRankPersistence persistence) {
359         _persistence = persistence;
360     }
361 
362     private static DLFileRankPersistence _persistence;
363 }