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.wiki.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.wiki.model.WikiNode;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="WikiNodeUtil.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       WikiNodePersistence
35   * @see       WikiNodePersistenceImpl
36   * @generated
37   */
38  public class WikiNodeUtil {
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 WikiNode remove(WikiNode wikiNode) throws SystemException {
66          return getPersistence().remove(wikiNode);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
71       */
72      public static WikiNode update(WikiNode wikiNode, boolean merge)
73          throws SystemException {
74          return getPersistence().update(wikiNode, merge);
75      }
76  
77      public static void cacheResult(
78          com.liferay.portlet.wiki.model.WikiNode wikiNode) {
79          getPersistence().cacheResult(wikiNode);
80      }
81  
82      public static void cacheResult(
83          java.util.List<com.liferay.portlet.wiki.model.WikiNode> wikiNodes) {
84          getPersistence().cacheResult(wikiNodes);
85      }
86  
87      public static com.liferay.portlet.wiki.model.WikiNode create(long nodeId) {
88          return getPersistence().create(nodeId);
89      }
90  
91      public static com.liferay.portlet.wiki.model.WikiNode remove(long nodeId)
92          throws com.liferay.portal.kernel.exception.SystemException,
93              com.liferay.portlet.wiki.NoSuchNodeException {
94          return getPersistence().remove(nodeId);
95      }
96  
97      public static com.liferay.portlet.wiki.model.WikiNode updateImpl(
98          com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge)
99          throws com.liferay.portal.kernel.exception.SystemException {
100         return getPersistence().updateImpl(wikiNode, merge);
101     }
102 
103     public static com.liferay.portlet.wiki.model.WikiNode findByPrimaryKey(
104         long nodeId)
105         throws com.liferay.portal.kernel.exception.SystemException,
106             com.liferay.portlet.wiki.NoSuchNodeException {
107         return getPersistence().findByPrimaryKey(nodeId);
108     }
109 
110     public static com.liferay.portlet.wiki.model.WikiNode fetchByPrimaryKey(
111         long nodeId) throws com.liferay.portal.kernel.exception.SystemException {
112         return getPersistence().fetchByPrimaryKey(nodeId);
113     }
114 
115     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid(
116         java.lang.String uuid)
117         throws com.liferay.portal.kernel.exception.SystemException {
118         return getPersistence().findByUuid(uuid);
119     }
120 
121     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid(
122         java.lang.String uuid, int start, int end)
123         throws com.liferay.portal.kernel.exception.SystemException {
124         return getPersistence().findByUuid(uuid, start, end);
125     }
126 
127     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid(
128         java.lang.String uuid, int start, int end,
129         com.liferay.portal.kernel.util.OrderByComparator obc)
130         throws com.liferay.portal.kernel.exception.SystemException {
131         return getPersistence().findByUuid(uuid, start, end, obc);
132     }
133 
134     public static com.liferay.portlet.wiki.model.WikiNode findByUuid_First(
135         java.lang.String uuid,
136         com.liferay.portal.kernel.util.OrderByComparator obc)
137         throws com.liferay.portal.kernel.exception.SystemException,
138             com.liferay.portlet.wiki.NoSuchNodeException {
139         return getPersistence().findByUuid_First(uuid, obc);
140     }
141 
142     public static com.liferay.portlet.wiki.model.WikiNode findByUuid_Last(
143         java.lang.String uuid,
144         com.liferay.portal.kernel.util.OrderByComparator obc)
145         throws com.liferay.portal.kernel.exception.SystemException,
146             com.liferay.portlet.wiki.NoSuchNodeException {
147         return getPersistence().findByUuid_Last(uuid, obc);
148     }
149 
150     public static com.liferay.portlet.wiki.model.WikiNode[] findByUuid_PrevAndNext(
151         long nodeId, java.lang.String uuid,
152         com.liferay.portal.kernel.util.OrderByComparator obc)
153         throws com.liferay.portal.kernel.exception.SystemException,
154             com.liferay.portlet.wiki.NoSuchNodeException {
155         return getPersistence().findByUuid_PrevAndNext(nodeId, uuid, obc);
156     }
157 
158     public static com.liferay.portlet.wiki.model.WikiNode findByUUID_G(
159         java.lang.String uuid, long groupId)
160         throws com.liferay.portal.kernel.exception.SystemException,
161             com.liferay.portlet.wiki.NoSuchNodeException {
162         return getPersistence().findByUUID_G(uuid, groupId);
163     }
164 
165     public static com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G(
166         java.lang.String uuid, long groupId)
167         throws com.liferay.portal.kernel.exception.SystemException {
168         return getPersistence().fetchByUUID_G(uuid, groupId);
169     }
170 
171     public static com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G(
172         java.lang.String uuid, long groupId, boolean retrieveFromCache)
173         throws com.liferay.portal.kernel.exception.SystemException {
174         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
175     }
176 
177     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
178         long groupId)
179         throws com.liferay.portal.kernel.exception.SystemException {
180         return getPersistence().findByGroupId(groupId);
181     }
182 
183     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
184         long groupId, int start, int end)
185         throws com.liferay.portal.kernel.exception.SystemException {
186         return getPersistence().findByGroupId(groupId, start, end);
187     }
188 
189     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
190         long groupId, int start, int end,
191         com.liferay.portal.kernel.util.OrderByComparator obc)
192         throws com.liferay.portal.kernel.exception.SystemException {
193         return getPersistence().findByGroupId(groupId, start, end, obc);
194     }
195 
196     public static com.liferay.portlet.wiki.model.WikiNode findByGroupId_First(
197         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
198         throws com.liferay.portal.kernel.exception.SystemException,
199             com.liferay.portlet.wiki.NoSuchNodeException {
200         return getPersistence().findByGroupId_First(groupId, obc);
201     }
202 
203     public static com.liferay.portlet.wiki.model.WikiNode findByGroupId_Last(
204         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
205         throws com.liferay.portal.kernel.exception.SystemException,
206             com.liferay.portlet.wiki.NoSuchNodeException {
207         return getPersistence().findByGroupId_Last(groupId, obc);
208     }
209 
210     public static com.liferay.portlet.wiki.model.WikiNode[] findByGroupId_PrevAndNext(
211         long nodeId, long groupId,
212         com.liferay.portal.kernel.util.OrderByComparator obc)
213         throws com.liferay.portal.kernel.exception.SystemException,
214             com.liferay.portlet.wiki.NoSuchNodeException {
215         return getPersistence().findByGroupId_PrevAndNext(nodeId, groupId, obc);
216     }
217 
218     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
219         long companyId)
220         throws com.liferay.portal.kernel.exception.SystemException {
221         return getPersistence().findByCompanyId(companyId);
222     }
223 
224     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
225         long companyId, int start, int end)
226         throws com.liferay.portal.kernel.exception.SystemException {
227         return getPersistence().findByCompanyId(companyId, start, end);
228     }
229 
230     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
231         long companyId, int start, int end,
232         com.liferay.portal.kernel.util.OrderByComparator obc)
233         throws com.liferay.portal.kernel.exception.SystemException {
234         return getPersistence().findByCompanyId(companyId, start, end, obc);
235     }
236 
237     public static com.liferay.portlet.wiki.model.WikiNode findByCompanyId_First(
238         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
239         throws com.liferay.portal.kernel.exception.SystemException,
240             com.liferay.portlet.wiki.NoSuchNodeException {
241         return getPersistence().findByCompanyId_First(companyId, obc);
242     }
243 
244     public static com.liferay.portlet.wiki.model.WikiNode findByCompanyId_Last(
245         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
246         throws com.liferay.portal.kernel.exception.SystemException,
247             com.liferay.portlet.wiki.NoSuchNodeException {
248         return getPersistence().findByCompanyId_Last(companyId, obc);
249     }
250 
251     public static com.liferay.portlet.wiki.model.WikiNode[] findByCompanyId_PrevAndNext(
252         long nodeId, long companyId,
253         com.liferay.portal.kernel.util.OrderByComparator obc)
254         throws com.liferay.portal.kernel.exception.SystemException,
255             com.liferay.portlet.wiki.NoSuchNodeException {
256         return getPersistence()
257                    .findByCompanyId_PrevAndNext(nodeId, companyId, obc);
258     }
259 
260     public static com.liferay.portlet.wiki.model.WikiNode findByG_N(
261         long groupId, java.lang.String name)
262         throws com.liferay.portal.kernel.exception.SystemException,
263             com.liferay.portlet.wiki.NoSuchNodeException {
264         return getPersistence().findByG_N(groupId, name);
265     }
266 
267     public static com.liferay.portlet.wiki.model.WikiNode fetchByG_N(
268         long groupId, java.lang.String name)
269         throws com.liferay.portal.kernel.exception.SystemException {
270         return getPersistence().fetchByG_N(groupId, name);
271     }
272 
273     public static com.liferay.portlet.wiki.model.WikiNode fetchByG_N(
274         long groupId, java.lang.String name, boolean retrieveFromCache)
275         throws com.liferay.portal.kernel.exception.SystemException {
276         return getPersistence().fetchByG_N(groupId, name, retrieveFromCache);
277     }
278 
279     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll()
280         throws com.liferay.portal.kernel.exception.SystemException {
281         return getPersistence().findAll();
282     }
283 
284     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll(
285         int start, int end)
286         throws com.liferay.portal.kernel.exception.SystemException {
287         return getPersistence().findAll(start, end);
288     }
289 
290     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll(
291         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
292         throws com.liferay.portal.kernel.exception.SystemException {
293         return getPersistence().findAll(start, end, obc);
294     }
295 
296     public static void removeByUuid(java.lang.String uuid)
297         throws com.liferay.portal.kernel.exception.SystemException {
298         getPersistence().removeByUuid(uuid);
299     }
300 
301     public static void removeByUUID_G(java.lang.String uuid, long groupId)
302         throws com.liferay.portal.kernel.exception.SystemException,
303             com.liferay.portlet.wiki.NoSuchNodeException {
304         getPersistence().removeByUUID_G(uuid, groupId);
305     }
306 
307     public static void removeByGroupId(long groupId)
308         throws com.liferay.portal.kernel.exception.SystemException {
309         getPersistence().removeByGroupId(groupId);
310     }
311 
312     public static void removeByCompanyId(long companyId)
313         throws com.liferay.portal.kernel.exception.SystemException {
314         getPersistence().removeByCompanyId(companyId);
315     }
316 
317     public static void removeByG_N(long groupId, java.lang.String name)
318         throws com.liferay.portal.kernel.exception.SystemException,
319             com.liferay.portlet.wiki.NoSuchNodeException {
320         getPersistence().removeByG_N(groupId, name);
321     }
322 
323     public static void removeAll()
324         throws com.liferay.portal.kernel.exception.SystemException {
325         getPersistence().removeAll();
326     }
327 
328     public static int countByUuid(java.lang.String uuid)
329         throws com.liferay.portal.kernel.exception.SystemException {
330         return getPersistence().countByUuid(uuid);
331     }
332 
333     public static int countByUUID_G(java.lang.String uuid, long groupId)
334         throws com.liferay.portal.kernel.exception.SystemException {
335         return getPersistence().countByUUID_G(uuid, groupId);
336     }
337 
338     public static int countByGroupId(long groupId)
339         throws com.liferay.portal.kernel.exception.SystemException {
340         return getPersistence().countByGroupId(groupId);
341     }
342 
343     public static int countByCompanyId(long companyId)
344         throws com.liferay.portal.kernel.exception.SystemException {
345         return getPersistence().countByCompanyId(companyId);
346     }
347 
348     public static int countByG_N(long groupId, java.lang.String name)
349         throws com.liferay.portal.kernel.exception.SystemException {
350         return getPersistence().countByG_N(groupId, name);
351     }
352 
353     public static int countAll()
354         throws com.liferay.portal.kernel.exception.SystemException {
355         return getPersistence().countAll();
356     }
357 
358     public static WikiNodePersistence getPersistence() {
359         if (_persistence == null) {
360             _persistence = (WikiNodePersistence)PortalBeanLocatorUtil.locate(WikiNodePersistence.class.getName());
361         }
362 
363         return _persistence;
364     }
365 
366     public void setPersistence(WikiNodePersistence persistence) {
367         _persistence = persistence;
368     }
369 
370     private static WikiNodePersistence _persistence;
371 }