1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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  import com.liferay.portal.service.persistence.BasePersistence;
26  
27  import com.liferay.portlet.wiki.model.WikiPage;
28  
29  /**
30   * <a href="WikiPagePersistence.java.html"><b><i>View Source</i></b></a>
31   *
32   * <p>
33   * ServiceBuilder generated this class. Modifications in this class will be
34   * overwritten the next time is generated.
35   * </p>
36   *
37   * @author    Brian Wing Shun Chan
38   * @see       WikiPagePersistenceImpl
39   * @see       WikiPageUtil
40   * @generated
41   */
42  public interface WikiPagePersistence extends BasePersistence<WikiPage> {
43      public void cacheResult(com.liferay.portlet.wiki.model.WikiPage wikiPage);
44  
45      public void cacheResult(
46          java.util.List<com.liferay.portlet.wiki.model.WikiPage> wikiPages);
47  
48      public com.liferay.portlet.wiki.model.WikiPage create(long pageId);
49  
50      public com.liferay.portlet.wiki.model.WikiPage remove(long pageId)
51          throws com.liferay.portal.SystemException,
52              com.liferay.portlet.wiki.NoSuchPageException;
53  
54      /**
55       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
56       */
57      public com.liferay.portlet.wiki.model.WikiPage update(
58          com.liferay.portlet.wiki.model.WikiPage wikiPage)
59          throws com.liferay.portal.SystemException;
60  
61      public com.liferay.portlet.wiki.model.WikiPage updateImpl(
62          com.liferay.portlet.wiki.model.WikiPage wikiPage, boolean merge)
63          throws com.liferay.portal.SystemException;
64  
65      public com.liferay.portlet.wiki.model.WikiPage findByPrimaryKey(long pageId)
66          throws com.liferay.portal.SystemException,
67              com.liferay.portlet.wiki.NoSuchPageException;
68  
69      public com.liferay.portlet.wiki.model.WikiPage fetchByPrimaryKey(
70          long pageId) throws com.liferay.portal.SystemException;
71  
72      public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByUuid(
73          java.lang.String uuid) throws com.liferay.portal.SystemException;
74  
75      public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByUuid(
76          java.lang.String uuid, int start, int end)
77          throws com.liferay.portal.SystemException;
78  
79      public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByUuid(
80          java.lang.String uuid, int start, int end,
81          com.liferay.portal.kernel.util.OrderByComparator obc)
82          throws com.liferay.portal.SystemException;
83  
84      public com.liferay.portlet.wiki.model.WikiPage findByUuid_First(
85          java.lang.String uuid,
86          com.liferay.portal.kernel.util.OrderByComparator obc)
87          throws com.liferay.portal.SystemException,
88              com.liferay.portlet.wiki.NoSuchPageException;
89  
90      public com.liferay.portlet.wiki.model.WikiPage findByUuid_Last(
91          java.lang.String uuid,
92          com.liferay.portal.kernel.util.OrderByComparator obc)
93          throws com.liferay.portal.SystemException,
94              com.liferay.portlet.wiki.NoSuchPageException;
95  
96      public com.liferay.portlet.wiki.model.WikiPage[] findByUuid_PrevAndNext(
97          long pageId, java.lang.String uuid,
98          com.liferay.portal.kernel.util.OrderByComparator obc)
99          throws com.liferay.portal.SystemException,
100             com.liferay.portlet.wiki.NoSuchPageException;
101 
102     public com.liferay.portlet.wiki.model.WikiPage findByUUID_G(
103         java.lang.String uuid, long groupId)
104         throws com.liferay.portal.SystemException,
105             com.liferay.portlet.wiki.NoSuchPageException;
106 
107     public com.liferay.portlet.wiki.model.WikiPage fetchByUUID_G(
108         java.lang.String uuid, long groupId)
109         throws com.liferay.portal.SystemException;
110 
111     public com.liferay.portlet.wiki.model.WikiPage fetchByUUID_G(
112         java.lang.String uuid, long groupId, boolean retrieveFromCache)
113         throws com.liferay.portal.SystemException;
114 
115     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByNodeId(
116         long nodeId) throws com.liferay.portal.SystemException;
117 
118     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByNodeId(
119         long nodeId, int start, int end)
120         throws com.liferay.portal.SystemException;
121 
122     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByNodeId(
123         long nodeId, int start, int end,
124         com.liferay.portal.kernel.util.OrderByComparator obc)
125         throws com.liferay.portal.SystemException;
126 
127     public com.liferay.portlet.wiki.model.WikiPage findByNodeId_First(
128         long nodeId, com.liferay.portal.kernel.util.OrderByComparator obc)
129         throws com.liferay.portal.SystemException,
130             com.liferay.portlet.wiki.NoSuchPageException;
131 
132     public com.liferay.portlet.wiki.model.WikiPage findByNodeId_Last(
133         long nodeId, com.liferay.portal.kernel.util.OrderByComparator obc)
134         throws com.liferay.portal.SystemException,
135             com.liferay.portlet.wiki.NoSuchPageException;
136 
137     public com.liferay.portlet.wiki.model.WikiPage[] findByNodeId_PrevAndNext(
138         long pageId, long nodeId,
139         com.liferay.portal.kernel.util.OrderByComparator obc)
140         throws com.liferay.portal.SystemException,
141             com.liferay.portlet.wiki.NoSuchPageException;
142 
143     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByFormat(
144         java.lang.String format) throws com.liferay.portal.SystemException;
145 
146     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByFormat(
147         java.lang.String format, int start, int end)
148         throws com.liferay.portal.SystemException;
149 
150     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByFormat(
151         java.lang.String format, int start, int end,
152         com.liferay.portal.kernel.util.OrderByComparator obc)
153         throws com.liferay.portal.SystemException;
154 
155     public com.liferay.portlet.wiki.model.WikiPage findByFormat_First(
156         java.lang.String format,
157         com.liferay.portal.kernel.util.OrderByComparator obc)
158         throws com.liferay.portal.SystemException,
159             com.liferay.portlet.wiki.NoSuchPageException;
160 
161     public com.liferay.portlet.wiki.model.WikiPage findByFormat_Last(
162         java.lang.String format,
163         com.liferay.portal.kernel.util.OrderByComparator obc)
164         throws com.liferay.portal.SystemException,
165             com.liferay.portlet.wiki.NoSuchPageException;
166 
167     public com.liferay.portlet.wiki.model.WikiPage[] findByFormat_PrevAndNext(
168         long pageId, java.lang.String format,
169         com.liferay.portal.kernel.util.OrderByComparator obc)
170         throws com.liferay.portal.SystemException,
171             com.liferay.portlet.wiki.NoSuchPageException;
172 
173     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_T(
174         long nodeId, java.lang.String title)
175         throws com.liferay.portal.SystemException;
176 
177     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_T(
178         long nodeId, java.lang.String title, int start, int end)
179         throws com.liferay.portal.SystemException;
180 
181     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_T(
182         long nodeId, java.lang.String title, int start, int end,
183         com.liferay.portal.kernel.util.OrderByComparator obc)
184         throws com.liferay.portal.SystemException;
185 
186     public com.liferay.portlet.wiki.model.WikiPage findByN_T_First(
187         long nodeId, java.lang.String title,
188         com.liferay.portal.kernel.util.OrderByComparator obc)
189         throws com.liferay.portal.SystemException,
190             com.liferay.portlet.wiki.NoSuchPageException;
191 
192     public com.liferay.portlet.wiki.model.WikiPage findByN_T_Last(long nodeId,
193         java.lang.String title,
194         com.liferay.portal.kernel.util.OrderByComparator obc)
195         throws com.liferay.portal.SystemException,
196             com.liferay.portlet.wiki.NoSuchPageException;
197 
198     public com.liferay.portlet.wiki.model.WikiPage[] findByN_T_PrevAndNext(
199         long pageId, long nodeId, java.lang.String title,
200         com.liferay.portal.kernel.util.OrderByComparator obc)
201         throws com.liferay.portal.SystemException,
202             com.liferay.portlet.wiki.NoSuchPageException;
203 
204     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_H(
205         long nodeId, boolean head) throws com.liferay.portal.SystemException;
206 
207     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_H(
208         long nodeId, boolean head, int start, int end)
209         throws com.liferay.portal.SystemException;
210 
211     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_H(
212         long nodeId, boolean head, int start, int end,
213         com.liferay.portal.kernel.util.OrderByComparator obc)
214         throws com.liferay.portal.SystemException;
215 
216     public com.liferay.portlet.wiki.model.WikiPage findByN_H_First(
217         long nodeId, boolean head,
218         com.liferay.portal.kernel.util.OrderByComparator obc)
219         throws com.liferay.portal.SystemException,
220             com.liferay.portlet.wiki.NoSuchPageException;
221 
222     public com.liferay.portlet.wiki.model.WikiPage findByN_H_Last(long nodeId,
223         boolean head, com.liferay.portal.kernel.util.OrderByComparator obc)
224         throws com.liferay.portal.SystemException,
225             com.liferay.portlet.wiki.NoSuchPageException;
226 
227     public com.liferay.portlet.wiki.model.WikiPage[] findByN_H_PrevAndNext(
228         long pageId, long nodeId, boolean head,
229         com.liferay.portal.kernel.util.OrderByComparator obc)
230         throws com.liferay.portal.SystemException,
231             com.liferay.portlet.wiki.NoSuchPageException;
232 
233     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_P(
234         long nodeId, java.lang.String parentTitle)
235         throws com.liferay.portal.SystemException;
236 
237     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_P(
238         long nodeId, java.lang.String parentTitle, int start, int end)
239         throws com.liferay.portal.SystemException;
240 
241     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_P(
242         long nodeId, java.lang.String parentTitle, int start, int end,
243         com.liferay.portal.kernel.util.OrderByComparator obc)
244         throws com.liferay.portal.SystemException;
245 
246     public com.liferay.portlet.wiki.model.WikiPage findByN_P_First(
247         long nodeId, java.lang.String parentTitle,
248         com.liferay.portal.kernel.util.OrderByComparator obc)
249         throws com.liferay.portal.SystemException,
250             com.liferay.portlet.wiki.NoSuchPageException;
251 
252     public com.liferay.portlet.wiki.model.WikiPage findByN_P_Last(long nodeId,
253         java.lang.String parentTitle,
254         com.liferay.portal.kernel.util.OrderByComparator obc)
255         throws com.liferay.portal.SystemException,
256             com.liferay.portlet.wiki.NoSuchPageException;
257 
258     public com.liferay.portlet.wiki.model.WikiPage[] findByN_P_PrevAndNext(
259         long pageId, long nodeId, java.lang.String parentTitle,
260         com.liferay.portal.kernel.util.OrderByComparator obc)
261         throws com.liferay.portal.SystemException,
262             com.liferay.portlet.wiki.NoSuchPageException;
263 
264     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_R(
265         long nodeId, java.lang.String redirectTitle)
266         throws com.liferay.portal.SystemException;
267 
268     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_R(
269         long nodeId, java.lang.String redirectTitle, int start, int end)
270         throws com.liferay.portal.SystemException;
271 
272     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_R(
273         long nodeId, java.lang.String redirectTitle, int start, int end,
274         com.liferay.portal.kernel.util.OrderByComparator obc)
275         throws com.liferay.portal.SystemException;
276 
277     public com.liferay.portlet.wiki.model.WikiPage findByN_R_First(
278         long nodeId, java.lang.String redirectTitle,
279         com.liferay.portal.kernel.util.OrderByComparator obc)
280         throws com.liferay.portal.SystemException,
281             com.liferay.portlet.wiki.NoSuchPageException;
282 
283     public com.liferay.portlet.wiki.model.WikiPage findByN_R_Last(long nodeId,
284         java.lang.String redirectTitle,
285         com.liferay.portal.kernel.util.OrderByComparator obc)
286         throws com.liferay.portal.SystemException,
287             com.liferay.portlet.wiki.NoSuchPageException;
288 
289     public com.liferay.portlet.wiki.model.WikiPage[] findByN_R_PrevAndNext(
290         long pageId, long nodeId, java.lang.String redirectTitle,
291         com.liferay.portal.kernel.util.OrderByComparator obc)
292         throws com.liferay.portal.SystemException,
293             com.liferay.portlet.wiki.NoSuchPageException;
294 
295     public com.liferay.portlet.wiki.model.WikiPage findByN_T_V(long nodeId,
296         java.lang.String title, double version)
297         throws com.liferay.portal.SystemException,
298             com.liferay.portlet.wiki.NoSuchPageException;
299 
300     public com.liferay.portlet.wiki.model.WikiPage fetchByN_T_V(long nodeId,
301         java.lang.String title, double version)
302         throws com.liferay.portal.SystemException;
303 
304     public com.liferay.portlet.wiki.model.WikiPage fetchByN_T_V(long nodeId,
305         java.lang.String title, double version, boolean retrieveFromCache)
306         throws com.liferay.portal.SystemException;
307 
308     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_T_H(
309         long nodeId, java.lang.String title, boolean head)
310         throws com.liferay.portal.SystemException;
311 
312     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_T_H(
313         long nodeId, java.lang.String title, boolean head, int start, int end)
314         throws com.liferay.portal.SystemException;
315 
316     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_T_H(
317         long nodeId, java.lang.String title, boolean head, int start, int end,
318         com.liferay.portal.kernel.util.OrderByComparator obc)
319         throws com.liferay.portal.SystemException;
320 
321     public com.liferay.portlet.wiki.model.WikiPage findByN_T_H_First(
322         long nodeId, java.lang.String title, boolean head,
323         com.liferay.portal.kernel.util.OrderByComparator obc)
324         throws com.liferay.portal.SystemException,
325             com.liferay.portlet.wiki.NoSuchPageException;
326 
327     public com.liferay.portlet.wiki.model.WikiPage findByN_T_H_Last(
328         long nodeId, java.lang.String title, boolean head,
329         com.liferay.portal.kernel.util.OrderByComparator obc)
330         throws com.liferay.portal.SystemException,
331             com.liferay.portlet.wiki.NoSuchPageException;
332 
333     public com.liferay.portlet.wiki.model.WikiPage[] findByN_T_H_PrevAndNext(
334         long pageId, long nodeId, java.lang.String title, boolean head,
335         com.liferay.portal.kernel.util.OrderByComparator obc)
336         throws com.liferay.portal.SystemException,
337             com.liferay.portlet.wiki.NoSuchPageException;
338 
339     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_H_P(
340         long nodeId, boolean head, java.lang.String parentTitle)
341         throws com.liferay.portal.SystemException;
342 
343     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_H_P(
344         long nodeId, boolean head, java.lang.String parentTitle, int start,
345         int end) throws com.liferay.portal.SystemException;
346 
347     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByN_H_P(
348         long nodeId, boolean head, java.lang.String parentTitle, int start,
349         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
350         throws com.liferay.portal.SystemException;
351 
352     public com.liferay.portlet.wiki.model.WikiPage findByN_H_P_First(
353         long nodeId, boolean head, 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 
358     public com.liferay.portlet.wiki.model.WikiPage findByN_H_P_Last(
359         long nodeId, boolean head, java.lang.String parentTitle,
360         com.liferay.portal.kernel.util.OrderByComparator obc)
361         throws com.liferay.portal.SystemException,
362             com.liferay.portlet.wiki.NoSuchPageException;
363 
364     public com.liferay.portlet.wiki.model.WikiPage[] findByN_H_P_PrevAndNext(
365         long pageId, long nodeId, boolean head, java.lang.String parentTitle,
366         com.liferay.portal.kernel.util.OrderByComparator obc)
367         throws com.liferay.portal.SystemException,
368             com.liferay.portlet.wiki.NoSuchPageException;
369 
370     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findAll()
371         throws com.liferay.portal.SystemException;
372 
373     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findAll(
374         int start, int end) throws com.liferay.portal.SystemException;
375 
376     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findAll(
377         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
378         throws com.liferay.portal.SystemException;
379 
380     public void removeByUuid(java.lang.String uuid)
381         throws com.liferay.portal.SystemException;
382 
383     public void removeByUUID_G(java.lang.String uuid, long groupId)
384         throws com.liferay.portal.SystemException,
385             com.liferay.portlet.wiki.NoSuchPageException;
386 
387     public void removeByNodeId(long nodeId)
388         throws com.liferay.portal.SystemException;
389 
390     public void removeByFormat(java.lang.String format)
391         throws com.liferay.portal.SystemException;
392 
393     public void removeByN_T(long nodeId, java.lang.String title)
394         throws com.liferay.portal.SystemException;
395 
396     public void removeByN_H(long nodeId, boolean head)
397         throws com.liferay.portal.SystemException;
398 
399     public void removeByN_P(long nodeId, java.lang.String parentTitle)
400         throws com.liferay.portal.SystemException;
401 
402     public void removeByN_R(long nodeId, java.lang.String redirectTitle)
403         throws com.liferay.portal.SystemException;
404 
405     public void removeByN_T_V(long nodeId, java.lang.String title,
406         double version)
407         throws com.liferay.portal.SystemException,
408             com.liferay.portlet.wiki.NoSuchPageException;
409 
410     public void removeByN_T_H(long nodeId, java.lang.String title, boolean head)
411         throws com.liferay.portal.SystemException;
412 
413     public void removeByN_H_P(long nodeId, boolean head,
414         java.lang.String parentTitle) throws com.liferay.portal.SystemException;
415 
416     public void removeAll() throws com.liferay.portal.SystemException;
417 
418     public int countByUuid(java.lang.String uuid)
419         throws com.liferay.portal.SystemException;
420 
421     public int countByUUID_G(java.lang.String uuid, long groupId)
422         throws com.liferay.portal.SystemException;
423 
424     public int countByNodeId(long nodeId)
425         throws com.liferay.portal.SystemException;
426 
427     public int countByFormat(java.lang.String format)
428         throws com.liferay.portal.SystemException;
429 
430     public int countByN_T(long nodeId, java.lang.String title)
431         throws com.liferay.portal.SystemException;
432 
433     public int countByN_H(long nodeId, boolean head)
434         throws com.liferay.portal.SystemException;
435 
436     public int countByN_P(long nodeId, java.lang.String parentTitle)
437         throws com.liferay.portal.SystemException;
438 
439     public int countByN_R(long nodeId, java.lang.String redirectTitle)
440         throws com.liferay.portal.SystemException;
441 
442     public int countByN_T_V(long nodeId, java.lang.String title, double version)
443         throws com.liferay.portal.SystemException;
444 
445     public int countByN_T_H(long nodeId, java.lang.String title, boolean head)
446         throws com.liferay.portal.SystemException;
447 
448     public int countByN_H_P(long nodeId, boolean head,
449         java.lang.String parentTitle) throws com.liferay.portal.SystemException;
450 
451     public int countAll() throws com.liferay.portal.SystemException;
452 }