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="WikiNodePersistence.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       WikiNodePersistenceImpl
37   * @see       WikiNodeUtil
38   * @generated
39   */
40  public interface WikiNodePersistence extends BasePersistence {
41      public void cacheResult(com.liferay.portlet.wiki.model.WikiNode wikiNode);
42  
43      public void cacheResult(
44          java.util.List<com.liferay.portlet.wiki.model.WikiNode> wikiNodes);
45  
46      public void clearCache();
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      public com.liferay.portlet.wiki.model.WikiNode remove(
55          com.liferay.portlet.wiki.model.WikiNode wikiNode)
56          throws com.liferay.portal.SystemException;
57  
58      /**
59       * @deprecated Use {@link #update(WikiNode, boolean merge)}.
60       */
61      public com.liferay.portlet.wiki.model.WikiNode update(
62          com.liferay.portlet.wiki.model.WikiNode wikiNode)
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  wikiNode 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 wikiNode 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.WikiNode update(
78          com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge)
79          throws com.liferay.portal.SystemException;
80  
81      public com.liferay.portlet.wiki.model.WikiNode updateImpl(
82          com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge)
83          throws com.liferay.portal.SystemException;
84  
85      public com.liferay.portlet.wiki.model.WikiNode findByPrimaryKey(long nodeId)
86          throws com.liferay.portal.SystemException,
87              com.liferay.portlet.wiki.NoSuchNodeException;
88  
89      public com.liferay.portlet.wiki.model.WikiNode fetchByPrimaryKey(
90          long nodeId) throws com.liferay.portal.SystemException;
91  
92      public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid(
93          java.lang.String uuid) throws com.liferay.portal.SystemException;
94  
95      public java.util.List<com.liferay.portlet.wiki.model.WikiNode> 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.WikiNode> 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.WikiNode 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.NoSuchNodeException;
109 
110     public com.liferay.portlet.wiki.model.WikiNode 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.NoSuchNodeException;
115 
116     public com.liferay.portlet.wiki.model.WikiNode[] findByUuid_PrevAndNext(
117         long nodeId, java.lang.String uuid,
118         com.liferay.portal.kernel.util.OrderByComparator obc)
119         throws com.liferay.portal.SystemException,
120             com.liferay.portlet.wiki.NoSuchNodeException;
121 
122     public com.liferay.portlet.wiki.model.WikiNode findByUUID_G(
123         java.lang.String uuid, long groupId)
124         throws com.liferay.portal.SystemException,
125             com.liferay.portlet.wiki.NoSuchNodeException;
126 
127     public com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G(
128         java.lang.String uuid, long groupId)
129         throws com.liferay.portal.SystemException;
130 
131     public com.liferay.portlet.wiki.model.WikiNode 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.WikiNode> findByGroupId(
136         long groupId) throws com.liferay.portal.SystemException;
137 
138     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
139         long groupId, int start, int end)
140         throws com.liferay.portal.SystemException;
141 
142     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
143         long groupId, 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.WikiNode findByGroupId_First(
148         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.SystemException,
150             com.liferay.portlet.wiki.NoSuchNodeException;
151 
152     public com.liferay.portlet.wiki.model.WikiNode findByGroupId_Last(
153         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
154         throws com.liferay.portal.SystemException,
155             com.liferay.portlet.wiki.NoSuchNodeException;
156 
157     public com.liferay.portlet.wiki.model.WikiNode[] findByGroupId_PrevAndNext(
158         long nodeId, long groupId,
159         com.liferay.portal.kernel.util.OrderByComparator obc)
160         throws com.liferay.portal.SystemException,
161             com.liferay.portlet.wiki.NoSuchNodeException;
162 
163     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
164         long companyId) throws com.liferay.portal.SystemException;
165 
166     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
167         long companyId, int start, int end)
168         throws com.liferay.portal.SystemException;
169 
170     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
171         long companyId, 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.WikiNode findByCompanyId_First(
176         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
177         throws com.liferay.portal.SystemException,
178             com.liferay.portlet.wiki.NoSuchNodeException;
179 
180     public com.liferay.portlet.wiki.model.WikiNode findByCompanyId_Last(
181         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
182         throws com.liferay.portal.SystemException,
183             com.liferay.portlet.wiki.NoSuchNodeException;
184 
185     public com.liferay.portlet.wiki.model.WikiNode[] findByCompanyId_PrevAndNext(
186         long nodeId, long companyId,
187         com.liferay.portal.kernel.util.OrderByComparator obc)
188         throws com.liferay.portal.SystemException,
189             com.liferay.portlet.wiki.NoSuchNodeException;
190 
191     public com.liferay.portlet.wiki.model.WikiNode findByG_N(long groupId,
192         java.lang.String name)
193         throws com.liferay.portal.SystemException,
194             com.liferay.portlet.wiki.NoSuchNodeException;
195 
196     public com.liferay.portlet.wiki.model.WikiNode fetchByG_N(long groupId,
197         java.lang.String name) throws com.liferay.portal.SystemException;
198 
199     public com.liferay.portlet.wiki.model.WikiNode fetchByG_N(long groupId,
200         java.lang.String name, boolean retrieveFromCache)
201         throws com.liferay.portal.SystemException;
202 
203     public java.util.List<Object> findWithDynamicQuery(
204         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
205         throws com.liferay.portal.SystemException;
206 
207     public java.util.List<Object> findWithDynamicQuery(
208         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
209         int end) throws com.liferay.portal.SystemException;
210 
211     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll()
212         throws com.liferay.portal.SystemException;
213 
214     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll(
215         int start, int end) throws com.liferay.portal.SystemException;
216 
217     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll(
218         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
219         throws com.liferay.portal.SystemException;
220 
221     public void removeByUuid(java.lang.String uuid)
222         throws com.liferay.portal.SystemException;
223 
224     public void removeByUUID_G(java.lang.String uuid, long groupId)
225         throws com.liferay.portal.SystemException,
226             com.liferay.portlet.wiki.NoSuchNodeException;
227 
228     public void removeByGroupId(long groupId)
229         throws com.liferay.portal.SystemException;
230 
231     public void removeByCompanyId(long companyId)
232         throws com.liferay.portal.SystemException;
233 
234     public void removeByG_N(long groupId, java.lang.String name)
235         throws com.liferay.portal.SystemException,
236             com.liferay.portlet.wiki.NoSuchNodeException;
237 
238     public void removeAll() throws com.liferay.portal.SystemException;
239 
240     public int countByUuid(java.lang.String uuid)
241         throws com.liferay.portal.SystemException;
242 
243     public int countByUUID_G(java.lang.String uuid, long groupId)
244         throws com.liferay.portal.SystemException;
245 
246     public int countByGroupId(long groupId)
247         throws com.liferay.portal.SystemException;
248 
249     public int countByCompanyId(long companyId)
250         throws com.liferay.portal.SystemException;
251 
252     public int countByG_N(long groupId, java.lang.String name)
253         throws com.liferay.portal.SystemException;
254 
255     public int countAll() throws com.liferay.portal.SystemException;
256 }