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.WikiNode;
28  
29  /**
30   * <a href="WikiNodePersistence.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       WikiNodePersistenceImpl
39   * @see       WikiNodeUtil
40   * @generated
41   */
42  public interface WikiNodePersistence extends BasePersistence<WikiNode> {
43      public void cacheResult(com.liferay.portlet.wiki.model.WikiNode wikiNode);
44  
45      public void cacheResult(
46          java.util.List<com.liferay.portlet.wiki.model.WikiNode> wikiNodes);
47  
48      public com.liferay.portlet.wiki.model.WikiNode create(long nodeId);
49  
50      public com.liferay.portlet.wiki.model.WikiNode remove(long nodeId)
51          throws com.liferay.portal.SystemException,
52              com.liferay.portlet.wiki.NoSuchNodeException;
53  
54      /**
55       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
56       */
57      public com.liferay.portlet.wiki.model.WikiNode update(
58          com.liferay.portlet.wiki.model.WikiNode wikiNode)
59          throws com.liferay.portal.SystemException;
60  
61      public com.liferay.portlet.wiki.model.WikiNode updateImpl(
62          com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge)
63          throws com.liferay.portal.SystemException;
64  
65      public com.liferay.portlet.wiki.model.WikiNode findByPrimaryKey(long nodeId)
66          throws com.liferay.portal.SystemException,
67              com.liferay.portlet.wiki.NoSuchNodeException;
68  
69      public com.liferay.portlet.wiki.model.WikiNode fetchByPrimaryKey(
70          long nodeId) throws com.liferay.portal.SystemException;
71  
72      public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid(
73          java.lang.String uuid) throws com.liferay.portal.SystemException;
74  
75      public java.util.List<com.liferay.portlet.wiki.model.WikiNode> 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.WikiNode> 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.WikiNode 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.NoSuchNodeException;
89  
90      public com.liferay.portlet.wiki.model.WikiNode 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.NoSuchNodeException;
95  
96      public com.liferay.portlet.wiki.model.WikiNode[] findByUuid_PrevAndNext(
97          long nodeId, java.lang.String uuid,
98          com.liferay.portal.kernel.util.OrderByComparator obc)
99          throws com.liferay.portal.SystemException,
100             com.liferay.portlet.wiki.NoSuchNodeException;
101 
102     public com.liferay.portlet.wiki.model.WikiNode findByUUID_G(
103         java.lang.String uuid, long groupId)
104         throws com.liferay.portal.SystemException,
105             com.liferay.portlet.wiki.NoSuchNodeException;
106 
107     public com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G(
108         java.lang.String uuid, long groupId)
109         throws com.liferay.portal.SystemException;
110 
111     public com.liferay.portlet.wiki.model.WikiNode 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.WikiNode> findByGroupId(
116         long groupId) throws com.liferay.portal.SystemException;
117 
118     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
119         long groupId, int start, int end)
120         throws com.liferay.portal.SystemException;
121 
122     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
123         long groupId, 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.WikiNode findByGroupId_First(
128         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
129         throws com.liferay.portal.SystemException,
130             com.liferay.portlet.wiki.NoSuchNodeException;
131 
132     public com.liferay.portlet.wiki.model.WikiNode findByGroupId_Last(
133         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
134         throws com.liferay.portal.SystemException,
135             com.liferay.portlet.wiki.NoSuchNodeException;
136 
137     public com.liferay.portlet.wiki.model.WikiNode[] findByGroupId_PrevAndNext(
138         long nodeId, long groupId,
139         com.liferay.portal.kernel.util.OrderByComparator obc)
140         throws com.liferay.portal.SystemException,
141             com.liferay.portlet.wiki.NoSuchNodeException;
142 
143     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
144         long companyId) throws com.liferay.portal.SystemException;
145 
146     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
147         long companyId, int start, int end)
148         throws com.liferay.portal.SystemException;
149 
150     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
151         long companyId, 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.WikiNode findByCompanyId_First(
156         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
157         throws com.liferay.portal.SystemException,
158             com.liferay.portlet.wiki.NoSuchNodeException;
159 
160     public com.liferay.portlet.wiki.model.WikiNode findByCompanyId_Last(
161         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.SystemException,
163             com.liferay.portlet.wiki.NoSuchNodeException;
164 
165     public com.liferay.portlet.wiki.model.WikiNode[] findByCompanyId_PrevAndNext(
166         long nodeId, long companyId,
167         com.liferay.portal.kernel.util.OrderByComparator obc)
168         throws com.liferay.portal.SystemException,
169             com.liferay.portlet.wiki.NoSuchNodeException;
170 
171     public com.liferay.portlet.wiki.model.WikiNode findByG_N(long groupId,
172         java.lang.String name)
173         throws com.liferay.portal.SystemException,
174             com.liferay.portlet.wiki.NoSuchNodeException;
175 
176     public com.liferay.portlet.wiki.model.WikiNode fetchByG_N(long groupId,
177         java.lang.String name) throws com.liferay.portal.SystemException;
178 
179     public com.liferay.portlet.wiki.model.WikiNode fetchByG_N(long groupId,
180         java.lang.String name, boolean retrieveFromCache)
181         throws com.liferay.portal.SystemException;
182 
183     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll()
184         throws com.liferay.portal.SystemException;
185 
186     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll(
187         int start, int end) throws com.liferay.portal.SystemException;
188 
189     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll(
190         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
191         throws com.liferay.portal.SystemException;
192 
193     public void removeByUuid(java.lang.String uuid)
194         throws com.liferay.portal.SystemException;
195 
196     public void removeByUUID_G(java.lang.String uuid, long groupId)
197         throws com.liferay.portal.SystemException,
198             com.liferay.portlet.wiki.NoSuchNodeException;
199 
200     public void removeByGroupId(long groupId)
201         throws com.liferay.portal.SystemException;
202 
203     public void removeByCompanyId(long companyId)
204         throws com.liferay.portal.SystemException;
205 
206     public void removeByG_N(long groupId, java.lang.String name)
207         throws com.liferay.portal.SystemException,
208             com.liferay.portlet.wiki.NoSuchNodeException;
209 
210     public void removeAll() throws com.liferay.portal.SystemException;
211 
212     public int countByUuid(java.lang.String uuid)
213         throws com.liferay.portal.SystemException;
214 
215     public int countByUUID_G(java.lang.String uuid, long groupId)
216         throws com.liferay.portal.SystemException;
217 
218     public int countByGroupId(long groupId)
219         throws com.liferay.portal.SystemException;
220 
221     public int countByCompanyId(long companyId)
222         throws com.liferay.portal.SystemException;
223 
224     public int countByG_N(long groupId, java.lang.String name)
225         throws com.liferay.portal.SystemException;
226 
227     public int countAll() throws com.liferay.portal.SystemException;
228 }