1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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   * <a href="WikiNodeUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class WikiNodeUtil {
32      public static com.liferay.portlet.wiki.model.WikiNode create(long nodeId) {
33          return getPersistence().create(nodeId);
34      }
35  
36      public static com.liferay.portlet.wiki.model.WikiNode remove(long nodeId)
37          throws com.liferay.portal.SystemException, 
38              com.liferay.portlet.wiki.NoSuchNodeException {
39          return getPersistence().remove(nodeId);
40      }
41  
42      public static com.liferay.portlet.wiki.model.WikiNode remove(
43          com.liferay.portlet.wiki.model.WikiNode wikiNode)
44          throws com.liferay.portal.SystemException {
45          return getPersistence().remove(wikiNode);
46      }
47  
48      public static com.liferay.portlet.wiki.model.WikiNode update(
49          com.liferay.portlet.wiki.model.WikiNode wikiNode)
50          throws com.liferay.portal.SystemException {
51          return getPersistence().update(wikiNode);
52      }
53  
54      public static com.liferay.portlet.wiki.model.WikiNode update(
55          com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge)
56          throws com.liferay.portal.SystemException {
57          return getPersistence().update(wikiNode, merge);
58      }
59  
60      public static com.liferay.portlet.wiki.model.WikiNode updateImpl(
61          com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge)
62          throws com.liferay.portal.SystemException {
63          return getPersistence().updateImpl(wikiNode, merge);
64      }
65  
66      public static com.liferay.portlet.wiki.model.WikiNode findByPrimaryKey(
67          long nodeId)
68          throws com.liferay.portal.SystemException, 
69              com.liferay.portlet.wiki.NoSuchNodeException {
70          return getPersistence().findByPrimaryKey(nodeId);
71      }
72  
73      public static com.liferay.portlet.wiki.model.WikiNode fetchByPrimaryKey(
74          long nodeId) throws com.liferay.portal.SystemException {
75          return getPersistence().fetchByPrimaryKey(nodeId);
76      }
77  
78      public static java.util.List findByUuid(java.lang.String uuid)
79          throws com.liferay.portal.SystemException {
80          return getPersistence().findByUuid(uuid);
81      }
82  
83      public static java.util.List findByUuid(java.lang.String uuid, int begin,
84          int end) throws com.liferay.portal.SystemException {
85          return getPersistence().findByUuid(uuid, begin, end);
86      }
87  
88      public static java.util.List findByUuid(java.lang.String uuid, int begin,
89          int end, com.liferay.portal.kernel.util.OrderByComparator obc)
90          throws com.liferay.portal.SystemException {
91          return getPersistence().findByUuid(uuid, begin, end, obc);
92      }
93  
94      public static com.liferay.portlet.wiki.model.WikiNode findByUuid_First(
95          java.lang.String uuid,
96          com.liferay.portal.kernel.util.OrderByComparator obc)
97          throws com.liferay.portal.SystemException, 
98              com.liferay.portlet.wiki.NoSuchNodeException {
99          return getPersistence().findByUuid_First(uuid, obc);
100     }
101 
102     public static com.liferay.portlet.wiki.model.WikiNode findByUuid_Last(
103         java.lang.String uuid,
104         com.liferay.portal.kernel.util.OrderByComparator obc)
105         throws com.liferay.portal.SystemException, 
106             com.liferay.portlet.wiki.NoSuchNodeException {
107         return getPersistence().findByUuid_Last(uuid, obc);
108     }
109 
110     public static com.liferay.portlet.wiki.model.WikiNode[] findByUuid_PrevAndNext(
111         long nodeId, 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         return getPersistence().findByUuid_PrevAndNext(nodeId, uuid, obc);
116     }
117 
118     public static com.liferay.portlet.wiki.model.WikiNode findByUUID_G(
119         java.lang.String uuid, long groupId)
120         throws com.liferay.portal.SystemException, 
121             com.liferay.portlet.wiki.NoSuchNodeException {
122         return getPersistence().findByUUID_G(uuid, groupId);
123     }
124 
125     public static com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G(
126         java.lang.String uuid, long groupId)
127         throws com.liferay.portal.SystemException {
128         return getPersistence().fetchByUUID_G(uuid, groupId);
129     }
130 
131     public static java.util.List findByGroupId(long groupId)
132         throws com.liferay.portal.SystemException {
133         return getPersistence().findByGroupId(groupId);
134     }
135 
136     public static java.util.List findByGroupId(long groupId, int begin, int end)
137         throws com.liferay.portal.SystemException {
138         return getPersistence().findByGroupId(groupId, begin, end);
139     }
140 
141     public static java.util.List findByGroupId(long groupId, int begin,
142         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
143         throws com.liferay.portal.SystemException {
144         return getPersistence().findByGroupId(groupId, begin, end, obc);
145     }
146 
147     public static 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         return getPersistence().findByGroupId_First(groupId, obc);
152     }
153 
154     public static com.liferay.portlet.wiki.model.WikiNode findByGroupId_Last(
155         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.SystemException, 
157             com.liferay.portlet.wiki.NoSuchNodeException {
158         return getPersistence().findByGroupId_Last(groupId, obc);
159     }
160 
161     public static com.liferay.portlet.wiki.model.WikiNode[] findByGroupId_PrevAndNext(
162         long nodeId, long groupId,
163         com.liferay.portal.kernel.util.OrderByComparator obc)
164         throws com.liferay.portal.SystemException, 
165             com.liferay.portlet.wiki.NoSuchNodeException {
166         return getPersistence().findByGroupId_PrevAndNext(nodeId, groupId, obc);
167     }
168 
169     public static java.util.List findByCompanyId(long companyId)
170         throws com.liferay.portal.SystemException {
171         return getPersistence().findByCompanyId(companyId);
172     }
173 
174     public static java.util.List findByCompanyId(long companyId, int begin,
175         int end) throws com.liferay.portal.SystemException {
176         return getPersistence().findByCompanyId(companyId, begin, end);
177     }
178 
179     public static java.util.List findByCompanyId(long companyId, int begin,
180         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
181         throws com.liferay.portal.SystemException {
182         return getPersistence().findByCompanyId(companyId, begin, end, obc);
183     }
184 
185     public static com.liferay.portlet.wiki.model.WikiNode findByCompanyId_First(
186         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
187         throws com.liferay.portal.SystemException, 
188             com.liferay.portlet.wiki.NoSuchNodeException {
189         return getPersistence().findByCompanyId_First(companyId, obc);
190     }
191 
192     public static com.liferay.portlet.wiki.model.WikiNode findByCompanyId_Last(
193         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
194         throws com.liferay.portal.SystemException, 
195             com.liferay.portlet.wiki.NoSuchNodeException {
196         return getPersistence().findByCompanyId_Last(companyId, obc);
197     }
198 
199     public static com.liferay.portlet.wiki.model.WikiNode[] findByCompanyId_PrevAndNext(
200         long nodeId, long companyId,
201         com.liferay.portal.kernel.util.OrderByComparator obc)
202         throws com.liferay.portal.SystemException, 
203             com.liferay.portlet.wiki.NoSuchNodeException {
204         return getPersistence().findByCompanyId_PrevAndNext(nodeId, companyId,
205             obc);
206     }
207 
208     public static java.util.List findWithDynamicQuery(
209         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
210         throws com.liferay.portal.SystemException {
211         return getPersistence().findWithDynamicQuery(queryInitializer);
212     }
213 
214     public static java.util.List findWithDynamicQuery(
215         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
216         int begin, int end) throws com.liferay.portal.SystemException {
217         return getPersistence().findWithDynamicQuery(queryInitializer, begin,
218             end);
219     }
220 
221     public static java.util.List findAll()
222         throws com.liferay.portal.SystemException {
223         return getPersistence().findAll();
224     }
225 
226     public static java.util.List findAll(int begin, int end)
227         throws com.liferay.portal.SystemException {
228         return getPersistence().findAll(begin, end);
229     }
230 
231     public static java.util.List findAll(int begin, int end,
232         com.liferay.portal.kernel.util.OrderByComparator obc)
233         throws com.liferay.portal.SystemException {
234         return getPersistence().findAll(begin, end, obc);
235     }
236 
237     public static void removeByUuid(java.lang.String uuid)
238         throws com.liferay.portal.SystemException {
239         getPersistence().removeByUuid(uuid);
240     }
241 
242     public static void removeByUUID_G(java.lang.String uuid, long groupId)
243         throws com.liferay.portal.SystemException, 
244             com.liferay.portlet.wiki.NoSuchNodeException {
245         getPersistence().removeByUUID_G(uuid, groupId);
246     }
247 
248     public static void removeByGroupId(long groupId)
249         throws com.liferay.portal.SystemException {
250         getPersistence().removeByGroupId(groupId);
251     }
252 
253     public static void removeByCompanyId(long companyId)
254         throws com.liferay.portal.SystemException {
255         getPersistence().removeByCompanyId(companyId);
256     }
257 
258     public static void removeAll() throws com.liferay.portal.SystemException {
259         getPersistence().removeAll();
260     }
261 
262     public static int countByUuid(java.lang.String uuid)
263         throws com.liferay.portal.SystemException {
264         return getPersistence().countByUuid(uuid);
265     }
266 
267     public static int countByUUID_G(java.lang.String uuid, long groupId)
268         throws com.liferay.portal.SystemException {
269         return getPersistence().countByUUID_G(uuid, groupId);
270     }
271 
272     public static int countByGroupId(long groupId)
273         throws com.liferay.portal.SystemException {
274         return getPersistence().countByGroupId(groupId);
275     }
276 
277     public static int countByCompanyId(long companyId)
278         throws com.liferay.portal.SystemException {
279         return getPersistence().countByCompanyId(companyId);
280     }
281 
282     public static int countAll() throws com.liferay.portal.SystemException {
283         return getPersistence().countAll();
284     }
285 
286     public static WikiNodePersistence getPersistence() {
287         return _getUtil()._persistence;
288     }
289 
290     public void setPersistence(WikiNodePersistence persistence) {
291         _persistence = persistence;
292     }
293 
294     private static WikiNodeUtil _getUtil() {
295         if (_util == null) {
296             _util = (WikiNodeUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
297         }
298 
299         return _util;
300     }
301 
302     private static final String _UTIL = WikiNodeUtil.class.getName();
303     private static WikiNodeUtil _util;
304     private WikiNodePersistence _persistence;
305 }