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  
26  /**
27   * <a href="WikiNodeUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * @author    Brian Wing Shun Chan
35   * @see       WikiNodePersistence
36   * @see       WikiNodePersistenceImpl
37   * @generated
38   */
39  public class WikiNodeUtil {
40      public static void cacheResult(
41          com.liferay.portlet.wiki.model.WikiNode wikiNode) {
42          getPersistence().cacheResult(wikiNode);
43      }
44  
45      public static void cacheResult(
46          java.util.List<com.liferay.portlet.wiki.model.WikiNode> wikiNodes) {
47          getPersistence().cacheResult(wikiNodes);
48      }
49  
50      public static void clearCache() {
51          getPersistence().clearCache();
52      }
53  
54      public static com.liferay.portlet.wiki.model.WikiNode create(long nodeId) {
55          return getPersistence().create(nodeId);
56      }
57  
58      public static com.liferay.portlet.wiki.model.WikiNode remove(long nodeId)
59          throws com.liferay.portal.SystemException,
60              com.liferay.portlet.wiki.NoSuchNodeException {
61          return getPersistence().remove(nodeId);
62      }
63  
64      public static com.liferay.portlet.wiki.model.WikiNode remove(
65          com.liferay.portlet.wiki.model.WikiNode wikiNode)
66          throws com.liferay.portal.SystemException {
67          return getPersistence().remove(wikiNode);
68      }
69  
70      /**
71       * @deprecated Use {@link #update(WikiNode, boolean merge)}.
72       */
73      public static com.liferay.portlet.wiki.model.WikiNode update(
74          com.liferay.portlet.wiki.model.WikiNode wikiNode)
75          throws com.liferay.portal.SystemException {
76          return getPersistence().update(wikiNode);
77      }
78  
79      /**
80       * Add, update, or merge, the entity. This method also calls the model
81       * listeners to trigger the proper events associated with adding, deleting,
82       * or updating an entity.
83       *
84       * @param  wikiNode the entity to add, update, or merge
85       * @param  merge boolean value for whether to merge the entity. The default
86       *         value is false. Setting merge to true is more expensive and
87       *         should only be true when wikiNode is transient. See
88       *         LEP-5473 for a detailed discussion of this method.
89       * @return the entity that was added, updated, or merged
90       */
91      public static com.liferay.portlet.wiki.model.WikiNode update(
92          com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge)
93          throws com.liferay.portal.SystemException {
94          return getPersistence().update(wikiNode, merge);
95      }
96  
97      public static com.liferay.portlet.wiki.model.WikiNode updateImpl(
98          com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge)
99          throws com.liferay.portal.SystemException {
100         return getPersistence().updateImpl(wikiNode, merge);
101     }
102 
103     public static com.liferay.portlet.wiki.model.WikiNode findByPrimaryKey(
104         long nodeId)
105         throws com.liferay.portal.SystemException,
106             com.liferay.portlet.wiki.NoSuchNodeException {
107         return getPersistence().findByPrimaryKey(nodeId);
108     }
109 
110     public static com.liferay.portlet.wiki.model.WikiNode fetchByPrimaryKey(
111         long nodeId) throws com.liferay.portal.SystemException {
112         return getPersistence().fetchByPrimaryKey(nodeId);
113     }
114 
115     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid(
116         java.lang.String uuid) throws com.liferay.portal.SystemException {
117         return getPersistence().findByUuid(uuid);
118     }
119 
120     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid(
121         java.lang.String uuid, int start, int end)
122         throws com.liferay.portal.SystemException {
123         return getPersistence().findByUuid(uuid, start, end);
124     }
125 
126     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid(
127         java.lang.String uuid, int start, int end,
128         com.liferay.portal.kernel.util.OrderByComparator obc)
129         throws com.liferay.portal.SystemException {
130         return getPersistence().findByUuid(uuid, start, end, obc);
131     }
132 
133     public static com.liferay.portlet.wiki.model.WikiNode findByUuid_First(
134         java.lang.String uuid,
135         com.liferay.portal.kernel.util.OrderByComparator obc)
136         throws com.liferay.portal.SystemException,
137             com.liferay.portlet.wiki.NoSuchNodeException {
138         return getPersistence().findByUuid_First(uuid, obc);
139     }
140 
141     public static com.liferay.portlet.wiki.model.WikiNode findByUuid_Last(
142         java.lang.String uuid,
143         com.liferay.portal.kernel.util.OrderByComparator obc)
144         throws com.liferay.portal.SystemException,
145             com.liferay.portlet.wiki.NoSuchNodeException {
146         return getPersistence().findByUuid_Last(uuid, obc);
147     }
148 
149     public static com.liferay.portlet.wiki.model.WikiNode[] findByUuid_PrevAndNext(
150         long nodeId, java.lang.String uuid,
151         com.liferay.portal.kernel.util.OrderByComparator obc)
152         throws com.liferay.portal.SystemException,
153             com.liferay.portlet.wiki.NoSuchNodeException {
154         return getPersistence().findByUuid_PrevAndNext(nodeId, uuid, obc);
155     }
156 
157     public static com.liferay.portlet.wiki.model.WikiNode findByUUID_G(
158         java.lang.String uuid, long groupId)
159         throws com.liferay.portal.SystemException,
160             com.liferay.portlet.wiki.NoSuchNodeException {
161         return getPersistence().findByUUID_G(uuid, groupId);
162     }
163 
164     public static com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G(
165         java.lang.String uuid, long groupId)
166         throws com.liferay.portal.SystemException {
167         return getPersistence().fetchByUUID_G(uuid, groupId);
168     }
169 
170     public static com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G(
171         java.lang.String uuid, long groupId, boolean retrieveFromCache)
172         throws com.liferay.portal.SystemException {
173         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
174     }
175 
176     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
177         long groupId) throws com.liferay.portal.SystemException {
178         return getPersistence().findByGroupId(groupId);
179     }
180 
181     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
182         long groupId, int start, int end)
183         throws com.liferay.portal.SystemException {
184         return getPersistence().findByGroupId(groupId, start, end);
185     }
186 
187     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
188         long groupId, int start, int end,
189         com.liferay.portal.kernel.util.OrderByComparator obc)
190         throws com.liferay.portal.SystemException {
191         return getPersistence().findByGroupId(groupId, start, end, obc);
192     }
193 
194     public static com.liferay.portlet.wiki.model.WikiNode findByGroupId_First(
195         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
196         throws com.liferay.portal.SystemException,
197             com.liferay.portlet.wiki.NoSuchNodeException {
198         return getPersistence().findByGroupId_First(groupId, obc);
199     }
200 
201     public static com.liferay.portlet.wiki.model.WikiNode findByGroupId_Last(
202         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
203         throws com.liferay.portal.SystemException,
204             com.liferay.portlet.wiki.NoSuchNodeException {
205         return getPersistence().findByGroupId_Last(groupId, obc);
206     }
207 
208     public static com.liferay.portlet.wiki.model.WikiNode[] findByGroupId_PrevAndNext(
209         long nodeId, long groupId,
210         com.liferay.portal.kernel.util.OrderByComparator obc)
211         throws com.liferay.portal.SystemException,
212             com.liferay.portlet.wiki.NoSuchNodeException {
213         return getPersistence().findByGroupId_PrevAndNext(nodeId, groupId, obc);
214     }
215 
216     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
217         long companyId) throws com.liferay.portal.SystemException {
218         return getPersistence().findByCompanyId(companyId);
219     }
220 
221     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
222         long companyId, int start, int end)
223         throws com.liferay.portal.SystemException {
224         return getPersistence().findByCompanyId(companyId, start, end);
225     }
226 
227     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
228         long companyId, int start, int end,
229         com.liferay.portal.kernel.util.OrderByComparator obc)
230         throws com.liferay.portal.SystemException {
231         return getPersistence().findByCompanyId(companyId, start, end, obc);
232     }
233 
234     public static com.liferay.portlet.wiki.model.WikiNode findByCompanyId_First(
235         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
236         throws com.liferay.portal.SystemException,
237             com.liferay.portlet.wiki.NoSuchNodeException {
238         return getPersistence().findByCompanyId_First(companyId, obc);
239     }
240 
241     public static com.liferay.portlet.wiki.model.WikiNode findByCompanyId_Last(
242         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
243         throws com.liferay.portal.SystemException,
244             com.liferay.portlet.wiki.NoSuchNodeException {
245         return getPersistence().findByCompanyId_Last(companyId, obc);
246     }
247 
248     public static com.liferay.portlet.wiki.model.WikiNode[] findByCompanyId_PrevAndNext(
249         long nodeId, long companyId,
250         com.liferay.portal.kernel.util.OrderByComparator obc)
251         throws com.liferay.portal.SystemException,
252             com.liferay.portlet.wiki.NoSuchNodeException {
253         return getPersistence()
254                    .findByCompanyId_PrevAndNext(nodeId, companyId, obc);
255     }
256 
257     public static com.liferay.portlet.wiki.model.WikiNode findByG_N(
258         long groupId, java.lang.String name)
259         throws com.liferay.portal.SystemException,
260             com.liferay.portlet.wiki.NoSuchNodeException {
261         return getPersistence().findByG_N(groupId, name);
262     }
263 
264     public static com.liferay.portlet.wiki.model.WikiNode fetchByG_N(
265         long groupId, java.lang.String name)
266         throws com.liferay.portal.SystemException {
267         return getPersistence().fetchByG_N(groupId, name);
268     }
269 
270     public static com.liferay.portlet.wiki.model.WikiNode fetchByG_N(
271         long groupId, java.lang.String name, boolean retrieveFromCache)
272         throws com.liferay.portal.SystemException {
273         return getPersistence().fetchByG_N(groupId, name, retrieveFromCache);
274     }
275 
276     public static java.util.List<Object> findWithDynamicQuery(
277         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
278         throws com.liferay.portal.SystemException {
279         return getPersistence().findWithDynamicQuery(dynamicQuery);
280     }
281 
282     public static java.util.List<Object> findWithDynamicQuery(
283         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
284         int end) throws com.liferay.portal.SystemException {
285         return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
286     }
287 
288     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll()
289         throws com.liferay.portal.SystemException {
290         return getPersistence().findAll();
291     }
292 
293     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll(
294         int start, int end) throws com.liferay.portal.SystemException {
295         return getPersistence().findAll(start, end);
296     }
297 
298     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll(
299         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
300         throws com.liferay.portal.SystemException {
301         return getPersistence().findAll(start, end, obc);
302     }
303 
304     public static void removeByUuid(java.lang.String uuid)
305         throws com.liferay.portal.SystemException {
306         getPersistence().removeByUuid(uuid);
307     }
308 
309     public static void removeByUUID_G(java.lang.String uuid, long groupId)
310         throws com.liferay.portal.SystemException,
311             com.liferay.portlet.wiki.NoSuchNodeException {
312         getPersistence().removeByUUID_G(uuid, groupId);
313     }
314 
315     public static void removeByGroupId(long groupId)
316         throws com.liferay.portal.SystemException {
317         getPersistence().removeByGroupId(groupId);
318     }
319 
320     public static void removeByCompanyId(long companyId)
321         throws com.liferay.portal.SystemException {
322         getPersistence().removeByCompanyId(companyId);
323     }
324 
325     public static void removeByG_N(long groupId, java.lang.String name)
326         throws com.liferay.portal.SystemException,
327             com.liferay.portlet.wiki.NoSuchNodeException {
328         getPersistence().removeByG_N(groupId, name);
329     }
330 
331     public static void removeAll() throws com.liferay.portal.SystemException {
332         getPersistence().removeAll();
333     }
334 
335     public static int countByUuid(java.lang.String uuid)
336         throws com.liferay.portal.SystemException {
337         return getPersistence().countByUuid(uuid);
338     }
339 
340     public static int countByUUID_G(java.lang.String uuid, long groupId)
341         throws com.liferay.portal.SystemException {
342         return getPersistence().countByUUID_G(uuid, groupId);
343     }
344 
345     public static int countByGroupId(long groupId)
346         throws com.liferay.portal.SystemException {
347         return getPersistence().countByGroupId(groupId);
348     }
349 
350     public static int countByCompanyId(long companyId)
351         throws com.liferay.portal.SystemException {
352         return getPersistence().countByCompanyId(companyId);
353     }
354 
355     public static int countByG_N(long groupId, java.lang.String name)
356         throws com.liferay.portal.SystemException {
357         return getPersistence().countByG_N(groupId, name);
358     }
359 
360     public static int countAll() throws com.liferay.portal.SystemException {
361         return getPersistence().countAll();
362     }
363 
364     public static WikiNodePersistence getPersistence() {
365         return _persistence;
366     }
367 
368     public void setPersistence(WikiNodePersistence persistence) {
369         _persistence = persistence;
370     }
371 
372     private static WikiNodePersistence _persistence;
373 }