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
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
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
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            * Returns 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
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            * Returns 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
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            * Returns all the wiki nodes where uuid = &#63;.
199            *
200            * @param uuid the uuid
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            * Returns 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
218            * @param start the lower bound of the range of wiki nodes
219            * @param end the upper bound of the range of wiki nodes (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            * Returns 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
237            * @param start the lower bound of the range of wiki nodes
238            * @param end the upper bound of the range of wiki nodes (not inclusive)
239            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
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            * Returns 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
258            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns 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
279            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns 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
301            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns 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
319            * @param groupId the group ID
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            * Returns 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
335            * @param groupId the group ID
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            * Returns 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
349            * @param groupId the group ID
350            * @param retrieveFromCache whether to use the finder cache
351            * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found
352            * @throws SystemException if a system exception occurred
353            */
354            public static com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G(
355                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
356                    throws com.liferay.portal.kernel.exception.SystemException {
357                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
358            }
359    
360            /**
361            * Returns all the wiki nodes where groupId = &#63;.
362            *
363            * @param groupId the group ID
364            * @return the matching wiki nodes
365            * @throws SystemException if a system exception occurred
366            */
367            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
368                    long groupId)
369                    throws com.liferay.portal.kernel.exception.SystemException {
370                    return getPersistence().findByGroupId(groupId);
371            }
372    
373            /**
374            * Returns a range of all the wiki nodes where groupId = &#63;.
375            *
376            * <p>
377            * 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.
378            * </p>
379            *
380            * @param groupId the group ID
381            * @param start the lower bound of the range of wiki nodes
382            * @param end the upper bound of the range of wiki nodes (not inclusive)
383            * @return the range of matching wiki nodes
384            * @throws SystemException if a system exception occurred
385            */
386            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
387                    long groupId, int start, int end)
388                    throws com.liferay.portal.kernel.exception.SystemException {
389                    return getPersistence().findByGroupId(groupId, start, end);
390            }
391    
392            /**
393            * Returns an ordered range of all the wiki nodes where groupId = &#63;.
394            *
395            * <p>
396            * 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.
397            * </p>
398            *
399            * @param groupId the group ID
400            * @param start the lower bound of the range of wiki nodes
401            * @param end the upper bound of the range of wiki nodes (not inclusive)
402            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
403            * @return the ordered range of matching wiki nodes
404            * @throws SystemException if a system exception occurred
405            */
406            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
407                    long groupId, int start, int end,
408                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
409                    throws com.liferay.portal.kernel.exception.SystemException {
410                    return getPersistence()
411                                       .findByGroupId(groupId, start, end, orderByComparator);
412            }
413    
414            /**
415            * Returns the first wiki node in the ordered set where groupId = &#63;.
416            *
417            * <p>
418            * 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.
419            * </p>
420            *
421            * @param groupId the group ID
422            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
423            * @return the first matching wiki node
424            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
425            * @throws SystemException if a system exception occurred
426            */
427            public static com.liferay.portlet.wiki.model.WikiNode findByGroupId_First(
428                    long groupId,
429                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
430                    throws com.liferay.portal.kernel.exception.SystemException,
431                            com.liferay.portlet.wiki.NoSuchNodeException {
432                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
433            }
434    
435            /**
436            * Returns the last wiki node in the ordered set where groupId = &#63;.
437            *
438            * <p>
439            * 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.
440            * </p>
441            *
442            * @param groupId the group ID
443            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
444            * @return the last matching wiki node
445            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
446            * @throws SystemException if a system exception occurred
447            */
448            public static com.liferay.portlet.wiki.model.WikiNode findByGroupId_Last(
449                    long groupId,
450                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
451                    throws com.liferay.portal.kernel.exception.SystemException,
452                            com.liferay.portlet.wiki.NoSuchNodeException {
453                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
454            }
455    
456            /**
457            * Returns the wiki nodes before and after the current wiki node in the ordered set where groupId = &#63;.
458            *
459            * <p>
460            * 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.
461            * </p>
462            *
463            * @param nodeId the primary key of the current wiki node
464            * @param groupId the group ID
465            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
466            * @return the previous, current, and next wiki node
467            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
468            * @throws SystemException if a system exception occurred
469            */
470            public static com.liferay.portlet.wiki.model.WikiNode[] findByGroupId_PrevAndNext(
471                    long nodeId, long groupId,
472                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
473                    throws com.liferay.portal.kernel.exception.SystemException,
474                            com.liferay.portlet.wiki.NoSuchNodeException {
475                    return getPersistence()
476                                       .findByGroupId_PrevAndNext(nodeId, groupId, orderByComparator);
477            }
478    
479            /**
480            * Returns all the wiki nodes that the user has permission to view where groupId = &#63;.
481            *
482            * @param groupId the group ID
483            * @return the matching wiki nodes that the user has permission to view
484            * @throws SystemException if a system exception occurred
485            */
486            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId(
487                    long groupId)
488                    throws com.liferay.portal.kernel.exception.SystemException {
489                    return getPersistence().filterFindByGroupId(groupId);
490            }
491    
492            /**
493            * Returns a range of all the wiki nodes that the user has permission to view where groupId = &#63;.
494            *
495            * <p>
496            * 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.
497            * </p>
498            *
499            * @param groupId the group ID
500            * @param start the lower bound of the range of wiki nodes
501            * @param end the upper bound of the range of wiki nodes (not inclusive)
502            * @return the range of matching wiki nodes that the user has permission to view
503            * @throws SystemException if a system exception occurred
504            */
505            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId(
506                    long groupId, int start, int end)
507                    throws com.liferay.portal.kernel.exception.SystemException {
508                    return getPersistence().filterFindByGroupId(groupId, start, end);
509            }
510    
511            /**
512            * Returns an ordered range of all the wiki nodes that the user has permissions to view where groupId = &#63;.
513            *
514            * <p>
515            * 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.
516            * </p>
517            *
518            * @param groupId the group ID
519            * @param start the lower bound of the range of wiki nodes
520            * @param end the upper bound of the range of wiki nodes (not inclusive)
521            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
522            * @return the ordered range of matching wiki nodes that the user has permission to view
523            * @throws SystemException if a system exception occurred
524            */
525            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId(
526                    long groupId, int start, int end,
527                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
528                    throws com.liferay.portal.kernel.exception.SystemException {
529                    return getPersistence()
530                                       .filterFindByGroupId(groupId, start, end, orderByComparator);
531            }
532    
533            /**
534            * Returns the wiki nodes before and after the current wiki node in the ordered set of wiki nodes that the user has permission to view where groupId = &#63;.
535            *
536            * @param nodeId the primary key of the current wiki node
537            * @param groupId the group ID
538            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
539            * @return the previous, current, and next wiki node
540            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
541            * @throws SystemException if a system exception occurred
542            */
543            public static com.liferay.portlet.wiki.model.WikiNode[] filterFindByGroupId_PrevAndNext(
544                    long nodeId, long groupId,
545                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
546                    throws com.liferay.portal.kernel.exception.SystemException,
547                            com.liferay.portlet.wiki.NoSuchNodeException {
548                    return getPersistence()
549                                       .filterFindByGroupId_PrevAndNext(nodeId, groupId,
550                            orderByComparator);
551            }
552    
553            /**
554            * Returns all the wiki nodes where companyId = &#63;.
555            *
556            * @param companyId the company ID
557            * @return the matching wiki nodes
558            * @throws SystemException if a system exception occurred
559            */
560            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
561                    long companyId)
562                    throws com.liferay.portal.kernel.exception.SystemException {
563                    return getPersistence().findByCompanyId(companyId);
564            }
565    
566            /**
567            * Returns a range of all the wiki nodes where companyId = &#63;.
568            *
569            * <p>
570            * 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.
571            * </p>
572            *
573            * @param companyId the company ID
574            * @param start the lower bound of the range of wiki nodes
575            * @param end the upper bound of the range of wiki nodes (not inclusive)
576            * @return the range of matching wiki nodes
577            * @throws SystemException if a system exception occurred
578            */
579            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
580                    long companyId, int start, int end)
581                    throws com.liferay.portal.kernel.exception.SystemException {
582                    return getPersistence().findByCompanyId(companyId, start, end);
583            }
584    
585            /**
586            * Returns an ordered range of all the wiki nodes where companyId = &#63;.
587            *
588            * <p>
589            * 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.
590            * </p>
591            *
592            * @param companyId the company ID
593            * @param start the lower bound of the range of wiki nodes
594            * @param end the upper bound of the range of wiki nodes (not inclusive)
595            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
596            * @return the ordered range of matching wiki nodes
597            * @throws SystemException if a system exception occurred
598            */
599            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
600                    long companyId, int start, int end,
601                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
602                    throws com.liferay.portal.kernel.exception.SystemException {
603                    return getPersistence()
604                                       .findByCompanyId(companyId, start, end, orderByComparator);
605            }
606    
607            /**
608            * Returns the first wiki node in the ordered set where companyId = &#63;.
609            *
610            * <p>
611            * 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.
612            * </p>
613            *
614            * @param companyId the company ID
615            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
616            * @return the first matching wiki node
617            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
618            * @throws SystemException if a system exception occurred
619            */
620            public static com.liferay.portlet.wiki.model.WikiNode findByCompanyId_First(
621                    long companyId,
622                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
623                    throws com.liferay.portal.kernel.exception.SystemException,
624                            com.liferay.portlet.wiki.NoSuchNodeException {
625                    return getPersistence()
626                                       .findByCompanyId_First(companyId, orderByComparator);
627            }
628    
629            /**
630            * Returns the last wiki node in the ordered set where companyId = &#63;.
631            *
632            * <p>
633            * 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.
634            * </p>
635            *
636            * @param companyId the company ID
637            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
638            * @return the last matching wiki node
639            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
640            * @throws SystemException if a system exception occurred
641            */
642            public static com.liferay.portlet.wiki.model.WikiNode findByCompanyId_Last(
643                    long companyId,
644                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
645                    throws com.liferay.portal.kernel.exception.SystemException,
646                            com.liferay.portlet.wiki.NoSuchNodeException {
647                    return getPersistence()
648                                       .findByCompanyId_Last(companyId, orderByComparator);
649            }
650    
651            /**
652            * Returns the wiki nodes before and after the current wiki node in the ordered set where companyId = &#63;.
653            *
654            * <p>
655            * 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.
656            * </p>
657            *
658            * @param nodeId the primary key of the current wiki node
659            * @param companyId the company ID
660            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
661            * @return the previous, current, and next wiki node
662            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
663            * @throws SystemException if a system exception occurred
664            */
665            public static com.liferay.portlet.wiki.model.WikiNode[] findByCompanyId_PrevAndNext(
666                    long nodeId, long companyId,
667                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
668                    throws com.liferay.portal.kernel.exception.SystemException,
669                            com.liferay.portlet.wiki.NoSuchNodeException {
670                    return getPersistence()
671                                       .findByCompanyId_PrevAndNext(nodeId, companyId,
672                            orderByComparator);
673            }
674    
675            /**
676            * Returns the wiki node where groupId = &#63; and name = &#63; or throws a {@link com.liferay.portlet.wiki.NoSuchNodeException} if it could not be found.
677            *
678            * @param groupId the group ID
679            * @param name the name
680            * @return the matching wiki node
681            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
682            * @throws SystemException if a system exception occurred
683            */
684            public static com.liferay.portlet.wiki.model.WikiNode findByG_N(
685                    long groupId, java.lang.String name)
686                    throws com.liferay.portal.kernel.exception.SystemException,
687                            com.liferay.portlet.wiki.NoSuchNodeException {
688                    return getPersistence().findByG_N(groupId, name);
689            }
690    
691            /**
692            * Returns the wiki node where groupId = &#63; and name = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
693            *
694            * @param groupId the group ID
695            * @param name the name
696            * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found
697            * @throws SystemException if a system exception occurred
698            */
699            public static com.liferay.portlet.wiki.model.WikiNode fetchByG_N(
700                    long groupId, java.lang.String name)
701                    throws com.liferay.portal.kernel.exception.SystemException {
702                    return getPersistence().fetchByG_N(groupId, name);
703            }
704    
705            /**
706            * Returns 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.
707            *
708            * @param groupId the group ID
709            * @param name the name
710            * @param retrieveFromCache whether to use the finder cache
711            * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found
712            * @throws SystemException if a system exception occurred
713            */
714            public static com.liferay.portlet.wiki.model.WikiNode fetchByG_N(
715                    long groupId, java.lang.String name, boolean retrieveFromCache)
716                    throws com.liferay.portal.kernel.exception.SystemException {
717                    return getPersistence().fetchByG_N(groupId, name, retrieveFromCache);
718            }
719    
720            /**
721            * Returns all the wiki nodes.
722            *
723            * @return the wiki nodes
724            * @throws SystemException if a system exception occurred
725            */
726            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll()
727                    throws com.liferay.portal.kernel.exception.SystemException {
728                    return getPersistence().findAll();
729            }
730    
731            /**
732            * Returns a range of all the wiki nodes.
733            *
734            * <p>
735            * 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.
736            * </p>
737            *
738            * @param start the lower bound of the range of wiki nodes
739            * @param end the upper bound of the range of wiki nodes (not inclusive)
740            * @return the range of wiki nodes
741            * @throws SystemException if a system exception occurred
742            */
743            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll(
744                    int start, int end)
745                    throws com.liferay.portal.kernel.exception.SystemException {
746                    return getPersistence().findAll(start, end);
747            }
748    
749            /**
750            * Returns an ordered range of all the wiki nodes.
751            *
752            * <p>
753            * 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.
754            * </p>
755            *
756            * @param start the lower bound of the range of wiki nodes
757            * @param end the upper bound of the range of wiki nodes (not inclusive)
758            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
759            * @return the ordered range of wiki nodes
760            * @throws SystemException if a system exception occurred
761            */
762            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll(
763                    int start, int end,
764                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
765                    throws com.liferay.portal.kernel.exception.SystemException {
766                    return getPersistence().findAll(start, end, orderByComparator);
767            }
768    
769            /**
770            * Removes all the wiki nodes where uuid = &#63; from the database.
771            *
772            * @param uuid the uuid
773            * @throws SystemException if a system exception occurred
774            */
775            public static void removeByUuid(java.lang.String uuid)
776                    throws com.liferay.portal.kernel.exception.SystemException {
777                    getPersistence().removeByUuid(uuid);
778            }
779    
780            /**
781            * Removes the wiki node where uuid = &#63; and groupId = &#63; from the database.
782            *
783            * @param uuid the uuid
784            * @param groupId the group ID
785            * @throws SystemException if a system exception occurred
786            */
787            public static void removeByUUID_G(java.lang.String uuid, long groupId)
788                    throws com.liferay.portal.kernel.exception.SystemException,
789                            com.liferay.portlet.wiki.NoSuchNodeException {
790                    getPersistence().removeByUUID_G(uuid, groupId);
791            }
792    
793            /**
794            * Removes all the wiki nodes where groupId = &#63; from the database.
795            *
796            * @param groupId the group ID
797            * @throws SystemException if a system exception occurred
798            */
799            public static void removeByGroupId(long groupId)
800                    throws com.liferay.portal.kernel.exception.SystemException {
801                    getPersistence().removeByGroupId(groupId);
802            }
803    
804            /**
805            * Removes all the wiki nodes where companyId = &#63; from the database.
806            *
807            * @param companyId the company ID
808            * @throws SystemException if a system exception occurred
809            */
810            public static void removeByCompanyId(long companyId)
811                    throws com.liferay.portal.kernel.exception.SystemException {
812                    getPersistence().removeByCompanyId(companyId);
813            }
814    
815            /**
816            * Removes the wiki node where groupId = &#63; and name = &#63; from the database.
817            *
818            * @param groupId the group ID
819            * @param name the name
820            * @throws SystemException if a system exception occurred
821            */
822            public static void removeByG_N(long groupId, java.lang.String name)
823                    throws com.liferay.portal.kernel.exception.SystemException,
824                            com.liferay.portlet.wiki.NoSuchNodeException {
825                    getPersistence().removeByG_N(groupId, name);
826            }
827    
828            /**
829            * Removes all the wiki nodes from the database.
830            *
831            * @throws SystemException if a system exception occurred
832            */
833            public static void removeAll()
834                    throws com.liferay.portal.kernel.exception.SystemException {
835                    getPersistence().removeAll();
836            }
837    
838            /**
839            * Returns the number of wiki nodes where uuid = &#63;.
840            *
841            * @param uuid the uuid
842            * @return the number of matching wiki nodes
843            * @throws SystemException if a system exception occurred
844            */
845            public static int countByUuid(java.lang.String uuid)
846                    throws com.liferay.portal.kernel.exception.SystemException {
847                    return getPersistence().countByUuid(uuid);
848            }
849    
850            /**
851            * Returns the number of wiki nodes where uuid = &#63; and groupId = &#63;.
852            *
853            * @param uuid the uuid
854            * @param groupId the group ID
855            * @return the number of matching wiki nodes
856            * @throws SystemException if a system exception occurred
857            */
858            public static int countByUUID_G(java.lang.String uuid, long groupId)
859                    throws com.liferay.portal.kernel.exception.SystemException {
860                    return getPersistence().countByUUID_G(uuid, groupId);
861            }
862    
863            /**
864            * Returns the number of wiki nodes where groupId = &#63;.
865            *
866            * @param groupId the group ID
867            * @return the number of matching wiki nodes
868            * @throws SystemException if a system exception occurred
869            */
870            public static int countByGroupId(long groupId)
871                    throws com.liferay.portal.kernel.exception.SystemException {
872                    return getPersistence().countByGroupId(groupId);
873            }
874    
875            /**
876            * Returns the number of wiki nodes that the user has permission to view where groupId = &#63;.
877            *
878            * @param groupId the group ID
879            * @return the number of matching wiki nodes that the user has permission to view
880            * @throws SystemException if a system exception occurred
881            */
882            public static int filterCountByGroupId(long groupId)
883                    throws com.liferay.portal.kernel.exception.SystemException {
884                    return getPersistence().filterCountByGroupId(groupId);
885            }
886    
887            /**
888            * Returns the number of wiki nodes where companyId = &#63;.
889            *
890            * @param companyId the company ID
891            * @return the number of matching wiki nodes
892            * @throws SystemException if a system exception occurred
893            */
894            public static int countByCompanyId(long companyId)
895                    throws com.liferay.portal.kernel.exception.SystemException {
896                    return getPersistence().countByCompanyId(companyId);
897            }
898    
899            /**
900            * Returns the number of wiki nodes where groupId = &#63; and name = &#63;.
901            *
902            * @param groupId the group ID
903            * @param name the name
904            * @return the number of matching wiki nodes
905            * @throws SystemException if a system exception occurred
906            */
907            public static int countByG_N(long groupId, java.lang.String name)
908                    throws com.liferay.portal.kernel.exception.SystemException {
909                    return getPersistence().countByG_N(groupId, name);
910            }
911    
912            /**
913            * Returns the number of wiki nodes.
914            *
915            * @return the number of wiki nodes
916            * @throws SystemException if a system exception occurred
917            */
918            public static int countAll()
919                    throws com.liferay.portal.kernel.exception.SystemException {
920                    return getPersistence().countAll();
921            }
922    
923            public static WikiNodePersistence getPersistence() {
924                    if (_persistence == null) {
925                            _persistence = (WikiNodePersistence)PortalBeanLocatorUtil.locate(WikiNodePersistence.class.getName());
926    
927                            ReferenceRegistry.registerReference(WikiNodeUtil.class,
928                                    "_persistence");
929                    }
930    
931                    return _persistence;
932            }
933    
934            public void setPersistence(WikiNodePersistence persistence) {
935                    _persistence = persistence;
936    
937                    ReferenceRegistry.registerReference(WikiNodeUtil.class, "_persistence");
938            }
939    
940            private static WikiNodePersistence _persistence;
941    }