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