1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.wiki.service.persistence;
24  
25  /**
26   * <a href="WikiPagePersistence.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public interface WikiPagePersistence {
32      public com.liferay.portlet.wiki.model.WikiPage create(long pageId);
33  
34      public com.liferay.portlet.wiki.model.WikiPage remove(long pageId)
35          throws com.liferay.portal.SystemException, 
36              com.liferay.portlet.wiki.NoSuchPageException;
37  
38      public com.liferay.portlet.wiki.model.WikiPage remove(
39          com.liferay.portlet.wiki.model.WikiPage wikiPage)
40          throws com.liferay.portal.SystemException;
41  
42      public com.liferay.portlet.wiki.model.WikiPage update(
43          com.liferay.portlet.wiki.model.WikiPage wikiPage)
44          throws com.liferay.portal.SystemException;
45  
46      public com.liferay.portlet.wiki.model.WikiPage update(
47          com.liferay.portlet.wiki.model.WikiPage wikiPage, boolean merge)
48          throws com.liferay.portal.SystemException;
49  
50      public com.liferay.portlet.wiki.model.WikiPage updateImpl(
51          com.liferay.portlet.wiki.model.WikiPage wikiPage, boolean merge)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portlet.wiki.model.WikiPage findByPrimaryKey(long pageId)
55          throws com.liferay.portal.SystemException, 
56              com.liferay.portlet.wiki.NoSuchPageException;
57  
58      public com.liferay.portlet.wiki.model.WikiPage fetchByPrimaryKey(
59          long pageId) throws com.liferay.portal.SystemException;
60  
61      public java.util.List findByUuid(java.lang.String uuid)
62          throws com.liferay.portal.SystemException;
63  
64      public java.util.List findByUuid(java.lang.String uuid, int begin, int end)
65          throws com.liferay.portal.SystemException;
66  
67      public java.util.List findByUuid(java.lang.String uuid, int begin, int end,
68          com.liferay.portal.kernel.util.OrderByComparator obc)
69          throws com.liferay.portal.SystemException;
70  
71      public com.liferay.portlet.wiki.model.WikiPage findByUuid_First(
72          java.lang.String uuid,
73          com.liferay.portal.kernel.util.OrderByComparator obc)
74          throws com.liferay.portal.SystemException, 
75              com.liferay.portlet.wiki.NoSuchPageException;
76  
77      public com.liferay.portlet.wiki.model.WikiPage findByUuid_Last(
78          java.lang.String uuid,
79          com.liferay.portal.kernel.util.OrderByComparator obc)
80          throws com.liferay.portal.SystemException, 
81              com.liferay.portlet.wiki.NoSuchPageException;
82  
83      public com.liferay.portlet.wiki.model.WikiPage[] findByUuid_PrevAndNext(
84          long pageId, java.lang.String uuid,
85          com.liferay.portal.kernel.util.OrderByComparator obc)
86          throws com.liferay.portal.SystemException, 
87              com.liferay.portlet.wiki.NoSuchPageException;
88  
89      public java.util.List findByNodeId(long nodeId)
90          throws com.liferay.portal.SystemException;
91  
92      public java.util.List findByNodeId(long nodeId, int begin, int end)
93          throws com.liferay.portal.SystemException;
94  
95      public java.util.List findByNodeId(long nodeId, int begin, int end,
96          com.liferay.portal.kernel.util.OrderByComparator obc)
97          throws com.liferay.portal.SystemException;
98  
99      public com.liferay.portlet.wiki.model.WikiPage findByNodeId_First(
100         long nodeId, com.liferay.portal.kernel.util.OrderByComparator obc)
101         throws com.liferay.portal.SystemException, 
102             com.liferay.portlet.wiki.NoSuchPageException;
103 
104     public com.liferay.portlet.wiki.model.WikiPage findByNodeId_Last(
105         long nodeId, com.liferay.portal.kernel.util.OrderByComparator obc)
106         throws com.liferay.portal.SystemException, 
107             com.liferay.portlet.wiki.NoSuchPageException;
108 
109     public com.liferay.portlet.wiki.model.WikiPage[] findByNodeId_PrevAndNext(
110         long pageId, long nodeId,
111         com.liferay.portal.kernel.util.OrderByComparator obc)
112         throws com.liferay.portal.SystemException, 
113             com.liferay.portlet.wiki.NoSuchPageException;
114 
115     public java.util.List findByN_T(long nodeId, java.lang.String title)
116         throws com.liferay.portal.SystemException;
117 
118     public java.util.List findByN_T(long nodeId, java.lang.String title,
119         int begin, int end) throws com.liferay.portal.SystemException;
120 
121     public java.util.List findByN_T(long nodeId, java.lang.String title,
122         int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
123         throws com.liferay.portal.SystemException;
124 
125     public com.liferay.portlet.wiki.model.WikiPage findByN_T_First(
126         long nodeId, java.lang.String title,
127         com.liferay.portal.kernel.util.OrderByComparator obc)
128         throws com.liferay.portal.SystemException, 
129             com.liferay.portlet.wiki.NoSuchPageException;
130 
131     public com.liferay.portlet.wiki.model.WikiPage findByN_T_Last(long nodeId,
132         java.lang.String title,
133         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[] findByN_T_PrevAndNext(
138         long pageId, long nodeId, java.lang.String title,
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 findByN_H(long nodeId, boolean head)
144         throws com.liferay.portal.SystemException;
145 
146     public java.util.List findByN_H(long nodeId, boolean head, int begin,
147         int end) throws com.liferay.portal.SystemException;
148 
149     public java.util.List findByN_H(long nodeId, boolean head, int begin,
150         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.SystemException;
152 
153     public com.liferay.portlet.wiki.model.WikiPage findByN_H_First(
154         long nodeId, boolean head,
155         com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.SystemException, 
157             com.liferay.portlet.wiki.NoSuchPageException;
158 
159     public com.liferay.portlet.wiki.model.WikiPage findByN_H_Last(long nodeId,
160         boolean head, com.liferay.portal.kernel.util.OrderByComparator obc)
161         throws com.liferay.portal.SystemException, 
162             com.liferay.portlet.wiki.NoSuchPageException;
163 
164     public com.liferay.portlet.wiki.model.WikiPage[] findByN_H_PrevAndNext(
165         long pageId, long nodeId, boolean head,
166         com.liferay.portal.kernel.util.OrderByComparator obc)
167         throws com.liferay.portal.SystemException, 
168             com.liferay.portlet.wiki.NoSuchPageException;
169 
170     public com.liferay.portlet.wiki.model.WikiPage findByN_T_V(long nodeId,
171         java.lang.String title, double version)
172         throws com.liferay.portal.SystemException, 
173             com.liferay.portlet.wiki.NoSuchPageException;
174 
175     public com.liferay.portlet.wiki.model.WikiPage fetchByN_T_V(long nodeId,
176         java.lang.String title, double version)
177         throws com.liferay.portal.SystemException;
178 
179     public java.util.List findByN_T_H(long nodeId, java.lang.String title,
180         boolean head) throws com.liferay.portal.SystemException;
181 
182     public java.util.List findByN_T_H(long nodeId, java.lang.String title,
183         boolean head, int begin, int end)
184         throws com.liferay.portal.SystemException;
185 
186     public java.util.List findByN_T_H(long nodeId, java.lang.String title,
187         boolean head, int begin, int end,
188         com.liferay.portal.kernel.util.OrderByComparator obc)
189         throws com.liferay.portal.SystemException;
190 
191     public com.liferay.portlet.wiki.model.WikiPage findByN_T_H_First(
192         long nodeId, java.lang.String title, boolean head,
193         com.liferay.portal.kernel.util.OrderByComparator obc)
194         throws com.liferay.portal.SystemException, 
195             com.liferay.portlet.wiki.NoSuchPageException;
196 
197     public com.liferay.portlet.wiki.model.WikiPage findByN_T_H_Last(
198         long nodeId, java.lang.String title, boolean head,
199         com.liferay.portal.kernel.util.OrderByComparator obc)
200         throws com.liferay.portal.SystemException, 
201             com.liferay.portlet.wiki.NoSuchPageException;
202 
203     public com.liferay.portlet.wiki.model.WikiPage[] findByN_T_H_PrevAndNext(
204         long pageId, long nodeId, java.lang.String title, boolean head,
205         com.liferay.portal.kernel.util.OrderByComparator obc)
206         throws com.liferay.portal.SystemException, 
207             com.liferay.portlet.wiki.NoSuchPageException;
208 
209     public java.util.List findWithDynamicQuery(
210         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
211         throws com.liferay.portal.SystemException;
212 
213     public java.util.List findWithDynamicQuery(
214         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
215         int begin, int end) throws com.liferay.portal.SystemException;
216 
217     public java.util.List findAll() throws com.liferay.portal.SystemException;
218 
219     public java.util.List findAll(int begin, int end)
220         throws com.liferay.portal.SystemException;
221 
222     public java.util.List findAll(int begin, int end,
223         com.liferay.portal.kernel.util.OrderByComparator obc)
224         throws com.liferay.portal.SystemException;
225 
226     public void removeByUuid(java.lang.String uuid)
227         throws com.liferay.portal.SystemException;
228 
229     public void removeByNodeId(long nodeId)
230         throws com.liferay.portal.SystemException;
231 
232     public void removeByN_T(long nodeId, java.lang.String title)
233         throws com.liferay.portal.SystemException;
234 
235     public void removeByN_H(long nodeId, boolean head)
236         throws com.liferay.portal.SystemException;
237 
238     public void removeByN_T_V(long nodeId, java.lang.String title,
239         double version)
240         throws com.liferay.portal.SystemException, 
241             com.liferay.portlet.wiki.NoSuchPageException;
242 
243     public void removeByN_T_H(long nodeId, java.lang.String title, boolean head)
244         throws com.liferay.portal.SystemException;
245 
246     public void removeAll() throws com.liferay.portal.SystemException;
247 
248     public int countByUuid(java.lang.String uuid)
249         throws com.liferay.portal.SystemException;
250 
251     public int countByNodeId(long nodeId)
252         throws com.liferay.portal.SystemException;
253 
254     public int countByN_T(long nodeId, java.lang.String title)
255         throws com.liferay.portal.SystemException;
256 
257     public int countByN_H(long nodeId, boolean head)
258         throws com.liferay.portal.SystemException;
259 
260     public int countByN_T_V(long nodeId, java.lang.String title, double version)
261         throws com.liferay.portal.SystemException;
262 
263     public int countByN_T_H(long nodeId, java.lang.String title, boolean head)
264         throws com.liferay.portal.SystemException;
265 
266     public int countAll() throws com.liferay.portal.SystemException;
267 }