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