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