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