001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.wiki.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
021    import com.liferay.portal.kernel.exception.SystemException;
022    import com.liferay.portal.kernel.util.OrderByComparator;
023    import com.liferay.portal.kernel.util.ReferenceRegistry;
024    import com.liferay.portal.service.ServiceContext;
025    
026    import com.liferay.portlet.wiki.model.WikiNode;
027    
028    import java.util.List;
029    
030    /**
031     * 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.
032     *
033     * <p>
034     * Caching information and settings can be found in <code>portal.properties</code>
035     * </p>
036     *
037     * @author Brian Wing Shun Chan
038     * @see WikiNodePersistence
039     * @see WikiNodePersistenceImpl
040     * @generated
041     */
042    @ProviderType
043    public class WikiNodeUtil {
044            /*
045             * NOTE FOR DEVELOPERS:
046             *
047             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
048             */
049    
050            /**
051             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
052             */
053            public static void clearCache() {
054                    getPersistence().clearCache();
055            }
056    
057            /**
058             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
059             */
060            public static void clearCache(WikiNode wikiNode) {
061                    getPersistence().clearCache(wikiNode);
062            }
063    
064            /**
065             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
066             */
067            public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
068                    throws SystemException {
069                    return getPersistence().countWithDynamicQuery(dynamicQuery);
070            }
071    
072            /**
073             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
074             */
075            public static List<WikiNode> findWithDynamicQuery(DynamicQuery dynamicQuery)
076                    throws SystemException {
077                    return getPersistence().findWithDynamicQuery(dynamicQuery);
078            }
079    
080            /**
081             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
082             */
083            public static List<WikiNode> findWithDynamicQuery(
084                    DynamicQuery dynamicQuery, int start, int end)
085                    throws SystemException {
086                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
087            }
088    
089            /**
090             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
091             */
092            public static List<WikiNode> findWithDynamicQuery(
093                    DynamicQuery dynamicQuery, int start, int end,
094                    OrderByComparator orderByComparator) throws SystemException {
095                    return getPersistence()
096                                       .findWithDynamicQuery(dynamicQuery, start, end,
097                            orderByComparator);
098            }
099    
100            /**
101             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
102             */
103            public static WikiNode update(WikiNode wikiNode) throws SystemException {
104                    return getPersistence().update(wikiNode);
105            }
106    
107            /**
108             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
109             */
110            public static WikiNode update(WikiNode wikiNode,
111                    ServiceContext serviceContext) throws SystemException {
112                    return getPersistence().update(wikiNode, serviceContext);
113            }
114    
115            /**
116            * Returns all the wiki nodes where uuid = &#63;.
117            *
118            * @param uuid the uuid
119            * @return the matching wiki nodes
120            * @throws SystemException if a system exception occurred
121            */
122            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid(
123                    java.lang.String uuid)
124                    throws com.liferay.portal.kernel.exception.SystemException {
125                    return getPersistence().findByUuid(uuid);
126            }
127    
128            /**
129            * Returns a range of all the wiki nodes where uuid = &#63;.
130            *
131            * <p>
132            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiNodeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
133            * </p>
134            *
135            * @param uuid the uuid
136            * @param start the lower bound of the range of wiki nodes
137            * @param end the upper bound of the range of wiki nodes (not inclusive)
138            * @return the range of matching wiki nodes
139            * @throws SystemException if a system exception occurred
140            */
141            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid(
142                    java.lang.String uuid, int start, int end)
143                    throws com.liferay.portal.kernel.exception.SystemException {
144                    return getPersistence().findByUuid(uuid, start, end);
145            }
146    
147            /**
148            * Returns an ordered range of all the wiki nodes where uuid = &#63;.
149            *
150            * <p>
151            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiNodeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
152            * </p>
153            *
154            * @param uuid the uuid
155            * @param start the lower bound of the range of wiki nodes
156            * @param end the upper bound of the range of wiki nodes (not inclusive)
157            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
158            * @return the ordered range of matching wiki nodes
159            * @throws SystemException if a system exception occurred
160            */
161            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid(
162                    java.lang.String uuid, int start, int end,
163                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
166            }
167    
168            /**
169            * Returns the first wiki node in the ordered set where uuid = &#63;.
170            *
171            * @param uuid the uuid
172            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
173            * @return the first matching wiki node
174            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public static com.liferay.portlet.wiki.model.WikiNode findByUuid_First(
178                    java.lang.String uuid,
179                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180                    throws com.liferay.portal.kernel.exception.SystemException,
181                            com.liferay.portlet.wiki.NoSuchNodeException {
182                    return getPersistence().findByUuid_First(uuid, orderByComparator);
183            }
184    
185            /**
186            * Returns the first wiki node in the ordered set where uuid = &#63;.
187            *
188            * @param uuid the uuid
189            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
190            * @return the first matching wiki node, or <code>null</code> if a matching wiki node could not be found
191            * @throws SystemException if a system exception occurred
192            */
193            public static com.liferay.portlet.wiki.model.WikiNode fetchByUuid_First(
194                    java.lang.String uuid,
195                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
196                    throws com.liferay.portal.kernel.exception.SystemException {
197                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
198            }
199    
200            /**
201            * Returns the last wiki node in the ordered set where uuid = &#63;.
202            *
203            * @param uuid the uuid
204            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
205            * @return the last matching wiki node
206            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
207            * @throws SystemException if a system exception occurred
208            */
209            public static com.liferay.portlet.wiki.model.WikiNode findByUuid_Last(
210                    java.lang.String uuid,
211                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
212                    throws com.liferay.portal.kernel.exception.SystemException,
213                            com.liferay.portlet.wiki.NoSuchNodeException {
214                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
215            }
216    
217            /**
218            * Returns the last wiki node in the ordered set where uuid = &#63;.
219            *
220            * @param uuid the uuid
221            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
222            * @return the last matching wiki node, or <code>null</code> if a matching wiki node could not be found
223            * @throws SystemException if a system exception occurred
224            */
225            public static com.liferay.portlet.wiki.model.WikiNode fetchByUuid_Last(
226                    java.lang.String uuid,
227                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
228                    throws com.liferay.portal.kernel.exception.SystemException {
229                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
230            }
231    
232            /**
233            * Returns the wiki nodes before and after the current wiki node in the ordered set where uuid = &#63;.
234            *
235            * @param nodeId the primary key of the current wiki node
236            * @param uuid the uuid
237            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
238            * @return the previous, current, and next wiki node
239            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
240            * @throws SystemException if a system exception occurred
241            */
242            public static com.liferay.portlet.wiki.model.WikiNode[] findByUuid_PrevAndNext(
243                    long nodeId, java.lang.String uuid,
244                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
245                    throws com.liferay.portal.kernel.exception.SystemException,
246                            com.liferay.portlet.wiki.NoSuchNodeException {
247                    return getPersistence()
248                                       .findByUuid_PrevAndNext(nodeId, uuid, orderByComparator);
249            }
250    
251            /**
252            * Removes all the wiki nodes where uuid = &#63; from the database.
253            *
254            * @param uuid the uuid
255            * @throws SystemException if a system exception occurred
256            */
257            public static void removeByUuid(java.lang.String uuid)
258                    throws com.liferay.portal.kernel.exception.SystemException {
259                    getPersistence().removeByUuid(uuid);
260            }
261    
262            /**
263            * Returns the number of wiki nodes where uuid = &#63;.
264            *
265            * @param uuid the uuid
266            * @return the number of matching wiki nodes
267            * @throws SystemException if a system exception occurred
268            */
269            public static int countByUuid(java.lang.String uuid)
270                    throws com.liferay.portal.kernel.exception.SystemException {
271                    return getPersistence().countByUuid(uuid);
272            }
273    
274            /**
275            * 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.
276            *
277            * @param uuid the uuid
278            * @param groupId the group ID
279            * @return the matching wiki node
280            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
281            * @throws SystemException if a system exception occurred
282            */
283            public static com.liferay.portlet.wiki.model.WikiNode findByUUID_G(
284                    java.lang.String uuid, long groupId)
285                    throws com.liferay.portal.kernel.exception.SystemException,
286                            com.liferay.portlet.wiki.NoSuchNodeException {
287                    return getPersistence().findByUUID_G(uuid, groupId);
288            }
289    
290            /**
291            * 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.
292            *
293            * @param uuid the uuid
294            * @param groupId the group ID
295            * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found
296            * @throws SystemException if a system exception occurred
297            */
298            public static com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G(
299                    java.lang.String uuid, long groupId)
300                    throws com.liferay.portal.kernel.exception.SystemException {
301                    return getPersistence().fetchByUUID_G(uuid, groupId);
302            }
303    
304            /**
305            * 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.
306            *
307            * @param uuid the uuid
308            * @param groupId the group ID
309            * @param retrieveFromCache whether to use the finder cache
310            * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found
311            * @throws SystemException if a system exception occurred
312            */
313            public static com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G(
314                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
315                    throws com.liferay.portal.kernel.exception.SystemException {
316                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
317            }
318    
319            /**
320            * Removes the wiki node where uuid = &#63; and groupId = &#63; from the database.
321            *
322            * @param uuid the uuid
323            * @param groupId the group ID
324            * @return the wiki node that was removed
325            * @throws SystemException if a system exception occurred
326            */
327            public static com.liferay.portlet.wiki.model.WikiNode removeByUUID_G(
328                    java.lang.String uuid, long groupId)
329                    throws com.liferay.portal.kernel.exception.SystemException,
330                            com.liferay.portlet.wiki.NoSuchNodeException {
331                    return getPersistence().removeByUUID_G(uuid, groupId);
332            }
333    
334            /**
335            * Returns the number of wiki nodes where uuid = &#63; and groupId = &#63;.
336            *
337            * @param uuid the uuid
338            * @param groupId the group ID
339            * @return the number of matching wiki nodes
340            * @throws SystemException if a system exception occurred
341            */
342            public static int countByUUID_G(java.lang.String uuid, long groupId)
343                    throws com.liferay.portal.kernel.exception.SystemException {
344                    return getPersistence().countByUUID_G(uuid, groupId);
345            }
346    
347            /**
348            * Returns all the wiki nodes where uuid = &#63; and companyId = &#63;.
349            *
350            * @param uuid the uuid
351            * @param companyId the company ID
352            * @return the matching wiki nodes
353            * @throws SystemException if a system exception occurred
354            */
355            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid_C(
356                    java.lang.String uuid, long companyId)
357                    throws com.liferay.portal.kernel.exception.SystemException {
358                    return getPersistence().findByUuid_C(uuid, companyId);
359            }
360    
361            /**
362            * Returns a range of all the wiki nodes where uuid = &#63; and companyId = &#63;.
363            *
364            * <p>
365            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiNodeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
366            * </p>
367            *
368            * @param uuid the uuid
369            * @param companyId the company ID
370            * @param start the lower bound of the range of wiki nodes
371            * @param end the upper bound of the range of wiki nodes (not inclusive)
372            * @return the range of matching wiki nodes
373            * @throws SystemException if a system exception occurred
374            */
375            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid_C(
376                    java.lang.String uuid, long companyId, int start, int end)
377                    throws com.liferay.portal.kernel.exception.SystemException {
378                    return getPersistence().findByUuid_C(uuid, companyId, start, end);
379            }
380    
381            /**
382            * Returns an ordered range of all the wiki nodes where uuid = &#63; and companyId = &#63;.
383            *
384            * <p>
385            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiNodeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
386            * </p>
387            *
388            * @param uuid the uuid
389            * @param companyId the company ID
390            * @param start the lower bound of the range of wiki nodes
391            * @param end the upper bound of the range of wiki nodes (not inclusive)
392            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
393            * @return the ordered range of matching wiki nodes
394            * @throws SystemException if a system exception occurred
395            */
396            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid_C(
397                    java.lang.String uuid, long companyId, int start, int end,
398                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
399                    throws com.liferay.portal.kernel.exception.SystemException {
400                    return getPersistence()
401                                       .findByUuid_C(uuid, companyId, start, end, orderByComparator);
402            }
403    
404            /**
405            * Returns the first wiki node in the ordered set where uuid = &#63; and companyId = &#63;.
406            *
407            * @param uuid the uuid
408            * @param companyId the company ID
409            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
410            * @return the first matching wiki node
411            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
412            * @throws SystemException if a system exception occurred
413            */
414            public static com.liferay.portlet.wiki.model.WikiNode findByUuid_C_First(
415                    java.lang.String uuid, long companyId,
416                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
417                    throws com.liferay.portal.kernel.exception.SystemException,
418                            com.liferay.portlet.wiki.NoSuchNodeException {
419                    return getPersistence()
420                                       .findByUuid_C_First(uuid, companyId, orderByComparator);
421            }
422    
423            /**
424            * Returns the first wiki node in the ordered set where uuid = &#63; and companyId = &#63;.
425            *
426            * @param uuid the uuid
427            * @param companyId the company ID
428            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
429            * @return the first matching wiki node, or <code>null</code> if a matching wiki node could not be found
430            * @throws SystemException if a system exception occurred
431            */
432            public static com.liferay.portlet.wiki.model.WikiNode fetchByUuid_C_First(
433                    java.lang.String uuid, long companyId,
434                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
435                    throws com.liferay.portal.kernel.exception.SystemException {
436                    return getPersistence()
437                                       .fetchByUuid_C_First(uuid, companyId, orderByComparator);
438            }
439    
440            /**
441            * Returns the last wiki node in the ordered set where uuid = &#63; and companyId = &#63;.
442            *
443            * @param uuid the uuid
444            * @param companyId the company ID
445            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
446            * @return the last matching wiki node
447            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
448            * @throws SystemException if a system exception occurred
449            */
450            public static com.liferay.portlet.wiki.model.WikiNode findByUuid_C_Last(
451                    java.lang.String uuid, long companyId,
452                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
453                    throws com.liferay.portal.kernel.exception.SystemException,
454                            com.liferay.portlet.wiki.NoSuchNodeException {
455                    return getPersistence()
456                                       .findByUuid_C_Last(uuid, companyId, orderByComparator);
457            }
458    
459            /**
460            * Returns the last wiki node in the ordered set where uuid = &#63; and companyId = &#63;.
461            *
462            * @param uuid the uuid
463            * @param companyId the company ID
464            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
465            * @return the last matching wiki node, or <code>null</code> if a matching wiki node could not be found
466            * @throws SystemException if a system exception occurred
467            */
468            public static com.liferay.portlet.wiki.model.WikiNode fetchByUuid_C_Last(
469                    java.lang.String uuid, long companyId,
470                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
471                    throws com.liferay.portal.kernel.exception.SystemException {
472                    return getPersistence()
473                                       .fetchByUuid_C_Last(uuid, companyId, orderByComparator);
474            }
475    
476            /**
477            * Returns the wiki nodes before and after the current wiki node in the ordered set where uuid = &#63; and companyId = &#63;.
478            *
479            * @param nodeId the primary key of the current wiki node
480            * @param uuid the uuid
481            * @param companyId the company ID
482            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
483            * @return the previous, current, and next wiki node
484            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
485            * @throws SystemException if a system exception occurred
486            */
487            public static com.liferay.portlet.wiki.model.WikiNode[] findByUuid_C_PrevAndNext(
488                    long nodeId, java.lang.String uuid, long companyId,
489                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
490                    throws com.liferay.portal.kernel.exception.SystemException,
491                            com.liferay.portlet.wiki.NoSuchNodeException {
492                    return getPersistence()
493                                       .findByUuid_C_PrevAndNext(nodeId, uuid, companyId,
494                            orderByComparator);
495            }
496    
497            /**
498            * Removes all the wiki nodes where uuid = &#63; and companyId = &#63; from the database.
499            *
500            * @param uuid the uuid
501            * @param companyId the company ID
502            * @throws SystemException if a system exception occurred
503            */
504            public static void removeByUuid_C(java.lang.String uuid, long companyId)
505                    throws com.liferay.portal.kernel.exception.SystemException {
506                    getPersistence().removeByUuid_C(uuid, companyId);
507            }
508    
509            /**
510            * Returns the number of wiki nodes where uuid = &#63; and companyId = &#63;.
511            *
512            * @param uuid the uuid
513            * @param companyId the company ID
514            * @return the number of matching wiki nodes
515            * @throws SystemException if a system exception occurred
516            */
517            public static int countByUuid_C(java.lang.String uuid, long companyId)
518                    throws com.liferay.portal.kernel.exception.SystemException {
519                    return getPersistence().countByUuid_C(uuid, companyId);
520            }
521    
522            /**
523            * Returns all the wiki nodes where groupId = &#63;.
524            *
525            * @param groupId the group ID
526            * @return the matching wiki nodes
527            * @throws SystemException if a system exception occurred
528            */
529            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
530                    long groupId)
531                    throws com.liferay.portal.kernel.exception.SystemException {
532                    return getPersistence().findByGroupId(groupId);
533            }
534    
535            /**
536            * Returns a range of all the wiki nodes where groupId = &#63;.
537            *
538            * <p>
539            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiNodeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
540            * </p>
541            *
542            * @param groupId the group ID
543            * @param start the lower bound of the range of wiki nodes
544            * @param end the upper bound of the range of wiki nodes (not inclusive)
545            * @return the range of matching wiki nodes
546            * @throws SystemException if a system exception occurred
547            */
548            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
549                    long groupId, int start, int end)
550                    throws com.liferay.portal.kernel.exception.SystemException {
551                    return getPersistence().findByGroupId(groupId, start, end);
552            }
553    
554            /**
555            * Returns an ordered range of all the wiki nodes where groupId = &#63;.
556            *
557            * <p>
558            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiNodeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
559            * </p>
560            *
561            * @param groupId the group ID
562            * @param start the lower bound of the range of wiki nodes
563            * @param end the upper bound of the range of wiki nodes (not inclusive)
564            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
565            * @return the ordered range of matching wiki nodes
566            * @throws SystemException if a system exception occurred
567            */
568            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
569                    long groupId, int start, int end,
570                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
571                    throws com.liferay.portal.kernel.exception.SystemException {
572                    return getPersistence()
573                                       .findByGroupId(groupId, start, end, orderByComparator);
574            }
575    
576            /**
577            * Returns the first wiki node in the ordered set where groupId = &#63;.
578            *
579            * @param groupId the group ID
580            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
581            * @return the first matching wiki node
582            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
583            * @throws SystemException if a system exception occurred
584            */
585            public static com.liferay.portlet.wiki.model.WikiNode findByGroupId_First(
586                    long groupId,
587                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
588                    throws com.liferay.portal.kernel.exception.SystemException,
589                            com.liferay.portlet.wiki.NoSuchNodeException {
590                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
591            }
592    
593            /**
594            * Returns the first wiki node in the ordered set where groupId = &#63;.
595            *
596            * @param groupId the group ID
597            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
598            * @return the first matching wiki node, or <code>null</code> if a matching wiki node could not be found
599            * @throws SystemException if a system exception occurred
600            */
601            public static com.liferay.portlet.wiki.model.WikiNode fetchByGroupId_First(
602                    long groupId,
603                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
604                    throws com.liferay.portal.kernel.exception.SystemException {
605                    return getPersistence().fetchByGroupId_First(groupId, orderByComparator);
606            }
607    
608            /**
609            * Returns the last wiki node in the ordered set where groupId = &#63;.
610            *
611            * @param groupId the group ID
612            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
613            * @return the last matching wiki node
614            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
615            * @throws SystemException if a system exception occurred
616            */
617            public static com.liferay.portlet.wiki.model.WikiNode findByGroupId_Last(
618                    long groupId,
619                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
620                    throws com.liferay.portal.kernel.exception.SystemException,
621                            com.liferay.portlet.wiki.NoSuchNodeException {
622                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
623            }
624    
625            /**
626            * Returns the last wiki node in the ordered set where groupId = &#63;.
627            *
628            * @param groupId the group ID
629            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
630            * @return the last matching wiki node, or <code>null</code> if a matching wiki node could not be found
631            * @throws SystemException if a system exception occurred
632            */
633            public static com.liferay.portlet.wiki.model.WikiNode fetchByGroupId_Last(
634                    long groupId,
635                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
636                    throws com.liferay.portal.kernel.exception.SystemException {
637                    return getPersistence().fetchByGroupId_Last(groupId, orderByComparator);
638            }
639    
640            /**
641            * Returns the wiki nodes before and after the current wiki node in the ordered set where groupId = &#63;.
642            *
643            * @param nodeId the primary key of the current wiki node
644            * @param groupId the group ID
645            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
646            * @return the previous, current, and next wiki node
647            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
648            * @throws SystemException if a system exception occurred
649            */
650            public static com.liferay.portlet.wiki.model.WikiNode[] findByGroupId_PrevAndNext(
651                    long nodeId, long groupId,
652                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
653                    throws com.liferay.portal.kernel.exception.SystemException,
654                            com.liferay.portlet.wiki.NoSuchNodeException {
655                    return getPersistence()
656                                       .findByGroupId_PrevAndNext(nodeId, groupId, orderByComparator);
657            }
658    
659            /**
660            * Returns all the wiki nodes that the user has permission to view where groupId = &#63;.
661            *
662            * @param groupId the group ID
663            * @return the matching wiki nodes that the user has permission to view
664            * @throws SystemException if a system exception occurred
665            */
666            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId(
667                    long groupId)
668                    throws com.liferay.portal.kernel.exception.SystemException {
669                    return getPersistence().filterFindByGroupId(groupId);
670            }
671    
672            /**
673            * Returns a range of all the wiki nodes that the user has permission to view where groupId = &#63;.
674            *
675            * <p>
676            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiNodeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
677            * </p>
678            *
679            * @param groupId the group ID
680            * @param start the lower bound of the range of wiki nodes
681            * @param end the upper bound of the range of wiki nodes (not inclusive)
682            * @return the range of matching wiki nodes that the user has permission to view
683            * @throws SystemException if a system exception occurred
684            */
685            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId(
686                    long groupId, int start, int end)
687                    throws com.liferay.portal.kernel.exception.SystemException {
688                    return getPersistence().filterFindByGroupId(groupId, start, end);
689            }
690    
691            /**
692            * Returns an ordered range of all the wiki nodes that the user has permissions to view where groupId = &#63;.
693            *
694            * <p>
695            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiNodeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
696            * </p>
697            *
698            * @param groupId the group ID
699            * @param start the lower bound of the range of wiki nodes
700            * @param end the upper bound of the range of wiki nodes (not inclusive)
701            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
702            * @return the ordered range of matching wiki nodes that the user has permission to view
703            * @throws SystemException if a system exception occurred
704            */
705            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId(
706                    long groupId, int start, int end,
707                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
708                    throws com.liferay.portal.kernel.exception.SystemException {
709                    return getPersistence()
710                                       .filterFindByGroupId(groupId, start, end, orderByComparator);
711            }
712    
713            /**
714            * 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;.
715            *
716            * @param nodeId the primary key of the current wiki node
717            * @param groupId the group ID
718            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
719            * @return the previous, current, and next wiki node
720            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
721            * @throws SystemException if a system exception occurred
722            */
723            public static com.liferay.portlet.wiki.model.WikiNode[] filterFindByGroupId_PrevAndNext(
724                    long nodeId, long groupId,
725                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
726                    throws com.liferay.portal.kernel.exception.SystemException,
727                            com.liferay.portlet.wiki.NoSuchNodeException {
728                    return getPersistence()
729                                       .filterFindByGroupId_PrevAndNext(nodeId, groupId,
730                            orderByComparator);
731            }
732    
733            /**
734            * Removes all the wiki nodes where groupId = &#63; from the database.
735            *
736            * @param groupId the group ID
737            * @throws SystemException if a system exception occurred
738            */
739            public static void removeByGroupId(long groupId)
740                    throws com.liferay.portal.kernel.exception.SystemException {
741                    getPersistence().removeByGroupId(groupId);
742            }
743    
744            /**
745            * Returns the number of wiki nodes where groupId = &#63;.
746            *
747            * @param groupId the group ID
748            * @return the number of matching wiki nodes
749            * @throws SystemException if a system exception occurred
750            */
751            public static int countByGroupId(long groupId)
752                    throws com.liferay.portal.kernel.exception.SystemException {
753                    return getPersistence().countByGroupId(groupId);
754            }
755    
756            /**
757            * Returns the number of wiki nodes that the user has permission to view where groupId = &#63;.
758            *
759            * @param groupId the group ID
760            * @return the number of matching wiki nodes that the user has permission to view
761            * @throws SystemException if a system exception occurred
762            */
763            public static int filterCountByGroupId(long groupId)
764                    throws com.liferay.portal.kernel.exception.SystemException {
765                    return getPersistence().filterCountByGroupId(groupId);
766            }
767    
768            /**
769            * Returns all the wiki nodes where companyId = &#63;.
770            *
771            * @param companyId the company ID
772            * @return the matching wiki nodes
773            * @throws SystemException if a system exception occurred
774            */
775            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
776                    long companyId)
777                    throws com.liferay.portal.kernel.exception.SystemException {
778                    return getPersistence().findByCompanyId(companyId);
779            }
780    
781            /**
782            * Returns a range of all the wiki nodes where companyId = &#63;.
783            *
784            * <p>
785            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiNodeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
786            * </p>
787            *
788            * @param companyId the company ID
789            * @param start the lower bound of the range of wiki nodes
790            * @param end the upper bound of the range of wiki nodes (not inclusive)
791            * @return the range of matching wiki nodes
792            * @throws SystemException if a system exception occurred
793            */
794            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
795                    long companyId, int start, int end)
796                    throws com.liferay.portal.kernel.exception.SystemException {
797                    return getPersistence().findByCompanyId(companyId, start, end);
798            }
799    
800            /**
801            * Returns an ordered range of all the wiki nodes where companyId = &#63;.
802            *
803            * <p>
804            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiNodeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
805            * </p>
806            *
807            * @param companyId the company ID
808            * @param start the lower bound of the range of wiki nodes
809            * @param end the upper bound of the range of wiki nodes (not inclusive)
810            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
811            * @return the ordered range of matching wiki nodes
812            * @throws SystemException if a system exception occurred
813            */
814            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
815                    long companyId, int start, int end,
816                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
817                    throws com.liferay.portal.kernel.exception.SystemException {
818                    return getPersistence()
819                                       .findByCompanyId(companyId, start, end, orderByComparator);
820            }
821    
822            /**
823            * Returns the first wiki node in the ordered set where companyId = &#63;.
824            *
825            * @param companyId the company ID
826            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
827            * @return the first matching wiki node
828            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
829            * @throws SystemException if a system exception occurred
830            */
831            public static com.liferay.portlet.wiki.model.WikiNode findByCompanyId_First(
832                    long companyId,
833                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
834                    throws com.liferay.portal.kernel.exception.SystemException,
835                            com.liferay.portlet.wiki.NoSuchNodeException {
836                    return getPersistence()
837                                       .findByCompanyId_First(companyId, orderByComparator);
838            }
839    
840            /**
841            * Returns the first wiki node in the ordered set where companyId = &#63;.
842            *
843            * @param companyId the company ID
844            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
845            * @return the first matching wiki node, or <code>null</code> if a matching wiki node could not be found
846            * @throws SystemException if a system exception occurred
847            */
848            public static com.liferay.portlet.wiki.model.WikiNode fetchByCompanyId_First(
849                    long companyId,
850                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
851                    throws com.liferay.portal.kernel.exception.SystemException {
852                    return getPersistence()
853                                       .fetchByCompanyId_First(companyId, orderByComparator);
854            }
855    
856            /**
857            * Returns the last wiki node in the ordered set where companyId = &#63;.
858            *
859            * @param companyId the company ID
860            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
861            * @return the last matching wiki node
862            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
863            * @throws SystemException if a system exception occurred
864            */
865            public static com.liferay.portlet.wiki.model.WikiNode findByCompanyId_Last(
866                    long companyId,
867                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
868                    throws com.liferay.portal.kernel.exception.SystemException,
869                            com.liferay.portlet.wiki.NoSuchNodeException {
870                    return getPersistence()
871                                       .findByCompanyId_Last(companyId, orderByComparator);
872            }
873    
874            /**
875            * Returns the last wiki node in the ordered set where companyId = &#63;.
876            *
877            * @param companyId the company ID
878            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
879            * @return the last matching wiki node, or <code>null</code> if a matching wiki node could not be found
880            * @throws SystemException if a system exception occurred
881            */
882            public static com.liferay.portlet.wiki.model.WikiNode fetchByCompanyId_Last(
883                    long companyId,
884                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
885                    throws com.liferay.portal.kernel.exception.SystemException {
886                    return getPersistence()
887                                       .fetchByCompanyId_Last(companyId, orderByComparator);
888            }
889    
890            /**
891            * Returns the wiki nodes before and after the current wiki node in the ordered set where companyId = &#63;.
892            *
893            * @param nodeId the primary key of the current wiki node
894            * @param companyId the company ID
895            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
896            * @return the previous, current, and next wiki node
897            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
898            * @throws SystemException if a system exception occurred
899            */
900            public static com.liferay.portlet.wiki.model.WikiNode[] findByCompanyId_PrevAndNext(
901                    long nodeId, long companyId,
902                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
903                    throws com.liferay.portal.kernel.exception.SystemException,
904                            com.liferay.portlet.wiki.NoSuchNodeException {
905                    return getPersistence()
906                                       .findByCompanyId_PrevAndNext(nodeId, companyId,
907                            orderByComparator);
908            }
909    
910            /**
911            * Removes all the wiki nodes where companyId = &#63; from the database.
912            *
913            * @param companyId the company ID
914            * @throws SystemException if a system exception occurred
915            */
916            public static void removeByCompanyId(long companyId)
917                    throws com.liferay.portal.kernel.exception.SystemException {
918                    getPersistence().removeByCompanyId(companyId);
919            }
920    
921            /**
922            * Returns the number of wiki nodes where companyId = &#63;.
923            *
924            * @param companyId the company ID
925            * @return the number of matching wiki nodes
926            * @throws SystemException if a system exception occurred
927            */
928            public static int countByCompanyId(long companyId)
929                    throws com.liferay.portal.kernel.exception.SystemException {
930                    return getPersistence().countByCompanyId(companyId);
931            }
932    
933            /**
934            * 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.
935            *
936            * @param groupId the group ID
937            * @param name the name
938            * @return the matching wiki node
939            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
940            * @throws SystemException if a system exception occurred
941            */
942            public static com.liferay.portlet.wiki.model.WikiNode findByG_N(
943                    long groupId, java.lang.String name)
944                    throws com.liferay.portal.kernel.exception.SystemException,
945                            com.liferay.portlet.wiki.NoSuchNodeException {
946                    return getPersistence().findByG_N(groupId, name);
947            }
948    
949            /**
950            * 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.
951            *
952            * @param groupId the group ID
953            * @param name the name
954            * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found
955            * @throws SystemException if a system exception occurred
956            */
957            public static com.liferay.portlet.wiki.model.WikiNode fetchByG_N(
958                    long groupId, java.lang.String name)
959                    throws com.liferay.portal.kernel.exception.SystemException {
960                    return getPersistence().fetchByG_N(groupId, name);
961            }
962    
963            /**
964            * 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.
965            *
966            * @param groupId the group ID
967            * @param name the name
968            * @param retrieveFromCache whether to use the finder cache
969            * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found
970            * @throws SystemException if a system exception occurred
971            */
972            public static com.liferay.portlet.wiki.model.WikiNode fetchByG_N(
973                    long groupId, java.lang.String name, boolean retrieveFromCache)
974                    throws com.liferay.portal.kernel.exception.SystemException {
975                    return getPersistence().fetchByG_N(groupId, name, retrieveFromCache);
976            }
977    
978            /**
979            * Removes the wiki node where groupId = &#63; and name = &#63; from the database.
980            *
981            * @param groupId the group ID
982            * @param name the name
983            * @return the wiki node that was removed
984            * @throws SystemException if a system exception occurred
985            */
986            public static com.liferay.portlet.wiki.model.WikiNode removeByG_N(
987                    long groupId, java.lang.String name)
988                    throws com.liferay.portal.kernel.exception.SystemException,
989                            com.liferay.portlet.wiki.NoSuchNodeException {
990                    return getPersistence().removeByG_N(groupId, name);
991            }
992    
993            /**
994            * Returns the number of wiki nodes where groupId = &#63; and name = &#63;.
995            *
996            * @param groupId the group ID
997            * @param name the name
998            * @return the number of matching wiki nodes
999            * @throws SystemException if a system exception occurred
1000            */
1001            public static int countByG_N(long groupId, java.lang.String name)
1002                    throws com.liferay.portal.kernel.exception.SystemException {
1003                    return getPersistence().countByG_N(groupId, name);
1004            }
1005    
1006            /**
1007            * Returns all the wiki nodes where groupId = &#63; and status = &#63;.
1008            *
1009            * @param groupId the group ID
1010            * @param status the status
1011            * @return the matching wiki nodes
1012            * @throws SystemException if a system exception occurred
1013            */
1014            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByG_S(
1015                    long groupId, int status)
1016                    throws com.liferay.portal.kernel.exception.SystemException {
1017                    return getPersistence().findByG_S(groupId, status);
1018            }
1019    
1020            /**
1021            * Returns a range of all the wiki nodes where groupId = &#63; and status = &#63;.
1022            *
1023            * <p>
1024            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiNodeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1025            * </p>
1026            *
1027            * @param groupId the group ID
1028            * @param status the status
1029            * @param start the lower bound of the range of wiki nodes
1030            * @param end the upper bound of the range of wiki nodes (not inclusive)
1031            * @return the range of matching wiki nodes
1032            * @throws SystemException if a system exception occurred
1033            */
1034            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByG_S(
1035                    long groupId, int status, int start, int end)
1036                    throws com.liferay.portal.kernel.exception.SystemException {
1037                    return getPersistence().findByG_S(groupId, status, start, end);
1038            }
1039    
1040            /**
1041            * Returns an ordered range of all the wiki nodes where groupId = &#63; and status = &#63;.
1042            *
1043            * <p>
1044            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiNodeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1045            * </p>
1046            *
1047            * @param groupId the group ID
1048            * @param status the status
1049            * @param start the lower bound of the range of wiki nodes
1050            * @param end the upper bound of the range of wiki nodes (not inclusive)
1051            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1052            * @return the ordered range of matching wiki nodes
1053            * @throws SystemException if a system exception occurred
1054            */
1055            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByG_S(
1056                    long groupId, int status, int start, int end,
1057                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1058                    throws com.liferay.portal.kernel.exception.SystemException {
1059                    return getPersistence()
1060                                       .findByG_S(groupId, status, start, end, orderByComparator);
1061            }
1062    
1063            /**
1064            * Returns the first wiki node in the ordered set where groupId = &#63; and status = &#63;.
1065            *
1066            * @param groupId the group ID
1067            * @param status the status
1068            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1069            * @return the first matching wiki node
1070            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
1071            * @throws SystemException if a system exception occurred
1072            */
1073            public static com.liferay.portlet.wiki.model.WikiNode findByG_S_First(
1074                    long groupId, int status,
1075                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1076                    throws com.liferay.portal.kernel.exception.SystemException,
1077                            com.liferay.portlet.wiki.NoSuchNodeException {
1078                    return getPersistence()
1079                                       .findByG_S_First(groupId, status, orderByComparator);
1080            }
1081    
1082            /**
1083            * Returns the first wiki node in the ordered set where groupId = &#63; and status = &#63;.
1084            *
1085            * @param groupId the group ID
1086            * @param status the status
1087            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1088            * @return the first matching wiki node, or <code>null</code> if a matching wiki node could not be found
1089            * @throws SystemException if a system exception occurred
1090            */
1091            public static com.liferay.portlet.wiki.model.WikiNode fetchByG_S_First(
1092                    long groupId, int status,
1093                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1094                    throws com.liferay.portal.kernel.exception.SystemException {
1095                    return getPersistence()
1096                                       .fetchByG_S_First(groupId, status, orderByComparator);
1097            }
1098    
1099            /**
1100            * Returns the last wiki node in the ordered set where groupId = &#63; and status = &#63;.
1101            *
1102            * @param groupId the group ID
1103            * @param status the status
1104            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1105            * @return the last matching wiki node
1106            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
1107            * @throws SystemException if a system exception occurred
1108            */
1109            public static com.liferay.portlet.wiki.model.WikiNode findByG_S_Last(
1110                    long groupId, int status,
1111                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1112                    throws com.liferay.portal.kernel.exception.SystemException,
1113                            com.liferay.portlet.wiki.NoSuchNodeException {
1114                    return getPersistence()
1115                                       .findByG_S_Last(groupId, status, orderByComparator);
1116            }
1117    
1118            /**
1119            * Returns the last wiki node in the ordered set where groupId = &#63; and status = &#63;.
1120            *
1121            * @param groupId the group ID
1122            * @param status the status
1123            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1124            * @return the last matching wiki node, or <code>null</code> if a matching wiki node could not be found
1125            * @throws SystemException if a system exception occurred
1126            */
1127            public static com.liferay.portlet.wiki.model.WikiNode fetchByG_S_Last(
1128                    long groupId, int status,
1129                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1130                    throws com.liferay.portal.kernel.exception.SystemException {
1131                    return getPersistence()
1132                                       .fetchByG_S_Last(groupId, status, orderByComparator);
1133            }
1134    
1135            /**
1136            * Returns the wiki nodes before and after the current wiki node in the ordered set where groupId = &#63; and status = &#63;.
1137            *
1138            * @param nodeId the primary key of the current wiki node
1139            * @param groupId the group ID
1140            * @param status the status
1141            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1142            * @return the previous, current, and next wiki node
1143            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
1144            * @throws SystemException if a system exception occurred
1145            */
1146            public static com.liferay.portlet.wiki.model.WikiNode[] findByG_S_PrevAndNext(
1147                    long nodeId, long groupId, int status,
1148                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1149                    throws com.liferay.portal.kernel.exception.SystemException,
1150                            com.liferay.portlet.wiki.NoSuchNodeException {
1151                    return getPersistence()
1152                                       .findByG_S_PrevAndNext(nodeId, groupId, status,
1153                            orderByComparator);
1154            }
1155    
1156            /**
1157            * Returns all the wiki nodes that the user has permission to view where groupId = &#63; and status = &#63;.
1158            *
1159            * @param groupId the group ID
1160            * @param status the status
1161            * @return the matching wiki nodes that the user has permission to view
1162            * @throws SystemException if a system exception occurred
1163            */
1164            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByG_S(
1165                    long groupId, int status)
1166                    throws com.liferay.portal.kernel.exception.SystemException {
1167                    return getPersistence().filterFindByG_S(groupId, status);
1168            }
1169    
1170            /**
1171            * Returns a range of all the wiki nodes that the user has permission to view where groupId = &#63; and status = &#63;.
1172            *
1173            * <p>
1174            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiNodeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1175            * </p>
1176            *
1177            * @param groupId the group ID
1178            * @param status the status
1179            * @param start the lower bound of the range of wiki nodes
1180            * @param end the upper bound of the range of wiki nodes (not inclusive)
1181            * @return the range of matching wiki nodes that the user has permission to view
1182            * @throws SystemException if a system exception occurred
1183            */
1184            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByG_S(
1185                    long groupId, int status, int start, int end)
1186                    throws com.liferay.portal.kernel.exception.SystemException {
1187                    return getPersistence().filterFindByG_S(groupId, status, start, end);
1188            }
1189    
1190            /**
1191            * Returns an ordered range of all the wiki nodes that the user has permissions to view where groupId = &#63; and status = &#63;.
1192            *
1193            * <p>
1194            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiNodeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1195            * </p>
1196            *
1197            * @param groupId the group ID
1198            * @param status the status
1199            * @param start the lower bound of the range of wiki nodes
1200            * @param end the upper bound of the range of wiki nodes (not inclusive)
1201            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1202            * @return the ordered range of matching wiki nodes that the user has permission to view
1203            * @throws SystemException if a system exception occurred
1204            */
1205            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByG_S(
1206                    long groupId, int status, int start, int end,
1207                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1208                    throws com.liferay.portal.kernel.exception.SystemException {
1209                    return getPersistence()
1210                                       .filterFindByG_S(groupId, status, start, end,
1211                            orderByComparator);
1212            }
1213    
1214            /**
1215            * 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; and status = &#63;.
1216            *
1217            * @param nodeId the primary key of the current wiki node
1218            * @param groupId the group ID
1219            * @param status the status
1220            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1221            * @return the previous, current, and next wiki node
1222            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
1223            * @throws SystemException if a system exception occurred
1224            */
1225            public static com.liferay.portlet.wiki.model.WikiNode[] filterFindByG_S_PrevAndNext(
1226                    long nodeId, long groupId, int status,
1227                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1228                    throws com.liferay.portal.kernel.exception.SystemException,
1229                            com.liferay.portlet.wiki.NoSuchNodeException {
1230                    return getPersistence()
1231                                       .filterFindByG_S_PrevAndNext(nodeId, groupId, status,
1232                            orderByComparator);
1233            }
1234    
1235            /**
1236            * Removes all the wiki nodes where groupId = &#63; and status = &#63; from the database.
1237            *
1238            * @param groupId the group ID
1239            * @param status the status
1240            * @throws SystemException if a system exception occurred
1241            */
1242            public static void removeByG_S(long groupId, int status)
1243                    throws com.liferay.portal.kernel.exception.SystemException {
1244                    getPersistence().removeByG_S(groupId, status);
1245            }
1246    
1247            /**
1248            * Returns the number of wiki nodes where groupId = &#63; and status = &#63;.
1249            *
1250            * @param groupId the group ID
1251            * @param status the status
1252            * @return the number of matching wiki nodes
1253            * @throws SystemException if a system exception occurred
1254            */
1255            public static int countByG_S(long groupId, int status)
1256                    throws com.liferay.portal.kernel.exception.SystemException {
1257                    return getPersistence().countByG_S(groupId, status);
1258            }
1259    
1260            /**
1261            * Returns the number of wiki nodes that the user has permission to view where groupId = &#63; and status = &#63;.
1262            *
1263            * @param groupId the group ID
1264            * @param status the status
1265            * @return the number of matching wiki nodes that the user has permission to view
1266            * @throws SystemException if a system exception occurred
1267            */
1268            public static int filterCountByG_S(long groupId, int status)
1269                    throws com.liferay.portal.kernel.exception.SystemException {
1270                    return getPersistence().filterCountByG_S(groupId, status);
1271            }
1272    
1273            /**
1274            * Returns all the wiki nodes where companyId = &#63; and status = &#63;.
1275            *
1276            * @param companyId the company ID
1277            * @param status the status
1278            * @return the matching wiki nodes
1279            * @throws SystemException if a system exception occurred
1280            */
1281            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByC_S(
1282                    long companyId, int status)
1283                    throws com.liferay.portal.kernel.exception.SystemException {
1284                    return getPersistence().findByC_S(companyId, status);
1285            }
1286    
1287            /**
1288            * Returns a range of all the wiki nodes where companyId = &#63; and status = &#63;.
1289            *
1290            * <p>
1291            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiNodeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1292            * </p>
1293            *
1294            * @param companyId the company ID
1295            * @param status the status
1296            * @param start the lower bound of the range of wiki nodes
1297            * @param end the upper bound of the range of wiki nodes (not inclusive)
1298            * @return the range of matching wiki nodes
1299            * @throws SystemException if a system exception occurred
1300            */
1301            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByC_S(
1302                    long companyId, int status, int start, int end)
1303                    throws com.liferay.portal.kernel.exception.SystemException {
1304                    return getPersistence().findByC_S(companyId, status, start, end);
1305            }
1306    
1307            /**
1308            * Returns an ordered range of all the wiki nodes where companyId = &#63; and status = &#63;.
1309            *
1310            * <p>
1311            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiNodeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1312            * </p>
1313            *
1314            * @param companyId the company ID
1315            * @param status the status
1316            * @param start the lower bound of the range of wiki nodes
1317            * @param end the upper bound of the range of wiki nodes (not inclusive)
1318            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1319            * @return the ordered range of matching wiki nodes
1320            * @throws SystemException if a system exception occurred
1321            */
1322            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByC_S(
1323                    long companyId, int status, int start, int end,
1324                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1325                    throws com.liferay.portal.kernel.exception.SystemException {
1326                    return getPersistence()
1327                                       .findByC_S(companyId, status, start, end, orderByComparator);
1328            }
1329    
1330            /**
1331            * Returns the first wiki node in the ordered set where companyId = &#63; and status = &#63;.
1332            *
1333            * @param companyId the company ID
1334            * @param status the status
1335            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1336            * @return the first matching wiki node
1337            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
1338            * @throws SystemException if a system exception occurred
1339            */
1340            public static com.liferay.portlet.wiki.model.WikiNode findByC_S_First(
1341                    long companyId, int status,
1342                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1343                    throws com.liferay.portal.kernel.exception.SystemException,
1344                            com.liferay.portlet.wiki.NoSuchNodeException {
1345                    return getPersistence()
1346                                       .findByC_S_First(companyId, status, orderByComparator);
1347            }
1348    
1349            /**
1350            * Returns the first wiki node in the ordered set where companyId = &#63; and status = &#63;.
1351            *
1352            * @param companyId the company ID
1353            * @param status the status
1354            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1355            * @return the first matching wiki node, or <code>null</code> if a matching wiki node could not be found
1356            * @throws SystemException if a system exception occurred
1357            */
1358            public static com.liferay.portlet.wiki.model.WikiNode fetchByC_S_First(
1359                    long companyId, int status,
1360                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1361                    throws com.liferay.portal.kernel.exception.SystemException {
1362                    return getPersistence()
1363                                       .fetchByC_S_First(companyId, status, orderByComparator);
1364            }
1365    
1366            /**
1367            * Returns the last wiki node in the ordered set where companyId = &#63; and status = &#63;.
1368            *
1369            * @param companyId the company ID
1370            * @param status the status
1371            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1372            * @return the last matching wiki node
1373            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
1374            * @throws SystemException if a system exception occurred
1375            */
1376            public static com.liferay.portlet.wiki.model.WikiNode findByC_S_Last(
1377                    long companyId, int status,
1378                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1379                    throws com.liferay.portal.kernel.exception.SystemException,
1380                            com.liferay.portlet.wiki.NoSuchNodeException {
1381                    return getPersistence()
1382                                       .findByC_S_Last(companyId, status, orderByComparator);
1383            }
1384    
1385            /**
1386            * Returns the last wiki node in the ordered set where companyId = &#63; and status = &#63;.
1387            *
1388            * @param companyId the company ID
1389            * @param status the status
1390            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1391            * @return the last matching wiki node, or <code>null</code> if a matching wiki node could not be found
1392            * @throws SystemException if a system exception occurred
1393            */
1394            public static com.liferay.portlet.wiki.model.WikiNode fetchByC_S_Last(
1395                    long companyId, int status,
1396                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1397                    throws com.liferay.portal.kernel.exception.SystemException {
1398                    return getPersistence()
1399                                       .fetchByC_S_Last(companyId, status, orderByComparator);
1400            }
1401    
1402            /**
1403            * Returns the wiki nodes before and after the current wiki node in the ordered set where companyId = &#63; and status = &#63;.
1404            *
1405            * @param nodeId the primary key of the current wiki node
1406            * @param companyId the company ID
1407            * @param status the status
1408            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1409            * @return the previous, current, and next wiki node
1410            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
1411            * @throws SystemException if a system exception occurred
1412            */
1413            public static com.liferay.portlet.wiki.model.WikiNode[] findByC_S_PrevAndNext(
1414                    long nodeId, long companyId, int status,
1415                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1416                    throws com.liferay.portal.kernel.exception.SystemException,
1417                            com.liferay.portlet.wiki.NoSuchNodeException {
1418                    return getPersistence()
1419                                       .findByC_S_PrevAndNext(nodeId, companyId, status,
1420                            orderByComparator);
1421            }
1422    
1423            /**
1424            * Removes all the wiki nodes where companyId = &#63; and status = &#63; from the database.
1425            *
1426            * @param companyId the company ID
1427            * @param status the status
1428            * @throws SystemException if a system exception occurred
1429            */
1430            public static void removeByC_S(long companyId, int status)
1431                    throws com.liferay.portal.kernel.exception.SystemException {
1432                    getPersistence().removeByC_S(companyId, status);
1433            }
1434    
1435            /**
1436            * Returns the number of wiki nodes where companyId = &#63; and status = &#63;.
1437            *
1438            * @param companyId the company ID
1439            * @param status the status
1440            * @return the number of matching wiki nodes
1441            * @throws SystemException if a system exception occurred
1442            */
1443            public static int countByC_S(long companyId, int status)
1444                    throws com.liferay.portal.kernel.exception.SystemException {
1445                    return getPersistence().countByC_S(companyId, status);
1446            }
1447    
1448            /**
1449            * Caches the wiki node in the entity cache if it is enabled.
1450            *
1451            * @param wikiNode the wiki node
1452            */
1453            public static void cacheResult(
1454                    com.liferay.portlet.wiki.model.WikiNode wikiNode) {
1455                    getPersistence().cacheResult(wikiNode);
1456            }
1457    
1458            /**
1459            * Caches the wiki nodes in the entity cache if it is enabled.
1460            *
1461            * @param wikiNodes the wiki nodes
1462            */
1463            public static void cacheResult(
1464                    java.util.List<com.liferay.portlet.wiki.model.WikiNode> wikiNodes) {
1465                    getPersistence().cacheResult(wikiNodes);
1466            }
1467    
1468            /**
1469            * Creates a new wiki node with the primary key. Does not add the wiki node to the database.
1470            *
1471            * @param nodeId the primary key for the new wiki node
1472            * @return the new wiki node
1473            */
1474            public static com.liferay.portlet.wiki.model.WikiNode create(long nodeId) {
1475                    return getPersistence().create(nodeId);
1476            }
1477    
1478            /**
1479            * Removes the wiki node with the primary key from the database. Also notifies the appropriate model listeners.
1480            *
1481            * @param nodeId the primary key of the wiki node
1482            * @return the wiki node that was removed
1483            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
1484            * @throws SystemException if a system exception occurred
1485            */
1486            public static com.liferay.portlet.wiki.model.WikiNode remove(long nodeId)
1487                    throws com.liferay.portal.kernel.exception.SystemException,
1488                            com.liferay.portlet.wiki.NoSuchNodeException {
1489                    return getPersistence().remove(nodeId);
1490            }
1491    
1492            public static com.liferay.portlet.wiki.model.WikiNode updateImpl(
1493                    com.liferay.portlet.wiki.model.WikiNode wikiNode)
1494                    throws com.liferay.portal.kernel.exception.SystemException {
1495                    return getPersistence().updateImpl(wikiNode);
1496            }
1497    
1498            /**
1499            * Returns the wiki node with the primary key or throws a {@link com.liferay.portlet.wiki.NoSuchNodeException} if it could not be found.
1500            *
1501            * @param nodeId the primary key of the wiki node
1502            * @return the wiki node
1503            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
1504            * @throws SystemException if a system exception occurred
1505            */
1506            public static com.liferay.portlet.wiki.model.WikiNode findByPrimaryKey(
1507                    long nodeId)
1508                    throws com.liferay.portal.kernel.exception.SystemException,
1509                            com.liferay.portlet.wiki.NoSuchNodeException {
1510                    return getPersistence().findByPrimaryKey(nodeId);
1511            }
1512    
1513            /**
1514            * Returns the wiki node with the primary key or returns <code>null</code> if it could not be found.
1515            *
1516            * @param nodeId the primary key of the wiki node
1517            * @return the wiki node, or <code>null</code> if a wiki node with the primary key could not be found
1518            * @throws SystemException if a system exception occurred
1519            */
1520            public static com.liferay.portlet.wiki.model.WikiNode fetchByPrimaryKey(
1521                    long nodeId) throws com.liferay.portal.kernel.exception.SystemException {
1522                    return getPersistence().fetchByPrimaryKey(nodeId);
1523            }
1524    
1525            /**
1526            * Returns all the wiki nodes.
1527            *
1528            * @return the wiki nodes
1529            * @throws SystemException if a system exception occurred
1530            */
1531            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll()
1532                    throws com.liferay.portal.kernel.exception.SystemException {
1533                    return getPersistence().findAll();
1534            }
1535    
1536            /**
1537            * Returns a range of all the wiki nodes.
1538            *
1539            * <p>
1540            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiNodeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1541            * </p>
1542            *
1543            * @param start the lower bound of the range of wiki nodes
1544            * @param end the upper bound of the range of wiki nodes (not inclusive)
1545            * @return the range of wiki nodes
1546            * @throws SystemException if a system exception occurred
1547            */
1548            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll(
1549                    int start, int end)
1550                    throws com.liferay.portal.kernel.exception.SystemException {
1551                    return getPersistence().findAll(start, end);
1552            }
1553    
1554            /**
1555            * Returns an ordered range of all the wiki nodes.
1556            *
1557            * <p>
1558            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiNodeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1559            * </p>
1560            *
1561            * @param start the lower bound of the range of wiki nodes
1562            * @param end the upper bound of the range of wiki nodes (not inclusive)
1563            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1564            * @return the ordered range of wiki nodes
1565            * @throws SystemException if a system exception occurred
1566            */
1567            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll(
1568                    int start, int end,
1569                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1570                    throws com.liferay.portal.kernel.exception.SystemException {
1571                    return getPersistence().findAll(start, end, orderByComparator);
1572            }
1573    
1574            /**
1575            * Removes all the wiki nodes from the database.
1576            *
1577            * @throws SystemException if a system exception occurred
1578            */
1579            public static void removeAll()
1580                    throws com.liferay.portal.kernel.exception.SystemException {
1581                    getPersistence().removeAll();
1582            }
1583    
1584            /**
1585            * Returns the number of wiki nodes.
1586            *
1587            * @return the number of wiki nodes
1588            * @throws SystemException if a system exception occurred
1589            */
1590            public static int countAll()
1591                    throws com.liferay.portal.kernel.exception.SystemException {
1592                    return getPersistence().countAll();
1593            }
1594    
1595            public static WikiNodePersistence getPersistence() {
1596                    if (_persistence == null) {
1597                            _persistence = (WikiNodePersistence)PortalBeanLocatorUtil.locate(WikiNodePersistence.class.getName());
1598    
1599                            ReferenceRegistry.registerReference(WikiNodeUtil.class,
1600                                    "_persistence");
1601                    }
1602    
1603                    return _persistence;
1604            }
1605    
1606            /**
1607             * @deprecated As of 6.2.0
1608             */
1609            public void setPersistence(WikiNodePersistence persistence) {
1610            }
1611    
1612            private static WikiNodePersistence _persistence;
1613    }