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 obc)
135         throws com.liferay.portal.kernel.exception.SystemException {
136         return getPersistence()
137                    .findByG_F_N(groupId, folderId, name, start, end, obc);
138     }
139 
140     public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_First(
141         long groupId, long folderId, java.lang.String name,
142         com.liferay.portal.kernel.util.OrderByComparator obc)
143         throws com.liferay.portal.kernel.exception.SystemException,
144             com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
145         return getPersistence().findByG_F_N_First(groupId, folderId, name, obc);
146     }
147 
148     public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_Last(
149         long groupId, long folderId, java.lang.String name,
150         com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.kernel.exception.SystemException,
152             com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
153         return getPersistence().findByG_F_N_Last(groupId, folderId, name, obc);
154     }
155 
156     public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByG_F_N_PrevAndNext(
157         long fileVersionId, long groupId, long folderId, java.lang.String name,
158         com.liferay.portal.kernel.util.OrderByComparator obc)
159         throws com.liferay.portal.kernel.exception.SystemException,
160             com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
161         return getPersistence()
162                    .findByG_F_N_PrevAndNext(fileVersionId, groupId, folderId,
163             name, obc);
164     }
165 
166     public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_V(
167         long groupId, long folderId, java.lang.String name,
168         java.lang.String version)
169         throws com.liferay.portal.kernel.exception.SystemException,
170             com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
171         return getPersistence().findByG_F_N_V(groupId, folderId, name, version);
172     }
173 
174     public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_N_V(
175         long groupId, long folderId, java.lang.String name,
176         java.lang.String version)
177         throws com.liferay.portal.kernel.exception.SystemException {
178         return getPersistence().fetchByG_F_N_V(groupId, folderId, name, version);
179     }
180 
181     public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_N_V(
182         long groupId, long folderId, java.lang.String name,
183         java.lang.String version, boolean retrieveFromCache)
184         throws com.liferay.portal.kernel.exception.SystemException {
185         return getPersistence()
186                    .fetchByG_F_N_V(groupId, folderId, name, version,
187             retrieveFromCache);
188     }
189 
190     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N_S(
191         long groupId, long folderId, java.lang.String name, int status)
192         throws com.liferay.portal.kernel.exception.SystemException {
193         return getPersistence().findByG_F_N_S(groupId, folderId, name, status);
194     }
195 
196     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N_S(
197         long groupId, long folderId, java.lang.String name, int status,
198         int start, int end)
199         throws com.liferay.portal.kernel.exception.SystemException {
200         return getPersistence()
201                    .findByG_F_N_S(groupId, folderId, name, status, start, end);
202     }
203 
204     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N_S(
205         long groupId, long folderId, java.lang.String name, int status,
206         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
207         throws com.liferay.portal.kernel.exception.SystemException {
208         return getPersistence()
209                    .findByG_F_N_S(groupId, folderId, name, status, start, end,
210             obc);
211     }
212 
213     public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_S_First(
214         long groupId, long folderId, java.lang.String name, int status,
215         com.liferay.portal.kernel.util.OrderByComparator obc)
216         throws com.liferay.portal.kernel.exception.SystemException,
217             com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
218         return getPersistence()
219                    .findByG_F_N_S_First(groupId, folderId, name, status, obc);
220     }
221 
222     public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_S_Last(
223         long groupId, long folderId, java.lang.String name, int status,
224         com.liferay.portal.kernel.util.OrderByComparator obc)
225         throws com.liferay.portal.kernel.exception.SystemException,
226             com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
227         return getPersistence()
228                    .findByG_F_N_S_Last(groupId, folderId, name, status, obc);
229     }
230 
231     public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByG_F_N_S_PrevAndNext(
232         long fileVersionId, long groupId, long folderId, java.lang.String name,
233         int status, com.liferay.portal.kernel.util.OrderByComparator obc)
234         throws com.liferay.portal.kernel.exception.SystemException,
235             com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
236         return getPersistence()
237                    .findByG_F_N_S_PrevAndNext(fileVersionId, groupId, folderId,
238             name, status, obc);
239     }
240 
241     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll()
242         throws com.liferay.portal.kernel.exception.SystemException {
243         return getPersistence().findAll();
244     }
245 
246     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
247         int start, int end)
248         throws com.liferay.portal.kernel.exception.SystemException {
249         return getPersistence().findAll(start, end);
250     }
251 
252     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
253         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
254         throws com.liferay.portal.kernel.exception.SystemException {
255         return getPersistence().findAll(start, end, obc);
256     }
257 
258     public static void removeByG_F_N(long groupId, long folderId,
259         java.lang.String name)
260         throws com.liferay.portal.kernel.exception.SystemException {
261         getPersistence().removeByG_F_N(groupId, folderId, name);
262     }
263 
264     public static void removeByG_F_N_V(long groupId, long folderId,
265         java.lang.String name, java.lang.String version)
266         throws com.liferay.portal.kernel.exception.SystemException,
267             com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
268         getPersistence().removeByG_F_N_V(groupId, folderId, name, version);
269     }
270 
271     public static void removeByG_F_N_S(long groupId, long folderId,
272         java.lang.String name, int status)
273         throws com.liferay.portal.kernel.exception.SystemException {
274         getPersistence().removeByG_F_N_S(groupId, folderId, name, status);
275     }
276 
277     public static void removeAll()
278         throws com.liferay.portal.kernel.exception.SystemException {
279         getPersistence().removeAll();
280     }
281 
282     public static int countByG_F_N(long groupId, long folderId,
283         java.lang.String name)
284         throws com.liferay.portal.kernel.exception.SystemException {
285         return getPersistence().countByG_F_N(groupId, folderId, name);
286     }
287 
288     public static int countByG_F_N_V(long groupId, long folderId,
289         java.lang.String name, java.lang.String version)
290         throws com.liferay.portal.kernel.exception.SystemException {
291         return getPersistence().countByG_F_N_V(groupId, folderId, name, version);
292     }
293 
294     public static int countByG_F_N_S(long groupId, long folderId,
295         java.lang.String name, int status)
296         throws com.liferay.portal.kernel.exception.SystemException {
297         return getPersistence().countByG_F_N_S(groupId, folderId, name, status);
298     }
299 
300     public static int countAll()
301         throws com.liferay.portal.kernel.exception.SystemException {
302         return getPersistence().countAll();
303     }
304 
305     public static DLFileVersionPersistence getPersistence() {
306         if (_persistence == null) {
307             _persistence = (DLFileVersionPersistence)PortalBeanLocatorUtil.locate(DLFileVersionPersistence.class.getName());
308         }
309 
310         return _persistence;
311     }
312 
313     public void setPersistence(DLFileVersionPersistence persistence) {
314         _persistence = persistence;
315     }
316 
317     private static DLFileVersionPersistence _persistence;
318 }