1   /**
2    * Copyright (c) 2000-2007 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 findByPrimaryKey(long pageId)
51          throws com.liferay.portal.SystemException, 
52              com.liferay.portlet.wiki.NoSuchPageException;
53  
54      public com.liferay.portlet.wiki.model.WikiPage fetchByPrimaryKey(
55          long pageId) throws com.liferay.portal.SystemException;
56  
57      public java.util.List findByNodeId(long nodeId)
58          throws com.liferay.portal.SystemException;
59  
60      public java.util.List findByNodeId(long nodeId, int begin, int end)
61          throws com.liferay.portal.SystemException;
62  
63      public java.util.List findByNodeId(long nodeId, int begin, int end,
64          com.liferay.portal.kernel.util.OrderByComparator obc)
65          throws com.liferay.portal.SystemException;
66  
67      public com.liferay.portlet.wiki.model.WikiPage findByNodeId_First(
68          long nodeId, com.liferay.portal.kernel.util.OrderByComparator obc)
69          throws com.liferay.portal.SystemException, 
70              com.liferay.portlet.wiki.NoSuchPageException;
71  
72      public com.liferay.portlet.wiki.model.WikiPage findByNodeId_Last(
73          long nodeId, 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[] findByNodeId_PrevAndNext(
78          long pageId, long nodeId,
79          com.liferay.portal.kernel.util.OrderByComparator obc)
80          throws com.liferay.portal.SystemException, 
81              com.liferay.portlet.wiki.NoSuchPageException;
82  
83      public java.util.List findByN_T(long nodeId, java.lang.String title)
84          throws com.liferay.portal.SystemException;
85  
86      public java.util.List findByN_T(long nodeId, java.lang.String title,
87          int begin, int end) throws com.liferay.portal.SystemException;
88  
89      public java.util.List findByN_T(long nodeId, java.lang.String title,
90          int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
91          throws com.liferay.portal.SystemException;
92  
93      public com.liferay.portlet.wiki.model.WikiPage findByN_T_First(
94          long nodeId, java.lang.String title,
95          com.liferay.portal.kernel.util.OrderByComparator obc)
96          throws com.liferay.portal.SystemException, 
97              com.liferay.portlet.wiki.NoSuchPageException;
98  
99      public com.liferay.portlet.wiki.model.WikiPage findByN_T_Last(long nodeId,
100         java.lang.String title,
101         com.liferay.portal.kernel.util.OrderByComparator obc)
102         throws com.liferay.portal.SystemException, 
103             com.liferay.portlet.wiki.NoSuchPageException;
104 
105     public com.liferay.portlet.wiki.model.WikiPage[] findByN_T_PrevAndNext(
106         long pageId, long nodeId, java.lang.String title,
107         com.liferay.portal.kernel.util.OrderByComparator obc)
108         throws com.liferay.portal.SystemException, 
109             com.liferay.portlet.wiki.NoSuchPageException;
110 
111     public java.util.List findByN_H(long nodeId, boolean head)
112         throws com.liferay.portal.SystemException;
113 
114     public java.util.List findByN_H(long nodeId, boolean head, int begin,
115         int end) throws com.liferay.portal.SystemException;
116 
117     public java.util.List findByN_H(long nodeId, boolean head, int begin,
118         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
119         throws com.liferay.portal.SystemException;
120 
121     public com.liferay.portlet.wiki.model.WikiPage findByN_H_First(
122         long nodeId, boolean head,
123         com.liferay.portal.kernel.util.OrderByComparator obc)
124         throws com.liferay.portal.SystemException, 
125             com.liferay.portlet.wiki.NoSuchPageException;
126 
127     public com.liferay.portlet.wiki.model.WikiPage findByN_H_Last(long nodeId,
128         boolean head, 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[] findByN_H_PrevAndNext(
133         long pageId, long nodeId, boolean head,
134         com.liferay.portal.kernel.util.OrderByComparator obc)
135         throws com.liferay.portal.SystemException, 
136             com.liferay.portlet.wiki.NoSuchPageException;
137 
138     public com.liferay.portlet.wiki.model.WikiPage findByN_T_V(long nodeId,
139         java.lang.String title, double version)
140         throws com.liferay.portal.SystemException, 
141             com.liferay.portlet.wiki.NoSuchPageException;
142 
143     public com.liferay.portlet.wiki.model.WikiPage fetchByN_T_V(long nodeId,
144         java.lang.String title, double version)
145         throws com.liferay.portal.SystemException;
146 
147     public java.util.List findByN_T_H(long nodeId, java.lang.String title,
148         boolean head) throws com.liferay.portal.SystemException;
149 
150     public java.util.List findByN_T_H(long nodeId, java.lang.String title,
151         boolean head, int begin, int end)
152         throws com.liferay.portal.SystemException;
153 
154     public java.util.List findByN_T_H(long nodeId, java.lang.String title,
155         boolean head, int begin, int end,
156         com.liferay.portal.kernel.util.OrderByComparator obc)
157         throws com.liferay.portal.SystemException;
158 
159     public com.liferay.portlet.wiki.model.WikiPage findByN_T_H_First(
160         long nodeId, java.lang.String title, boolean head,
161         com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.SystemException, 
163             com.liferay.portlet.wiki.NoSuchPageException;
164 
165     public com.liferay.portlet.wiki.model.WikiPage findByN_T_H_Last(
166         long nodeId, java.lang.String title, boolean head,
167         com.liferay.portal.kernel.util.OrderByComparator obc)
168         throws com.liferay.portal.SystemException, 
169             com.liferay.portlet.wiki.NoSuchPageException;
170 
171     public com.liferay.portlet.wiki.model.WikiPage[] findByN_T_H_PrevAndNext(
172         long pageId, long nodeId, java.lang.String title, boolean head,
173         com.liferay.portal.kernel.util.OrderByComparator obc)
174         throws com.liferay.portal.SystemException, 
175             com.liferay.portlet.wiki.NoSuchPageException;
176 
177     public java.util.List findWithDynamicQuery(
178         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
179         throws com.liferay.portal.SystemException;
180 
181     public java.util.List findWithDynamicQuery(
182         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
183         int begin, int end) throws com.liferay.portal.SystemException;
184 
185     public java.util.List findAll() throws com.liferay.portal.SystemException;
186 
187     public java.util.List findAll(int begin, int end)
188         throws com.liferay.portal.SystemException;
189 
190     public java.util.List findAll(int begin, int end,
191         com.liferay.portal.kernel.util.OrderByComparator obc)
192         throws com.liferay.portal.SystemException;
193 
194     public void removeByNodeId(long nodeId)
195         throws com.liferay.portal.SystemException;
196 
197     public void removeByN_T(long nodeId, java.lang.String title)
198         throws com.liferay.portal.SystemException;
199 
200     public void removeByN_H(long nodeId, boolean head)
201         throws com.liferay.portal.SystemException;
202 
203     public void removeByN_T_V(long nodeId, java.lang.String title,
204         double version)
205         throws com.liferay.portal.SystemException, 
206             com.liferay.portlet.wiki.NoSuchPageException;
207 
208     public void removeByN_T_H(long nodeId, java.lang.String title, boolean head)
209         throws com.liferay.portal.SystemException;
210 
211     public void removeAll() throws com.liferay.portal.SystemException;
212 
213     public int countByNodeId(long nodeId)
214         throws com.liferay.portal.SystemException;
215 
216     public int countByN_T(long nodeId, java.lang.String title)
217         throws com.liferay.portal.SystemException;
218 
219     public int countByN_H(long nodeId, boolean head)
220         throws com.liferay.portal.SystemException;
221 
222     public int countByN_T_V(long nodeId, java.lang.String title, double version)
223         throws com.liferay.portal.SystemException;
224 
225     public int countByN_T_H(long nodeId, java.lang.String title, boolean head)
226         throws com.liferay.portal.SystemException;
227 
228     public int countAll() throws com.liferay.portal.SystemException;
229 }