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.service.persistence.BasePersistence;
020    
021    import com.liferay.portlet.wiki.model.WikiNode;
022    
023    /**
024     * The persistence interface for the wiki node service.
025     *
026     * <p>
027     * Caching information and settings can be found in <code>portal.properties</code>
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see WikiNodePersistenceImpl
032     * @see WikiNodeUtil
033     * @generated
034     */
035    @ProviderType
036    public interface WikiNodePersistence extends BasePersistence<WikiNode> {
037            /*
038             * NOTE FOR DEVELOPERS:
039             *
040             * Never modify or reference this interface directly. Always use {@link WikiNodeUtil} to access the wiki node persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
041             */
042    
043            /**
044            * Returns all the wiki nodes where uuid = &#63;.
045            *
046            * @param uuid the uuid
047            * @return the matching wiki nodes
048            * @throws SystemException if a system exception occurred
049            */
050            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid(
051                    java.lang.String uuid)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            /**
055            * Returns a range of all the wiki nodes where uuid = &#63;.
056            *
057            * <p>
058            * 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.
059            * </p>
060            *
061            * @param uuid the uuid
062            * @param start the lower bound of the range of wiki nodes
063            * @param end the upper bound of the range of wiki nodes (not inclusive)
064            * @return the range of matching wiki nodes
065            * @throws SystemException if a system exception occurred
066            */
067            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid(
068                    java.lang.String uuid, int start, int end)
069                    throws com.liferay.portal.kernel.exception.SystemException;
070    
071            /**
072            * Returns an ordered range of all the wiki nodes where uuid = &#63;.
073            *
074            * <p>
075            * 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.
076            * </p>
077            *
078            * @param uuid the uuid
079            * @param start the lower bound of the range of wiki nodes
080            * @param end the upper bound of the range of wiki nodes (not inclusive)
081            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
082            * @return the ordered range of matching wiki nodes
083            * @throws SystemException if a system exception occurred
084            */
085            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid(
086                    java.lang.String uuid, int start, int end,
087                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
088                    throws com.liferay.portal.kernel.exception.SystemException;
089    
090            /**
091            * Returns the first wiki node in the ordered set where uuid = &#63;.
092            *
093            * @param uuid the uuid
094            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
095            * @return the first matching wiki node
096            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
097            * @throws SystemException if a system exception occurred
098            */
099            public com.liferay.portlet.wiki.model.WikiNode findByUuid_First(
100                    java.lang.String uuid,
101                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
102                    throws com.liferay.portal.kernel.exception.SystemException,
103                            com.liferay.portlet.wiki.NoSuchNodeException;
104    
105            /**
106            * Returns the first wiki node in the ordered set where uuid = &#63;.
107            *
108            * @param uuid the uuid
109            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
110            * @return the first matching wiki node, or <code>null</code> if a matching wiki node could not be found
111            * @throws SystemException if a system exception occurred
112            */
113            public com.liferay.portlet.wiki.model.WikiNode fetchByUuid_First(
114                    java.lang.String uuid,
115                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            /**
119            * Returns the last wiki node in the ordered set where uuid = &#63;.
120            *
121            * @param uuid the uuid
122            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
123            * @return the last matching wiki node
124            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
125            * @throws SystemException if a system exception occurred
126            */
127            public com.liferay.portlet.wiki.model.WikiNode findByUuid_Last(
128                    java.lang.String uuid,
129                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
130                    throws com.liferay.portal.kernel.exception.SystemException,
131                            com.liferay.portlet.wiki.NoSuchNodeException;
132    
133            /**
134            * Returns the last wiki node in the ordered set where uuid = &#63;.
135            *
136            * @param uuid the uuid
137            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
138            * @return the last matching wiki node, or <code>null</code> if a matching wiki node could not be found
139            * @throws SystemException if a system exception occurred
140            */
141            public com.liferay.portlet.wiki.model.WikiNode fetchByUuid_Last(
142                    java.lang.String uuid,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException;
145    
146            /**
147            * Returns the wiki nodes before and after the current wiki node in the ordered set where uuid = &#63;.
148            *
149            * @param nodeId the primary key of the current wiki node
150            * @param uuid the uuid
151            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
152            * @return the previous, current, and next wiki node
153            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
154            * @throws SystemException if a system exception occurred
155            */
156            public com.liferay.portlet.wiki.model.WikiNode[] findByUuid_PrevAndNext(
157                    long nodeId, java.lang.String uuid,
158                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159                    throws com.liferay.portal.kernel.exception.SystemException,
160                            com.liferay.portlet.wiki.NoSuchNodeException;
161    
162            /**
163            * Removes all the wiki nodes where uuid = &#63; from the database.
164            *
165            * @param uuid the uuid
166            * @throws SystemException if a system exception occurred
167            */
168            public void removeByUuid(java.lang.String uuid)
169                    throws com.liferay.portal.kernel.exception.SystemException;
170    
171            /**
172            * Returns the number of wiki nodes where uuid = &#63;.
173            *
174            * @param uuid the uuid
175            * @return the number of matching wiki nodes
176            * @throws SystemException if a system exception occurred
177            */
178            public int countByUuid(java.lang.String uuid)
179                    throws com.liferay.portal.kernel.exception.SystemException;
180    
181            /**
182            * 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.
183            *
184            * @param uuid the uuid
185            * @param groupId the group ID
186            * @return the matching wiki node
187            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
188            * @throws SystemException if a system exception occurred
189            */
190            public com.liferay.portlet.wiki.model.WikiNode findByUUID_G(
191                    java.lang.String uuid, long groupId)
192                    throws com.liferay.portal.kernel.exception.SystemException,
193                            com.liferay.portlet.wiki.NoSuchNodeException;
194    
195            /**
196            * 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.
197            *
198            * @param uuid the uuid
199            * @param groupId the group ID
200            * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found
201            * @throws SystemException if a system exception occurred
202            */
203            public com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G(
204                    java.lang.String uuid, long groupId)
205                    throws com.liferay.portal.kernel.exception.SystemException;
206    
207            /**
208            * 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.
209            *
210            * @param uuid the uuid
211            * @param groupId the group ID
212            * @param retrieveFromCache whether to use the finder cache
213            * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found
214            * @throws SystemException if a system exception occurred
215            */
216            public com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G(
217                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
218                    throws com.liferay.portal.kernel.exception.SystemException;
219    
220            /**
221            * Removes the wiki node where uuid = &#63; and groupId = &#63; from the database.
222            *
223            * @param uuid the uuid
224            * @param groupId the group ID
225            * @return the wiki node that was removed
226            * @throws SystemException if a system exception occurred
227            */
228            public com.liferay.portlet.wiki.model.WikiNode removeByUUID_G(
229                    java.lang.String uuid, long groupId)
230                    throws com.liferay.portal.kernel.exception.SystemException,
231                            com.liferay.portlet.wiki.NoSuchNodeException;
232    
233            /**
234            * Returns the number of wiki nodes where uuid = &#63; and groupId = &#63;.
235            *
236            * @param uuid the uuid
237            * @param groupId the group ID
238            * @return the number of matching wiki nodes
239            * @throws SystemException if a system exception occurred
240            */
241            public int countByUUID_G(java.lang.String uuid, long groupId)
242                    throws com.liferay.portal.kernel.exception.SystemException;
243    
244            /**
245            * Returns all the wiki nodes where uuid = &#63; and companyId = &#63;.
246            *
247            * @param uuid the uuid
248            * @param companyId the company ID
249            * @return the matching wiki nodes
250            * @throws SystemException if a system exception occurred
251            */
252            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid_C(
253                    java.lang.String uuid, long companyId)
254                    throws com.liferay.portal.kernel.exception.SystemException;
255    
256            /**
257            * Returns a range of all the wiki nodes where uuid = &#63; and companyId = &#63;.
258            *
259            * <p>
260            * 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.
261            * </p>
262            *
263            * @param uuid the uuid
264            * @param companyId the company ID
265            * @param start the lower bound of the range of wiki nodes
266            * @param end the upper bound of the range of wiki nodes (not inclusive)
267            * @return the range of matching wiki nodes
268            * @throws SystemException if a system exception occurred
269            */
270            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid_C(
271                    java.lang.String uuid, long companyId, int start, int end)
272                    throws com.liferay.portal.kernel.exception.SystemException;
273    
274            /**
275            * Returns an ordered range of all the wiki nodes where uuid = &#63; and companyId = &#63;.
276            *
277            * <p>
278            * 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.
279            * </p>
280            *
281            * @param uuid the uuid
282            * @param companyId the company ID
283            * @param start the lower bound of the range of wiki nodes
284            * @param end the upper bound of the range of wiki nodes (not inclusive)
285            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
286            * @return the ordered range of matching wiki nodes
287            * @throws SystemException if a system exception occurred
288            */
289            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid_C(
290                    java.lang.String uuid, long companyId, int start, int end,
291                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
292                    throws com.liferay.portal.kernel.exception.SystemException;
293    
294            /**
295            * Returns the first wiki node in the ordered set where uuid = &#63; and companyId = &#63;.
296            *
297            * @param uuid the uuid
298            * @param companyId the company ID
299            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
300            * @return the first matching wiki node
301            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
302            * @throws SystemException if a system exception occurred
303            */
304            public com.liferay.portlet.wiki.model.WikiNode findByUuid_C_First(
305                    java.lang.String uuid, long companyId,
306                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
307                    throws com.liferay.portal.kernel.exception.SystemException,
308                            com.liferay.portlet.wiki.NoSuchNodeException;
309    
310            /**
311            * Returns the first wiki node in the ordered set where uuid = &#63; and companyId = &#63;.
312            *
313            * @param uuid the uuid
314            * @param companyId the company ID
315            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
316            * @return the first matching wiki node, or <code>null</code> if a matching wiki node could not be found
317            * @throws SystemException if a system exception occurred
318            */
319            public com.liferay.portlet.wiki.model.WikiNode fetchByUuid_C_First(
320                    java.lang.String uuid, long companyId,
321                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
322                    throws com.liferay.portal.kernel.exception.SystemException;
323    
324            /**
325            * Returns the last wiki node in the ordered set where uuid = &#63; and companyId = &#63;.
326            *
327            * @param uuid the uuid
328            * @param companyId the company ID
329            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
330            * @return the last matching wiki node
331            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
332            * @throws SystemException if a system exception occurred
333            */
334            public com.liferay.portlet.wiki.model.WikiNode findByUuid_C_Last(
335                    java.lang.String uuid, long companyId,
336                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
337                    throws com.liferay.portal.kernel.exception.SystemException,
338                            com.liferay.portlet.wiki.NoSuchNodeException;
339    
340            /**
341            * Returns the last wiki node in the ordered set where uuid = &#63; and companyId = &#63;.
342            *
343            * @param uuid the uuid
344            * @param companyId the company ID
345            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
346            * @return the last matching wiki node, or <code>null</code> if a matching wiki node could not be found
347            * @throws SystemException if a system exception occurred
348            */
349            public com.liferay.portlet.wiki.model.WikiNode fetchByUuid_C_Last(
350                    java.lang.String uuid, long companyId,
351                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
352                    throws com.liferay.portal.kernel.exception.SystemException;
353    
354            /**
355            * Returns the wiki nodes before and after the current wiki node in the ordered set where uuid = &#63; and companyId = &#63;.
356            *
357            * @param nodeId the primary key of the current wiki node
358            * @param uuid the uuid
359            * @param companyId the company ID
360            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
361            * @return the previous, current, and next wiki node
362            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
363            * @throws SystemException if a system exception occurred
364            */
365            public com.liferay.portlet.wiki.model.WikiNode[] findByUuid_C_PrevAndNext(
366                    long nodeId, java.lang.String uuid, long companyId,
367                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
368                    throws com.liferay.portal.kernel.exception.SystemException,
369                            com.liferay.portlet.wiki.NoSuchNodeException;
370    
371            /**
372            * Removes all the wiki nodes where uuid = &#63; and companyId = &#63; from the database.
373            *
374            * @param uuid the uuid
375            * @param companyId the company ID
376            * @throws SystemException if a system exception occurred
377            */
378            public void removeByUuid_C(java.lang.String uuid, long companyId)
379                    throws com.liferay.portal.kernel.exception.SystemException;
380    
381            /**
382            * Returns the number of wiki nodes where uuid = &#63; and companyId = &#63;.
383            *
384            * @param uuid the uuid
385            * @param companyId the company ID
386            * @return the number of matching wiki nodes
387            * @throws SystemException if a system exception occurred
388            */
389            public int countByUuid_C(java.lang.String uuid, long companyId)
390                    throws com.liferay.portal.kernel.exception.SystemException;
391    
392            /**
393            * Returns all the wiki nodes where groupId = &#63;.
394            *
395            * @param groupId the group ID
396            * @return the matching wiki nodes
397            * @throws SystemException if a system exception occurred
398            */
399            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
400                    long groupId)
401                    throws com.liferay.portal.kernel.exception.SystemException;
402    
403            /**
404            * Returns a range of all the wiki nodes where groupId = &#63;.
405            *
406            * <p>
407            * 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.
408            * </p>
409            *
410            * @param groupId the group ID
411            * @param start the lower bound of the range of wiki nodes
412            * @param end the upper bound of the range of wiki nodes (not inclusive)
413            * @return the range of matching wiki nodes
414            * @throws SystemException if a system exception occurred
415            */
416            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
417                    long groupId, int start, int end)
418                    throws com.liferay.portal.kernel.exception.SystemException;
419    
420            /**
421            * Returns an ordered range of all the wiki nodes where groupId = &#63;.
422            *
423            * <p>
424            * 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.
425            * </p>
426            *
427            * @param groupId the group ID
428            * @param start the lower bound of the range of wiki nodes
429            * @param end the upper bound of the range of wiki nodes (not inclusive)
430            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
431            * @return the ordered range of matching wiki nodes
432            * @throws SystemException if a system exception occurred
433            */
434            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
435                    long groupId, int start, int end,
436                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
437                    throws com.liferay.portal.kernel.exception.SystemException;
438    
439            /**
440            * Returns the first wiki node in the ordered set where groupId = &#63;.
441            *
442            * @param groupId the group ID
443            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
444            * @return the first matching wiki node
445            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
446            * @throws SystemException if a system exception occurred
447            */
448            public com.liferay.portlet.wiki.model.WikiNode findByGroupId_First(
449                    long groupId,
450                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
451                    throws com.liferay.portal.kernel.exception.SystemException,
452                            com.liferay.portlet.wiki.NoSuchNodeException;
453    
454            /**
455            * Returns the first wiki node in the ordered set where groupId = &#63;.
456            *
457            * @param groupId the group ID
458            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
459            * @return the first matching wiki node, or <code>null</code> if a matching wiki node could not be found
460            * @throws SystemException if a system exception occurred
461            */
462            public com.liferay.portlet.wiki.model.WikiNode fetchByGroupId_First(
463                    long groupId,
464                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
465                    throws com.liferay.portal.kernel.exception.SystemException;
466    
467            /**
468            * Returns the last wiki node in the ordered set where groupId = &#63;.
469            *
470            * @param groupId the group ID
471            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
472            * @return the last matching wiki node
473            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
474            * @throws SystemException if a system exception occurred
475            */
476            public com.liferay.portlet.wiki.model.WikiNode findByGroupId_Last(
477                    long groupId,
478                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
479                    throws com.liferay.portal.kernel.exception.SystemException,
480                            com.liferay.portlet.wiki.NoSuchNodeException;
481    
482            /**
483            * Returns the last wiki node in the ordered set where groupId = &#63;.
484            *
485            * @param groupId the group ID
486            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
487            * @return the last matching wiki node, or <code>null</code> if a matching wiki node could not be found
488            * @throws SystemException if a system exception occurred
489            */
490            public com.liferay.portlet.wiki.model.WikiNode fetchByGroupId_Last(
491                    long groupId,
492                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
493                    throws com.liferay.portal.kernel.exception.SystemException;
494    
495            /**
496            * Returns the wiki nodes before and after the current wiki node in the ordered set where groupId = &#63;.
497            *
498            * @param nodeId the primary key of the current wiki node
499            * @param groupId the group ID
500            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
501            * @return the previous, current, and next wiki node
502            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
503            * @throws SystemException if a system exception occurred
504            */
505            public com.liferay.portlet.wiki.model.WikiNode[] findByGroupId_PrevAndNext(
506                    long nodeId, long groupId,
507                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
508                    throws com.liferay.portal.kernel.exception.SystemException,
509                            com.liferay.portlet.wiki.NoSuchNodeException;
510    
511            /**
512            * Returns all the wiki nodes that the user has permission to view where groupId = &#63;.
513            *
514            * @param groupId the group ID
515            * @return the matching wiki nodes that the user has permission to view
516            * @throws SystemException if a system exception occurred
517            */
518            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId(
519                    long groupId)
520                    throws com.liferay.portal.kernel.exception.SystemException;
521    
522            /**
523            * Returns a range of all the wiki nodes that the user has permission to view where groupId = &#63;.
524            *
525            * <p>
526            * 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.
527            * </p>
528            *
529            * @param groupId the group ID
530            * @param start the lower bound of the range of wiki nodes
531            * @param end the upper bound of the range of wiki nodes (not inclusive)
532            * @return the range of matching wiki nodes that the user has permission to view
533            * @throws SystemException if a system exception occurred
534            */
535            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId(
536                    long groupId, int start, int end)
537                    throws com.liferay.portal.kernel.exception.SystemException;
538    
539            /**
540            * Returns an ordered range of all the wiki nodes that the user has permissions to view where groupId = &#63;.
541            *
542            * <p>
543            * 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.
544            * </p>
545            *
546            * @param groupId the group ID
547            * @param start the lower bound of the range of wiki nodes
548            * @param end the upper bound of the range of wiki nodes (not inclusive)
549            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
550            * @return the ordered range of matching wiki nodes that the user has permission to view
551            * @throws SystemException if a system exception occurred
552            */
553            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId(
554                    long groupId, int start, int end,
555                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
556                    throws com.liferay.portal.kernel.exception.SystemException;
557    
558            /**
559            * 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;.
560            *
561            * @param nodeId the primary key of the current wiki node
562            * @param groupId the group ID
563            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
564            * @return the previous, current, and next wiki node
565            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
566            * @throws SystemException if a system exception occurred
567            */
568            public com.liferay.portlet.wiki.model.WikiNode[] filterFindByGroupId_PrevAndNext(
569                    long nodeId, long groupId,
570                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
571                    throws com.liferay.portal.kernel.exception.SystemException,
572                            com.liferay.portlet.wiki.NoSuchNodeException;
573    
574            /**
575            * Removes all the wiki nodes where groupId = &#63; from the database.
576            *
577            * @param groupId the group ID
578            * @throws SystemException if a system exception occurred
579            */
580            public void removeByGroupId(long groupId)
581                    throws com.liferay.portal.kernel.exception.SystemException;
582    
583            /**
584            * Returns the number of wiki nodes where groupId = &#63;.
585            *
586            * @param groupId the group ID
587            * @return the number of matching wiki nodes
588            * @throws SystemException if a system exception occurred
589            */
590            public int countByGroupId(long groupId)
591                    throws com.liferay.portal.kernel.exception.SystemException;
592    
593            /**
594            * Returns the number of wiki nodes that the user has permission to view where groupId = &#63;.
595            *
596            * @param groupId the group ID
597            * @return the number of matching wiki nodes that the user has permission to view
598            * @throws SystemException if a system exception occurred
599            */
600            public int filterCountByGroupId(long groupId)
601                    throws com.liferay.portal.kernel.exception.SystemException;
602    
603            /**
604            * Returns all the wiki nodes where companyId = &#63;.
605            *
606            * @param companyId the company ID
607            * @return the matching wiki nodes
608            * @throws SystemException if a system exception occurred
609            */
610            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
611                    long companyId)
612                    throws com.liferay.portal.kernel.exception.SystemException;
613    
614            /**
615            * Returns a range of all the wiki nodes where companyId = &#63;.
616            *
617            * <p>
618            * 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.
619            * </p>
620            *
621            * @param companyId the company ID
622            * @param start the lower bound of the range of wiki nodes
623            * @param end the upper bound of the range of wiki nodes (not inclusive)
624            * @return the range of matching wiki nodes
625            * @throws SystemException if a system exception occurred
626            */
627            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
628                    long companyId, int start, int end)
629                    throws com.liferay.portal.kernel.exception.SystemException;
630    
631            /**
632            * Returns an ordered range of all the wiki nodes where companyId = &#63;.
633            *
634            * <p>
635            * 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.
636            * </p>
637            *
638            * @param companyId the company ID
639            * @param start the lower bound of the range of wiki nodes
640            * @param end the upper bound of the range of wiki nodes (not inclusive)
641            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
642            * @return the ordered range of matching wiki nodes
643            * @throws SystemException if a system exception occurred
644            */
645            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
646                    long companyId, int start, int end,
647                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
648                    throws com.liferay.portal.kernel.exception.SystemException;
649    
650            /**
651            * Returns the first wiki node in the ordered set where companyId = &#63;.
652            *
653            * @param companyId the company ID
654            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
655            * @return the first matching wiki node
656            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
657            * @throws SystemException if a system exception occurred
658            */
659            public com.liferay.portlet.wiki.model.WikiNode findByCompanyId_First(
660                    long companyId,
661                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
662                    throws com.liferay.portal.kernel.exception.SystemException,
663                            com.liferay.portlet.wiki.NoSuchNodeException;
664    
665            /**
666            * Returns the first wiki node in the ordered set where companyId = &#63;.
667            *
668            * @param companyId the company ID
669            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
670            * @return the first matching wiki node, or <code>null</code> if a matching wiki node could not be found
671            * @throws SystemException if a system exception occurred
672            */
673            public com.liferay.portlet.wiki.model.WikiNode fetchByCompanyId_First(
674                    long companyId,
675                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
676                    throws com.liferay.portal.kernel.exception.SystemException;
677    
678            /**
679            * Returns the last wiki node in the ordered set where companyId = &#63;.
680            *
681            * @param companyId the company ID
682            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
683            * @return the last matching wiki node
684            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
685            * @throws SystemException if a system exception occurred
686            */
687            public com.liferay.portlet.wiki.model.WikiNode findByCompanyId_Last(
688                    long companyId,
689                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
690                    throws com.liferay.portal.kernel.exception.SystemException,
691                            com.liferay.portlet.wiki.NoSuchNodeException;
692    
693            /**
694            * Returns the last wiki node in the ordered set where companyId = &#63;.
695            *
696            * @param companyId the company ID
697            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
698            * @return the last matching wiki node, or <code>null</code> if a matching wiki node could not be found
699            * @throws SystemException if a system exception occurred
700            */
701            public com.liferay.portlet.wiki.model.WikiNode fetchByCompanyId_Last(
702                    long companyId,
703                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
704                    throws com.liferay.portal.kernel.exception.SystemException;
705    
706            /**
707            * Returns the wiki nodes before and after the current wiki node in the ordered set where companyId = &#63;.
708            *
709            * @param nodeId the primary key of the current wiki node
710            * @param companyId the company ID
711            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
712            * @return the previous, current, and next wiki node
713            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
714            * @throws SystemException if a system exception occurred
715            */
716            public com.liferay.portlet.wiki.model.WikiNode[] findByCompanyId_PrevAndNext(
717                    long nodeId, long companyId,
718                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
719                    throws com.liferay.portal.kernel.exception.SystemException,
720                            com.liferay.portlet.wiki.NoSuchNodeException;
721    
722            /**
723            * Removes all the wiki nodes where companyId = &#63; from the database.
724            *
725            * @param companyId the company ID
726            * @throws SystemException if a system exception occurred
727            */
728            public void removeByCompanyId(long companyId)
729                    throws com.liferay.portal.kernel.exception.SystemException;
730    
731            /**
732            * Returns the number of wiki nodes where companyId = &#63;.
733            *
734            * @param companyId the company ID
735            * @return the number of matching wiki nodes
736            * @throws SystemException if a system exception occurred
737            */
738            public int countByCompanyId(long companyId)
739                    throws com.liferay.portal.kernel.exception.SystemException;
740    
741            /**
742            * 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.
743            *
744            * @param groupId the group ID
745            * @param name the name
746            * @return the matching wiki node
747            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
748            * @throws SystemException if a system exception occurred
749            */
750            public com.liferay.portlet.wiki.model.WikiNode findByG_N(long groupId,
751                    java.lang.String name)
752                    throws com.liferay.portal.kernel.exception.SystemException,
753                            com.liferay.portlet.wiki.NoSuchNodeException;
754    
755            /**
756            * 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.
757            *
758            * @param groupId the group ID
759            * @param name the name
760            * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found
761            * @throws SystemException if a system exception occurred
762            */
763            public com.liferay.portlet.wiki.model.WikiNode fetchByG_N(long groupId,
764                    java.lang.String name)
765                    throws com.liferay.portal.kernel.exception.SystemException;
766    
767            /**
768            * 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.
769            *
770            * @param groupId the group ID
771            * @param name the name
772            * @param retrieveFromCache whether to use the finder cache
773            * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found
774            * @throws SystemException if a system exception occurred
775            */
776            public com.liferay.portlet.wiki.model.WikiNode fetchByG_N(long groupId,
777                    java.lang.String name, boolean retrieveFromCache)
778                    throws com.liferay.portal.kernel.exception.SystemException;
779    
780            /**
781            * Removes the wiki node where groupId = &#63; and name = &#63; from the database.
782            *
783            * @param groupId the group ID
784            * @param name the name
785            * @return the wiki node that was removed
786            * @throws SystemException if a system exception occurred
787            */
788            public com.liferay.portlet.wiki.model.WikiNode removeByG_N(long groupId,
789                    java.lang.String name)
790                    throws com.liferay.portal.kernel.exception.SystemException,
791                            com.liferay.portlet.wiki.NoSuchNodeException;
792    
793            /**
794            * Returns the number of wiki nodes where groupId = &#63; and name = &#63;.
795            *
796            * @param groupId the group ID
797            * @param name the name
798            * @return the number of matching wiki nodes
799            * @throws SystemException if a system exception occurred
800            */
801            public int countByG_N(long groupId, java.lang.String name)
802                    throws com.liferay.portal.kernel.exception.SystemException;
803    
804            /**
805            * Returns all the wiki nodes where groupId = &#63; and status = &#63;.
806            *
807            * @param groupId the group ID
808            * @param status the status
809            * @return the matching wiki nodes
810            * @throws SystemException if a system exception occurred
811            */
812            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByG_S(
813                    long groupId, int status)
814                    throws com.liferay.portal.kernel.exception.SystemException;
815    
816            /**
817            * Returns a range of all the wiki nodes where groupId = &#63; and status = &#63;.
818            *
819            * <p>
820            * 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.
821            * </p>
822            *
823            * @param groupId the group ID
824            * @param status the status
825            * @param start the lower bound of the range of wiki nodes
826            * @param end the upper bound of the range of wiki nodes (not inclusive)
827            * @return the range of matching wiki nodes
828            * @throws SystemException if a system exception occurred
829            */
830            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByG_S(
831                    long groupId, int status, int start, int end)
832                    throws com.liferay.portal.kernel.exception.SystemException;
833    
834            /**
835            * Returns an ordered range of all the wiki nodes where groupId = &#63; and status = &#63;.
836            *
837            * <p>
838            * 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.
839            * </p>
840            *
841            * @param groupId the group ID
842            * @param status the status
843            * @param start the lower bound of the range of wiki nodes
844            * @param end the upper bound of the range of wiki nodes (not inclusive)
845            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
846            * @return the ordered range of matching wiki nodes
847            * @throws SystemException if a system exception occurred
848            */
849            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByG_S(
850                    long groupId, int status, int start, int end,
851                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
852                    throws com.liferay.portal.kernel.exception.SystemException;
853    
854            /**
855            * Returns the first wiki node in the ordered set where groupId = &#63; and status = &#63;.
856            *
857            * @param groupId the group ID
858            * @param status the status
859            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
860            * @return the first matching wiki node
861            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
862            * @throws SystemException if a system exception occurred
863            */
864            public com.liferay.portlet.wiki.model.WikiNode findByG_S_First(
865                    long groupId, int status,
866                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
867                    throws com.liferay.portal.kernel.exception.SystemException,
868                            com.liferay.portlet.wiki.NoSuchNodeException;
869    
870            /**
871            * Returns the first wiki node in the ordered set where groupId = &#63; and status = &#63;.
872            *
873            * @param groupId the group ID
874            * @param status the status
875            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
876            * @return the first matching wiki node, or <code>null</code> if a matching wiki node could not be found
877            * @throws SystemException if a system exception occurred
878            */
879            public com.liferay.portlet.wiki.model.WikiNode fetchByG_S_First(
880                    long groupId, int status,
881                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
882                    throws com.liferay.portal.kernel.exception.SystemException;
883    
884            /**
885            * Returns the last wiki node in the ordered set where groupId = &#63; and status = &#63;.
886            *
887            * @param groupId the group ID
888            * @param status the status
889            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
890            * @return the last matching wiki node
891            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
892            * @throws SystemException if a system exception occurred
893            */
894            public com.liferay.portlet.wiki.model.WikiNode findByG_S_Last(
895                    long groupId, int status,
896                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
897                    throws com.liferay.portal.kernel.exception.SystemException,
898                            com.liferay.portlet.wiki.NoSuchNodeException;
899    
900            /**
901            * Returns the last wiki node in the ordered set where groupId = &#63; and status = &#63;.
902            *
903            * @param groupId the group ID
904            * @param status the status
905            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
906            * @return the last matching wiki node, or <code>null</code> if a matching wiki node could not be found
907            * @throws SystemException if a system exception occurred
908            */
909            public com.liferay.portlet.wiki.model.WikiNode fetchByG_S_Last(
910                    long groupId, int status,
911                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
912                    throws com.liferay.portal.kernel.exception.SystemException;
913    
914            /**
915            * Returns the wiki nodes before and after the current wiki node in the ordered set where groupId = &#63; and status = &#63;.
916            *
917            * @param nodeId the primary key of the current wiki node
918            * @param groupId the group ID
919            * @param status the status
920            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
921            * @return the previous, current, and next wiki node
922            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
923            * @throws SystemException if a system exception occurred
924            */
925            public com.liferay.portlet.wiki.model.WikiNode[] findByG_S_PrevAndNext(
926                    long nodeId, long groupId, int status,
927                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
928                    throws com.liferay.portal.kernel.exception.SystemException,
929                            com.liferay.portlet.wiki.NoSuchNodeException;
930    
931            /**
932            * Returns all the wiki nodes that the user has permission to view where groupId = &#63; and status = &#63;.
933            *
934            * @param groupId the group ID
935            * @param status the status
936            * @return the matching wiki nodes that the user has permission to view
937            * @throws SystemException if a system exception occurred
938            */
939            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByG_S(
940                    long groupId, int status)
941                    throws com.liferay.portal.kernel.exception.SystemException;
942    
943            /**
944            * Returns a range of all the wiki nodes that the user has permission to view where groupId = &#63; and status = &#63;.
945            *
946            * <p>
947            * 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.
948            * </p>
949            *
950            * @param groupId the group ID
951            * @param status the status
952            * @param start the lower bound of the range of wiki nodes
953            * @param end the upper bound of the range of wiki nodes (not inclusive)
954            * @return the range of matching wiki nodes that the user has permission to view
955            * @throws SystemException if a system exception occurred
956            */
957            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByG_S(
958                    long groupId, int status, int start, int end)
959                    throws com.liferay.portal.kernel.exception.SystemException;
960    
961            /**
962            * Returns an ordered range of all the wiki nodes that the user has permissions to view where groupId = &#63; and status = &#63;.
963            *
964            * <p>
965            * 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.
966            * </p>
967            *
968            * @param groupId the group ID
969            * @param status the status
970            * @param start the lower bound of the range of wiki nodes
971            * @param end the upper bound of the range of wiki nodes (not inclusive)
972            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
973            * @return the ordered range of matching wiki nodes that the user has permission to view
974            * @throws SystemException if a system exception occurred
975            */
976            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByG_S(
977                    long groupId, int status, int start, int end,
978                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
979                    throws com.liferay.portal.kernel.exception.SystemException;
980    
981            /**
982            * 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;.
983            *
984            * @param nodeId the primary key of the current wiki node
985            * @param groupId the group ID
986            * @param status the status
987            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
988            * @return the previous, current, and next wiki node
989            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
990            * @throws SystemException if a system exception occurred
991            */
992            public com.liferay.portlet.wiki.model.WikiNode[] filterFindByG_S_PrevAndNext(
993                    long nodeId, long groupId, int status,
994                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
995                    throws com.liferay.portal.kernel.exception.SystemException,
996                            com.liferay.portlet.wiki.NoSuchNodeException;
997    
998            /**
999            * Removes all the wiki nodes where groupId = &#63; and status = &#63; from the database.
1000            *
1001            * @param groupId the group ID
1002            * @param status the status
1003            * @throws SystemException if a system exception occurred
1004            */
1005            public void removeByG_S(long groupId, int status)
1006                    throws com.liferay.portal.kernel.exception.SystemException;
1007    
1008            /**
1009            * Returns the number of wiki nodes where groupId = &#63; and status = &#63;.
1010            *
1011            * @param groupId the group ID
1012            * @param status the status
1013            * @return the number of matching wiki nodes
1014            * @throws SystemException if a system exception occurred
1015            */
1016            public int countByG_S(long groupId, int status)
1017                    throws com.liferay.portal.kernel.exception.SystemException;
1018    
1019            /**
1020            * Returns the number of wiki nodes that the user has permission to view where groupId = &#63; and status = &#63;.
1021            *
1022            * @param groupId the group ID
1023            * @param status the status
1024            * @return the number of matching wiki nodes that the user has permission to view
1025            * @throws SystemException if a system exception occurred
1026            */
1027            public int filterCountByG_S(long groupId, int status)
1028                    throws com.liferay.portal.kernel.exception.SystemException;
1029    
1030            /**
1031            * Returns all the wiki nodes where companyId = &#63; and status = &#63;.
1032            *
1033            * @param companyId the company ID
1034            * @param status the status
1035            * @return the matching wiki nodes
1036            * @throws SystemException if a system exception occurred
1037            */
1038            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByC_S(
1039                    long companyId, int status)
1040                    throws com.liferay.portal.kernel.exception.SystemException;
1041    
1042            /**
1043            * Returns a range of all the wiki nodes where companyId = &#63; and status = &#63;.
1044            *
1045            * <p>
1046            * 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.
1047            * </p>
1048            *
1049            * @param companyId the company ID
1050            * @param status the status
1051            * @param start the lower bound of the range of wiki nodes
1052            * @param end the upper bound of the range of wiki nodes (not inclusive)
1053            * @return the range of matching wiki nodes
1054            * @throws SystemException if a system exception occurred
1055            */
1056            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByC_S(
1057                    long companyId, int status, int start, int end)
1058                    throws com.liferay.portal.kernel.exception.SystemException;
1059    
1060            /**
1061            * Returns an ordered range of all the wiki nodes where companyId = &#63; and status = &#63;.
1062            *
1063            * <p>
1064            * 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.
1065            * </p>
1066            *
1067            * @param companyId the company ID
1068            * @param status the status
1069            * @param start the lower bound of the range of wiki nodes
1070            * @param end the upper bound of the range of wiki nodes (not inclusive)
1071            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1072            * @return the ordered range of matching wiki nodes
1073            * @throws SystemException if a system exception occurred
1074            */
1075            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByC_S(
1076                    long companyId, int status, int start, int end,
1077                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1078                    throws com.liferay.portal.kernel.exception.SystemException;
1079    
1080            /**
1081            * Returns the first wiki node in the ordered set where companyId = &#63; and status = &#63;.
1082            *
1083            * @param companyId the company ID
1084            * @param status the status
1085            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1086            * @return the first matching wiki node
1087            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
1088            * @throws SystemException if a system exception occurred
1089            */
1090            public com.liferay.portlet.wiki.model.WikiNode findByC_S_First(
1091                    long companyId, int status,
1092                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1093                    throws com.liferay.portal.kernel.exception.SystemException,
1094                            com.liferay.portlet.wiki.NoSuchNodeException;
1095    
1096            /**
1097            * Returns the first wiki node in the ordered set where companyId = &#63; and status = &#63;.
1098            *
1099            * @param companyId the company ID
1100            * @param status the status
1101            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1102            * @return the first matching wiki node, or <code>null</code> if a matching wiki node could not be found
1103            * @throws SystemException if a system exception occurred
1104            */
1105            public com.liferay.portlet.wiki.model.WikiNode fetchByC_S_First(
1106                    long companyId, int status,
1107                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1108                    throws com.liferay.portal.kernel.exception.SystemException;
1109    
1110            /**
1111            * Returns the last wiki node in the ordered set where companyId = &#63; and status = &#63;.
1112            *
1113            * @param companyId the company ID
1114            * @param status the status
1115            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1116            * @return the last matching wiki node
1117            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
1118            * @throws SystemException if a system exception occurred
1119            */
1120            public com.liferay.portlet.wiki.model.WikiNode findByC_S_Last(
1121                    long companyId, int status,
1122                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1123                    throws com.liferay.portal.kernel.exception.SystemException,
1124                            com.liferay.portlet.wiki.NoSuchNodeException;
1125    
1126            /**
1127            * Returns the last wiki node in the ordered set where companyId = &#63; and status = &#63;.
1128            *
1129            * @param companyId the company ID
1130            * @param status the status
1131            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1132            * @return the last matching wiki node, or <code>null</code> if a matching wiki node could not be found
1133            * @throws SystemException if a system exception occurred
1134            */
1135            public com.liferay.portlet.wiki.model.WikiNode fetchByC_S_Last(
1136                    long companyId, int status,
1137                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1138                    throws com.liferay.portal.kernel.exception.SystemException;
1139    
1140            /**
1141            * Returns the wiki nodes before and after the current wiki node in the ordered set where companyId = &#63; and status = &#63;.
1142            *
1143            * @param nodeId the primary key of the current wiki node
1144            * @param companyId the company ID
1145            * @param status the status
1146            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1147            * @return the previous, current, and next wiki node
1148            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
1149            * @throws SystemException if a system exception occurred
1150            */
1151            public com.liferay.portlet.wiki.model.WikiNode[] findByC_S_PrevAndNext(
1152                    long nodeId, long companyId, int status,
1153                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1154                    throws com.liferay.portal.kernel.exception.SystemException,
1155                            com.liferay.portlet.wiki.NoSuchNodeException;
1156    
1157            /**
1158            * Removes all the wiki nodes where companyId = &#63; and status = &#63; from the database.
1159            *
1160            * @param companyId the company ID
1161            * @param status the status
1162            * @throws SystemException if a system exception occurred
1163            */
1164            public void removeByC_S(long companyId, int status)
1165                    throws com.liferay.portal.kernel.exception.SystemException;
1166    
1167            /**
1168            * Returns the number of wiki nodes where companyId = &#63; and status = &#63;.
1169            *
1170            * @param companyId the company ID
1171            * @param status the status
1172            * @return the number of matching wiki nodes
1173            * @throws SystemException if a system exception occurred
1174            */
1175            public int countByC_S(long companyId, int status)
1176                    throws com.liferay.portal.kernel.exception.SystemException;
1177    
1178            /**
1179            * Caches the wiki node in the entity cache if it is enabled.
1180            *
1181            * @param wikiNode the wiki node
1182            */
1183            public void cacheResult(com.liferay.portlet.wiki.model.WikiNode wikiNode);
1184    
1185            /**
1186            * Caches the wiki nodes in the entity cache if it is enabled.
1187            *
1188            * @param wikiNodes the wiki nodes
1189            */
1190            public void cacheResult(
1191                    java.util.List<com.liferay.portlet.wiki.model.WikiNode> wikiNodes);
1192    
1193            /**
1194            * Creates a new wiki node with the primary key. Does not add the wiki node to the database.
1195            *
1196            * @param nodeId the primary key for the new wiki node
1197            * @return the new wiki node
1198            */
1199            public com.liferay.portlet.wiki.model.WikiNode create(long nodeId);
1200    
1201            /**
1202            * Removes the wiki node with the primary key from the database. Also notifies the appropriate model listeners.
1203            *
1204            * @param nodeId the primary key of the wiki node
1205            * @return the wiki node that was removed
1206            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
1207            * @throws SystemException if a system exception occurred
1208            */
1209            public com.liferay.portlet.wiki.model.WikiNode remove(long nodeId)
1210                    throws com.liferay.portal.kernel.exception.SystemException,
1211                            com.liferay.portlet.wiki.NoSuchNodeException;
1212    
1213            public com.liferay.portlet.wiki.model.WikiNode updateImpl(
1214                    com.liferay.portlet.wiki.model.WikiNode wikiNode)
1215                    throws com.liferay.portal.kernel.exception.SystemException;
1216    
1217            /**
1218            * Returns the wiki node with the primary key or throws a {@link com.liferay.portlet.wiki.NoSuchNodeException} if it could not be found.
1219            *
1220            * @param nodeId the primary key of the wiki node
1221            * @return the 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 com.liferay.portlet.wiki.model.WikiNode findByPrimaryKey(long nodeId)
1226                    throws com.liferay.portal.kernel.exception.SystemException,
1227                            com.liferay.portlet.wiki.NoSuchNodeException;
1228    
1229            /**
1230            * Returns the wiki node with the primary key or returns <code>null</code> if it could not be found.
1231            *
1232            * @param nodeId the primary key of the wiki node
1233            * @return the wiki node, or <code>null</code> if a wiki node with the primary key could not be found
1234            * @throws SystemException if a system exception occurred
1235            */
1236            public com.liferay.portlet.wiki.model.WikiNode fetchByPrimaryKey(
1237                    long nodeId) throws com.liferay.portal.kernel.exception.SystemException;
1238    
1239            /**
1240            * Returns all the wiki nodes.
1241            *
1242            * @return the wiki nodes
1243            * @throws SystemException if a system exception occurred
1244            */
1245            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll()
1246                    throws com.liferay.portal.kernel.exception.SystemException;
1247    
1248            /**
1249            * Returns a range of all the wiki nodes.
1250            *
1251            * <p>
1252            * 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.
1253            * </p>
1254            *
1255            * @param start the lower bound of the range of wiki nodes
1256            * @param end the upper bound of the range of wiki nodes (not inclusive)
1257            * @return the range of wiki nodes
1258            * @throws SystemException if a system exception occurred
1259            */
1260            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll(
1261                    int start, int end)
1262                    throws com.liferay.portal.kernel.exception.SystemException;
1263    
1264            /**
1265            * Returns an ordered range of all the wiki nodes.
1266            *
1267            * <p>
1268            * 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.
1269            * </p>
1270            *
1271            * @param start the lower bound of the range of wiki nodes
1272            * @param end the upper bound of the range of wiki nodes (not inclusive)
1273            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1274            * @return the ordered range of wiki nodes
1275            * @throws SystemException if a system exception occurred
1276            */
1277            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll(
1278                    int start, int end,
1279                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1280                    throws com.liferay.portal.kernel.exception.SystemException;
1281    
1282            /**
1283            * Removes all the wiki nodes from the database.
1284            *
1285            * @throws SystemException if a system exception occurred
1286            */
1287            public void removeAll()
1288                    throws com.liferay.portal.kernel.exception.SystemException;
1289    
1290            /**
1291            * Returns the number of wiki nodes.
1292            *
1293            * @return the number of wiki nodes
1294            * @throws SystemException if a system exception occurred
1295            */
1296            public int countAll()
1297                    throws com.liferay.portal.kernel.exception.SystemException;
1298    }