001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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.kernel.util.ReferenceRegistry;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import com.liferay.portlet.wiki.model.WikiNode;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the wiki node service. This utility wraps {@link WikiNodePersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
030     *
031     * <p>
032     * Caching information and settings can be found in <code>portal.properties</code>
033     * </p>
034     *
035     * @author Brian Wing Shun Chan
036     * @see WikiNodePersistence
037     * @see WikiNodePersistenceImpl
038     * @generated
039     */
040    public class WikiNodeUtil {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
045             */
046    
047            /**
048             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
049             */
050            public static void clearCache() {
051                    getPersistence().clearCache();
052            }
053    
054            /**
055             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
056             */
057            public static void clearCache(WikiNode wikiNode) {
058                    getPersistence().clearCache(wikiNode);
059            }
060    
061            /**
062             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
063             */
064            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
065                    throws SystemException {
066                    return getPersistence().countWithDynamicQuery(dynamicQuery);
067            }
068    
069            /**
070             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
071             */
072            public static List<WikiNode> findWithDynamicQuery(DynamicQuery dynamicQuery)
073                    throws SystemException {
074                    return getPersistence().findWithDynamicQuery(dynamicQuery);
075            }
076    
077            /**
078             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
079             */
080            public static List<WikiNode> findWithDynamicQuery(
081                    DynamicQuery dynamicQuery, int start, int end)
082                    throws SystemException {
083                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
084            }
085    
086            /**
087             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
088             */
089            public static List<WikiNode> findWithDynamicQuery(
090                    DynamicQuery dynamicQuery, int start, int end,
091                    OrderByComparator orderByComparator) throws SystemException {
092                    return getPersistence()
093                                       .findWithDynamicQuery(dynamicQuery, start, end,
094                            orderByComparator);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
099             */
100            public static WikiNode remove(WikiNode wikiNode) throws SystemException {
101                    return getPersistence().remove(wikiNode);
102            }
103    
104            /**
105             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
106             */
107            public static WikiNode update(WikiNode wikiNode, boolean merge)
108                    throws SystemException {
109                    return getPersistence().update(wikiNode, merge);
110            }
111    
112            /**
113             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
114             */
115            public static WikiNode update(WikiNode wikiNode, boolean merge,
116                    ServiceContext serviceContext) throws SystemException {
117                    return getPersistence().update(wikiNode, merge, serviceContext);
118            }
119    
120            /**
121            * Caches the wiki node in the entity cache if it is enabled.
122            *
123            * @param wikiNode the wiki node to cache
124            */
125            public static void cacheResult(
126                    com.liferay.portlet.wiki.model.WikiNode wikiNode) {
127                    getPersistence().cacheResult(wikiNode);
128            }
129    
130            /**
131            * Caches the wiki nodes in the entity cache if it is enabled.
132            *
133            * @param wikiNodes the wiki nodes to cache
134            */
135            public static void cacheResult(
136                    java.util.List<com.liferay.portlet.wiki.model.WikiNode> wikiNodes) {
137                    getPersistence().cacheResult(wikiNodes);
138            }
139    
140            /**
141            * Creates a new wiki node with the primary key. Does not add the wiki node to the database.
142            *
143            * @param nodeId the primary key for the new wiki node
144            * @return the new wiki node
145            */
146            public static com.liferay.portlet.wiki.model.WikiNode create(long nodeId) {
147                    return getPersistence().create(nodeId);
148            }
149    
150            /**
151            * Removes the wiki node with the primary key from the database. Also notifies the appropriate model listeners.
152            *
153            * @param nodeId the primary key of the wiki node to remove
154            * @return the wiki node that was removed
155            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
156            * @throws SystemException if a system exception occurred
157            */
158            public static com.liferay.portlet.wiki.model.WikiNode remove(long nodeId)
159                    throws com.liferay.portal.kernel.exception.SystemException,
160                            com.liferay.portlet.wiki.NoSuchNodeException {
161                    return getPersistence().remove(nodeId);
162            }
163    
164            public static com.liferay.portlet.wiki.model.WikiNode updateImpl(
165                    com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge)
166                    throws com.liferay.portal.kernel.exception.SystemException {
167                    return getPersistence().updateImpl(wikiNode, merge);
168            }
169    
170            /**
171            * Finds the wiki node with the primary key or throws a {@link com.liferay.portlet.wiki.NoSuchNodeException} if it could not be found.
172            *
173            * @param nodeId the primary key of the wiki node to find
174            * @return the wiki node
175            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
176            * @throws SystemException if a system exception occurred
177            */
178            public static com.liferay.portlet.wiki.model.WikiNode findByPrimaryKey(
179                    long nodeId)
180                    throws com.liferay.portal.kernel.exception.SystemException,
181                            com.liferay.portlet.wiki.NoSuchNodeException {
182                    return getPersistence().findByPrimaryKey(nodeId);
183            }
184    
185            /**
186            * Finds the wiki node with the primary key or returns <code>null</code> if it could not be found.
187            *
188            * @param nodeId the primary key of the wiki node to find
189            * @return the wiki node, or <code>null</code> if a wiki node with the primary key could not be found
190            * @throws SystemException if a system exception occurred
191            */
192            public static com.liferay.portlet.wiki.model.WikiNode fetchByPrimaryKey(
193                    long nodeId) throws com.liferay.portal.kernel.exception.SystemException {
194                    return getPersistence().fetchByPrimaryKey(nodeId);
195            }
196    
197            /**
198            * Finds all the wiki nodes where uuid = &#63;.
199            *
200            * @param uuid the uuid to search with
201            * @return the matching wiki nodes
202            * @throws SystemException if a system exception occurred
203            */
204            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid(
205                    java.lang.String uuid)
206                    throws com.liferay.portal.kernel.exception.SystemException {
207                    return getPersistence().findByUuid(uuid);
208            }
209    
210            /**
211            * Finds a range of all the wiki nodes where uuid = &#63;.
212            *
213            * <p>
214            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
215            * </p>
216            *
217            * @param uuid the uuid to search with
218            * @param start the lower bound of the range of wiki nodes to return
219            * @param end the upper bound of the range of wiki nodes to return (not inclusive)
220            * @return the range of matching wiki nodes
221            * @throws SystemException if a system exception occurred
222            */
223            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid(
224                    java.lang.String uuid, int start, int end)
225                    throws com.liferay.portal.kernel.exception.SystemException {
226                    return getPersistence().findByUuid(uuid, start, end);
227            }
228    
229            /**
230            * Finds an ordered range of all the wiki nodes where uuid = &#63;.
231            *
232            * <p>
233            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
234            * </p>
235            *
236            * @param uuid the uuid to search with
237            * @param start the lower bound of the range of wiki nodes to return
238            * @param end the upper bound of the range of wiki nodes to return (not inclusive)
239            * @param orderByComparator the comparator to order the results by
240            * @return the ordered range of matching wiki nodes
241            * @throws SystemException if a system exception occurred
242            */
243            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid(
244                    java.lang.String uuid, int start, int end,
245                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
246                    throws com.liferay.portal.kernel.exception.SystemException {
247                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
248            }
249    
250            /**
251            * Finds the first wiki node in the ordered set where uuid = &#63;.
252            *
253            * <p>
254            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
255            * </p>
256            *
257            * @param uuid the uuid to search with
258            * @param orderByComparator the comparator to order the set by
259            * @return the first matching wiki node
260            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
261            * @throws SystemException if a system exception occurred
262            */
263            public static com.liferay.portlet.wiki.model.WikiNode findByUuid_First(
264                    java.lang.String uuid,
265                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
266                    throws com.liferay.portal.kernel.exception.SystemException,
267                            com.liferay.portlet.wiki.NoSuchNodeException {
268                    return getPersistence().findByUuid_First(uuid, orderByComparator);
269            }
270    
271            /**
272            * Finds the last wiki node in the ordered set where uuid = &#63;.
273            *
274            * <p>
275            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
276            * </p>
277            *
278            * @param uuid the uuid to search with
279            * @param orderByComparator the comparator to order the set by
280            * @return the last matching wiki node
281            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
282            * @throws SystemException if a system exception occurred
283            */
284            public static com.liferay.portlet.wiki.model.WikiNode findByUuid_Last(
285                    java.lang.String uuid,
286                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
287                    throws com.liferay.portal.kernel.exception.SystemException,
288                            com.liferay.portlet.wiki.NoSuchNodeException {
289                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
290            }
291    
292            /**
293            * Finds the wiki nodes before and after the current wiki node in the ordered set where uuid = &#63;.
294            *
295            * <p>
296            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
297            * </p>
298            *
299            * @param nodeId the primary key of the current wiki node
300            * @param uuid the uuid to search with
301            * @param orderByComparator the comparator to order the set by
302            * @return the previous, current, and next wiki node
303            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
304            * @throws SystemException if a system exception occurred
305            */
306            public static com.liferay.portlet.wiki.model.WikiNode[] findByUuid_PrevAndNext(
307                    long nodeId, java.lang.String uuid,
308                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
309                    throws com.liferay.portal.kernel.exception.SystemException,
310                            com.liferay.portlet.wiki.NoSuchNodeException {
311                    return getPersistence()
312                                       .findByUuid_PrevAndNext(nodeId, uuid, orderByComparator);
313            }
314    
315            /**
316            * Finds the wiki node where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.wiki.NoSuchNodeException} if it could not be found.
317            *
318            * @param uuid the uuid to search with
319            * @param groupId the group ID to search with
320            * @return the matching wiki node
321            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
322            * @throws SystemException if a system exception occurred
323            */
324            public static com.liferay.portlet.wiki.model.WikiNode findByUUID_G(
325                    java.lang.String uuid, long groupId)
326                    throws com.liferay.portal.kernel.exception.SystemException,
327                            com.liferay.portlet.wiki.NoSuchNodeException {
328                    return getPersistence().findByUUID_G(uuid, groupId);
329            }
330    
331            /**
332            * Finds the wiki node where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
333            *
334            * @param uuid the uuid to search with
335            * @param groupId the group ID to search with
336            * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found
337            * @throws SystemException if a system exception occurred
338            */
339            public static com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G(
340                    java.lang.String uuid, long groupId)
341                    throws com.liferay.portal.kernel.exception.SystemException {
342                    return getPersistence().fetchByUUID_G(uuid, groupId);
343            }
344    
345            /**
346            * Finds the wiki node where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
347            *
348            * @param uuid the uuid to search with
349            * @param groupId the group ID to search with
350            * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found
351            * @throws SystemException if a system exception occurred
352            */
353            public static com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G(
354                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
355                    throws com.liferay.portal.kernel.exception.SystemException {
356                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
357            }
358    
359            /**
360            * Finds all the wiki nodes where groupId = &#63;.
361            *
362            * @param groupId the group ID to search with
363            * @return the matching wiki nodes
364            * @throws SystemException if a system exception occurred
365            */
366            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
367                    long groupId)
368                    throws com.liferay.portal.kernel.exception.SystemException {
369                    return getPersistence().findByGroupId(groupId);
370            }
371    
372            /**
373            * Finds a range of all the wiki nodes where groupId = &#63;.
374            *
375            * <p>
376            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
377            * </p>
378            *
379            * @param groupId the group ID to search with
380            * @param start the lower bound of the range of wiki nodes to return
381            * @param end the upper bound of the range of wiki nodes to return (not inclusive)
382            * @return the range of matching wiki nodes
383            * @throws SystemException if a system exception occurred
384            */
385            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
386                    long groupId, int start, int end)
387                    throws com.liferay.portal.kernel.exception.SystemException {
388                    return getPersistence().findByGroupId(groupId, start, end);
389            }
390    
391            /**
392            * Finds an ordered range of all the wiki nodes where groupId = &#63;.
393            *
394            * <p>
395            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
396            * </p>
397            *
398            * @param groupId the group ID to search with
399            * @param start the lower bound of the range of wiki nodes to return
400            * @param end the upper bound of the range of wiki nodes to return (not inclusive)
401            * @param orderByComparator the comparator to order the results by
402            * @return the ordered range of matching wiki nodes
403            * @throws SystemException if a system exception occurred
404            */
405            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
406                    long groupId, int start, int end,
407                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
408                    throws com.liferay.portal.kernel.exception.SystemException {
409                    return getPersistence()
410                                       .findByGroupId(groupId, start, end, orderByComparator);
411            }
412    
413            /**
414            * Finds the first wiki node in the ordered set where groupId = &#63;.
415            *
416            * <p>
417            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
418            * </p>
419            *
420            * @param groupId the group ID to search with
421            * @param orderByComparator the comparator to order the set by
422            * @return the first matching wiki node
423            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
424            * @throws SystemException if a system exception occurred
425            */
426            public static com.liferay.portlet.wiki.model.WikiNode findByGroupId_First(
427                    long groupId,
428                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
429                    throws com.liferay.portal.kernel.exception.SystemException,
430                            com.liferay.portlet.wiki.NoSuchNodeException {
431                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
432            }
433    
434            /**
435            * Finds the last wiki node in the ordered set where groupId = &#63;.
436            *
437            * <p>
438            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
439            * </p>
440            *
441            * @param groupId the group ID to search with
442            * @param orderByComparator the comparator to order the set by
443            * @return the last matching wiki node
444            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
445            * @throws SystemException if a system exception occurred
446            */
447            public static com.liferay.portlet.wiki.model.WikiNode findByGroupId_Last(
448                    long groupId,
449                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
450                    throws com.liferay.portal.kernel.exception.SystemException,
451                            com.liferay.portlet.wiki.NoSuchNodeException {
452                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
453            }
454    
455            /**
456            * Finds the wiki nodes before and after the current wiki node in the ordered set where groupId = &#63;.
457            *
458            * <p>
459            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
460            * </p>
461            *
462            * @param nodeId the primary key of the current wiki node
463            * @param groupId the group ID to search with
464            * @param orderByComparator the comparator to order the set by
465            * @return the previous, current, and next wiki node
466            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
467            * @throws SystemException if a system exception occurred
468            */
469            public static com.liferay.portlet.wiki.model.WikiNode[] findByGroupId_PrevAndNext(
470                    long nodeId, long groupId,
471                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
472                    throws com.liferay.portal.kernel.exception.SystemException,
473                            com.liferay.portlet.wiki.NoSuchNodeException {
474                    return getPersistence()
475                                       .findByGroupId_PrevAndNext(nodeId, groupId, orderByComparator);
476            }
477    
478            /**
479            * Filters by the user's permissions and finds all the wiki nodes where groupId = &#63;.
480            *
481            * @param groupId the group ID to search with
482            * @return the matching wiki nodes that the user has permission to view
483            * @throws SystemException if a system exception occurred
484            */
485            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId(
486                    long groupId)
487                    throws com.liferay.portal.kernel.exception.SystemException {
488                    return getPersistence().filterFindByGroupId(groupId);
489            }
490    
491            /**
492            * Filters by the user's permissions and finds a range of all the wiki nodes where groupId = &#63;.
493            *
494            * <p>
495            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
496            * </p>
497            *
498            * @param groupId the group ID to search with
499            * @param start the lower bound of the range of wiki nodes to return
500            * @param end the upper bound of the range of wiki nodes to return (not inclusive)
501            * @return the range of matching wiki nodes that the user has permission to view
502            * @throws SystemException if a system exception occurred
503            */
504            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId(
505                    long groupId, int start, int end)
506                    throws com.liferay.portal.kernel.exception.SystemException {
507                    return getPersistence().filterFindByGroupId(groupId, start, end);
508            }
509    
510            /**
511            * Filters by the user's permissions and finds an ordered range of all the wiki nodes where groupId = &#63;.
512            *
513            * <p>
514            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
515            * </p>
516            *
517            * @param groupId the group ID to search with
518            * @param start the lower bound of the range of wiki nodes to return
519            * @param end the upper bound of the range of wiki nodes to return (not inclusive)
520            * @param orderByComparator the comparator to order the results by
521            * @return the ordered range of matching wiki nodes that the user has permission to view
522            * @throws SystemException if a system exception occurred
523            */
524            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId(
525                    long groupId, int start, int end,
526                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
527                    throws com.liferay.portal.kernel.exception.SystemException {
528                    return getPersistence()
529                                       .filterFindByGroupId(groupId, start, end, orderByComparator);
530            }
531    
532            /**
533            * Filters the wiki nodes before and after the current wiki node in the ordered set where groupId = &#63;.
534            *
535            * <p>
536            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
537            * </p>
538            *
539            * @param nodeId the primary key of the current wiki node
540            * @param groupId the group ID to search with
541            * @param orderByComparator the comparator to order the set by
542            * @return the previous, current, and next wiki node
543            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
544            * @throws SystemException if a system exception occurred
545            */
546            public static com.liferay.portlet.wiki.model.WikiNode[] filterFindByGroupId_PrevAndNext(
547                    long nodeId, long groupId,
548                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
549                    throws com.liferay.portal.kernel.exception.SystemException,
550                            com.liferay.portlet.wiki.NoSuchNodeException {
551                    return getPersistence()
552                                       .filterFindByGroupId_PrevAndNext(nodeId, groupId,
553                            orderByComparator);
554            }
555    
556            /**
557            * Finds all the wiki nodes where companyId = &#63;.
558            *
559            * @param companyId the company ID to search with
560            * @return the matching wiki nodes
561            * @throws SystemException if a system exception occurred
562            */
563            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
564                    long companyId)
565                    throws com.liferay.portal.kernel.exception.SystemException {
566                    return getPersistence().findByCompanyId(companyId);
567            }
568    
569            /**
570            * Finds a range of all the wiki nodes where companyId = &#63;.
571            *
572            * <p>
573            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
574            * </p>
575            *
576            * @param companyId the company ID to search with
577            * @param start the lower bound of the range of wiki nodes to return
578            * @param end the upper bound of the range of wiki nodes to return (not inclusive)
579            * @return the range of matching wiki nodes
580            * @throws SystemException if a system exception occurred
581            */
582            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
583                    long companyId, int start, int end)
584                    throws com.liferay.portal.kernel.exception.SystemException {
585                    return getPersistence().findByCompanyId(companyId, start, end);
586            }
587    
588            /**
589            * Finds an ordered range of all the wiki nodes where companyId = &#63;.
590            *
591            * <p>
592            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
593            * </p>
594            *
595            * @param companyId the company ID to search with
596            * @param start the lower bound of the range of wiki nodes to return
597            * @param end the upper bound of the range of wiki nodes to return (not inclusive)
598            * @param orderByComparator the comparator to order the results by
599            * @return the ordered range of matching wiki nodes
600            * @throws SystemException if a system exception occurred
601            */
602            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
603                    long companyId, int start, int end,
604                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
605                    throws com.liferay.portal.kernel.exception.SystemException {
606                    return getPersistence()
607                                       .findByCompanyId(companyId, start, end, orderByComparator);
608            }
609    
610            /**
611            * Finds the first wiki node in the ordered set where companyId = &#63;.
612            *
613            * <p>
614            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
615            * </p>
616            *
617            * @param companyId the company ID to search with
618            * @param orderByComparator the comparator to order the set by
619            * @return the first matching wiki node
620            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
621            * @throws SystemException if a system exception occurred
622            */
623            public static com.liferay.portlet.wiki.model.WikiNode findByCompanyId_First(
624                    long companyId,
625                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
626                    throws com.liferay.portal.kernel.exception.SystemException,
627                            com.liferay.portlet.wiki.NoSuchNodeException {
628                    return getPersistence()
629                                       .findByCompanyId_First(companyId, orderByComparator);
630            }
631    
632            /**
633            * Finds the last wiki node in the ordered set where companyId = &#63;.
634            *
635            * <p>
636            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
637            * </p>
638            *
639            * @param companyId the company ID to search with
640            * @param orderByComparator the comparator to order the set by
641            * @return the last matching wiki node
642            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
643            * @throws SystemException if a system exception occurred
644            */
645            public static com.liferay.portlet.wiki.model.WikiNode findByCompanyId_Last(
646                    long companyId,
647                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
648                    throws com.liferay.portal.kernel.exception.SystemException,
649                            com.liferay.portlet.wiki.NoSuchNodeException {
650                    return getPersistence()
651                                       .findByCompanyId_Last(companyId, orderByComparator);
652            }
653    
654            /**
655            * Finds the wiki nodes before and after the current wiki node in the ordered set where companyId = &#63;.
656            *
657            * <p>
658            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
659            * </p>
660            *
661            * @param nodeId the primary key of the current wiki node
662            * @param companyId the company ID to search with
663            * @param orderByComparator the comparator to order the set by
664            * @return the previous, current, and next wiki node
665            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
666            * @throws SystemException if a system exception occurred
667            */
668            public static com.liferay.portlet.wiki.model.WikiNode[] findByCompanyId_PrevAndNext(
669                    long nodeId, long companyId,
670                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
671                    throws com.liferay.portal.kernel.exception.SystemException,
672                            com.liferay.portlet.wiki.NoSuchNodeException {
673                    return getPersistence()
674                                       .findByCompanyId_PrevAndNext(nodeId, companyId,
675                            orderByComparator);
676            }
677    
678            /**
679            * Finds the wiki node where groupId = &#63; and name = &#63; or throws a {@link com.liferay.portlet.wiki.NoSuchNodeException} if it could not be found.
680            *
681            * @param groupId the group ID to search with
682            * @param name the name to search with
683            * @return the matching wiki node
684            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
685            * @throws SystemException if a system exception occurred
686            */
687            public static com.liferay.portlet.wiki.model.WikiNode findByG_N(
688                    long groupId, java.lang.String name)
689                    throws com.liferay.portal.kernel.exception.SystemException,
690                            com.liferay.portlet.wiki.NoSuchNodeException {
691                    return getPersistence().findByG_N(groupId, name);
692            }
693    
694            /**
695            * Finds the wiki node where groupId = &#63; and name = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
696            *
697            * @param groupId the group ID to search with
698            * @param name the name to search with
699            * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found
700            * @throws SystemException if a system exception occurred
701            */
702            public static com.liferay.portlet.wiki.model.WikiNode fetchByG_N(
703                    long groupId, java.lang.String name)
704                    throws com.liferay.portal.kernel.exception.SystemException {
705                    return getPersistence().fetchByG_N(groupId, name);
706            }
707    
708            /**
709            * Finds the wiki node where groupId = &#63; and name = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
710            *
711            * @param groupId the group ID to search with
712            * @param name the name to search with
713            * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found
714            * @throws SystemException if a system exception occurred
715            */
716            public static com.liferay.portlet.wiki.model.WikiNode fetchByG_N(
717                    long groupId, java.lang.String name, boolean retrieveFromCache)
718                    throws com.liferay.portal.kernel.exception.SystemException {
719                    return getPersistence().fetchByG_N(groupId, name, retrieveFromCache);
720            }
721    
722            /**
723            * Finds all the wiki nodes.
724            *
725            * @return the wiki nodes
726            * @throws SystemException if a system exception occurred
727            */
728            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll()
729                    throws com.liferay.portal.kernel.exception.SystemException {
730                    return getPersistence().findAll();
731            }
732    
733            /**
734            * Finds a range of all the wiki nodes.
735            *
736            * <p>
737            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
738            * </p>
739            *
740            * @param start the lower bound of the range of wiki nodes to return
741            * @param end the upper bound of the range of wiki nodes to return (not inclusive)
742            * @return the range of wiki nodes
743            * @throws SystemException if a system exception occurred
744            */
745            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll(
746                    int start, int end)
747                    throws com.liferay.portal.kernel.exception.SystemException {
748                    return getPersistence().findAll(start, end);
749            }
750    
751            /**
752            * Finds an ordered range of all the wiki nodes.
753            *
754            * <p>
755            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
756            * </p>
757            *
758            * @param start the lower bound of the range of wiki nodes to return
759            * @param end the upper bound of the range of wiki nodes to return (not inclusive)
760            * @param orderByComparator the comparator to order the results by
761            * @return the ordered range of wiki nodes
762            * @throws SystemException if a system exception occurred
763            */
764            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll(
765                    int start, int end,
766                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
767                    throws com.liferay.portal.kernel.exception.SystemException {
768                    return getPersistence().findAll(start, end, orderByComparator);
769            }
770    
771            /**
772            * Removes all the wiki nodes where uuid = &#63; from the database.
773            *
774            * @param uuid the uuid to search with
775            * @throws SystemException if a system exception occurred
776            */
777            public static void removeByUuid(java.lang.String uuid)
778                    throws com.liferay.portal.kernel.exception.SystemException {
779                    getPersistence().removeByUuid(uuid);
780            }
781    
782            /**
783            * Removes the wiki node where uuid = &#63; and groupId = &#63; from the database.
784            *
785            * @param uuid the uuid to search with
786            * @param groupId the group ID to search with
787            * @throws SystemException if a system exception occurred
788            */
789            public static void removeByUUID_G(java.lang.String uuid, long groupId)
790                    throws com.liferay.portal.kernel.exception.SystemException,
791                            com.liferay.portlet.wiki.NoSuchNodeException {
792                    getPersistence().removeByUUID_G(uuid, groupId);
793            }
794    
795            /**
796            * Removes all the wiki nodes where groupId = &#63; from the database.
797            *
798            * @param groupId the group ID to search with
799            * @throws SystemException if a system exception occurred
800            */
801            public static void removeByGroupId(long groupId)
802                    throws com.liferay.portal.kernel.exception.SystemException {
803                    getPersistence().removeByGroupId(groupId);
804            }
805    
806            /**
807            * Removes all the wiki nodes where companyId = &#63; from the database.
808            *
809            * @param companyId the company ID to search with
810            * @throws SystemException if a system exception occurred
811            */
812            public static void removeByCompanyId(long companyId)
813                    throws com.liferay.portal.kernel.exception.SystemException {
814                    getPersistence().removeByCompanyId(companyId);
815            }
816    
817            /**
818            * Removes the wiki node where groupId = &#63; and name = &#63; from the database.
819            *
820            * @param groupId the group ID to search with
821            * @param name the name to search with
822            * @throws SystemException if a system exception occurred
823            */
824            public static void removeByG_N(long groupId, java.lang.String name)
825                    throws com.liferay.portal.kernel.exception.SystemException,
826                            com.liferay.portlet.wiki.NoSuchNodeException {
827                    getPersistence().removeByG_N(groupId, name);
828            }
829    
830            /**
831            * Removes all the wiki nodes from the database.
832            *
833            * @throws SystemException if a system exception occurred
834            */
835            public static void removeAll()
836                    throws com.liferay.portal.kernel.exception.SystemException {
837                    getPersistence().removeAll();
838            }
839    
840            /**
841            * Counts all the wiki nodes where uuid = &#63;.
842            *
843            * @param uuid the uuid to search with
844            * @return the number of matching wiki nodes
845            * @throws SystemException if a system exception occurred
846            */
847            public static int countByUuid(java.lang.String uuid)
848                    throws com.liferay.portal.kernel.exception.SystemException {
849                    return getPersistence().countByUuid(uuid);
850            }
851    
852            /**
853            * Counts all the wiki nodes where uuid = &#63; and groupId = &#63;.
854            *
855            * @param uuid the uuid to search with
856            * @param groupId the group ID to search with
857            * @return the number of matching wiki nodes
858            * @throws SystemException if a system exception occurred
859            */
860            public static int countByUUID_G(java.lang.String uuid, long groupId)
861                    throws com.liferay.portal.kernel.exception.SystemException {
862                    return getPersistence().countByUUID_G(uuid, groupId);
863            }
864    
865            /**
866            * Counts all the wiki nodes where groupId = &#63;.
867            *
868            * @param groupId the group ID to search with
869            * @return the number of matching wiki nodes
870            * @throws SystemException if a system exception occurred
871            */
872            public static int countByGroupId(long groupId)
873                    throws com.liferay.portal.kernel.exception.SystemException {
874                    return getPersistence().countByGroupId(groupId);
875            }
876    
877            /**
878            * Filters by the user's permissions and counts all the wiki nodes where groupId = &#63;.
879            *
880            * @param groupId the group ID to search with
881            * @return the number of matching wiki nodes that the user has permission to view
882            * @throws SystemException if a system exception occurred
883            */
884            public static int filterCountByGroupId(long groupId)
885                    throws com.liferay.portal.kernel.exception.SystemException {
886                    return getPersistence().filterCountByGroupId(groupId);
887            }
888    
889            /**
890            * Counts all the wiki nodes where companyId = &#63;.
891            *
892            * @param companyId the company ID to search with
893            * @return the number of matching wiki nodes
894            * @throws SystemException if a system exception occurred
895            */
896            public static int countByCompanyId(long companyId)
897                    throws com.liferay.portal.kernel.exception.SystemException {
898                    return getPersistence().countByCompanyId(companyId);
899            }
900    
901            /**
902            * Counts all the wiki nodes where groupId = &#63; and name = &#63;.
903            *
904            * @param groupId the group ID to search with
905            * @param name the name to search with
906            * @return the number of matching wiki nodes
907            * @throws SystemException if a system exception occurred
908            */
909            public static int countByG_N(long groupId, java.lang.String name)
910                    throws com.liferay.portal.kernel.exception.SystemException {
911                    return getPersistence().countByG_N(groupId, name);
912            }
913    
914            /**
915            * Counts all the wiki nodes.
916            *
917            * @return the number of wiki nodes
918            * @throws SystemException if a system exception occurred
919            */
920            public static int countAll()
921                    throws com.liferay.portal.kernel.exception.SystemException {
922                    return getPersistence().countAll();
923            }
924    
925            public static WikiNodePersistence getPersistence() {
926                    if (_persistence == null) {
927                            _persistence = (WikiNodePersistence)PortalBeanLocatorUtil.locate(WikiNodePersistence.class.getName());
928    
929                            ReferenceRegistry.registerReference(WikiNodeUtil.class,
930                                    "_persistence");
931                    }
932    
933                    return _persistence;
934            }
935    
936            public void setPersistence(WikiNodePersistence persistence) {
937                    _persistence = persistence;
938    
939                    ReferenceRegistry.registerReference(WikiNodeUtil.class, "_persistence");
940            }
941    
942            private static WikiNodePersistence _persistence;
943    }