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