1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.wiki.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.wiki.model.WikiNode;
20  
21  /**
22   * <a href="WikiNodePersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       WikiNodePersistenceImpl
31   * @see       WikiNodeUtil
32   * @generated
33   */
34  public interface WikiNodePersistence extends BasePersistence<WikiNode> {
35      public void cacheResult(com.liferay.portlet.wiki.model.WikiNode wikiNode);
36  
37      public void cacheResult(
38          java.util.List<com.liferay.portlet.wiki.model.WikiNode> wikiNodes);
39  
40      public com.liferay.portlet.wiki.model.WikiNode create(long nodeId);
41  
42      public com.liferay.portlet.wiki.model.WikiNode remove(long nodeId)
43          throws com.liferay.portal.SystemException,
44              com.liferay.portlet.wiki.NoSuchNodeException;
45  
46      /**
47       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
48       */
49      public com.liferay.portlet.wiki.model.WikiNode update(
50          com.liferay.portlet.wiki.model.WikiNode wikiNode)
51          throws com.liferay.portal.SystemException;
52  
53      public com.liferay.portlet.wiki.model.WikiNode updateImpl(
54          com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge)
55          throws com.liferay.portal.SystemException;
56  
57      public com.liferay.portlet.wiki.model.WikiNode findByPrimaryKey(long nodeId)
58          throws com.liferay.portal.SystemException,
59              com.liferay.portlet.wiki.NoSuchNodeException;
60  
61      public com.liferay.portlet.wiki.model.WikiNode fetchByPrimaryKey(
62          long nodeId) throws com.liferay.portal.SystemException;
63  
64      public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid(
65          java.lang.String uuid) throws com.liferay.portal.SystemException;
66  
67      public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid(
68          java.lang.String uuid, int start, int end)
69          throws com.liferay.portal.SystemException;
70  
71      public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid(
72          java.lang.String uuid, int start, int end,
73          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
74          throws com.liferay.portal.SystemException;
75  
76      public com.liferay.portlet.wiki.model.WikiNode findByUuid_First(
77          java.lang.String uuid,
78          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79          throws com.liferay.portal.SystemException,
80              com.liferay.portlet.wiki.NoSuchNodeException;
81  
82      public com.liferay.portlet.wiki.model.WikiNode findByUuid_Last(
83          java.lang.String uuid,
84          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
85          throws com.liferay.portal.SystemException,
86              com.liferay.portlet.wiki.NoSuchNodeException;
87  
88      public com.liferay.portlet.wiki.model.WikiNode[] findByUuid_PrevAndNext(
89          long nodeId, java.lang.String uuid,
90          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
91          throws com.liferay.portal.SystemException,
92              com.liferay.portlet.wiki.NoSuchNodeException;
93  
94      public com.liferay.portlet.wiki.model.WikiNode findByUUID_G(
95          java.lang.String uuid, long groupId)
96          throws com.liferay.portal.SystemException,
97              com.liferay.portlet.wiki.NoSuchNodeException;
98  
99      public com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G(
100         java.lang.String uuid, long groupId)
101         throws com.liferay.portal.SystemException;
102 
103     public com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G(
104         java.lang.String uuid, long groupId, boolean retrieveFromCache)
105         throws com.liferay.portal.SystemException;
106 
107     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
108         long groupId) throws com.liferay.portal.SystemException;
109 
110     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
111         long groupId, int start, int end)
112         throws com.liferay.portal.SystemException;
113 
114     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
115         long groupId, int start, int end,
116         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
117         throws com.liferay.portal.SystemException;
118 
119     public com.liferay.portlet.wiki.model.WikiNode findByGroupId_First(
120         long groupId,
121         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
122         throws com.liferay.portal.SystemException,
123             com.liferay.portlet.wiki.NoSuchNodeException;
124 
125     public com.liferay.portlet.wiki.model.WikiNode findByGroupId_Last(
126         long groupId,
127         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
128         throws com.liferay.portal.SystemException,
129             com.liferay.portlet.wiki.NoSuchNodeException;
130 
131     public com.liferay.portlet.wiki.model.WikiNode[] findByGroupId_PrevAndNext(
132         long nodeId, long groupId,
133         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
134         throws com.liferay.portal.SystemException,
135             com.liferay.portlet.wiki.NoSuchNodeException;
136 
137     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
138         long companyId) throws com.liferay.portal.SystemException;
139 
140     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
141         long companyId, int start, int end)
142         throws com.liferay.portal.SystemException;
143 
144     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
145         long companyId, int start, int end,
146         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
147         throws com.liferay.portal.SystemException;
148 
149     public com.liferay.portlet.wiki.model.WikiNode findByCompanyId_First(
150         long companyId,
151         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152         throws com.liferay.portal.SystemException,
153             com.liferay.portlet.wiki.NoSuchNodeException;
154 
155     public com.liferay.portlet.wiki.model.WikiNode findByCompanyId_Last(
156         long companyId,
157         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
158         throws com.liferay.portal.SystemException,
159             com.liferay.portlet.wiki.NoSuchNodeException;
160 
161     public com.liferay.portlet.wiki.model.WikiNode[] findByCompanyId_PrevAndNext(
162         long nodeId, long companyId,
163         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164         throws com.liferay.portal.SystemException,
165             com.liferay.portlet.wiki.NoSuchNodeException;
166 
167     public com.liferay.portlet.wiki.model.WikiNode findByG_N(long groupId,
168         java.lang.String name)
169         throws com.liferay.portal.SystemException,
170             com.liferay.portlet.wiki.NoSuchNodeException;
171 
172     public com.liferay.portlet.wiki.model.WikiNode fetchByG_N(long groupId,
173         java.lang.String name) throws com.liferay.portal.SystemException;
174 
175     public com.liferay.portlet.wiki.model.WikiNode fetchByG_N(long groupId,
176         java.lang.String name, boolean retrieveFromCache)
177         throws com.liferay.portal.SystemException;
178 
179     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll()
180         throws com.liferay.portal.SystemException;
181 
182     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll(
183         int start, int end) throws com.liferay.portal.SystemException;
184 
185     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll(
186         int start, int end,
187         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
188         throws com.liferay.portal.SystemException;
189 
190     public void removeByUuid(java.lang.String uuid)
191         throws com.liferay.portal.SystemException;
192 
193     public void removeByUUID_G(java.lang.String uuid, long groupId)
194         throws com.liferay.portal.SystemException,
195             com.liferay.portlet.wiki.NoSuchNodeException;
196 
197     public void removeByGroupId(long groupId)
198         throws com.liferay.portal.SystemException;
199 
200     public void removeByCompanyId(long companyId)
201         throws com.liferay.portal.SystemException;
202 
203     public void removeByG_N(long groupId, java.lang.String name)
204         throws com.liferay.portal.SystemException,
205             com.liferay.portlet.wiki.NoSuchNodeException;
206 
207     public void removeAll() throws com.liferay.portal.SystemException;
208 
209     public int countByUuid(java.lang.String uuid)
210         throws com.liferay.portal.SystemException;
211 
212     public int countByUUID_G(java.lang.String uuid, long groupId)
213         throws com.liferay.portal.SystemException;
214 
215     public int countByGroupId(long groupId)
216         throws com.liferay.portal.SystemException;
217 
218     public int countByCompanyId(long companyId)
219         throws com.liferay.portal.SystemException;
220 
221     public int countByG_N(long groupId, java.lang.String name)
222         throws com.liferay.portal.SystemException;
223 
224     public int countAll() throws com.liferay.portal.SystemException;
225 }