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