001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.wiki.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.wiki.model.WikiNode;
020    
021    /**
022     * The persistence interface for the wiki node service.
023     *
024     * <p>
025     * Never modify this interface directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this interface.
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see WikiNodePersistenceImpl
030     * @see WikiNodeUtil
031     * @generated
032     */
033    public interface WikiNodePersistence extends BasePersistence<WikiNode> {
034            /**
035            * Caches the wiki node in the entity cache if it is enabled.
036            *
037            * @param wikiNode the wiki node to cache
038            */
039            public void cacheResult(com.liferay.portlet.wiki.model.WikiNode wikiNode);
040    
041            /**
042            * Caches the wiki nodes in the entity cache if it is enabled.
043            *
044            * @param wikiNodes the wiki nodes to cache
045            */
046            public void cacheResult(
047                    java.util.List<com.liferay.portlet.wiki.model.WikiNode> wikiNodes);
048    
049            /**
050            * Creates a new wiki node with the primary key.
051            *
052            * @param nodeId the primary key for the new wiki node
053            * @return the new wiki node
054            */
055            public com.liferay.portlet.wiki.model.WikiNode create(long nodeId);
056    
057            /**
058            * Removes the wiki node with the primary key from the database. Also notifies the appropriate model listeners.
059            *
060            * @param nodeId the primary key of the wiki node to remove
061            * @return the wiki node that was removed
062            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
063            * @throws SystemException if a system exception occurred
064            */
065            public com.liferay.portlet.wiki.model.WikiNode remove(long nodeId)
066                    throws com.liferay.portal.kernel.exception.SystemException,
067                            com.liferay.portlet.wiki.NoSuchNodeException;
068    
069            public com.liferay.portlet.wiki.model.WikiNode updateImpl(
070                    com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge)
071                    throws com.liferay.portal.kernel.exception.SystemException;
072    
073            /**
074            * Finds the wiki node with the primary key or throws a {@link com.liferay.portlet.wiki.NoSuchNodeException} if it could not be found.
075            *
076            * @param nodeId the primary key of the wiki node to find
077            * @return the wiki node
078            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
079            * @throws SystemException if a system exception occurred
080            */
081            public com.liferay.portlet.wiki.model.WikiNode findByPrimaryKey(long nodeId)
082                    throws com.liferay.portal.kernel.exception.SystemException,
083                            com.liferay.portlet.wiki.NoSuchNodeException;
084    
085            /**
086            * Finds the wiki node with the primary key or returns <code>null</code> if it could not be found.
087            *
088            * @param nodeId the primary key of the wiki node to find
089            * @return the wiki node, or <code>null</code> if a wiki node with the primary key could not be found
090            * @throws SystemException if a system exception occurred
091            */
092            public com.liferay.portlet.wiki.model.WikiNode fetchByPrimaryKey(
093                    long nodeId) throws com.liferay.portal.kernel.exception.SystemException;
094    
095            /**
096            * Finds all the wiki nodes where uuid = &#63;.
097            *
098            * @param uuid the uuid to search with
099            * @return the matching wiki nodes
100            * @throws SystemException if a system exception occurred
101            */
102            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid(
103                    java.lang.String uuid)
104                    throws com.liferay.portal.kernel.exception.SystemException;
105    
106            /**
107            * Finds a range of all the wiki nodes where uuid = &#63;.
108            *
109            * <p>
110            * 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.
111            * </p>
112            *
113            * @param uuid the uuid to search with
114            * @param start the lower bound of the range of wiki nodes to return
115            * @param end the upper bound of the range of wiki nodes to return (not inclusive)
116            * @return the range of matching wiki nodes
117            * @throws SystemException if a system exception occurred
118            */
119            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid(
120                    java.lang.String uuid, int start, int end)
121                    throws com.liferay.portal.kernel.exception.SystemException;
122    
123            /**
124            * Finds an ordered range of all the wiki nodes where uuid = &#63;.
125            *
126            * <p>
127            * 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.
128            * </p>
129            *
130            * @param uuid the uuid to search with
131            * @param start the lower bound of the range of wiki nodes to return
132            * @param end the upper bound of the range of wiki nodes to return (not inclusive)
133            * @param orderByComparator the comparator to order the results by
134            * @return the ordered range of matching wiki nodes
135            * @throws SystemException if a system exception occurred
136            */
137            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid(
138                    java.lang.String uuid, int start, int end,
139                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140                    throws com.liferay.portal.kernel.exception.SystemException;
141    
142            /**
143            * Finds the first wiki node in the ordered set where uuid = &#63;.
144            *
145            * <p>
146            * 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.
147            * </p>
148            *
149            * @param uuid the uuid to search with
150            * @param orderByComparator the comparator to order the set by
151            * @return the first matching wiki node
152            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
153            * @throws SystemException if a system exception occurred
154            */
155            public com.liferay.portlet.wiki.model.WikiNode findByUuid_First(
156                    java.lang.String uuid,
157                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
158                    throws com.liferay.portal.kernel.exception.SystemException,
159                            com.liferay.portlet.wiki.NoSuchNodeException;
160    
161            /**
162            * Finds the last wiki node in the ordered set where uuid = &#63;.
163            *
164            * <p>
165            * 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.
166            * </p>
167            *
168            * @param uuid the uuid to search with
169            * @param orderByComparator the comparator to order the set by
170            * @return the last matching wiki node
171            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
172            * @throws SystemException if a system exception occurred
173            */
174            public com.liferay.portlet.wiki.model.WikiNode findByUuid_Last(
175                    java.lang.String uuid,
176                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
177                    throws com.liferay.portal.kernel.exception.SystemException,
178                            com.liferay.portlet.wiki.NoSuchNodeException;
179    
180            /**
181            * Finds the wiki nodes before and after the current wiki node in the ordered set where uuid = &#63;.
182            *
183            * <p>
184            * 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.
185            * </p>
186            *
187            * @param nodeId the primary key of the current wiki node
188            * @param uuid the uuid to search with
189            * @param orderByComparator the comparator to order the set by
190            * @return the previous, current, and next wiki node
191            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
192            * @throws SystemException if a system exception occurred
193            */
194            public com.liferay.portlet.wiki.model.WikiNode[] findByUuid_PrevAndNext(
195                    long nodeId, java.lang.String uuid,
196                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
197                    throws com.liferay.portal.kernel.exception.SystemException,
198                            com.liferay.portlet.wiki.NoSuchNodeException;
199    
200            /**
201            * Finds the wiki node where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.wiki.NoSuchNodeException} if it could not be found.
202            *
203            * @param uuid the uuid to search with
204            * @param groupId the group id to search with
205            * @return the 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 com.liferay.portlet.wiki.model.WikiNode findByUUID_G(
210                    java.lang.String uuid, long groupId)
211                    throws com.liferay.portal.kernel.exception.SystemException,
212                            com.liferay.portlet.wiki.NoSuchNodeException;
213    
214            /**
215            * Finds the wiki node where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
216            *
217            * @param uuid the uuid to search with
218            * @param groupId the group id to search with
219            * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found
220            * @throws SystemException if a system exception occurred
221            */
222            public com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G(
223                    java.lang.String uuid, long groupId)
224                    throws com.liferay.portal.kernel.exception.SystemException;
225    
226            /**
227            * Finds the wiki node where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
228            *
229            * @param uuid the uuid to search with
230            * @param groupId the group id to search with
231            * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found
232            * @throws SystemException if a system exception occurred
233            */
234            public com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G(
235                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
236                    throws com.liferay.portal.kernel.exception.SystemException;
237    
238            /**
239            * Finds all the wiki nodes where groupId = &#63;.
240            *
241            * @param groupId the group id to search with
242            * @return the matching wiki nodes
243            * @throws SystemException if a system exception occurred
244            */
245            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
246                    long groupId)
247                    throws com.liferay.portal.kernel.exception.SystemException;
248    
249            /**
250            * Finds a range of all the wiki nodes where groupId = &#63;.
251            *
252            * <p>
253            * 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.
254            * </p>
255            *
256            * @param groupId the group id to search with
257            * @param start the lower bound of the range of wiki nodes to return
258            * @param end the upper bound of the range of wiki nodes to return (not inclusive)
259            * @return the range of matching wiki nodes
260            * @throws SystemException if a system exception occurred
261            */
262            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
263                    long groupId, int start, int end)
264                    throws com.liferay.portal.kernel.exception.SystemException;
265    
266            /**
267            * Finds an ordered range of all the wiki nodes where groupId = &#63;.
268            *
269            * <p>
270            * 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.
271            * </p>
272            *
273            * @param groupId the group id to search with
274            * @param start the lower bound of the range of wiki nodes to return
275            * @param end the upper bound of the range of wiki nodes to return (not inclusive)
276            * @param orderByComparator the comparator to order the results by
277            * @return the ordered range of matching wiki nodes
278            * @throws SystemException if a system exception occurred
279            */
280            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
281                    long groupId, int start, int end,
282                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
283                    throws com.liferay.portal.kernel.exception.SystemException;
284    
285            /**
286            * Finds the first wiki node in the ordered set where groupId = &#63;.
287            *
288            * <p>
289            * 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.
290            * </p>
291            *
292            * @param groupId the group id to search with
293            * @param orderByComparator the comparator to order the set by
294            * @return the first matching wiki node
295            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
296            * @throws SystemException if a system exception occurred
297            */
298            public com.liferay.portlet.wiki.model.WikiNode findByGroupId_First(
299                    long groupId,
300                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
301                    throws com.liferay.portal.kernel.exception.SystemException,
302                            com.liferay.portlet.wiki.NoSuchNodeException;
303    
304            /**
305            * Finds the last wiki node in the ordered set where groupId = &#63;.
306            *
307            * <p>
308            * 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.
309            * </p>
310            *
311            * @param groupId the group id to search with
312            * @param orderByComparator the comparator to order the set by
313            * @return the last matching wiki node
314            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
315            * @throws SystemException if a system exception occurred
316            */
317            public com.liferay.portlet.wiki.model.WikiNode findByGroupId_Last(
318                    long groupId,
319                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
320                    throws com.liferay.portal.kernel.exception.SystemException,
321                            com.liferay.portlet.wiki.NoSuchNodeException;
322    
323            /**
324            * Finds the wiki nodes before and after the current wiki node in the ordered set where groupId = &#63;.
325            *
326            * <p>
327            * 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.
328            * </p>
329            *
330            * @param nodeId the primary key of the current wiki node
331            * @param groupId the group id to search with
332            * @param orderByComparator the comparator to order the set by
333            * @return the previous, current, and next wiki node
334            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
335            * @throws SystemException if a system exception occurred
336            */
337            public com.liferay.portlet.wiki.model.WikiNode[] findByGroupId_PrevAndNext(
338                    long nodeId, long groupId,
339                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
340                    throws com.liferay.portal.kernel.exception.SystemException,
341                            com.liferay.portlet.wiki.NoSuchNodeException;
342    
343            /**
344            * Filters by the user's permissions and finds all the wiki nodes where groupId = &#63;.
345            *
346            * @param groupId the group id to search with
347            * @return the matching wiki nodes that the user has permission to view
348            * @throws SystemException if a system exception occurred
349            */
350            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId(
351                    long groupId)
352                    throws com.liferay.portal.kernel.exception.SystemException;
353    
354            /**
355            * Filters by the user's permissions and finds a range of all the wiki nodes where groupId = &#63;.
356            *
357            * <p>
358            * 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.
359            * </p>
360            *
361            * @param groupId the group id to search with
362            * @param start the lower bound of the range of wiki nodes to return
363            * @param end the upper bound of the range of wiki nodes to return (not inclusive)
364            * @return the range of matching wiki nodes that the user has permission to view
365            * @throws SystemException if a system exception occurred
366            */
367            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId(
368                    long groupId, int start, int end)
369                    throws com.liferay.portal.kernel.exception.SystemException;
370    
371            /**
372            * Filters by the user's permissions and finds an ordered range of all the wiki nodes where groupId = &#63;.
373            *
374            * <p>
375            * 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.
376            * </p>
377            *
378            * @param groupId the group id to search with
379            * @param start the lower bound of the range of wiki nodes to return
380            * @param end the upper bound of the range of wiki nodes to return (not inclusive)
381            * @param orderByComparator the comparator to order the results by
382            * @return the ordered range of matching wiki nodes that the user has permission to view
383            * @throws SystemException if a system exception occurred
384            */
385            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId(
386                    long groupId, int start, int end,
387                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
388                    throws com.liferay.portal.kernel.exception.SystemException;
389    
390            /**
391            * Finds all the wiki nodes where companyId = &#63;.
392            *
393            * @param companyId the company id to search with
394            * @return the matching wiki nodes
395            * @throws SystemException if a system exception occurred
396            */
397            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
398                    long companyId)
399                    throws com.liferay.portal.kernel.exception.SystemException;
400    
401            /**
402            * Finds a range of all the wiki nodes where companyId = &#63;.
403            *
404            * <p>
405            * 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.
406            * </p>
407            *
408            * @param companyId the company id to search with
409            * @param start the lower bound of the range of wiki nodes to return
410            * @param end the upper bound of the range of wiki nodes to return (not inclusive)
411            * @return the range of matching wiki nodes
412            * @throws SystemException if a system exception occurred
413            */
414            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
415                    long companyId, int start, int end)
416                    throws com.liferay.portal.kernel.exception.SystemException;
417    
418            /**
419            * Finds an ordered range of all the wiki nodes where companyId = &#63;.
420            *
421            * <p>
422            * 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.
423            * </p>
424            *
425            * @param companyId the company id to search with
426            * @param start the lower bound of the range of wiki nodes to return
427            * @param end the upper bound of the range of wiki nodes to return (not inclusive)
428            * @param orderByComparator the comparator to order the results by
429            * @return the ordered range of matching wiki nodes
430            * @throws SystemException if a system exception occurred
431            */
432            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
433                    long companyId, int start, int end,
434                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
435                    throws com.liferay.portal.kernel.exception.SystemException;
436    
437            /**
438            * Finds the first wiki node in the ordered set where companyId = &#63;.
439            *
440            * <p>
441            * 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.
442            * </p>
443            *
444            * @param companyId the company id to search with
445            * @param orderByComparator the comparator to order the set by
446            * @return the first 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 com.liferay.portlet.wiki.model.WikiNode findByCompanyId_First(
451                    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    
456            /**
457            * Finds the last wiki node in the ordered set where companyId = &#63;.
458            *
459            * <p>
460            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
461            * </p>
462            *
463            * @param companyId the company id to search with
464            * @param orderByComparator the comparator to order the set by
465            * @return the last matching wiki node
466            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
467            * @throws SystemException if a system exception occurred
468            */
469            public com.liferay.portlet.wiki.model.WikiNode findByCompanyId_Last(
470                    long companyId,
471                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
472                    throws com.liferay.portal.kernel.exception.SystemException,
473                            com.liferay.portlet.wiki.NoSuchNodeException;
474    
475            /**
476            * Finds the wiki nodes before and after the current wiki node in the ordered set where companyId = &#63;.
477            *
478            * <p>
479            * 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.
480            * </p>
481            *
482            * @param nodeId the primary key of the current wiki node
483            * @param companyId the company id to search with
484            * @param orderByComparator the comparator to order the set by
485            * @return the previous, current, and next wiki node
486            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
487            * @throws SystemException if a system exception occurred
488            */
489            public com.liferay.portlet.wiki.model.WikiNode[] findByCompanyId_PrevAndNext(
490                    long nodeId, long companyId,
491                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
492                    throws com.liferay.portal.kernel.exception.SystemException,
493                            com.liferay.portlet.wiki.NoSuchNodeException;
494    
495            /**
496            * Finds the wiki node where groupId = &#63; and name = &#63; or throws a {@link com.liferay.portlet.wiki.NoSuchNodeException} if it could not be found.
497            *
498            * @param groupId the group id to search with
499            * @param name the name to search with
500            * @return the matching wiki node
501            * @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
502            * @throws SystemException if a system exception occurred
503            */
504            public com.liferay.portlet.wiki.model.WikiNode findByG_N(long groupId,
505                    java.lang.String name)
506                    throws com.liferay.portal.kernel.exception.SystemException,
507                            com.liferay.portlet.wiki.NoSuchNodeException;
508    
509            /**
510            * Finds the wiki node where groupId = &#63; and name = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
511            *
512            * @param groupId the group id to search with
513            * @param name the name to search with
514            * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found
515            * @throws SystemException if a system exception occurred
516            */
517            public com.liferay.portlet.wiki.model.WikiNode fetchByG_N(long groupId,
518                    java.lang.String name)
519                    throws com.liferay.portal.kernel.exception.SystemException;
520    
521            /**
522            * Finds the wiki node where groupId = &#63; and name = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
523            *
524            * @param groupId the group id to search with
525            * @param name the name to search with
526            * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found
527            * @throws SystemException if a system exception occurred
528            */
529            public com.liferay.portlet.wiki.model.WikiNode fetchByG_N(long groupId,
530                    java.lang.String name, boolean retrieveFromCache)
531                    throws com.liferay.portal.kernel.exception.SystemException;
532    
533            /**
534            * Finds all the wiki nodes.
535            *
536            * @return the wiki nodes
537            * @throws SystemException if a system exception occurred
538            */
539            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll()
540                    throws com.liferay.portal.kernel.exception.SystemException;
541    
542            /**
543            * Finds a range of all the wiki nodes.
544            *
545            * <p>
546            * 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.
547            * </p>
548            *
549            * @param start the lower bound of the range of wiki nodes to return
550            * @param end the upper bound of the range of wiki nodes to return (not inclusive)
551            * @return the range of wiki nodes
552            * @throws SystemException if a system exception occurred
553            */
554            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll(
555                    int start, int end)
556                    throws com.liferay.portal.kernel.exception.SystemException;
557    
558            /**
559            * Finds an ordered range of all the wiki nodes.
560            *
561            * <p>
562            * 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.
563            * </p>
564            *
565            * @param start the lower bound of the range of wiki nodes to return
566            * @param end the upper bound of the range of wiki nodes to return (not inclusive)
567            * @param orderByComparator the comparator to order the results by
568            * @return the ordered range of wiki nodes
569            * @throws SystemException if a system exception occurred
570            */
571            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll(
572                    int start, int end,
573                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
574                    throws com.liferay.portal.kernel.exception.SystemException;
575    
576            /**
577            * Removes all the wiki nodes where uuid = &#63; from the database.
578            *
579            * @param uuid the uuid to search with
580            * @throws SystemException if a system exception occurred
581            */
582            public void removeByUuid(java.lang.String uuid)
583                    throws com.liferay.portal.kernel.exception.SystemException;
584    
585            /**
586            * Removes the wiki node where uuid = &#63; and groupId = &#63; from the database.
587            *
588            * @param uuid the uuid to search with
589            * @param groupId the group id to search with
590            * @throws SystemException if a system exception occurred
591            */
592            public void removeByUUID_G(java.lang.String uuid, long groupId)
593                    throws com.liferay.portal.kernel.exception.SystemException,
594                            com.liferay.portlet.wiki.NoSuchNodeException;
595    
596            /**
597            * Removes all the wiki nodes where groupId = &#63; from the database.
598            *
599            * @param groupId the group id to search with
600            * @throws SystemException if a system exception occurred
601            */
602            public void removeByGroupId(long groupId)
603                    throws com.liferay.portal.kernel.exception.SystemException;
604    
605            /**
606            * Removes all the wiki nodes where companyId = &#63; from the database.
607            *
608            * @param companyId the company id to search with
609            * @throws SystemException if a system exception occurred
610            */
611            public void removeByCompanyId(long companyId)
612                    throws com.liferay.portal.kernel.exception.SystemException;
613    
614            /**
615            * Removes the wiki node where groupId = &#63; and name = &#63; from the database.
616            *
617            * @param groupId the group id to search with
618            * @param name the name to search with
619            * @throws SystemException if a system exception occurred
620            */
621            public void removeByG_N(long groupId, java.lang.String name)
622                    throws com.liferay.portal.kernel.exception.SystemException,
623                            com.liferay.portlet.wiki.NoSuchNodeException;
624    
625            /**
626            * Removes all the wiki nodes from the database.
627            *
628            * @throws SystemException if a system exception occurred
629            */
630            public void removeAll()
631                    throws com.liferay.portal.kernel.exception.SystemException;
632    
633            /**
634            * Counts all the wiki nodes where uuid = &#63;.
635            *
636            * @param uuid the uuid to search with
637            * @return the number of matching wiki nodes
638            * @throws SystemException if a system exception occurred
639            */
640            public int countByUuid(java.lang.String uuid)
641                    throws com.liferay.portal.kernel.exception.SystemException;
642    
643            /**
644            * Counts all the wiki nodes where uuid = &#63; and groupId = &#63;.
645            *
646            * @param uuid the uuid to search with
647            * @param groupId the group id to search with
648            * @return the number of matching wiki nodes
649            * @throws SystemException if a system exception occurred
650            */
651            public int countByUUID_G(java.lang.String uuid, long groupId)
652                    throws com.liferay.portal.kernel.exception.SystemException;
653    
654            /**
655            * Counts all the wiki nodes where groupId = &#63;.
656            *
657            * @param groupId the group id to search with
658            * @return the number of matching wiki nodes
659            * @throws SystemException if a system exception occurred
660            */
661            public int countByGroupId(long groupId)
662                    throws com.liferay.portal.kernel.exception.SystemException;
663    
664            /**
665            * Filters by the user's permissions and counts all the wiki nodes where groupId = &#63;.
666            *
667            * @param groupId the group id to search with
668            * @return the number of matching wiki nodes that the user has permission to view
669            * @throws SystemException if a system exception occurred
670            */
671            public int filterCountByGroupId(long groupId)
672                    throws com.liferay.portal.kernel.exception.SystemException;
673    
674            /**
675            * Counts all the wiki nodes where companyId = &#63;.
676            *
677            * @param companyId the company id to search with
678            * @return the number of matching wiki nodes
679            * @throws SystemException if a system exception occurred
680            */
681            public int countByCompanyId(long companyId)
682                    throws com.liferay.portal.kernel.exception.SystemException;
683    
684            /**
685            * Counts all the wiki nodes where groupId = &#63; and name = &#63;.
686            *
687            * @param groupId the group id to search with
688            * @param name the name to search with
689            * @return the number of matching wiki nodes
690            * @throws SystemException if a system exception occurred
691            */
692            public int countByG_N(long groupId, java.lang.String name)
693                    throws com.liferay.portal.kernel.exception.SystemException;
694    
695            /**
696            * Filters by the user's permissions and counts all the wiki nodes where groupId = &#63; and name = &#63;.
697            *
698            * @param groupId the group id to search with
699            * @param name the name to search with
700            * @return the number of matching wiki nodes that the user has permission to view
701            * @throws SystemException if a system exception occurred
702            */
703            public int filterCountByG_N(long groupId, java.lang.String name)
704                    throws com.liferay.portal.kernel.exception.SystemException;
705    
706            /**
707            * Counts all the wiki nodes.
708            *
709            * @return the number of wiki nodes
710            * @throws SystemException if a system exception occurred
711            */
712            public int countAll()
713                    throws com.liferay.portal.kernel.exception.SystemException;
714    }