001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.wiki.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.service.ServiceContext;
022    
023    import com.liferay.portlet.wiki.model.WikiNode;
024    
025    import java.util.List;
026    
027    /**
028     * @author    Brian Wing Shun Chan
029     * @see       WikiNodePersistence
030     * @see       WikiNodePersistenceImpl
031     * @generated
032     */
033    public class WikiNodeUtil {
034            /**
035             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
036             */
037            public static void clearCache() {
038                    getPersistence().clearCache();
039            }
040    
041            /**
042             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
043             */
044            public static void clearCache(WikiNode wikiNode) {
045                    getPersistence().clearCache(wikiNode);
046            }
047    
048            /**
049             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
050             */
051            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052                    throws SystemException {
053                    return getPersistence().countWithDynamicQuery(dynamicQuery);
054            }
055    
056            /**
057             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
058             */
059            public static List<WikiNode> findWithDynamicQuery(DynamicQuery dynamicQuery)
060                    throws SystemException {
061                    return getPersistence().findWithDynamicQuery(dynamicQuery);
062            }
063    
064            /**
065             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
066             */
067            public static List<WikiNode> findWithDynamicQuery(
068                    DynamicQuery dynamicQuery, int start, int end)
069                    throws SystemException {
070                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071            }
072    
073            /**
074             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
075             */
076            public static List<WikiNode> findWithDynamicQuery(
077                    DynamicQuery dynamicQuery, int start, int end,
078                    OrderByComparator orderByComparator) throws SystemException {
079                    return getPersistence()
080                                       .findWithDynamicQuery(dynamicQuery, start, end,
081                            orderByComparator);
082            }
083    
084            /**
085             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
086             */
087            public static WikiNode remove(WikiNode wikiNode) throws SystemException {
088                    return getPersistence().remove(wikiNode);
089            }
090    
091            /**
092             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
093             */
094            public static WikiNode update(WikiNode wikiNode, boolean merge)
095                    throws SystemException {
096                    return getPersistence().update(wikiNode, merge);
097            }
098    
099            /**
100             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
101             */
102            public static WikiNode update(WikiNode wikiNode, boolean merge,
103                    ServiceContext serviceContext) throws SystemException {
104                    return getPersistence().update(wikiNode, merge, serviceContext);
105            }
106    
107            public static void cacheResult(
108                    com.liferay.portlet.wiki.model.WikiNode wikiNode) {
109                    getPersistence().cacheResult(wikiNode);
110            }
111    
112            public static void cacheResult(
113                    java.util.List<com.liferay.portlet.wiki.model.WikiNode> wikiNodes) {
114                    getPersistence().cacheResult(wikiNodes);
115            }
116    
117            public static com.liferay.portlet.wiki.model.WikiNode create(long nodeId) {
118                    return getPersistence().create(nodeId);
119            }
120    
121            public static com.liferay.portlet.wiki.model.WikiNode remove(long nodeId)
122                    throws com.liferay.portal.kernel.exception.SystemException,
123                            com.liferay.portlet.wiki.NoSuchNodeException {
124                    return getPersistence().remove(nodeId);
125            }
126    
127            public static com.liferay.portlet.wiki.model.WikiNode updateImpl(
128                    com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge)
129                    throws com.liferay.portal.kernel.exception.SystemException {
130                    return getPersistence().updateImpl(wikiNode, merge);
131            }
132    
133            public static com.liferay.portlet.wiki.model.WikiNode findByPrimaryKey(
134                    long nodeId)
135                    throws com.liferay.portal.kernel.exception.SystemException,
136                            com.liferay.portlet.wiki.NoSuchNodeException {
137                    return getPersistence().findByPrimaryKey(nodeId);
138            }
139    
140            public static com.liferay.portlet.wiki.model.WikiNode fetchByPrimaryKey(
141                    long nodeId) throws com.liferay.portal.kernel.exception.SystemException {
142                    return getPersistence().fetchByPrimaryKey(nodeId);
143            }
144    
145            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid(
146                    java.lang.String uuid)
147                    throws com.liferay.portal.kernel.exception.SystemException {
148                    return getPersistence().findByUuid(uuid);
149            }
150    
151            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid(
152                    java.lang.String uuid, int start, int end)
153                    throws com.liferay.portal.kernel.exception.SystemException {
154                    return getPersistence().findByUuid(uuid, start, end);
155            }
156    
157            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid(
158                    java.lang.String uuid, int start, int end,
159                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
160                    throws com.liferay.portal.kernel.exception.SystemException {
161                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
162            }
163    
164            public static com.liferay.portlet.wiki.model.WikiNode findByUuid_First(
165                    java.lang.String uuid,
166                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167                    throws com.liferay.portal.kernel.exception.SystemException,
168                            com.liferay.portlet.wiki.NoSuchNodeException {
169                    return getPersistence().findByUuid_First(uuid, orderByComparator);
170            }
171    
172            public static com.liferay.portlet.wiki.model.WikiNode findByUuid_Last(
173                    java.lang.String uuid,
174                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
175                    throws com.liferay.portal.kernel.exception.SystemException,
176                            com.liferay.portlet.wiki.NoSuchNodeException {
177                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
178            }
179    
180            public static com.liferay.portlet.wiki.model.WikiNode[] findByUuid_PrevAndNext(
181                    long nodeId, java.lang.String uuid,
182                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
183                    throws com.liferay.portal.kernel.exception.SystemException,
184                            com.liferay.portlet.wiki.NoSuchNodeException {
185                    return getPersistence()
186                                       .findByUuid_PrevAndNext(nodeId, uuid, orderByComparator);
187            }
188    
189            public static com.liferay.portlet.wiki.model.WikiNode findByUUID_G(
190                    java.lang.String uuid, long groupId)
191                    throws com.liferay.portal.kernel.exception.SystemException,
192                            com.liferay.portlet.wiki.NoSuchNodeException {
193                    return getPersistence().findByUUID_G(uuid, groupId);
194            }
195    
196            public static com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G(
197                    java.lang.String uuid, long groupId)
198                    throws com.liferay.portal.kernel.exception.SystemException {
199                    return getPersistence().fetchByUUID_G(uuid, groupId);
200            }
201    
202            public static com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G(
203                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
206            }
207    
208            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
209                    long groupId)
210                    throws com.liferay.portal.kernel.exception.SystemException {
211                    return getPersistence().findByGroupId(groupId);
212            }
213    
214            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
215                    long groupId, int start, int end)
216                    throws com.liferay.portal.kernel.exception.SystemException {
217                    return getPersistence().findByGroupId(groupId, start, end);
218            }
219    
220            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
221                    long groupId, int start, int end,
222                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
223                    throws com.liferay.portal.kernel.exception.SystemException {
224                    return getPersistence()
225                                       .findByGroupId(groupId, start, end, orderByComparator);
226            }
227    
228            public static com.liferay.portlet.wiki.model.WikiNode findByGroupId_First(
229                    long groupId,
230                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
231                    throws com.liferay.portal.kernel.exception.SystemException,
232                            com.liferay.portlet.wiki.NoSuchNodeException {
233                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
234            }
235    
236            public static com.liferay.portlet.wiki.model.WikiNode findByGroupId_Last(
237                    long groupId,
238                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
239                    throws com.liferay.portal.kernel.exception.SystemException,
240                            com.liferay.portlet.wiki.NoSuchNodeException {
241                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
242            }
243    
244            public static com.liferay.portlet.wiki.model.WikiNode[] findByGroupId_PrevAndNext(
245                    long nodeId, long groupId,
246                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
247                    throws com.liferay.portal.kernel.exception.SystemException,
248                            com.liferay.portlet.wiki.NoSuchNodeException {
249                    return getPersistence()
250                                       .findByGroupId_PrevAndNext(nodeId, groupId, orderByComparator);
251            }
252    
253            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId(
254                    long groupId)
255                    throws com.liferay.portal.kernel.exception.SystemException {
256                    return getPersistence().filterFindByGroupId(groupId);
257            }
258    
259            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId(
260                    long groupId, int start, int end)
261                    throws com.liferay.portal.kernel.exception.SystemException {
262                    return getPersistence().filterFindByGroupId(groupId, start, end);
263            }
264    
265            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId(
266                    long groupId, int start, int end,
267                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
268                    throws com.liferay.portal.kernel.exception.SystemException {
269                    return getPersistence()
270                                       .filterFindByGroupId(groupId, start, end, orderByComparator);
271            }
272    
273            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
274                    long companyId)
275                    throws com.liferay.portal.kernel.exception.SystemException {
276                    return getPersistence().findByCompanyId(companyId);
277            }
278    
279            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
280                    long companyId, int start, int end)
281                    throws com.liferay.portal.kernel.exception.SystemException {
282                    return getPersistence().findByCompanyId(companyId, start, end);
283            }
284    
285            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
286                    long companyId, int start, int end,
287                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
288                    throws com.liferay.portal.kernel.exception.SystemException {
289                    return getPersistence()
290                                       .findByCompanyId(companyId, start, end, orderByComparator);
291            }
292    
293            public static com.liferay.portlet.wiki.model.WikiNode findByCompanyId_First(
294                    long companyId,
295                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
296                    throws com.liferay.portal.kernel.exception.SystemException,
297                            com.liferay.portlet.wiki.NoSuchNodeException {
298                    return getPersistence()
299                                       .findByCompanyId_First(companyId, orderByComparator);
300            }
301    
302            public static com.liferay.portlet.wiki.model.WikiNode findByCompanyId_Last(
303                    long companyId,
304                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
305                    throws com.liferay.portal.kernel.exception.SystemException,
306                            com.liferay.portlet.wiki.NoSuchNodeException {
307                    return getPersistence()
308                                       .findByCompanyId_Last(companyId, orderByComparator);
309            }
310    
311            public static com.liferay.portlet.wiki.model.WikiNode[] findByCompanyId_PrevAndNext(
312                    long nodeId, long companyId,
313                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
314                    throws com.liferay.portal.kernel.exception.SystemException,
315                            com.liferay.portlet.wiki.NoSuchNodeException {
316                    return getPersistence()
317                                       .findByCompanyId_PrevAndNext(nodeId, companyId,
318                            orderByComparator);
319            }
320    
321            public static com.liferay.portlet.wiki.model.WikiNode findByG_N(
322                    long groupId, java.lang.String name)
323                    throws com.liferay.portal.kernel.exception.SystemException,
324                            com.liferay.portlet.wiki.NoSuchNodeException {
325                    return getPersistence().findByG_N(groupId, name);
326            }
327    
328            public static com.liferay.portlet.wiki.model.WikiNode fetchByG_N(
329                    long groupId, java.lang.String name)
330                    throws com.liferay.portal.kernel.exception.SystemException {
331                    return getPersistence().fetchByG_N(groupId, name);
332            }
333    
334            public static com.liferay.portlet.wiki.model.WikiNode fetchByG_N(
335                    long groupId, java.lang.String name, boolean retrieveFromCache)
336                    throws com.liferay.portal.kernel.exception.SystemException {
337                    return getPersistence().fetchByG_N(groupId, name, retrieveFromCache);
338            }
339    
340            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll()
341                    throws com.liferay.portal.kernel.exception.SystemException {
342                    return getPersistence().findAll();
343            }
344    
345            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll(
346                    int start, int end)
347                    throws com.liferay.portal.kernel.exception.SystemException {
348                    return getPersistence().findAll(start, end);
349            }
350    
351            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll(
352                    int start, int end,
353                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
354                    throws com.liferay.portal.kernel.exception.SystemException {
355                    return getPersistence().findAll(start, end, orderByComparator);
356            }
357    
358            public static void removeByUuid(java.lang.String uuid)
359                    throws com.liferay.portal.kernel.exception.SystemException {
360                    getPersistence().removeByUuid(uuid);
361            }
362    
363            public static void removeByUUID_G(java.lang.String uuid, long groupId)
364                    throws com.liferay.portal.kernel.exception.SystemException,
365                            com.liferay.portlet.wiki.NoSuchNodeException {
366                    getPersistence().removeByUUID_G(uuid, groupId);
367            }
368    
369            public static void removeByGroupId(long groupId)
370                    throws com.liferay.portal.kernel.exception.SystemException {
371                    getPersistence().removeByGroupId(groupId);
372            }
373    
374            public static void removeByCompanyId(long companyId)
375                    throws com.liferay.portal.kernel.exception.SystemException {
376                    getPersistence().removeByCompanyId(companyId);
377            }
378    
379            public static void removeByG_N(long groupId, java.lang.String name)
380                    throws com.liferay.portal.kernel.exception.SystemException,
381                            com.liferay.portlet.wiki.NoSuchNodeException {
382                    getPersistence().removeByG_N(groupId, name);
383            }
384    
385            public static void removeAll()
386                    throws com.liferay.portal.kernel.exception.SystemException {
387                    getPersistence().removeAll();
388            }
389    
390            public static int countByUuid(java.lang.String uuid)
391                    throws com.liferay.portal.kernel.exception.SystemException {
392                    return getPersistence().countByUuid(uuid);
393            }
394    
395            public static int countByUUID_G(java.lang.String uuid, long groupId)
396                    throws com.liferay.portal.kernel.exception.SystemException {
397                    return getPersistence().countByUUID_G(uuid, groupId);
398            }
399    
400            public static int countByGroupId(long groupId)
401                    throws com.liferay.portal.kernel.exception.SystemException {
402                    return getPersistence().countByGroupId(groupId);
403            }
404    
405            public static int filterCountByGroupId(long groupId)
406                    throws com.liferay.portal.kernel.exception.SystemException {
407                    return getPersistence().filterCountByGroupId(groupId);
408            }
409    
410            public static int countByCompanyId(long companyId)
411                    throws com.liferay.portal.kernel.exception.SystemException {
412                    return getPersistence().countByCompanyId(companyId);
413            }
414    
415            public static int countByG_N(long groupId, java.lang.String name)
416                    throws com.liferay.portal.kernel.exception.SystemException {
417                    return getPersistence().countByG_N(groupId, name);
418            }
419    
420            public static int filterCountByG_N(long groupId, java.lang.String name)
421                    throws com.liferay.portal.kernel.exception.SystemException {
422                    return getPersistence().filterCountByG_N(groupId, name);
423            }
424    
425            public static int countAll()
426                    throws com.liferay.portal.kernel.exception.SystemException {
427                    return getPersistence().countAll();
428            }
429    
430            public static WikiNodePersistence getPersistence() {
431                    if (_persistence == null) {
432                            _persistence = (WikiNodePersistence)PortalBeanLocatorUtil.locate(WikiNodePersistence.class.getName());
433                    }
434    
435                    return _persistence;
436            }
437    
438            public void setPersistence(WikiNodePersistence persistence) {
439                    _persistence = persistence;
440            }
441    
442            private static WikiNodePersistence _persistence;
443    }