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.journal.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.journal.model.JournalStructure;
020    
021    /**
022     * The persistence interface for the journal structure service.
023     *
024     * <p>
025     * Never modify this interface directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this interface.
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see JournalStructurePersistenceImpl
030     * @see JournalStructureUtil
031     * @generated
032     */
033    public interface JournalStructurePersistence extends BasePersistence<JournalStructure> {
034            /**
035            * Caches the journal structure in the entity cache if it is enabled.
036            *
037            * @param journalStructure the journal structure to cache
038            */
039            public void cacheResult(
040                    com.liferay.portlet.journal.model.JournalStructure journalStructure);
041    
042            /**
043            * Caches the journal structures in the entity cache if it is enabled.
044            *
045            * @param journalStructures the journal structures to cache
046            */
047            public void cacheResult(
048                    java.util.List<com.liferay.portlet.journal.model.JournalStructure> journalStructures);
049    
050            /**
051            * Creates a new journal structure with the primary key.
052            *
053            * @param id the primary key for the new journal structure
054            * @return the new journal structure
055            */
056            public com.liferay.portlet.journal.model.JournalStructure create(long id);
057    
058            /**
059            * Removes the journal structure with the primary key from the database. Also notifies the appropriate model listeners.
060            *
061            * @param id the primary key of the journal structure to remove
062            * @return the journal structure that was removed
063            * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found
064            * @throws SystemException if a system exception occurred
065            */
066            public com.liferay.portlet.journal.model.JournalStructure remove(long id)
067                    throws com.liferay.portal.kernel.exception.SystemException,
068                            com.liferay.portlet.journal.NoSuchStructureException;
069    
070            public com.liferay.portlet.journal.model.JournalStructure updateImpl(
071                    com.liferay.portlet.journal.model.JournalStructure journalStructure,
072                    boolean merge)
073                    throws com.liferay.portal.kernel.exception.SystemException;
074    
075            /**
076            * Finds the journal structure with the primary key or throws a {@link com.liferay.portlet.journal.NoSuchStructureException} if it could not be found.
077            *
078            * @param id the primary key of the journal structure to find
079            * @return the journal structure
080            * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found
081            * @throws SystemException if a system exception occurred
082            */
083            public com.liferay.portlet.journal.model.JournalStructure findByPrimaryKey(
084                    long id)
085                    throws com.liferay.portal.kernel.exception.SystemException,
086                            com.liferay.portlet.journal.NoSuchStructureException;
087    
088            /**
089            * Finds the journal structure with the primary key or returns <code>null</code> if it could not be found.
090            *
091            * @param id the primary key of the journal structure to find
092            * @return the journal structure, or <code>null</code> if a journal structure with the primary key could not be found
093            * @throws SystemException if a system exception occurred
094            */
095            public com.liferay.portlet.journal.model.JournalStructure fetchByPrimaryKey(
096                    long id) throws com.liferay.portal.kernel.exception.SystemException;
097    
098            /**
099            * Finds all the journal structures where uuid = &#63;.
100            *
101            * @param uuid the uuid to search with
102            * @return the matching journal structures
103            * @throws SystemException if a system exception occurred
104            */
105            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
106                    java.lang.String uuid)
107                    throws com.liferay.portal.kernel.exception.SystemException;
108    
109            /**
110            * Finds a range of all the journal structures where uuid = &#63;.
111            *
112            * <p>
113            * 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.
114            * </p>
115            *
116            * @param uuid the uuid to search with
117            * @param start the lower bound of the range of journal structures to return
118            * @param end the upper bound of the range of journal structures to return (not inclusive)
119            * @return the range of matching journal structures
120            * @throws SystemException if a system exception occurred
121            */
122            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
123                    java.lang.String uuid, int start, int end)
124                    throws com.liferay.portal.kernel.exception.SystemException;
125    
126            /**
127            * Finds an ordered range of all the journal structures where uuid = &#63;.
128            *
129            * <p>
130            * 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.
131            * </p>
132            *
133            * @param uuid the uuid to search with
134            * @param start the lower bound of the range of journal structures to return
135            * @param end the upper bound of the range of journal structures to return (not inclusive)
136            * @param orderByComparator the comparator to order the results by
137            * @return the ordered range of matching journal structures
138            * @throws SystemException if a system exception occurred
139            */
140            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
141                    java.lang.String uuid, int start, int end,
142                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143                    throws com.liferay.portal.kernel.exception.SystemException;
144    
145            /**
146            * Finds the first journal structure in the ordered set where uuid = &#63;.
147            *
148            * <p>
149            * 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.
150            * </p>
151            *
152            * @param uuid the uuid to search with
153            * @param orderByComparator the comparator to order the set by
154            * @return the first matching journal structure
155            * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found
156            * @throws SystemException if a system exception occurred
157            */
158            public com.liferay.portlet.journal.model.JournalStructure findByUuid_First(
159                    java.lang.String uuid,
160                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
161                    throws com.liferay.portal.kernel.exception.SystemException,
162                            com.liferay.portlet.journal.NoSuchStructureException;
163    
164            /**
165            * Finds the last journal structure in the ordered set where uuid = &#63;.
166            *
167            * <p>
168            * 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.
169            * </p>
170            *
171            * @param uuid the uuid to search with
172            * @param orderByComparator the comparator to order the set by
173            * @return the last matching journal structure
174            * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public com.liferay.portlet.journal.model.JournalStructure findByUuid_Last(
178                    java.lang.String uuid,
179                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180                    throws com.liferay.portal.kernel.exception.SystemException,
181                            com.liferay.portlet.journal.NoSuchStructureException;
182    
183            /**
184            * Finds the journal structures before and after the current journal structure in the ordered set where uuid = &#63;.
185            *
186            * <p>
187            * 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.
188            * </p>
189            *
190            * @param id the primary key of the current journal structure
191            * @param uuid the uuid to search with
192            * @param orderByComparator the comparator to order the set by
193            * @return the previous, current, and next journal structure
194            * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found
195            * @throws SystemException if a system exception occurred
196            */
197            public com.liferay.portlet.journal.model.JournalStructure[] findByUuid_PrevAndNext(
198                    long id, java.lang.String uuid,
199                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
200                    throws com.liferay.portal.kernel.exception.SystemException,
201                            com.liferay.portlet.journal.NoSuchStructureException;
202    
203            /**
204            * Finds the journal structure where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.journal.NoSuchStructureException} if it could not be found.
205            *
206            * @param uuid the uuid to search with
207            * @param groupId the group id to search with
208            * @return the matching journal structure
209            * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found
210            * @throws SystemException if a system exception occurred
211            */
212            public com.liferay.portlet.journal.model.JournalStructure findByUUID_G(
213                    java.lang.String uuid, long groupId)
214                    throws com.liferay.portal.kernel.exception.SystemException,
215                            com.liferay.portlet.journal.NoSuchStructureException;
216    
217            /**
218            * Finds the journal structure where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
219            *
220            * @param uuid the uuid to search with
221            * @param groupId the group id to search with
222            * @return the matching journal structure, or <code>null</code> if a matching journal structure could not be found
223            * @throws SystemException if a system exception occurred
224            */
225            public com.liferay.portlet.journal.model.JournalStructure fetchByUUID_G(
226                    java.lang.String uuid, long groupId)
227                    throws com.liferay.portal.kernel.exception.SystemException;
228    
229            /**
230            * Finds the journal structure where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
231            *
232            * @param uuid the uuid to search with
233            * @param groupId the group id to search with
234            * @return the matching journal structure, or <code>null</code> if a matching journal structure could not be found
235            * @throws SystemException if a system exception occurred
236            */
237            public com.liferay.portlet.journal.model.JournalStructure fetchByUUID_G(
238                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
239                    throws com.liferay.portal.kernel.exception.SystemException;
240    
241            /**
242            * Finds all the journal structures where groupId = &#63;.
243            *
244            * @param groupId the group id to search with
245            * @return the matching journal structures
246            * @throws SystemException if a system exception occurred
247            */
248            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
249                    long groupId)
250                    throws com.liferay.portal.kernel.exception.SystemException;
251    
252            /**
253            * Finds a range of all the journal structures where groupId = &#63;.
254            *
255            * <p>
256            * 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.
257            * </p>
258            *
259            * @param groupId the group id to search with
260            * @param start the lower bound of the range of journal structures to return
261            * @param end the upper bound of the range of journal structures to return (not inclusive)
262            * @return the range of matching journal structures
263            * @throws SystemException if a system exception occurred
264            */
265            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
266                    long groupId, int start, int end)
267                    throws com.liferay.portal.kernel.exception.SystemException;
268    
269            /**
270            * Finds an ordered range of all the journal structures where groupId = &#63;.
271            *
272            * <p>
273            * 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.
274            * </p>
275            *
276            * @param groupId the group id to search with
277            * @param start the lower bound of the range of journal structures to return
278            * @param end the upper bound of the range of journal structures to return (not inclusive)
279            * @param orderByComparator the comparator to order the results by
280            * @return the ordered range of matching journal structures
281            * @throws SystemException if a system exception occurred
282            */
283            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
284                    long groupId, int start, int end,
285                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
286                    throws com.liferay.portal.kernel.exception.SystemException;
287    
288            /**
289            * Finds the first journal structure in the ordered set where groupId = &#63;.
290            *
291            * <p>
292            * 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.
293            * </p>
294            *
295            * @param groupId the group id to search with
296            * @param orderByComparator the comparator to order the set by
297            * @return the first matching journal structure
298            * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found
299            * @throws SystemException if a system exception occurred
300            */
301            public com.liferay.portlet.journal.model.JournalStructure findByGroupId_First(
302                    long groupId,
303                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
304                    throws com.liferay.portal.kernel.exception.SystemException,
305                            com.liferay.portlet.journal.NoSuchStructureException;
306    
307            /**
308            * Finds the last journal structure in the ordered set where groupId = &#63;.
309            *
310            * <p>
311            * 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.
312            * </p>
313            *
314            * @param groupId the group id to search with
315            * @param orderByComparator the comparator to order the set by
316            * @return the last matching journal structure
317            * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found
318            * @throws SystemException if a system exception occurred
319            */
320            public com.liferay.portlet.journal.model.JournalStructure findByGroupId_Last(
321                    long groupId,
322                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
323                    throws com.liferay.portal.kernel.exception.SystemException,
324                            com.liferay.portlet.journal.NoSuchStructureException;
325    
326            /**
327            * Finds the journal structures before and after the current journal structure in the ordered set where groupId = &#63;.
328            *
329            * <p>
330            * 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.
331            * </p>
332            *
333            * @param id the primary key of the current journal structure
334            * @param groupId the group id to search with
335            * @param orderByComparator the comparator to order the set by
336            * @return the previous, current, and next journal structure
337            * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found
338            * @throws SystemException if a system exception occurred
339            */
340            public com.liferay.portlet.journal.model.JournalStructure[] findByGroupId_PrevAndNext(
341                    long id, long groupId,
342                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
343                    throws com.liferay.portal.kernel.exception.SystemException,
344                            com.liferay.portlet.journal.NoSuchStructureException;
345    
346            /**
347            * Filters by the user's permissions and finds all the journal structures where groupId = &#63;.
348            *
349            * @param groupId the group id to search with
350            * @return the matching journal structures that the user has permission to view
351            * @throws SystemException if a system exception occurred
352            */
353            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByGroupId(
354                    long groupId)
355                    throws com.liferay.portal.kernel.exception.SystemException;
356    
357            /**
358            * Filters by the user's permissions and finds a range of all the journal structures where groupId = &#63;.
359            *
360            * <p>
361            * 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.
362            * </p>
363            *
364            * @param groupId the group id to search with
365            * @param start the lower bound of the range of journal structures to return
366            * @param end the upper bound of the range of journal structures to return (not inclusive)
367            * @return the range of matching journal structures that the user has permission to view
368            * @throws SystemException if a system exception occurred
369            */
370            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByGroupId(
371                    long groupId, int start, int end)
372                    throws com.liferay.portal.kernel.exception.SystemException;
373    
374            /**
375            * Filters by the user's permissions and finds an ordered range of all the journal structures where groupId = &#63;.
376            *
377            * <p>
378            * 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.
379            * </p>
380            *
381            * @param groupId the group id to search with
382            * @param start the lower bound of the range of journal structures to return
383            * @param end the upper bound of the range of journal structures to return (not inclusive)
384            * @param orderByComparator the comparator to order the results by
385            * @return the ordered range of matching journal structures that the user has permission to view
386            * @throws SystemException if a system exception occurred
387            */
388            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByGroupId(
389                    long groupId, int start, int end,
390                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
391                    throws com.liferay.portal.kernel.exception.SystemException;
392    
393            /**
394            * Finds all the journal structures where structureId = &#63;.
395            *
396            * @param structureId the structure id to search with
397            * @return the matching journal structures
398            * @throws SystemException if a system exception occurred
399            */
400            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
401                    java.lang.String structureId)
402                    throws com.liferay.portal.kernel.exception.SystemException;
403    
404            /**
405            * Finds a range of all the journal structures where structureId = &#63;.
406            *
407            * <p>
408            * 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.
409            * </p>
410            *
411            * @param structureId the structure id to search with
412            * @param start the lower bound of the range of journal structures to return
413            * @param end the upper bound of the range of journal structures to return (not inclusive)
414            * @return the range of matching journal structures
415            * @throws SystemException if a system exception occurred
416            */
417            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
418                    java.lang.String structureId, int start, int end)
419                    throws com.liferay.portal.kernel.exception.SystemException;
420    
421            /**
422            * Finds an ordered range of all the journal structures where structureId = &#63;.
423            *
424            * <p>
425            * 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.
426            * </p>
427            *
428            * @param structureId the structure id to search with
429            * @param start the lower bound of the range of journal structures to return
430            * @param end the upper bound of the range of journal structures to return (not inclusive)
431            * @param orderByComparator the comparator to order the results by
432            * @return the ordered range of matching journal structures
433            * @throws SystemException if a system exception occurred
434            */
435            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
436                    java.lang.String structureId, int start, int end,
437                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
438                    throws com.liferay.portal.kernel.exception.SystemException;
439    
440            /**
441            * Finds the first journal structure in the ordered set where structureId = &#63;.
442            *
443            * <p>
444            * 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.
445            * </p>
446            *
447            * @param structureId the structure id to search with
448            * @param orderByComparator the comparator to order the set by
449            * @return the first matching journal structure
450            * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found
451            * @throws SystemException if a system exception occurred
452            */
453            public com.liferay.portlet.journal.model.JournalStructure findByStructureId_First(
454                    java.lang.String structureId,
455                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
456                    throws com.liferay.portal.kernel.exception.SystemException,
457                            com.liferay.portlet.journal.NoSuchStructureException;
458    
459            /**
460            * Finds the last journal structure in the ordered set where structureId = &#63;.
461            *
462            * <p>
463            * 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.
464            * </p>
465            *
466            * @param structureId the structure id to search with
467            * @param orderByComparator the comparator to order the set by
468            * @return the last matching journal structure
469            * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found
470            * @throws SystemException if a system exception occurred
471            */
472            public com.liferay.portlet.journal.model.JournalStructure findByStructureId_Last(
473                    java.lang.String structureId,
474                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
475                    throws com.liferay.portal.kernel.exception.SystemException,
476                            com.liferay.portlet.journal.NoSuchStructureException;
477    
478            /**
479            * Finds the journal structures before and after the current journal structure in the ordered set where structureId = &#63;.
480            *
481            * <p>
482            * 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.
483            * </p>
484            *
485            * @param id the primary key of the current journal structure
486            * @param structureId the structure id to search with
487            * @param orderByComparator the comparator to order the set by
488            * @return the previous, current, and next journal structure
489            * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found
490            * @throws SystemException if a system exception occurred
491            */
492            public com.liferay.portlet.journal.model.JournalStructure[] findByStructureId_PrevAndNext(
493                    long id, java.lang.String structureId,
494                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
495                    throws com.liferay.portal.kernel.exception.SystemException,
496                            com.liferay.portlet.journal.NoSuchStructureException;
497    
498            /**
499            * Finds the journal structure where groupId = &#63; and structureId = &#63; or throws a {@link com.liferay.portlet.journal.NoSuchStructureException} if it could not be found.
500            *
501            * @param groupId the group id to search with
502            * @param structureId the structure id to search with
503            * @return the matching journal structure
504            * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found
505            * @throws SystemException if a system exception occurred
506            */
507            public com.liferay.portlet.journal.model.JournalStructure findByG_S(
508                    long groupId, java.lang.String structureId)
509                    throws com.liferay.portal.kernel.exception.SystemException,
510                            com.liferay.portlet.journal.NoSuchStructureException;
511    
512            /**
513            * Finds the journal structure where groupId = &#63; and structureId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
514            *
515            * @param groupId the group id to search with
516            * @param structureId the structure id to search with
517            * @return the matching journal structure, or <code>null</code> if a matching journal structure could not be found
518            * @throws SystemException if a system exception occurred
519            */
520            public com.liferay.portlet.journal.model.JournalStructure fetchByG_S(
521                    long groupId, java.lang.String structureId)
522                    throws com.liferay.portal.kernel.exception.SystemException;
523    
524            /**
525            * Finds the journal structure where groupId = &#63; and structureId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
526            *
527            * @param groupId the group id to search with
528            * @param structureId the structure id to search with
529            * @return the matching journal structure, or <code>null</code> if a matching journal structure could not be found
530            * @throws SystemException if a system exception occurred
531            */
532            public com.liferay.portlet.journal.model.JournalStructure fetchByG_S(
533                    long groupId, java.lang.String structureId, boolean retrieveFromCache)
534                    throws com.liferay.portal.kernel.exception.SystemException;
535    
536            /**
537            * Finds all the journal structures where groupId = &#63; and parentStructureId = &#63;.
538            *
539            * @param groupId the group id to search with
540            * @param parentStructureId the parent structure id to search with
541            * @return the matching journal structures
542            * @throws SystemException if a system exception occurred
543            */
544            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
545                    long groupId, java.lang.String parentStructureId)
546                    throws com.liferay.portal.kernel.exception.SystemException;
547    
548            /**
549            * Finds a range of all the journal structures where groupId = &#63; and parentStructureId = &#63;.
550            *
551            * <p>
552            * 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.
553            * </p>
554            *
555            * @param groupId the group id to search with
556            * @param parentStructureId the parent structure id to search with
557            * @param start the lower bound of the range of journal structures to return
558            * @param end the upper bound of the range of journal structures to return (not inclusive)
559            * @return the range of matching journal structures
560            * @throws SystemException if a system exception occurred
561            */
562            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
563                    long groupId, java.lang.String parentStructureId, int start, int end)
564                    throws com.liferay.portal.kernel.exception.SystemException;
565    
566            /**
567            * Finds an ordered range of all the journal structures where groupId = &#63; and parentStructureId = &#63;.
568            *
569            * <p>
570            * 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.
571            * </p>
572            *
573            * @param groupId the group id to search with
574            * @param parentStructureId the parent structure id to search with
575            * @param start the lower bound of the range of journal structures to return
576            * @param end the upper bound of the range of journal structures to return (not inclusive)
577            * @param orderByComparator the comparator to order the results by
578            * @return the ordered range of matching journal structures
579            * @throws SystemException if a system exception occurred
580            */
581            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
582                    long groupId, java.lang.String parentStructureId, int start, int end,
583                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
584                    throws com.liferay.portal.kernel.exception.SystemException;
585    
586            /**
587            * Finds the first journal structure in the ordered set where groupId = &#63; and parentStructureId = &#63;.
588            *
589            * <p>
590            * 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.
591            * </p>
592            *
593            * @param groupId the group id to search with
594            * @param parentStructureId the parent structure id to search with
595            * @param orderByComparator the comparator to order the set by
596            * @return the first matching journal structure
597            * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found
598            * @throws SystemException if a system exception occurred
599            */
600            public com.liferay.portlet.journal.model.JournalStructure findByG_P_First(
601                    long groupId, java.lang.String parentStructureId,
602                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
603                    throws com.liferay.portal.kernel.exception.SystemException,
604                            com.liferay.portlet.journal.NoSuchStructureException;
605    
606            /**
607            * Finds the last journal structure in the ordered set where groupId = &#63; and parentStructureId = &#63;.
608            *
609            * <p>
610            * 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.
611            * </p>
612            *
613            * @param groupId the group id to search with
614            * @param parentStructureId the parent structure id to search with
615            * @param orderByComparator the comparator to order the set by
616            * @return the last matching journal structure
617            * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found
618            * @throws SystemException if a system exception occurred
619            */
620            public com.liferay.portlet.journal.model.JournalStructure findByG_P_Last(
621                    long groupId, java.lang.String parentStructureId,
622                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
623                    throws com.liferay.portal.kernel.exception.SystemException,
624                            com.liferay.portlet.journal.NoSuchStructureException;
625    
626            /**
627            * Finds the journal structures before and after the current journal structure in the ordered set where groupId = &#63; and parentStructureId = &#63;.
628            *
629            * <p>
630            * 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.
631            * </p>
632            *
633            * @param id the primary key of the current journal structure
634            * @param groupId the group id to search with
635            * @param parentStructureId the parent structure id to search with
636            * @param orderByComparator the comparator to order the set by
637            * @return the previous, current, and next journal structure
638            * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found
639            * @throws SystemException if a system exception occurred
640            */
641            public com.liferay.portlet.journal.model.JournalStructure[] findByG_P_PrevAndNext(
642                    long id, long groupId, java.lang.String parentStructureId,
643                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
644                    throws com.liferay.portal.kernel.exception.SystemException,
645                            com.liferay.portlet.journal.NoSuchStructureException;
646    
647            /**
648            * Filters by the user's permissions and finds all the journal structures where groupId = &#63; and parentStructureId = &#63;.
649            *
650            * @param groupId the group id to search with
651            * @param parentStructureId the parent structure id to search with
652            * @return the matching journal structures that the user has permission to view
653            * @throws SystemException if a system exception occurred
654            */
655            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByG_P(
656                    long groupId, java.lang.String parentStructureId)
657                    throws com.liferay.portal.kernel.exception.SystemException;
658    
659            /**
660            * Filters by the user's permissions and finds a range of all the journal structures where groupId = &#63; and parentStructureId = &#63;.
661            *
662            * <p>
663            * 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.
664            * </p>
665            *
666            * @param groupId the group id to search with
667            * @param parentStructureId the parent structure id to search with
668            * @param start the lower bound of the range of journal structures to return
669            * @param end the upper bound of the range of journal structures to return (not inclusive)
670            * @return the range of matching journal structures that the user has permission to view
671            * @throws SystemException if a system exception occurred
672            */
673            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByG_P(
674                    long groupId, java.lang.String parentStructureId, int start, int end)
675                    throws com.liferay.portal.kernel.exception.SystemException;
676    
677            /**
678            * Filters by the user's permissions and finds an ordered range of all the journal structures where groupId = &#63; and parentStructureId = &#63;.
679            *
680            * <p>
681            * 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.
682            * </p>
683            *
684            * @param groupId the group id to search with
685            * @param parentStructureId the parent structure id to search with
686            * @param start the lower bound of the range of journal structures to return
687            * @param end the upper bound of the range of journal structures to return (not inclusive)
688            * @param orderByComparator the comparator to order the results by
689            * @return the ordered range of matching journal structures that the user has permission to view
690            * @throws SystemException if a system exception occurred
691            */
692            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByG_P(
693                    long groupId, java.lang.String parentStructureId, int start, int end,
694                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
695                    throws com.liferay.portal.kernel.exception.SystemException;
696    
697            /**
698            * Finds all the journal structures.
699            *
700            * @return the journal structures
701            * @throws SystemException if a system exception occurred
702            */
703            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll()
704                    throws com.liferay.portal.kernel.exception.SystemException;
705    
706            /**
707            * Finds a range of all the journal structures.
708            *
709            * <p>
710            * 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.
711            * </p>
712            *
713            * @param start the lower bound of the range of journal structures to return
714            * @param end the upper bound of the range of journal structures to return (not inclusive)
715            * @return the range of journal structures
716            * @throws SystemException if a system exception occurred
717            */
718            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll(
719                    int start, int end)
720                    throws com.liferay.portal.kernel.exception.SystemException;
721    
722            /**
723            * Finds an ordered range of all the journal structures.
724            *
725            * <p>
726            * 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.
727            * </p>
728            *
729            * @param start the lower bound of the range of journal structures to return
730            * @param end the upper bound of the range of journal structures to return (not inclusive)
731            * @param orderByComparator the comparator to order the results by
732            * @return the ordered range of journal structures
733            * @throws SystemException if a system exception occurred
734            */
735            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll(
736                    int start, int end,
737                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
738                    throws com.liferay.portal.kernel.exception.SystemException;
739    
740            /**
741            * Removes all the journal structures where uuid = &#63; from the database.
742            *
743            * @param uuid the uuid to search with
744            * @throws SystemException if a system exception occurred
745            */
746            public void removeByUuid(java.lang.String uuid)
747                    throws com.liferay.portal.kernel.exception.SystemException;
748    
749            /**
750            * Removes the journal structure where uuid = &#63; and groupId = &#63; from the database.
751            *
752            * @param uuid the uuid to search with
753            * @param groupId the group id to search with
754            * @throws SystemException if a system exception occurred
755            */
756            public void removeByUUID_G(java.lang.String uuid, long groupId)
757                    throws com.liferay.portal.kernel.exception.SystemException,
758                            com.liferay.portlet.journal.NoSuchStructureException;
759    
760            /**
761            * Removes all the journal structures where groupId = &#63; from the database.
762            *
763            * @param groupId the group id to search with
764            * @throws SystemException if a system exception occurred
765            */
766            public void removeByGroupId(long groupId)
767                    throws com.liferay.portal.kernel.exception.SystemException;
768    
769            /**
770            * Removes all the journal structures where structureId = &#63; from the database.
771            *
772            * @param structureId the structure id to search with
773            * @throws SystemException if a system exception occurred
774            */
775            public void removeByStructureId(java.lang.String structureId)
776                    throws com.liferay.portal.kernel.exception.SystemException;
777    
778            /**
779            * Removes the journal structure where groupId = &#63; and structureId = &#63; from the database.
780            *
781            * @param groupId the group id to search with
782            * @param structureId the structure id to search with
783            * @throws SystemException if a system exception occurred
784            */
785            public void removeByG_S(long groupId, java.lang.String structureId)
786                    throws com.liferay.portal.kernel.exception.SystemException,
787                            com.liferay.portlet.journal.NoSuchStructureException;
788    
789            /**
790            * Removes all the journal structures where groupId = &#63; and parentStructureId = &#63; from the database.
791            *
792            * @param groupId the group id to search with
793            * @param parentStructureId the parent structure id to search with
794            * @throws SystemException if a system exception occurred
795            */
796            public void removeByG_P(long groupId, java.lang.String parentStructureId)
797                    throws com.liferay.portal.kernel.exception.SystemException;
798    
799            /**
800            * Removes all the journal structures from the database.
801            *
802            * @throws SystemException if a system exception occurred
803            */
804            public void removeAll()
805                    throws com.liferay.portal.kernel.exception.SystemException;
806    
807            /**
808            * Counts all the journal structures where uuid = &#63;.
809            *
810            * @param uuid the uuid to search with
811            * @return the number of matching journal structures
812            * @throws SystemException if a system exception occurred
813            */
814            public int countByUuid(java.lang.String uuid)
815                    throws com.liferay.portal.kernel.exception.SystemException;
816    
817            /**
818            * Counts all the journal structures where uuid = &#63; and groupId = &#63;.
819            *
820            * @param uuid the uuid to search with
821            * @param groupId the group id to search with
822            * @return the number of matching journal structures
823            * @throws SystemException if a system exception occurred
824            */
825            public int countByUUID_G(java.lang.String uuid, long groupId)
826                    throws com.liferay.portal.kernel.exception.SystemException;
827    
828            /**
829            * Counts all the journal structures where groupId = &#63;.
830            *
831            * @param groupId the group id to search with
832            * @return the number of matching journal structures
833            * @throws SystemException if a system exception occurred
834            */
835            public int countByGroupId(long groupId)
836                    throws com.liferay.portal.kernel.exception.SystemException;
837    
838            /**
839            * Filters by the user's permissions and counts all the journal structures where groupId = &#63;.
840            *
841            * @param groupId the group id to search with
842            * @return the number of matching journal structures that the user has permission to view
843            * @throws SystemException if a system exception occurred
844            */
845            public int filterCountByGroupId(long groupId)
846                    throws com.liferay.portal.kernel.exception.SystemException;
847    
848            /**
849            * Counts all the journal structures where structureId = &#63;.
850            *
851            * @param structureId the structure id to search with
852            * @return the number of matching journal structures
853            * @throws SystemException if a system exception occurred
854            */
855            public int countByStructureId(java.lang.String structureId)
856                    throws com.liferay.portal.kernel.exception.SystemException;
857    
858            /**
859            * Counts all the journal structures where groupId = &#63; and structureId = &#63;.
860            *
861            * @param groupId the group id to search with
862            * @param structureId the structure id to search with
863            * @return the number of matching journal structures
864            * @throws SystemException if a system exception occurred
865            */
866            public int countByG_S(long groupId, java.lang.String structureId)
867                    throws com.liferay.portal.kernel.exception.SystemException;
868    
869            /**
870            * Filters by the user's permissions and counts all the journal structures where groupId = &#63; and structureId = &#63;.
871            *
872            * @param groupId the group id to search with
873            * @param structureId the structure id to search with
874            * @return the number of matching journal structures that the user has permission to view
875            * @throws SystemException if a system exception occurred
876            */
877            public int filterCountByG_S(long groupId, java.lang.String structureId)
878                    throws com.liferay.portal.kernel.exception.SystemException;
879    
880            /**
881            * Counts all the journal structures where groupId = &#63; and parentStructureId = &#63;.
882            *
883            * @param groupId the group id to search with
884            * @param parentStructureId the parent structure id to search with
885            * @return the number of matching journal structures
886            * @throws SystemException if a system exception occurred
887            */
888            public int countByG_P(long groupId, java.lang.String parentStructureId)
889                    throws com.liferay.portal.kernel.exception.SystemException;
890    
891            /**
892            * Filters by the user's permissions and counts all the journal structures where groupId = &#63; and parentStructureId = &#63;.
893            *
894            * @param groupId the group id to search with
895            * @param parentStructureId the parent structure id to search with
896            * @return the number of matching journal structures that the user has permission to view
897            * @throws SystemException if a system exception occurred
898            */
899            public int filterCountByG_P(long groupId, java.lang.String parentStructureId)
900                    throws com.liferay.portal.kernel.exception.SystemException;
901    
902            /**
903            * Counts all the journal structures.
904            *
905            * @return the number of journal structures
906            * @throws SystemException if a system exception occurred
907            */
908            public int countAll()
909                    throws com.liferay.portal.kernel.exception.SystemException;
910    }