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.DLFileVersion;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="DLFileVersionUtil.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       DLFileVersionPersistence
35   * @see       DLFileVersionPersistenceImpl
36   * @generated
37   */
38  public class DLFileVersionUtil {
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 DLFileVersion remove(DLFileVersion dlFileVersion)
66          throws SystemException {
67          return getPersistence().remove(dlFileVersion);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static DLFileVersion update(DLFileVersion dlFileVersion,
74          boolean merge) throws SystemException {
75          return getPersistence().update(dlFileVersion, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion) {
80          getPersistence().cacheResult(dlFileVersion);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> dlFileVersions) {
85          getPersistence().cacheResult(dlFileVersions);
86      }
87  
88      public static com.liferay.portlet.documentlibrary.model.DLFileVersion create(
89          long fileVersionId) {
90          return getPersistence().create(fileVersionId);
91      }
92  
93      public static com.liferay.portlet.documentlibrary.model.DLFileVersion remove(
94          long fileVersionId)
95          throws com.liferay.portal.kernel.exception.SystemException,
96              com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
97          return getPersistence().remove(fileVersionId);
98      }
99  
100     public static com.liferay.portlet.documentlibrary.model.DLFileVersion updateImpl(
101         com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion,
102         boolean merge)
103         throws com.liferay.portal.kernel.exception.SystemException {
104         return getPersistence().updateImpl(dlFileVersion, merge);
105     }
106 
107     public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByPrimaryKey(
108         long fileVersionId)
109         throws com.liferay.portal.kernel.exception.SystemException,
110             com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
111         return getPersistence().findByPrimaryKey(fileVersionId);
112     }
113 
114     public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByPrimaryKey(
115         long fileVersionId)
116         throws com.liferay.portal.kernel.exception.SystemException {
117         return getPersistence().fetchByPrimaryKey(fileVersionId);
118     }
119 
120     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N(
121         long groupId, long folderId, java.lang.String name)
122         throws com.liferay.portal.kernel.exception.SystemException {
123         return getPersistence().findByG_F_N(groupId, folderId, name);
124     }
125 
126     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N(
127         long groupId, long folderId, java.lang.String name, int start, int end)
128         throws com.liferay.portal.kernel.exception.SystemException {
129         return getPersistence().findByG_F_N(groupId, folderId, name, start, end);
130     }
131 
132     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N(
133         long groupId, long folderId, java.lang.String name, int start, int end,
134         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135         throws com.liferay.portal.kernel.exception.SystemException {
136         return getPersistence()
137                    .findByG_F_N(groupId, folderId, name, start, end,
138             orderByComparator);
139     }
140 
141     public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_First(
142         long groupId, long folderId, java.lang.String name,
143         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144         throws com.liferay.portal.kernel.exception.SystemException,
145             com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
146         return getPersistence()
147                    .findByG_F_N_First(groupId, folderId, name, orderByComparator);
148     }
149 
150     public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_Last(
151         long groupId, long folderId, java.lang.String name,
152         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153         throws com.liferay.portal.kernel.exception.SystemException,
154             com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
155         return getPersistence()
156                    .findByG_F_N_Last(groupId, folderId, name, orderByComparator);
157     }
158 
159     public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByG_F_N_PrevAndNext(
160         long fileVersionId, long groupId, long folderId, java.lang.String name,
161         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
162         throws com.liferay.portal.kernel.exception.SystemException,
163             com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
164         return getPersistence()
165                    .findByG_F_N_PrevAndNext(fileVersionId, groupId, folderId,
166             name, orderByComparator);
167     }
168 
169     public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_V(
170         long groupId, long folderId, java.lang.String name,
171         java.lang.String version)
172         throws com.liferay.portal.kernel.exception.SystemException,
173             com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
174         return getPersistence().findByG_F_N_V(groupId, folderId, name, version);
175     }
176 
177     public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_N_V(
178         long groupId, long folderId, java.lang.String name,
179         java.lang.String version)
180         throws com.liferay.portal.kernel.exception.SystemException {
181         return getPersistence().fetchByG_F_N_V(groupId, folderId, name, version);
182     }
183 
184     public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_N_V(
185         long groupId, long folderId, java.lang.String name,
186         java.lang.String version, boolean retrieveFromCache)
187         throws com.liferay.portal.kernel.exception.SystemException {
188         return getPersistence()
189                    .fetchByG_F_N_V(groupId, folderId, name, version,
190             retrieveFromCache);
191     }
192 
193     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N_S(
194         long groupId, long folderId, java.lang.String name, int status)
195         throws com.liferay.portal.kernel.exception.SystemException {
196         return getPersistence().findByG_F_N_S(groupId, folderId, name, status);
197     }
198 
199     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N_S(
200         long groupId, long folderId, java.lang.String name, int status,
201         int start, int end)
202         throws com.liferay.portal.kernel.exception.SystemException {
203         return getPersistence()
204                    .findByG_F_N_S(groupId, folderId, name, status, start, end);
205     }
206 
207     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N_S(
208         long groupId, long folderId, java.lang.String name, int status,
209         int start, int end,
210         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
211         throws com.liferay.portal.kernel.exception.SystemException {
212         return getPersistence()
213                    .findByG_F_N_S(groupId, folderId, name, status, start, end,
214             orderByComparator);
215     }
216 
217     public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_S_First(
218         long groupId, long folderId, java.lang.String name, int status,
219         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
220         throws com.liferay.portal.kernel.exception.SystemException,
221             com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
222         return getPersistence()
223                    .findByG_F_N_S_First(groupId, folderId, name, status,
224             orderByComparator);
225     }
226 
227     public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_S_Last(
228         long groupId, long folderId, java.lang.String name, int status,
229         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
230         throws com.liferay.portal.kernel.exception.SystemException,
231             com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
232         return getPersistence()
233                    .findByG_F_N_S_Last(groupId, folderId, name, status,
234             orderByComparator);
235     }
236 
237     public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByG_F_N_S_PrevAndNext(
238         long fileVersionId, long groupId, long folderId, java.lang.String name,
239         int status,
240         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
241         throws com.liferay.portal.kernel.exception.SystemException,
242             com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
243         return getPersistence()
244                    .findByG_F_N_S_PrevAndNext(fileVersionId, groupId, folderId,
245             name, status, orderByComparator);
246     }
247 
248     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll()
249         throws com.liferay.portal.kernel.exception.SystemException {
250         return getPersistence().findAll();
251     }
252 
253     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
254         int start, int end)
255         throws com.liferay.portal.kernel.exception.SystemException {
256         return getPersistence().findAll(start, end);
257     }
258 
259     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
260         int start, int end,
261         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
262         throws com.liferay.portal.kernel.exception.SystemException {
263         return getPersistence().findAll(start, end, orderByComparator);
264     }
265 
266     public static void removeByG_F_N(long groupId, long folderId,
267         java.lang.String name)
268         throws com.liferay.portal.kernel.exception.SystemException {
269         getPersistence().removeByG_F_N(groupId, folderId, name);
270     }
271 
272     public static void removeByG_F_N_V(long groupId, long folderId,
273         java.lang.String name, java.lang.String version)
274         throws com.liferay.portal.kernel.exception.SystemException,
275             com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
276         getPersistence().removeByG_F_N_V(groupId, folderId, name, version);
277     }
278 
279     public static void removeByG_F_N_S(long groupId, long folderId,
280         java.lang.String name, int status)
281         throws com.liferay.portal.kernel.exception.SystemException {
282         getPersistence().removeByG_F_N_S(groupId, folderId, name, status);
283     }
284 
285     public static void removeAll()
286         throws com.liferay.portal.kernel.exception.SystemException {
287         getPersistence().removeAll();
288     }
289 
290     public static int countByG_F_N(long groupId, long folderId,
291         java.lang.String name)
292         throws com.liferay.portal.kernel.exception.SystemException {
293         return getPersistence().countByG_F_N(groupId, folderId, name);
294     }
295 
296     public static int countByG_F_N_V(long groupId, long folderId,
297         java.lang.String name, java.lang.String version)
298         throws com.liferay.portal.kernel.exception.SystemException {
299         return getPersistence().countByG_F_N_V(groupId, folderId, name, version);
300     }
301 
302     public static int countByG_F_N_S(long groupId, long folderId,
303         java.lang.String name, int status)
304         throws com.liferay.portal.kernel.exception.SystemException {
305         return getPersistence().countByG_F_N_S(groupId, folderId, name, status);
306     }
307 
308     public static int countAll()
309         throws com.liferay.portal.kernel.exception.SystemException {
310         return getPersistence().countAll();
311     }
312 
313     public static DLFileVersionPersistence getPersistence() {
314         if (_persistence == null) {
315             _persistence = (DLFileVersionPersistence)PortalBeanLocatorUtil.locate(DLFileVersionPersistence.class.getName());
316         }
317 
318         return _persistence;
319     }
320 
321     public void setPersistence(DLFileVersionPersistence persistence) {
322         _persistence = persistence;
323     }
324 
325     private static DLFileVersionPersistence _persistence;
326 }