1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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.wiki.service.persistence;
24  
25  /**
26   * <a href="WikiPageUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class WikiPageUtil {
32      public static com.liferay.portlet.wiki.model.WikiPage create(long pageId) {
33          return getPersistence().create(pageId);
34      }
35  
36      public static com.liferay.portlet.wiki.model.WikiPage remove(long pageId)
37          throws com.liferay.portal.SystemException, 
38              com.liferay.portlet.wiki.NoSuchPageException {
39          return getPersistence().remove(pageId);
40      }
41  
42      public static com.liferay.portlet.wiki.model.WikiPage remove(
43          com.liferay.portlet.wiki.model.WikiPage wikiPage)
44          throws com.liferay.portal.SystemException {
45          return getPersistence().remove(wikiPage);
46      }
47  
48      public static com.liferay.portlet.wiki.model.WikiPage update(
49          com.liferay.portlet.wiki.model.WikiPage wikiPage)
50          throws com.liferay.portal.SystemException {
51          return getPersistence().update(wikiPage);
52      }
53  
54      public static com.liferay.portlet.wiki.model.WikiPage update(
55          com.liferay.portlet.wiki.model.WikiPage wikiPage, boolean merge)
56          throws com.liferay.portal.SystemException {
57          return getPersistence().update(wikiPage, merge);
58      }
59  
60      public static com.liferay.portlet.wiki.model.WikiPage updateImpl(
61          com.liferay.portlet.wiki.model.WikiPage wikiPage, boolean merge)
62          throws com.liferay.portal.SystemException {
63          return getPersistence().updateImpl(wikiPage, merge);
64      }
65  
66      public static com.liferay.portlet.wiki.model.WikiPage findByPrimaryKey(
67          long pageId)
68          throws com.liferay.portal.SystemException, 
69              com.liferay.portlet.wiki.NoSuchPageException {
70          return getPersistence().findByPrimaryKey(pageId);
71      }
72  
73      public static com.liferay.portlet.wiki.model.WikiPage fetchByPrimaryKey(
74          long pageId) throws com.liferay.portal.SystemException {
75          return getPersistence().fetchByPrimaryKey(pageId);
76      }
77  
78      public static java.util.List findByUuid(java.lang.String uuid)
79          throws com.liferay.portal.SystemException {
80          return getPersistence().findByUuid(uuid);
81      }
82  
83      public static java.util.List findByUuid(java.lang.String uuid, int begin,
84          int end) throws com.liferay.portal.SystemException {
85          return getPersistence().findByUuid(uuid, begin, end);
86      }
87  
88      public static java.util.List findByUuid(java.lang.String uuid, int begin,
89          int end, com.liferay.portal.kernel.util.OrderByComparator obc)
90          throws com.liferay.portal.SystemException {
91          return getPersistence().findByUuid(uuid, begin, end, obc);
92      }
93  
94      public static com.liferay.portlet.wiki.model.WikiPage findByUuid_First(
95          java.lang.String uuid,
96          com.liferay.portal.kernel.util.OrderByComparator obc)
97          throws com.liferay.portal.SystemException, 
98              com.liferay.portlet.wiki.NoSuchPageException {
99          return getPersistence().findByUuid_First(uuid, obc);
100     }
101 
102     public static com.liferay.portlet.wiki.model.WikiPage findByUuid_Last(
103         java.lang.String uuid,
104         com.liferay.portal.kernel.util.OrderByComparator obc)
105         throws com.liferay.portal.SystemException, 
106             com.liferay.portlet.wiki.NoSuchPageException {
107         return getPersistence().findByUuid_Last(uuid, obc);
108     }
109 
110     public static com.liferay.portlet.wiki.model.WikiPage[] findByUuid_PrevAndNext(
111         long pageId, java.lang.String uuid,
112         com.liferay.portal.kernel.util.OrderByComparator obc)
113         throws com.liferay.portal.SystemException, 
114             com.liferay.portlet.wiki.NoSuchPageException {
115         return getPersistence().findByUuid_PrevAndNext(pageId, uuid, obc);
116     }
117 
118     public static java.util.List findByNodeId(long nodeId)
119         throws com.liferay.portal.SystemException {
120         return getPersistence().findByNodeId(nodeId);
121     }
122 
123     public static java.util.List findByNodeId(long nodeId, int begin, int end)
124         throws com.liferay.portal.SystemException {
125         return getPersistence().findByNodeId(nodeId, begin, end);
126     }
127 
128     public static java.util.List findByNodeId(long nodeId, int begin, int end,
129         com.liferay.portal.kernel.util.OrderByComparator obc)
130         throws com.liferay.portal.SystemException {
131         return getPersistence().findByNodeId(nodeId, begin, end, obc);
132     }
133 
134     public static com.liferay.portlet.wiki.model.WikiPage findByNodeId_First(
135         long nodeId, com.liferay.portal.kernel.util.OrderByComparator obc)
136         throws com.liferay.portal.SystemException, 
137             com.liferay.portlet.wiki.NoSuchPageException {
138         return getPersistence().findByNodeId_First(nodeId, obc);
139     }
140 
141     public static com.liferay.portlet.wiki.model.WikiPage findByNodeId_Last(
142         long nodeId, com.liferay.portal.kernel.util.OrderByComparator obc)
143         throws com.liferay.portal.SystemException, 
144             com.liferay.portlet.wiki.NoSuchPageException {
145         return getPersistence().findByNodeId_Last(nodeId, obc);
146     }
147 
148     public static com.liferay.portlet.wiki.model.WikiPage[] findByNodeId_PrevAndNext(
149         long pageId, long nodeId,
150         com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.SystemException, 
152             com.liferay.portlet.wiki.NoSuchPageException {
153         return getPersistence().findByNodeId_PrevAndNext(pageId, nodeId, obc);
154     }
155 
156     public static java.util.List findByN_T(long nodeId, java.lang.String title)
157         throws com.liferay.portal.SystemException {
158         return getPersistence().findByN_T(nodeId, title);
159     }
160 
161     public static java.util.List findByN_T(long nodeId, java.lang.String title,
162         int begin, int end) throws com.liferay.portal.SystemException {
163         return getPersistence().findByN_T(nodeId, title, begin, end);
164     }
165 
166     public static java.util.List findByN_T(long nodeId, java.lang.String title,
167         int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
168         throws com.liferay.portal.SystemException {
169         return getPersistence().findByN_T(nodeId, title, begin, end, obc);
170     }
171 
172     public static com.liferay.portlet.wiki.model.WikiPage findByN_T_First(
173         long nodeId, java.lang.String title,
174         com.liferay.portal.kernel.util.OrderByComparator obc)
175         throws com.liferay.portal.SystemException, 
176             com.liferay.portlet.wiki.NoSuchPageException {
177         return getPersistence().findByN_T_First(nodeId, title, obc);
178     }
179 
180     public static com.liferay.portlet.wiki.model.WikiPage findByN_T_Last(
181         long nodeId, java.lang.String title,
182         com.liferay.portal.kernel.util.OrderByComparator obc)
183         throws com.liferay.portal.SystemException, 
184             com.liferay.portlet.wiki.NoSuchPageException {
185         return getPersistence().findByN_T_Last(nodeId, title, obc);
186     }
187 
188     public static com.liferay.portlet.wiki.model.WikiPage[] findByN_T_PrevAndNext(
189         long pageId, long nodeId, java.lang.String title,
190         com.liferay.portal.kernel.util.OrderByComparator obc)
191         throws com.liferay.portal.SystemException, 
192             com.liferay.portlet.wiki.NoSuchPageException {
193         return getPersistence().findByN_T_PrevAndNext(pageId, nodeId, title, obc);
194     }
195 
196     public static java.util.List findByN_H(long nodeId, boolean head)
197         throws com.liferay.portal.SystemException {
198         return getPersistence().findByN_H(nodeId, head);
199     }
200 
201     public static java.util.List findByN_H(long nodeId, boolean head,
202         int begin, int end) throws com.liferay.portal.SystemException {
203         return getPersistence().findByN_H(nodeId, head, begin, end);
204     }
205 
206     public static java.util.List findByN_H(long nodeId, boolean head,
207         int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
208         throws com.liferay.portal.SystemException {
209         return getPersistence().findByN_H(nodeId, head, begin, end, obc);
210     }
211 
212     public static com.liferay.portlet.wiki.model.WikiPage findByN_H_First(
213         long nodeId, boolean head,
214         com.liferay.portal.kernel.util.OrderByComparator obc)
215         throws com.liferay.portal.SystemException, 
216             com.liferay.portlet.wiki.NoSuchPageException {
217         return getPersistence().findByN_H_First(nodeId, head, obc);
218     }
219 
220     public static com.liferay.portlet.wiki.model.WikiPage findByN_H_Last(
221         long nodeId, boolean head,
222         com.liferay.portal.kernel.util.OrderByComparator obc)
223         throws com.liferay.portal.SystemException, 
224             com.liferay.portlet.wiki.NoSuchPageException {
225         return getPersistence().findByN_H_Last(nodeId, head, obc);
226     }
227 
228     public static com.liferay.portlet.wiki.model.WikiPage[] findByN_H_PrevAndNext(
229         long pageId, long nodeId, boolean head,
230         com.liferay.portal.kernel.util.OrderByComparator obc)
231         throws com.liferay.portal.SystemException, 
232             com.liferay.portlet.wiki.NoSuchPageException {
233         return getPersistence().findByN_H_PrevAndNext(pageId, nodeId, head, obc);
234     }
235 
236     public static com.liferay.portlet.wiki.model.WikiPage findByN_T_V(
237         long nodeId, java.lang.String title, double version)
238         throws com.liferay.portal.SystemException, 
239             com.liferay.portlet.wiki.NoSuchPageException {
240         return getPersistence().findByN_T_V(nodeId, title, version);
241     }
242 
243     public static com.liferay.portlet.wiki.model.WikiPage fetchByN_T_V(
244         long nodeId, java.lang.String title, double version)
245         throws com.liferay.portal.SystemException {
246         return getPersistence().fetchByN_T_V(nodeId, title, version);
247     }
248 
249     public static java.util.List findByN_T_H(long nodeId,
250         java.lang.String title, boolean head)
251         throws com.liferay.portal.SystemException {
252         return getPersistence().findByN_T_H(nodeId, title, head);
253     }
254 
255     public static java.util.List findByN_T_H(long nodeId,
256         java.lang.String title, boolean head, int begin, int end)
257         throws com.liferay.portal.SystemException {
258         return getPersistence().findByN_T_H(nodeId, title, head, begin, end);
259     }
260 
261     public static java.util.List findByN_T_H(long nodeId,
262         java.lang.String title, boolean head, int begin, int end,
263         com.liferay.portal.kernel.util.OrderByComparator obc)
264         throws com.liferay.portal.SystemException {
265         return getPersistence().findByN_T_H(nodeId, title, head, begin, end, obc);
266     }
267 
268     public static com.liferay.portlet.wiki.model.WikiPage findByN_T_H_First(
269         long nodeId, java.lang.String title, boolean head,
270         com.liferay.portal.kernel.util.OrderByComparator obc)
271         throws com.liferay.portal.SystemException, 
272             com.liferay.portlet.wiki.NoSuchPageException {
273         return getPersistence().findByN_T_H_First(nodeId, title, head, obc);
274     }
275 
276     public static com.liferay.portlet.wiki.model.WikiPage findByN_T_H_Last(
277         long nodeId, java.lang.String title, boolean head,
278         com.liferay.portal.kernel.util.OrderByComparator obc)
279         throws com.liferay.portal.SystemException, 
280             com.liferay.portlet.wiki.NoSuchPageException {
281         return getPersistence().findByN_T_H_Last(nodeId, title, head, obc);
282     }
283 
284     public static com.liferay.portlet.wiki.model.WikiPage[] findByN_T_H_PrevAndNext(
285         long pageId, long nodeId, java.lang.String title, boolean head,
286         com.liferay.portal.kernel.util.OrderByComparator obc)
287         throws com.liferay.portal.SystemException, 
288             com.liferay.portlet.wiki.NoSuchPageException {
289         return getPersistence().findByN_T_H_PrevAndNext(pageId, nodeId, title,
290             head, obc);
291     }
292 
293     public static java.util.List findWithDynamicQuery(
294         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
295         throws com.liferay.portal.SystemException {
296         return getPersistence().findWithDynamicQuery(queryInitializer);
297     }
298 
299     public static java.util.List findWithDynamicQuery(
300         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
301         int begin, int end) throws com.liferay.portal.SystemException {
302         return getPersistence().findWithDynamicQuery(queryInitializer, begin,
303             end);
304     }
305 
306     public static java.util.List findAll()
307         throws com.liferay.portal.SystemException {
308         return getPersistence().findAll();
309     }
310 
311     public static java.util.List findAll(int begin, int end)
312         throws com.liferay.portal.SystemException {
313         return getPersistence().findAll(begin, end);
314     }
315 
316     public static java.util.List findAll(int begin, int end,
317         com.liferay.portal.kernel.util.OrderByComparator obc)
318         throws com.liferay.portal.SystemException {
319         return getPersistence().findAll(begin, end, obc);
320     }
321 
322     public static void removeByUuid(java.lang.String uuid)
323         throws com.liferay.portal.SystemException {
324         getPersistence().removeByUuid(uuid);
325     }
326 
327     public static void removeByNodeId(long nodeId)
328         throws com.liferay.portal.SystemException {
329         getPersistence().removeByNodeId(nodeId);
330     }
331 
332     public static void removeByN_T(long nodeId, java.lang.String title)
333         throws com.liferay.portal.SystemException {
334         getPersistence().removeByN_T(nodeId, title);
335     }
336 
337     public static void removeByN_H(long nodeId, boolean head)
338         throws com.liferay.portal.SystemException {
339         getPersistence().removeByN_H(nodeId, head);
340     }
341 
342     public static void removeByN_T_V(long nodeId, java.lang.String title,
343         double version)
344         throws com.liferay.portal.SystemException, 
345             com.liferay.portlet.wiki.NoSuchPageException {
346         getPersistence().removeByN_T_V(nodeId, title, version);
347     }
348 
349     public static void removeByN_T_H(long nodeId, java.lang.String title,
350         boolean head) throws com.liferay.portal.SystemException {
351         getPersistence().removeByN_T_H(nodeId, title, head);
352     }
353 
354     public static void removeAll() throws com.liferay.portal.SystemException {
355         getPersistence().removeAll();
356     }
357 
358     public static int countByUuid(java.lang.String uuid)
359         throws com.liferay.portal.SystemException {
360         return getPersistence().countByUuid(uuid);
361     }
362 
363     public static int countByNodeId(long nodeId)
364         throws com.liferay.portal.SystemException {
365         return getPersistence().countByNodeId(nodeId);
366     }
367 
368     public static int countByN_T(long nodeId, java.lang.String title)
369         throws com.liferay.portal.SystemException {
370         return getPersistence().countByN_T(nodeId, title);
371     }
372 
373     public static int countByN_H(long nodeId, boolean head)
374         throws com.liferay.portal.SystemException {
375         return getPersistence().countByN_H(nodeId, head);
376     }
377 
378     public static int countByN_T_V(long nodeId, java.lang.String title,
379         double version) throws com.liferay.portal.SystemException {
380         return getPersistence().countByN_T_V(nodeId, title, version);
381     }
382 
383     public static int countByN_T_H(long nodeId, java.lang.String title,
384         boolean head) throws com.liferay.portal.SystemException {
385         return getPersistence().countByN_T_H(nodeId, title, head);
386     }
387 
388     public static int countAll() throws com.liferay.portal.SystemException {
389         return getPersistence().countAll();
390     }
391 
392     public static WikiPagePersistence getPersistence() {
393         return _getUtil()._persistence;
394     }
395 
396     public void setPersistence(WikiPagePersistence persistence) {
397         _persistence = persistence;
398     }
399 
400     private static WikiPageUtil _getUtil() {
401         if (_util == null) {
402             _util = (WikiPageUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
403         }
404 
405         return _util;
406     }
407 
408     private static final String _UTIL = WikiPageUtil.class.getName();
409     private static WikiPageUtil _util;
410     private WikiPagePersistence _persistence;
411 }