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      /**
49       * @deprecated Use <code>update(WikiPage wikiPage, boolean merge)</code>.
50       */
51      public static com.liferay.portlet.wiki.model.WikiPage update(
52          com.liferay.portlet.wiki.model.WikiPage wikiPage)
53          throws com.liferay.portal.SystemException {
54          return getPersistence().update(wikiPage);
55      }
56  
57      /**
58       * Add, update, or merge, the entity. This method also calls the model
59       * listeners to trigger the proper events associated with adding, deleting,
60       * or updating an entity.
61       *
62       * @param        wikiPage the entity to add, update, or merge
63       * @param        merge boolean value for whether to merge the entity. The
64       *                default value is false. Setting merge to true is more
65       *                expensive and should only be true when wikiPage is
66       *                transient. See LEP-5473 for a detailed discussion of this
67       *                method.
68       * @return        true if the portlet can be displayed via Ajax
69       */
70      public static com.liferay.portlet.wiki.model.WikiPage update(
71          com.liferay.portlet.wiki.model.WikiPage wikiPage, boolean merge)
72          throws com.liferay.portal.SystemException {
73          return getPersistence().update(wikiPage, merge);
74      }
75  
76      public static com.liferay.portlet.wiki.model.WikiPage updateImpl(
77          com.liferay.portlet.wiki.model.WikiPage wikiPage, boolean merge)
78          throws com.liferay.portal.SystemException {
79          return getPersistence().updateImpl(wikiPage, merge);
80      }
81  
82      public static com.liferay.portlet.wiki.model.WikiPage findByPrimaryKey(
83          long pageId)
84          throws com.liferay.portal.SystemException,
85              com.liferay.portlet.wiki.NoSuchPageException {
86          return getPersistence().findByPrimaryKey(pageId);
87      }
88  
89      public static com.liferay.portlet.wiki.model.WikiPage fetchByPrimaryKey(
90          long pageId) throws com.liferay.portal.SystemException {
91          return getPersistence().fetchByPrimaryKey(pageId);
92      }
93  
94      public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByUuid(
95          java.lang.String uuid) throws com.liferay.portal.SystemException {
96          return getPersistence().findByUuid(uuid);
97      }
98  
99      public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByUuid(
100         java.lang.String uuid, int begin, int end)
101         throws com.liferay.portal.SystemException {
102         return getPersistence().findByUuid(uuid, begin, end);
103     }
104 
105     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByUuid(
106         java.lang.String uuid, int begin, int end,
107         com.liferay.portal.kernel.util.OrderByComparator obc)
108         throws com.liferay.portal.SystemException {
109         return getPersistence().findByUuid(uuid, begin, end, obc);
110     }
111 
112     public static com.liferay.portlet.wiki.model.WikiPage findByUuid_First(
113         java.lang.String uuid,
114         com.liferay.portal.kernel.util.OrderByComparator obc)
115         throws com.liferay.portal.SystemException,
116             com.liferay.portlet.wiki.NoSuchPageException {
117         return getPersistence().findByUuid_First(uuid, obc);
118     }
119 
120     public static com.liferay.portlet.wiki.model.WikiPage findByUuid_Last(
121         java.lang.String uuid,
122         com.liferay.portal.kernel.util.OrderByComparator obc)
123         throws com.liferay.portal.SystemException,
124             com.liferay.portlet.wiki.NoSuchPageException {
125         return getPersistence().findByUuid_Last(uuid, obc);
126     }
127 
128     public static com.liferay.portlet.wiki.model.WikiPage[] findByUuid_PrevAndNext(
129         long pageId, java.lang.String uuid,
130         com.liferay.portal.kernel.util.OrderByComparator obc)
131         throws com.liferay.portal.SystemException,
132             com.liferay.portlet.wiki.NoSuchPageException {
133         return getPersistence().findByUuid_PrevAndNext(pageId, uuid, obc);
134     }
135 
136     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByNodeId(
137         long nodeId) throws com.liferay.portal.SystemException {
138         return getPersistence().findByNodeId(nodeId);
139     }
140 
141     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByNodeId(
142         long nodeId, int begin, int end)
143         throws com.liferay.portal.SystemException {
144         return getPersistence().findByNodeId(nodeId, begin, end);
145     }
146 
147     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByNodeId(
148         long nodeId, int begin, int end,
149         com.liferay.portal.kernel.util.OrderByComparator obc)
150         throws com.liferay.portal.SystemException {
151         return getPersistence().findByNodeId(nodeId, begin, end, obc);
152     }
153 
154     public static com.liferay.portlet.wiki.model.WikiPage findByNodeId_First(
155         long nodeId, com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.SystemException,
157             com.liferay.portlet.wiki.NoSuchPageException {
158         return getPersistence().findByNodeId_First(nodeId, obc);
159     }
160 
161     public static com.liferay.portlet.wiki.model.WikiPage findByNodeId_Last(
162         long nodeId, com.liferay.portal.kernel.util.OrderByComparator obc)
163         throws com.liferay.portal.SystemException,
164             com.liferay.portlet.wiki.NoSuchPageException {
165         return getPersistence().findByNodeId_Last(nodeId, obc);
166     }
167 
168     public static com.liferay.portlet.wiki.model.WikiPage[] findByNodeId_PrevAndNext(
169         long pageId, long nodeId,
170         com.liferay.portal.kernel.util.OrderByComparator obc)
171         throws com.liferay.portal.SystemException,
172             com.liferay.portlet.wiki.NoSuchPageException {
173         return getPersistence().findByNodeId_PrevAndNext(pageId, nodeId, obc);
174     }
175 
176     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByFormat(
177         java.lang.String format) throws com.liferay.portal.SystemException {
178         return getPersistence().findByFormat(format);
179     }
180 
181     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByFormat(
182         java.lang.String format, int begin, int end)
183         throws com.liferay.portal.SystemException {
184         return getPersistence().findByFormat(format, begin, end);
185     }
186 
187     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByFormat(
188         java.lang.String format, int begin, int end,
189         com.liferay.portal.kernel.util.OrderByComparator obc)
190         throws com.liferay.portal.SystemException {
191         return getPersistence().findByFormat(format, begin, end, obc);
192     }
193 
194     public static com.liferay.portlet.wiki.model.WikiPage findByFormat_First(
195         java.lang.String format,
196         com.liferay.portal.kernel.util.OrderByComparator obc)
197         throws com.liferay.portal.SystemException,
198             com.liferay.portlet.wiki.NoSuchPageException {
199         return getPersistence().findByFormat_First(format, obc);
200     }
201 
202     public static com.liferay.portlet.wiki.model.WikiPage findByFormat_Last(
203         java.lang.String format,
204         com.liferay.portal.kernel.util.OrderByComparator obc)
205         throws com.liferay.portal.SystemException,
206             com.liferay.portlet.wiki.NoSuchPageException {
207         return getPersistence().findByFormat_Last(format, obc);
208     }
209 
210     public static com.liferay.portlet.wiki.model.WikiPage[] findByFormat_PrevAndNext(
211         long pageId, java.lang.String format,
212         com.liferay.portal.kernel.util.OrderByComparator obc)
213         throws com.liferay.portal.SystemException,
214             com.liferay.portlet.wiki.NoSuchPageException {
215         return getPersistence().findByFormat_PrevAndNext(pageId, format, obc);
216     }
217 
218     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_T(
219         long nodeId, java.lang.String title)
220         throws com.liferay.portal.SystemException {
221         return getPersistence().findByN_T(nodeId, title);
222     }
223 
224     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_T(
225         long nodeId, java.lang.String title, int begin, int end)
226         throws com.liferay.portal.SystemException {
227         return getPersistence().findByN_T(nodeId, title, begin, end);
228     }
229 
230     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_T(
231         long nodeId, java.lang.String title, int begin, int end,
232         com.liferay.portal.kernel.util.OrderByComparator obc)
233         throws com.liferay.portal.SystemException {
234         return getPersistence().findByN_T(nodeId, title, begin, end, obc);
235     }
236 
237     public static com.liferay.portlet.wiki.model.WikiPage findByN_T_First(
238         long nodeId, java.lang.String title,
239         com.liferay.portal.kernel.util.OrderByComparator obc)
240         throws com.liferay.portal.SystemException,
241             com.liferay.portlet.wiki.NoSuchPageException {
242         return getPersistence().findByN_T_First(nodeId, title, obc);
243     }
244 
245     public static com.liferay.portlet.wiki.model.WikiPage findByN_T_Last(
246         long nodeId, java.lang.String title,
247         com.liferay.portal.kernel.util.OrderByComparator obc)
248         throws com.liferay.portal.SystemException,
249             com.liferay.portlet.wiki.NoSuchPageException {
250         return getPersistence().findByN_T_Last(nodeId, title, obc);
251     }
252 
253     public static com.liferay.portlet.wiki.model.WikiPage[] findByN_T_PrevAndNext(
254         long pageId, long nodeId, java.lang.String title,
255         com.liferay.portal.kernel.util.OrderByComparator obc)
256         throws com.liferay.portal.SystemException,
257             com.liferay.portlet.wiki.NoSuchPageException {
258         return getPersistence().findByN_T_PrevAndNext(pageId, nodeId, title, obc);
259     }
260 
261     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_H(
262         long nodeId, boolean head) throws com.liferay.portal.SystemException {
263         return getPersistence().findByN_H(nodeId, head);
264     }
265 
266     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_H(
267         long nodeId, boolean head, int begin, int end)
268         throws com.liferay.portal.SystemException {
269         return getPersistence().findByN_H(nodeId, head, begin, end);
270     }
271 
272     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_H(
273         long nodeId, boolean head, int begin, int end,
274         com.liferay.portal.kernel.util.OrderByComparator obc)
275         throws com.liferay.portal.SystemException {
276         return getPersistence().findByN_H(nodeId, head, begin, end, obc);
277     }
278 
279     public static com.liferay.portlet.wiki.model.WikiPage findByN_H_First(
280         long nodeId, boolean head,
281         com.liferay.portal.kernel.util.OrderByComparator obc)
282         throws com.liferay.portal.SystemException,
283             com.liferay.portlet.wiki.NoSuchPageException {
284         return getPersistence().findByN_H_First(nodeId, head, obc);
285     }
286 
287     public static com.liferay.portlet.wiki.model.WikiPage findByN_H_Last(
288         long nodeId, boolean head,
289         com.liferay.portal.kernel.util.OrderByComparator obc)
290         throws com.liferay.portal.SystemException,
291             com.liferay.portlet.wiki.NoSuchPageException {
292         return getPersistence().findByN_H_Last(nodeId, head, obc);
293     }
294 
295     public static com.liferay.portlet.wiki.model.WikiPage[] findByN_H_PrevAndNext(
296         long pageId, long nodeId, boolean head,
297         com.liferay.portal.kernel.util.OrderByComparator obc)
298         throws com.liferay.portal.SystemException,
299             com.liferay.portlet.wiki.NoSuchPageException {
300         return getPersistence().findByN_H_PrevAndNext(pageId, nodeId, head, obc);
301     }
302 
303     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_P(
304         long nodeId, java.lang.String parentTitle)
305         throws com.liferay.portal.SystemException {
306         return getPersistence().findByN_P(nodeId, parentTitle);
307     }
308 
309     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_P(
310         long nodeId, java.lang.String parentTitle, int begin, int end)
311         throws com.liferay.portal.SystemException {
312         return getPersistence().findByN_P(nodeId, parentTitle, begin, end);
313     }
314 
315     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_P(
316         long nodeId, java.lang.String parentTitle, int begin, int end,
317         com.liferay.portal.kernel.util.OrderByComparator obc)
318         throws com.liferay.portal.SystemException {
319         return getPersistence().findByN_P(nodeId, parentTitle, begin, end, obc);
320     }
321 
322     public static com.liferay.portlet.wiki.model.WikiPage findByN_P_First(
323         long nodeId, java.lang.String parentTitle,
324         com.liferay.portal.kernel.util.OrderByComparator obc)
325         throws com.liferay.portal.SystemException,
326             com.liferay.portlet.wiki.NoSuchPageException {
327         return getPersistence().findByN_P_First(nodeId, parentTitle, obc);
328     }
329 
330     public static com.liferay.portlet.wiki.model.WikiPage findByN_P_Last(
331         long nodeId, java.lang.String parentTitle,
332         com.liferay.portal.kernel.util.OrderByComparator obc)
333         throws com.liferay.portal.SystemException,
334             com.liferay.portlet.wiki.NoSuchPageException {
335         return getPersistence().findByN_P_Last(nodeId, parentTitle, obc);
336     }
337 
338     public static com.liferay.portlet.wiki.model.WikiPage[] findByN_P_PrevAndNext(
339         long pageId, long nodeId, java.lang.String parentTitle,
340         com.liferay.portal.kernel.util.OrderByComparator obc)
341         throws com.liferay.portal.SystemException,
342             com.liferay.portlet.wiki.NoSuchPageException {
343         return getPersistence()
344                    .findByN_P_PrevAndNext(pageId, nodeId, parentTitle, obc);
345     }
346 
347     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_R(
348         long nodeId, java.lang.String redirectTitle)
349         throws com.liferay.portal.SystemException {
350         return getPersistence().findByN_R(nodeId, redirectTitle);
351     }
352 
353     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_R(
354         long nodeId, java.lang.String redirectTitle, int begin, int end)
355         throws com.liferay.portal.SystemException {
356         return getPersistence().findByN_R(nodeId, redirectTitle, begin, end);
357     }
358 
359     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_R(
360         long nodeId, java.lang.String redirectTitle, int begin, int end,
361         com.liferay.portal.kernel.util.OrderByComparator obc)
362         throws com.liferay.portal.SystemException {
363         return getPersistence().findByN_R(nodeId, redirectTitle, begin, end, obc);
364     }
365 
366     public static com.liferay.portlet.wiki.model.WikiPage findByN_R_First(
367         long nodeId, java.lang.String redirectTitle,
368         com.liferay.portal.kernel.util.OrderByComparator obc)
369         throws com.liferay.portal.SystemException,
370             com.liferay.portlet.wiki.NoSuchPageException {
371         return getPersistence().findByN_R_First(nodeId, redirectTitle, obc);
372     }
373 
374     public static com.liferay.portlet.wiki.model.WikiPage findByN_R_Last(
375         long nodeId, java.lang.String redirectTitle,
376         com.liferay.portal.kernel.util.OrderByComparator obc)
377         throws com.liferay.portal.SystemException,
378             com.liferay.portlet.wiki.NoSuchPageException {
379         return getPersistence().findByN_R_Last(nodeId, redirectTitle, obc);
380     }
381 
382     public static com.liferay.portlet.wiki.model.WikiPage[] findByN_R_PrevAndNext(
383         long pageId, long nodeId, java.lang.String redirectTitle,
384         com.liferay.portal.kernel.util.OrderByComparator obc)
385         throws com.liferay.portal.SystemException,
386             com.liferay.portlet.wiki.NoSuchPageException {
387         return getPersistence()
388                    .findByN_R_PrevAndNext(pageId, nodeId, redirectTitle, obc);
389     }
390 
391     public static com.liferay.portlet.wiki.model.WikiPage findByN_T_V(
392         long nodeId, java.lang.String title, double version)
393         throws com.liferay.portal.SystemException,
394             com.liferay.portlet.wiki.NoSuchPageException {
395         return getPersistence().findByN_T_V(nodeId, title, version);
396     }
397 
398     public static com.liferay.portlet.wiki.model.WikiPage fetchByN_T_V(
399         long nodeId, java.lang.String title, double version)
400         throws com.liferay.portal.SystemException {
401         return getPersistence().fetchByN_T_V(nodeId, title, version);
402     }
403 
404     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_T_H(
405         long nodeId, java.lang.String title, boolean head)
406         throws com.liferay.portal.SystemException {
407         return getPersistence().findByN_T_H(nodeId, title, head);
408     }
409 
410     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_T_H(
411         long nodeId, java.lang.String title, boolean head, int begin, int end)
412         throws com.liferay.portal.SystemException {
413         return getPersistence().findByN_T_H(nodeId, title, head, begin, end);
414     }
415 
416     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_T_H(
417         long nodeId, java.lang.String title, boolean head, int begin, int end,
418         com.liferay.portal.kernel.util.OrderByComparator obc)
419         throws com.liferay.portal.SystemException {
420         return getPersistence().findByN_T_H(nodeId, title, head, begin, end, obc);
421     }
422 
423     public static com.liferay.portlet.wiki.model.WikiPage findByN_T_H_First(
424         long nodeId, java.lang.String title, boolean head,
425         com.liferay.portal.kernel.util.OrderByComparator obc)
426         throws com.liferay.portal.SystemException,
427             com.liferay.portlet.wiki.NoSuchPageException {
428         return getPersistence().findByN_T_H_First(nodeId, title, head, obc);
429     }
430 
431     public static com.liferay.portlet.wiki.model.WikiPage findByN_T_H_Last(
432         long nodeId, java.lang.String title, boolean head,
433         com.liferay.portal.kernel.util.OrderByComparator obc)
434         throws com.liferay.portal.SystemException,
435             com.liferay.portlet.wiki.NoSuchPageException {
436         return getPersistence().findByN_T_H_Last(nodeId, title, head, obc);
437     }
438 
439     public static com.liferay.portlet.wiki.model.WikiPage[] findByN_T_H_PrevAndNext(
440         long pageId, long nodeId, java.lang.String title, boolean head,
441         com.liferay.portal.kernel.util.OrderByComparator obc)
442         throws com.liferay.portal.SystemException,
443             com.liferay.portlet.wiki.NoSuchPageException {
444         return getPersistence()
445                    .findByN_T_H_PrevAndNext(pageId, nodeId, title, head, obc);
446     }
447 
448     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_H_P(
449         long nodeId, boolean head, java.lang.String parentTitle)
450         throws com.liferay.portal.SystemException {
451         return getPersistence().findByN_H_P(nodeId, head, parentTitle);
452     }
453 
454     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_H_P(
455         long nodeId, boolean head, java.lang.String parentTitle, int begin,
456         int end) throws com.liferay.portal.SystemException {
457         return getPersistence()
458                    .findByN_H_P(nodeId, head, parentTitle, begin, end);
459     }
460 
461     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_H_P(
462         long nodeId, boolean head, java.lang.String parentTitle, int begin,
463         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
464         throws com.liferay.portal.SystemException {
465         return getPersistence()
466                    .findByN_H_P(nodeId, head, parentTitle, begin, end, obc);
467     }
468 
469     public static com.liferay.portlet.wiki.model.WikiPage findByN_H_P_First(
470         long nodeId, boolean head, java.lang.String parentTitle,
471         com.liferay.portal.kernel.util.OrderByComparator obc)
472         throws com.liferay.portal.SystemException,
473             com.liferay.portlet.wiki.NoSuchPageException {
474         return getPersistence().findByN_H_P_First(nodeId, head, parentTitle, obc);
475     }
476 
477     public static com.liferay.portlet.wiki.model.WikiPage findByN_H_P_Last(
478         long nodeId, boolean head, java.lang.String parentTitle,
479         com.liferay.portal.kernel.util.OrderByComparator obc)
480         throws com.liferay.portal.SystemException,
481             com.liferay.portlet.wiki.NoSuchPageException {
482         return getPersistence().findByN_H_P_Last(nodeId, head, parentTitle, obc);
483     }
484 
485     public static com.liferay.portlet.wiki.model.WikiPage[] findByN_H_P_PrevAndNext(
486         long pageId, long nodeId, boolean head, java.lang.String parentTitle,
487         com.liferay.portal.kernel.util.OrderByComparator obc)
488         throws com.liferay.portal.SystemException,
489             com.liferay.portlet.wiki.NoSuchPageException {
490         return getPersistence()
491                    .findByN_H_P_PrevAndNext(pageId, nodeId, head, parentTitle,
492             obc);
493     }
494 
495     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findWithDynamicQuery(
496         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
497         throws com.liferay.portal.SystemException {
498         return getPersistence().findWithDynamicQuery(queryInitializer);
499     }
500 
501     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findWithDynamicQuery(
502         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
503         int begin, int end) throws com.liferay.portal.SystemException {
504         return getPersistence()
505                    .findWithDynamicQuery(queryInitializer, begin, end);
506     }
507 
508     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findAll()
509         throws com.liferay.portal.SystemException {
510         return getPersistence().findAll();
511     }
512 
513     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findAll(
514         int begin, int end) throws com.liferay.portal.SystemException {
515         return getPersistence().findAll(begin, end);
516     }
517 
518     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findAll(
519         int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
520         throws com.liferay.portal.SystemException {
521         return getPersistence().findAll(begin, end, obc);
522     }
523 
524     public static void removeByUuid(java.lang.String uuid)
525         throws com.liferay.portal.SystemException {
526         getPersistence().removeByUuid(uuid);
527     }
528 
529     public static void removeByNodeId(long nodeId)
530         throws com.liferay.portal.SystemException {
531         getPersistence().removeByNodeId(nodeId);
532     }
533 
534     public static void removeByFormat(java.lang.String format)
535         throws com.liferay.portal.SystemException {
536         getPersistence().removeByFormat(format);
537     }
538 
539     public static void removeByN_T(long nodeId, java.lang.String title)
540         throws com.liferay.portal.SystemException {
541         getPersistence().removeByN_T(nodeId, title);
542     }
543 
544     public static void removeByN_H(long nodeId, boolean head)
545         throws com.liferay.portal.SystemException {
546         getPersistence().removeByN_H(nodeId, head);
547     }
548 
549     public static void removeByN_P(long nodeId, java.lang.String parentTitle)
550         throws com.liferay.portal.SystemException {
551         getPersistence().removeByN_P(nodeId, parentTitle);
552     }
553 
554     public static void removeByN_R(long nodeId, java.lang.String redirectTitle)
555         throws com.liferay.portal.SystemException {
556         getPersistence().removeByN_R(nodeId, redirectTitle);
557     }
558 
559     public static void removeByN_T_V(long nodeId, java.lang.String title,
560         double version)
561         throws com.liferay.portal.SystemException,
562             com.liferay.portlet.wiki.NoSuchPageException {
563         getPersistence().removeByN_T_V(nodeId, title, version);
564     }
565 
566     public static void removeByN_T_H(long nodeId, java.lang.String title,
567         boolean head) throws com.liferay.portal.SystemException {
568         getPersistence().removeByN_T_H(nodeId, title, head);
569     }
570 
571     public static void removeByN_H_P(long nodeId, boolean head,
572         java.lang.String parentTitle) throws com.liferay.portal.SystemException {
573         getPersistence().removeByN_H_P(nodeId, head, parentTitle);
574     }
575 
576     public static void removeAll() throws com.liferay.portal.SystemException {
577         getPersistence().removeAll();
578     }
579 
580     public static int countByUuid(java.lang.String uuid)
581         throws com.liferay.portal.SystemException {
582         return getPersistence().countByUuid(uuid);
583     }
584 
585     public static int countByNodeId(long nodeId)
586         throws com.liferay.portal.SystemException {
587         return getPersistence().countByNodeId(nodeId);
588     }
589 
590     public static int countByFormat(java.lang.String format)
591         throws com.liferay.portal.SystemException {
592         return getPersistence().countByFormat(format);
593     }
594 
595     public static int countByN_T(long nodeId, java.lang.String title)
596         throws com.liferay.portal.SystemException {
597         return getPersistence().countByN_T(nodeId, title);
598     }
599 
600     public static int countByN_H(long nodeId, boolean head)
601         throws com.liferay.portal.SystemException {
602         return getPersistence().countByN_H(nodeId, head);
603     }
604 
605     public static int countByN_P(long nodeId, java.lang.String parentTitle)
606         throws com.liferay.portal.SystemException {
607         return getPersistence().countByN_P(nodeId, parentTitle);
608     }
609 
610     public static int countByN_R(long nodeId, java.lang.String redirectTitle)
611         throws com.liferay.portal.SystemException {
612         return getPersistence().countByN_R(nodeId, redirectTitle);
613     }
614 
615     public static int countByN_T_V(long nodeId, java.lang.String title,
616         double version) throws com.liferay.portal.SystemException {
617         return getPersistence().countByN_T_V(nodeId, title, version);
618     }
619 
620     public static int countByN_T_H(long nodeId, java.lang.String title,
621         boolean head) throws com.liferay.portal.SystemException {
622         return getPersistence().countByN_T_H(nodeId, title, head);
623     }
624 
625     public static int countByN_H_P(long nodeId, boolean head,
626         java.lang.String parentTitle) throws com.liferay.portal.SystemException {
627         return getPersistence().countByN_H_P(nodeId, head, parentTitle);
628     }
629 
630     public static int countAll() throws com.liferay.portal.SystemException {
631         return getPersistence().countAll();
632     }
633 
634     public static WikiPagePersistence getPersistence() {
635         return _getUtil()._persistence;
636     }
637 
638     public void setPersistence(WikiPagePersistence persistence) {
639         _persistence = persistence;
640     }
641 
642     private static WikiPageUtil _getUtil() {
643         if (_util == null) {
644             _util = (WikiPageUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
645         }
646 
647         return _util;
648     }
649 
650     private static final String _UTIL = WikiPageUtil.class.getName();
651     private static WikiPageUtil _util;
652     private WikiPagePersistence _persistence;
653 }