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.DLFileRank;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="DLFileRankUtil.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       DLFileRankPersistence
35   * @see       DLFileRankPersistenceImpl
36   * @generated
37   */
38  public class DLFileRankUtil {
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 DLFileRank remove(DLFileRank dlFileRank)
66          throws SystemException {
67          return getPersistence().remove(dlFileRank);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static DLFileRank update(DLFileRank dlFileRank, boolean merge)
74          throws SystemException {
75          return getPersistence().update(dlFileRank, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank) {
80          getPersistence().cacheResult(dlFileRank);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> dlFileRanks) {
85          getPersistence().cacheResult(dlFileRanks);
86      }
87  
88      public static com.liferay.portlet.documentlibrary.model.DLFileRank create(
89          long fileRankId) {
90          return getPersistence().create(fileRankId);
91      }
92  
93      public static com.liferay.portlet.documentlibrary.model.DLFileRank remove(
94          long fileRankId)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.documentlibrary.NoSuchFileRankException {
97          return getPersistence().remove(fileRankId);
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.DLFileRank update(
104         com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank)
105         throws com.liferay.portal.SystemException {
106         return getPersistence().update(dlFileRank);
107     }
108 
109     public static com.liferay.portlet.documentlibrary.model.DLFileRank updateImpl(
110         com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank,
111         boolean merge) throws com.liferay.portal.SystemException {
112         return getPersistence().updateImpl(dlFileRank, merge);
113     }
114 
115     public static com.liferay.portlet.documentlibrary.model.DLFileRank findByPrimaryKey(
116         long fileRankId)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portlet.documentlibrary.NoSuchFileRankException {
119         return getPersistence().findByPrimaryKey(fileRankId);
120     }
121 
122     public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByPrimaryKey(
123         long fileRankId) throws com.liferay.portal.SystemException {
124         return getPersistence().fetchByPrimaryKey(fileRankId);
125     }
126 
127     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId(
128         long userId) throws com.liferay.portal.SystemException {
129         return getPersistence().findByUserId(userId);
130     }
131 
132     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId(
133         long userId, int start, int end)
134         throws com.liferay.portal.SystemException {
135         return getPersistence().findByUserId(userId, start, end);
136     }
137 
138     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId(
139         long userId, int start, int end,
140         com.liferay.portal.kernel.util.OrderByComparator obc)
141         throws com.liferay.portal.SystemException {
142         return getPersistence().findByUserId(userId, start, end, obc);
143     }
144 
145     public static com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_First(
146         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.SystemException,
148             com.liferay.portlet.documentlibrary.NoSuchFileRankException {
149         return getPersistence().findByUserId_First(userId, obc);
150     }
151 
152     public static com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_Last(
153         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
154         throws com.liferay.portal.SystemException,
155             com.liferay.portlet.documentlibrary.NoSuchFileRankException {
156         return getPersistence().findByUserId_Last(userId, obc);
157     }
158 
159     public static com.liferay.portlet.documentlibrary.model.DLFileRank[] findByUserId_PrevAndNext(
160         long fileRankId, long userId,
161         com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.SystemException,
163             com.liferay.portlet.documentlibrary.NoSuchFileRankException {
164         return getPersistence().findByUserId_PrevAndNext(fileRankId, userId, obc);
165     }
166 
167     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U(
168         long groupId, long userId) throws com.liferay.portal.SystemException {
169         return getPersistence().findByG_U(groupId, userId);
170     }
171 
172     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U(
173         long groupId, long userId, int start, int end)
174         throws com.liferay.portal.SystemException {
175         return getPersistence().findByG_U(groupId, userId, start, end);
176     }
177 
178     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U(
179         long groupId, long userId, int start, int end,
180         com.liferay.portal.kernel.util.OrderByComparator obc)
181         throws com.liferay.portal.SystemException {
182         return getPersistence().findByG_U(groupId, userId, start, end, obc);
183     }
184 
185     public static com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_First(
186         long groupId, long userId,
187         com.liferay.portal.kernel.util.OrderByComparator obc)
188         throws com.liferay.portal.SystemException,
189             com.liferay.portlet.documentlibrary.NoSuchFileRankException {
190         return getPersistence().findByG_U_First(groupId, userId, obc);
191     }
192 
193     public static com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_Last(
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_Last(groupId, userId, obc);
199     }
200 
201     public static com.liferay.portlet.documentlibrary.model.DLFileRank[] findByG_U_PrevAndNext(
202         long fileRankId, 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()
207                    .findByG_U_PrevAndNext(fileRankId, groupId, userId, obc);
208     }
209 
210     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByF_N(
211         long folderId, java.lang.String name)
212         throws com.liferay.portal.SystemException {
213         return getPersistence().findByF_N(folderId, name);
214     }
215 
216     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByF_N(
217         long folderId, java.lang.String name, int start, int end)
218         throws com.liferay.portal.SystemException {
219         return getPersistence().findByF_N(folderId, name, start, end);
220     }
221 
222     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByF_N(
223         long folderId, java.lang.String name, int start, int end,
224         com.liferay.portal.kernel.util.OrderByComparator obc)
225         throws com.liferay.portal.SystemException {
226         return getPersistence().findByF_N(folderId, name, start, end, obc);
227     }
228 
229     public static com.liferay.portlet.documentlibrary.model.DLFileRank findByF_N_First(
230         long folderId, java.lang.String name,
231         com.liferay.portal.kernel.util.OrderByComparator obc)
232         throws com.liferay.portal.SystemException,
233             com.liferay.portlet.documentlibrary.NoSuchFileRankException {
234         return getPersistence().findByF_N_First(folderId, name, obc);
235     }
236 
237     public static com.liferay.portlet.documentlibrary.model.DLFileRank findByF_N_Last(
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_Last(folderId, name, obc);
243     }
244 
245     public static com.liferay.portlet.documentlibrary.model.DLFileRank[] findByF_N_PrevAndNext(
246         long fileRankId, 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()
251                    .findByF_N_PrevAndNext(fileRankId, folderId, name, obc);
252     }
253 
254     public static com.liferay.portlet.documentlibrary.model.DLFileRank findByC_U_F_N(
255         long companyId, long userId, long folderId, java.lang.String name)
256         throws com.liferay.portal.SystemException,
257             com.liferay.portlet.documentlibrary.NoSuchFileRankException {
258         return getPersistence().findByC_U_F_N(companyId, userId, folderId, name);
259     }
260 
261     public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F_N(
262         long companyId, long userId, long folderId, java.lang.String name)
263         throws com.liferay.portal.SystemException {
264         return getPersistence().fetchByC_U_F_N(companyId, userId, folderId, name);
265     }
266 
267     public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F_N(
268         long companyId, long userId, long folderId, java.lang.String name,
269         boolean retrieveFromCache) throws com.liferay.portal.SystemException {
270         return getPersistence()
271                    .fetchByC_U_F_N(companyId, userId, folderId, name,
272             retrieveFromCache);
273     }
274 
275     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll()
276         throws com.liferay.portal.SystemException {
277         return getPersistence().findAll();
278     }
279 
280     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll(
281         int start, int end) throws com.liferay.portal.SystemException {
282         return getPersistence().findAll(start, end);
283     }
284 
285     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll(
286         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
287         throws com.liferay.portal.SystemException {
288         return getPersistence().findAll(start, end, obc);
289     }
290 
291     public static void removeByUserId(long userId)
292         throws com.liferay.portal.SystemException {
293         getPersistence().removeByUserId(userId);
294     }
295 
296     public static void removeByG_U(long groupId, long userId)
297         throws com.liferay.portal.SystemException {
298         getPersistence().removeByG_U(groupId, userId);
299     }
300 
301     public static void removeByF_N(long folderId, java.lang.String name)
302         throws com.liferay.portal.SystemException {
303         getPersistence().removeByF_N(folderId, name);
304     }
305 
306     public static void removeByC_U_F_N(long companyId, long userId,
307         long folderId, java.lang.String name)
308         throws com.liferay.portal.SystemException,
309             com.liferay.portlet.documentlibrary.NoSuchFileRankException {
310         getPersistence().removeByC_U_F_N(companyId, userId, folderId, name);
311     }
312 
313     public static void removeAll() throws com.liferay.portal.SystemException {
314         getPersistence().removeAll();
315     }
316 
317     public static int countByUserId(long userId)
318         throws com.liferay.portal.SystemException {
319         return getPersistence().countByUserId(userId);
320     }
321 
322     public static int countByG_U(long groupId, long userId)
323         throws com.liferay.portal.SystemException {
324         return getPersistence().countByG_U(groupId, userId);
325     }
326 
327     public static int countByF_N(long folderId, java.lang.String name)
328         throws com.liferay.portal.SystemException {
329         return getPersistence().countByF_N(folderId, name);
330     }
331 
332     public static int countByC_U_F_N(long companyId, long userId,
333         long folderId, java.lang.String name)
334         throws com.liferay.portal.SystemException {
335         return getPersistence().countByC_U_F_N(companyId, userId, folderId, name);
336     }
337 
338     public static int countAll() throws com.liferay.portal.SystemException {
339         return getPersistence().countAll();
340     }
341 
342     public static DLFileRankPersistence getPersistence() {
343         if (_persistence == null) {
344             _persistence = (DLFileRankPersistence)PortalBeanLocatorUtil.locate(DLFileRankPersistence.class.getName());
345         }
346 
347         return _persistence;
348     }
349 
350     public void setPersistence(DLFileRankPersistence persistence) {
351         _persistence = persistence;
352     }
353 
354     private static DLFileRankPersistence _persistence;
355 }