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 obc)
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 obc)
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 obc)
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 obc)
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 obc)
117         throws com.liferay.portal.SystemException;
118 
119     public com.liferay.portlet.wiki.model.WikiNode findByGroupId_First(
120         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
121         throws com.liferay.portal.SystemException,
122             com.liferay.portlet.wiki.NoSuchNodeException;
123 
124     public com.liferay.portlet.wiki.model.WikiNode findByGroupId_Last(
125         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
126         throws com.liferay.portal.SystemException,
127             com.liferay.portlet.wiki.NoSuchNodeException;
128 
129     public com.liferay.portlet.wiki.model.WikiNode[] findByGroupId_PrevAndNext(
130         long nodeId, long groupId,
131         com.liferay.portal.kernel.util.OrderByComparator obc)
132         throws com.liferay.portal.SystemException,
133             com.liferay.portlet.wiki.NoSuchNodeException;
134 
135     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
136         long companyId) throws com.liferay.portal.SystemException;
137 
138     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
139         long companyId, int start, int end)
140         throws com.liferay.portal.SystemException;
141 
142     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
143         long companyId, 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 findByCompanyId_First(
148         long companyId, 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 findByCompanyId_Last(
153         long companyId, 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[] findByCompanyId_PrevAndNext(
158         long nodeId, long companyId,
159         com.liferay.portal.kernel.util.OrderByComparator obc)
160         throws com.liferay.portal.SystemException,
161             com.liferay.portlet.wiki.NoSuchNodeException;
162 
163     public com.liferay.portlet.wiki.model.WikiNode findByG_N(long groupId,
164         java.lang.String name)
165         throws com.liferay.portal.SystemException,
166             com.liferay.portlet.wiki.NoSuchNodeException;
167 
168     public com.liferay.portlet.wiki.model.WikiNode fetchByG_N(long groupId,
169         java.lang.String name) throws com.liferay.portal.SystemException;
170 
171     public com.liferay.portlet.wiki.model.WikiNode fetchByG_N(long groupId,
172         java.lang.String name, boolean retrieveFromCache)
173         throws com.liferay.portal.SystemException;
174 
175     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll()
176         throws com.liferay.portal.SystemException;
177 
178     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll(
179         int start, int end) throws com.liferay.portal.SystemException;
180 
181     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll(
182         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
183         throws com.liferay.portal.SystemException;
184 
185     public void removeByUuid(java.lang.String uuid)
186         throws com.liferay.portal.SystemException;
187 
188     public void removeByUUID_G(java.lang.String uuid, long groupId)
189         throws com.liferay.portal.SystemException,
190             com.liferay.portlet.wiki.NoSuchNodeException;
191 
192     public void removeByGroupId(long groupId)
193         throws com.liferay.portal.SystemException;
194 
195     public void removeByCompanyId(long companyId)
196         throws com.liferay.portal.SystemException;
197 
198     public void removeByG_N(long groupId, java.lang.String name)
199         throws com.liferay.portal.SystemException,
200             com.liferay.portlet.wiki.NoSuchNodeException;
201 
202     public void removeAll() throws com.liferay.portal.SystemException;
203 
204     public int countByUuid(java.lang.String uuid)
205         throws com.liferay.portal.SystemException;
206 
207     public int countByUUID_G(java.lang.String uuid, long groupId)
208         throws com.liferay.portal.SystemException;
209 
210     public int countByGroupId(long groupId)
211         throws com.liferay.portal.SystemException;
212 
213     public int countByCompanyId(long companyId)
214         throws com.liferay.portal.SystemException;
215 
216     public int countByG_N(long groupId, java.lang.String name)
217         throws com.liferay.portal.SystemException;
218 
219     public int countAll() throws com.liferay.portal.SystemException;
220 }