001    /**
002     * Copyright (c) 2000-2012 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     * Caching information and settings can be found in <code>portal.properties</code>
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             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify or reference this interface directly. Always use {@link JournalStructureUtil} to access the journal structure persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
038             */
039    
040            /**
041            * Caches the journal structure in the entity cache if it is enabled.
042            *
043            * @param journalStructure the journal structure
044            */
045            public void cacheResult(
046                    com.liferay.portlet.journal.model.JournalStructure journalStructure);
047    
048            /**
049            * Caches the journal structures in the entity cache if it is enabled.
050            *
051            * @param journalStructures the journal structures
052            */
053            public void cacheResult(
054                    java.util.List<com.liferay.portlet.journal.model.JournalStructure> journalStructures);
055    
056            /**
057            * Creates a new journal structure with the primary key. Does not add the journal structure to the database.
058            *
059            * @param id the primary key for the new journal structure
060            * @return the new journal structure
061            */
062            public com.liferay.portlet.journal.model.JournalStructure create(long id);
063    
064            /**
065            * Removes the journal structure with the primary key from the database. Also notifies the appropriate model listeners.
066            *
067            * @param id the primary key of the journal structure
068            * @return the journal structure that was removed
069            * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found
070            * @throws SystemException if a system exception occurred
071            */
072            public com.liferay.portlet.journal.model.JournalStructure remove(long id)
073                    throws com.liferay.portal.kernel.exception.SystemException,
074                            com.liferay.portlet.journal.NoSuchStructureException;
075    
076            public com.liferay.portlet.journal.model.JournalStructure updateImpl(
077                    com.liferay.portlet.journal.model.JournalStructure journalStructure)
078                    throws com.liferay.portal.kernel.exception.SystemException;
079    
080            /**
081            * Returns the journal structure with the primary key or throws a {@link com.liferay.portlet.journal.NoSuchStructureException} if it could not be found.
082            *
083            * @param id the primary key of the journal structure
084            * @return the journal structure
085            * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found
086            * @throws SystemException if a system exception occurred
087            */
088            public com.liferay.portlet.journal.model.JournalStructure findByPrimaryKey(
089                    long id)
090                    throws com.liferay.portal.kernel.exception.SystemException,
091                            com.liferay.portlet.journal.NoSuchStructureException;
092    
093            /**
094            * Returns the journal structure with the primary key or returns <code>null</code> if it could not be found.
095            *
096            * @param id the primary key of the journal structure
097            * @return the journal structure, or <code>null</code> if a journal structure with the primary key could not be found
098            * @throws SystemException if a system exception occurred
099            */
100            public com.liferay.portlet.journal.model.JournalStructure fetchByPrimaryKey(
101                    long id) throws com.liferay.portal.kernel.exception.SystemException;
102    
103            /**
104            * Returns all the journal structures where uuid = &#63;.
105            *
106            * @param uuid the uuid
107            * @return the matching journal structures
108            * @throws SystemException if a system exception occurred
109            */
110            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
111                    java.lang.String uuid)
112                    throws com.liferay.portal.kernel.exception.SystemException;
113    
114            /**
115            * Returns a range of all the journal structures where uuid = &#63;.
116            *
117            * <p>
118            * 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.
119            * </p>
120            *
121            * @param uuid the uuid
122            * @param start the lower bound of the range of journal structures
123            * @param end the upper bound of the range of journal structures (not inclusive)
124            * @return the range of matching journal structures
125            * @throws SystemException if a system exception occurred
126            */
127            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
128                    java.lang.String uuid, int start, int end)
129                    throws com.liferay.portal.kernel.exception.SystemException;
130    
131            /**
132            * Returns an ordered range of all the journal structures where uuid = &#63;.
133            *
134            * <p>
135            * 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.
136            * </p>
137            *
138            * @param uuid the uuid
139            * @param start the lower bound of the range of journal structures
140            * @param end the upper bound of the range of journal structures (not inclusive)
141            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
142            * @return the ordered range of matching journal structures
143            * @throws SystemException if a system exception occurred
144            */
145            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
146                    java.lang.String uuid, int start, int end,
147                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148                    throws com.liferay.portal.kernel.exception.SystemException;
149    
150            /**
151            * Returns the first journal structure in the ordered set where uuid = &#63;.
152            *
153            * @param uuid the uuid
154            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
155            * @return the first matching journal structure
156            * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found
157            * @throws SystemException if a system exception occurred
158            */
159            public com.liferay.portlet.journal.model.JournalStructure findByUuid_First(
160                    java.lang.String uuid,
161                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
162                    throws com.liferay.portal.kernel.exception.SystemException,
163                            com.liferay.portlet.journal.NoSuchStructureException;
164    
165            /**
166            * Returns the first journal structure in the ordered set where uuid = &#63;.
167            *
168            * @param uuid the uuid
169            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
170            * @return the first matching journal structure, or <code>null</code> if a matching journal structure could not be found
171            * @throws SystemException if a system exception occurred
172            */
173            public com.liferay.portlet.journal.model.JournalStructure fetchByUuid_First(
174                    java.lang.String uuid,
175                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
176                    throws com.liferay.portal.kernel.exception.SystemException;
177    
178            /**
179            * Returns the last journal structure in the ordered set where uuid = &#63;.
180            *
181            * @param uuid the uuid
182            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
183            * @return the last matching journal structure
184            * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found
185            * @throws SystemException if a system exception occurred
186            */
187            public com.liferay.portlet.journal.model.JournalStructure findByUuid_Last(
188                    java.lang.String uuid,
189                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
190                    throws com.liferay.portal.kernel.exception.SystemException,
191                            com.liferay.portlet.journal.NoSuchStructureException;
192    
193            /**
194            * Returns the last journal structure in the ordered set where uuid = &#63;.
195            *
196            * @param uuid the uuid
197            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
198            * @return the last matching journal structure, or <code>null</code> if a matching journal structure could not be found
199            * @throws SystemException if a system exception occurred
200            */
201            public com.liferay.portlet.journal.model.JournalStructure fetchByUuid_Last(
202                    java.lang.String uuid,
203                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
204                    throws com.liferay.portal.kernel.exception.SystemException;
205    
206            /**
207            * Returns the journal structures before and after the current journal structure in the ordered set where uuid = &#63;.
208            *
209            * @param id the primary key of the current journal structure
210            * @param uuid the uuid
211            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
212            * @return the previous, current, and next journal structure
213            * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found
214            * @throws SystemException if a system exception occurred
215            */
216            public com.liferay.portlet.journal.model.JournalStructure[] findByUuid_PrevAndNext(
217                    long id, java.lang.String uuid,
218                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
219                    throws com.liferay.portal.kernel.exception.SystemException,
220                            com.liferay.portlet.journal.NoSuchStructureException;
221    
222            /**
223            * Returns the journal structure where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.journal.NoSuchStructureException} if it could not be found.
224            *
225            * @param uuid the uuid
226            * @param groupId the group ID
227            * @return the matching journal structure
228            * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found
229            * @throws SystemException if a system exception occurred
230            */
231            public com.liferay.portlet.journal.model.JournalStructure findByUUID_G(
232                    java.lang.String uuid, long groupId)
233                    throws com.liferay.portal.kernel.exception.SystemException,
234                            com.liferay.portlet.journal.NoSuchStructureException;
235    
236            /**
237            * Returns the journal structure where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
238            *
239            * @param uuid the uuid
240            * @param groupId the group ID
241            * @return the matching journal structure, or <code>null</code> if a matching journal structure could not be found
242            * @throws SystemException if a system exception occurred
243            */
244            public com.liferay.portlet.journal.model.JournalStructure fetchByUUID_G(
245                    java.lang.String uuid, long groupId)
246                    throws com.liferay.portal.kernel.exception.SystemException;
247    
248            /**
249            * Returns 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.
250            *
251            * @param uuid the uuid
252            * @param groupId the group ID
253            * @param retrieveFromCache whether to use the finder cache
254            * @return the matching journal structure, or <code>null</code> if a matching journal structure could not be found
255            * @throws SystemException if a system exception occurred
256            */
257            public com.liferay.portlet.journal.model.JournalStructure fetchByUUID_G(
258                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
259                    throws com.liferay.portal.kernel.exception.SystemException;
260    
261            /**
262            * Returns all the journal structures where uuid = &#63; and companyId = &#63;.
263            *
264            * @param uuid the uuid
265            * @param companyId the company ID
266            * @return the matching journal structures
267            * @throws SystemException if a system exception occurred
268            */
269            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid_C(
270                    java.lang.String uuid, long companyId)
271                    throws com.liferay.portal.kernel.exception.SystemException;
272    
273            /**
274            * Returns a range of all the journal structures where uuid = &#63; and companyId = &#63;.
275            *
276            * <p>
277            * 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.
278            * </p>
279            *
280            * @param uuid the uuid
281            * @param companyId the company ID
282            * @param start the lower bound of the range of journal structures
283            * @param end the upper bound of the range of journal structures (not inclusive)
284            * @return the range of matching journal structures
285            * @throws SystemException if a system exception occurred
286            */
287            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid_C(
288                    java.lang.String uuid, long companyId, int start, int end)
289                    throws com.liferay.portal.kernel.exception.SystemException;
290    
291            /**
292            * Returns an ordered range of all the journal structures where uuid = &#63; and companyId = &#63;.
293            *
294            * <p>
295            * 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.
296            * </p>
297            *
298            * @param uuid the uuid
299            * @param companyId the company ID
300            * @param start the lower bound of the range of journal structures
301            * @param end the upper bound of the range of journal structures (not inclusive)
302            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
303            * @return the ordered range of matching journal structures
304            * @throws SystemException if a system exception occurred
305            */
306            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid_C(
307                    java.lang.String uuid, long companyId, int start, int end,
308                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
309                    throws com.liferay.portal.kernel.exception.SystemException;
310    
311            /**
312            * Returns the first journal structure in the ordered set where uuid = &#63; and companyId = &#63;.
313            *
314            * @param uuid the uuid
315            * @param companyId the company ID
316            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
317            * @return the first matching journal structure
318            * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found
319            * @throws SystemException if a system exception occurred
320            */
321            public com.liferay.portlet.journal.model.JournalStructure findByUuid_C_First(
322                    java.lang.String uuid, long companyId,
323                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
324                    throws com.liferay.portal.kernel.exception.SystemException,
325                            com.liferay.portlet.journal.NoSuchStructureException;
326    
327            /**
328            * Returns the first journal structure in the ordered set where uuid = &#63; and companyId = &#63;.
329            *
330            * @param uuid the uuid
331            * @param companyId the company ID
332            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
333            * @return the first matching journal structure, or <code>null</code> if a matching journal structure could not be found
334            * @throws SystemException if a system exception occurred
335            */
336            public com.liferay.portlet.journal.model.JournalStructure fetchByUuid_C_First(
337                    java.lang.String uuid, long companyId,
338                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
339                    throws com.liferay.portal.kernel.exception.SystemException;
340    
341            /**
342            * Returns the last journal structure in the ordered set where uuid = &#63; and companyId = &#63;.
343            *
344            * @param uuid the uuid
345            * @param companyId the company ID
346            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
347            * @return the last matching journal structure
348            * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found
349            * @throws SystemException if a system exception occurred
350            */
351            public com.liferay.portlet.journal.model.JournalStructure findByUuid_C_Last(
352                    java.lang.String uuid, long companyId,
353                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
354                    throws com.liferay.portal.kernel.exception.SystemException,
355                            com.liferay.portlet.journal.NoSuchStructureException;
356    
357            /**
358            * Returns the last journal structure in the ordered set where uuid = &#63; and companyId = &#63;.
359            *
360            * @param uuid the uuid
361            * @param companyId the company ID
362            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
363            * @return the last matching journal structure, or <code>null</code> if a matching journal structure could not be found
364            * @throws SystemException if a system exception occurred
365            */
366            public com.liferay.portlet.journal.model.JournalStructure fetchByUuid_C_Last(
367                    java.lang.String uuid, long companyId,
368                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
369                    throws com.liferay.portal.kernel.exception.SystemException;
370    
371            /**
372            * Returns the journal structures before and after the current journal structure in the ordered set where uuid = &#63; and companyId = &#63;.
373            *
374            * @param id the primary key of the current journal structure
375            * @param uuid the uuid
376            * @param companyId the company ID
377            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
378            * @return the previous, current, and next journal structure
379            * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found
380            * @throws SystemException if a system exception occurred
381            */
382            public com.liferay.portlet.journal.model.JournalStructure[] findByUuid_C_PrevAndNext(
383                    long id, java.lang.String uuid, long companyId,
384                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
385                    throws com.liferay.portal.kernel.exception.SystemException,
386                            com.liferay.portlet.journal.NoSuchStructureException;
387    
388            /**
389            * Returns all the journal structures where groupId = &#63;.
390            *
391            * @param groupId the group ID
392            * @return the matching journal structures
393            * @throws SystemException if a system exception occurred
394            */
395            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
396                    long groupId)
397                    throws com.liferay.portal.kernel.exception.SystemException;
398    
399            /**
400            * Returns a range of all the journal structures where groupId = &#63;.
401            *
402            * <p>
403            * 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.
404            * </p>
405            *
406            * @param groupId the group ID
407            * @param start the lower bound of the range of journal structures
408            * @param end the upper bound of the range of journal structures (not inclusive)
409            * @return the range of matching journal structures
410            * @throws SystemException if a system exception occurred
411            */
412            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
413                    long groupId, int start, int end)
414                    throws com.liferay.portal.kernel.exception.SystemException;
415    
416            /**
417            * Returns an ordered range of all the journal structures where groupId = &#63;.
418            *
419            * <p>
420            * 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.
421            * </p>
422            *
423            * @param groupId the group ID
424            * @param start the lower bound of the range of journal structures
425            * @param end the upper bound of the range of journal structures (not inclusive)
426            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
427            * @return the ordered range of matching journal structures
428            * @throws SystemException if a system exception occurred
429            */
430            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
431                    long groupId, int start, int end,
432                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
433                    throws com.liferay.portal.kernel.exception.SystemException;
434    
435            /**
436            * Returns the first journal structure in the ordered set where groupId = &#63;.
437            *
438            * @param groupId the group ID
439            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
440            * @return the first matching journal structure
441            * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found
442            * @throws SystemException if a system exception occurred
443            */
444            public com.liferay.portlet.journal.model.JournalStructure findByGroupId_First(
445                    long groupId,
446                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
447                    throws com.liferay.portal.kernel.exception.SystemException,
448                            com.liferay.portlet.journal.NoSuchStructureException;
449    
450            /**
451            * Returns the first journal structure in the ordered set where groupId = &#63;.
452            *
453            * @param groupId the group ID
454            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
455            * @return the first matching journal structure, or <code>null</code> if a matching journal structure could not be found
456            * @throws SystemException if a system exception occurred
457            */
458            public com.liferay.portlet.journal.model.JournalStructure fetchByGroupId_First(
459                    long groupId,
460                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
461                    throws com.liferay.portal.kernel.exception.SystemException;
462    
463            /**
464            * Returns the last journal structure in the ordered set where groupId = &#63;.
465            *
466            * @param groupId the group ID
467            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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 findByGroupId_Last(
473                    long groupId,
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            * Returns the last journal structure in the ordered set where groupId = &#63;.
480            *
481            * @param groupId the group ID
482            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
483            * @return the last matching journal structure, or <code>null</code> if a matching journal structure could not be found
484            * @throws SystemException if a system exception occurred
485            */
486            public com.liferay.portlet.journal.model.JournalStructure fetchByGroupId_Last(
487                    long groupId,
488                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
489                    throws com.liferay.portal.kernel.exception.SystemException;
490    
491            /**
492            * Returns the journal structures before and after the current journal structure in the ordered set where groupId = &#63;.
493            *
494            * @param id the primary key of the current journal structure
495            * @param groupId the group ID
496            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
497            * @return the previous, current, and next journal structure
498            * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found
499            * @throws SystemException if a system exception occurred
500            */
501            public com.liferay.portlet.journal.model.JournalStructure[] findByGroupId_PrevAndNext(
502                    long id, long groupId,
503                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
504                    throws com.liferay.portal.kernel.exception.SystemException,
505                            com.liferay.portlet.journal.NoSuchStructureException;
506    
507            /**
508            * Returns all the journal structures where groupId = any &#63;.
509            *
510            * <p>
511            * 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.
512            * </p>
513            *
514            * @param groupIds the group IDs
515            * @return the matching journal structures
516            * @throws SystemException if a system exception occurred
517            */
518            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
519                    long[] groupIds)
520                    throws com.liferay.portal.kernel.exception.SystemException;
521    
522            /**
523            * Returns a range of all the journal structures where groupId = any &#63;.
524            *
525            * <p>
526            * 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.
527            * </p>
528            *
529            * @param groupIds the group IDs
530            * @param start the lower bound of the range of journal structures
531            * @param end the upper bound of the range of journal structures (not inclusive)
532            * @return the range of matching journal structures
533            * @throws SystemException if a system exception occurred
534            */
535            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
536                    long[] groupIds, int start, int end)
537                    throws com.liferay.portal.kernel.exception.SystemException;
538    
539            /**
540            * Returns an ordered range of all the journal structures where groupId = any &#63;.
541            *
542            * <p>
543            * 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.
544            * </p>
545            *
546            * @param groupIds the group IDs
547            * @param start the lower bound of the range of journal structures
548            * @param end the upper bound of the range of journal structures (not inclusive)
549            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
550            * @return the ordered range of matching journal structures
551            * @throws SystemException if a system exception occurred
552            */
553            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
554                    long[] groupIds, int start, int end,
555                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
556                    throws com.liferay.portal.kernel.exception.SystemException;
557    
558            /**
559            * Returns all the journal structures that the user has permission to view where groupId = &#63;.
560            *
561            * @param groupId the group ID
562            * @return the matching journal structures that the user has permission to view
563            * @throws SystemException if a system exception occurred
564            */
565            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByGroupId(
566                    long groupId)
567                    throws com.liferay.portal.kernel.exception.SystemException;
568    
569            /**
570            * Returns a range of all the journal structures that the user has permission to view where groupId = &#63;.
571            *
572            * <p>
573            * 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.
574            * </p>
575            *
576            * @param groupId the group ID
577            * @param start the lower bound of the range of journal structures
578            * @param end the upper bound of the range of journal structures (not inclusive)
579            * @return the range of matching journal structures that the user has permission to view
580            * @throws SystemException if a system exception occurred
581            */
582            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByGroupId(
583                    long groupId, int start, int end)
584                    throws com.liferay.portal.kernel.exception.SystemException;
585    
586            /**
587            * Returns an ordered range of all the journal structures that the user has permissions to view where groupId = &#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
594            * @param start the lower bound of the range of journal structures
595            * @param end the upper bound of the range of journal structures (not inclusive)
596            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
597            * @return the ordered range of matching journal structures that the user has permission to view
598            * @throws SystemException if a system exception occurred
599            */
600            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByGroupId(
601                    long groupId, int start, int end,
602                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
603                    throws com.liferay.portal.kernel.exception.SystemException;
604    
605            /**
606            * Returns the journal structures before and after the current journal structure in the ordered set of journal structures that the user has permission to view where groupId = &#63;.
607            *
608            * @param id the primary key of the current journal structure
609            * @param groupId the group ID
610            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
611            * @return the previous, current, and next journal structure
612            * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found
613            * @throws SystemException if a system exception occurred
614            */
615            public com.liferay.portlet.journal.model.JournalStructure[] filterFindByGroupId_PrevAndNext(
616                    long id, long groupId,
617                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
618                    throws com.liferay.portal.kernel.exception.SystemException,
619                            com.liferay.portlet.journal.NoSuchStructureException;
620    
621            /**
622            * Returns all the journal structures that the user has permission to view where groupId = any &#63;.
623            *
624            * @param groupIds the group IDs
625            * @return the matching journal structures that the user has permission to view
626            * @throws SystemException if a system exception occurred
627            */
628            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByGroupId(
629                    long[] groupIds)
630                    throws com.liferay.portal.kernel.exception.SystemException;
631    
632            /**
633            * Returns a range of all the journal structures that the user has permission to view where groupId = any &#63;.
634            *
635            * <p>
636            * 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.
637            * </p>
638            *
639            * @param groupIds the group IDs
640            * @param start the lower bound of the range of journal structures
641            * @param end the upper bound of the range of journal structures (not inclusive)
642            * @return the range of matching journal structures that the user has permission to view
643            * @throws SystemException if a system exception occurred
644            */
645            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByGroupId(
646                    long[] groupIds, int start, int end)
647                    throws com.liferay.portal.kernel.exception.SystemException;
648    
649            /**
650            * Returns an ordered range of all the journal structures that the user has permission to view where groupId = any &#63;.
651            *
652            * <p>
653            * 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.
654            * </p>
655            *
656            * @param groupIds the group IDs
657            * @param start the lower bound of the range of journal structures
658            * @param end the upper bound of the range of journal structures (not inclusive)
659            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
660            * @return the ordered range of matching journal structures that the user has permission to view
661            * @throws SystemException if a system exception occurred
662            */
663            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByGroupId(
664                    long[] groupIds, int start, int end,
665                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
666                    throws com.liferay.portal.kernel.exception.SystemException;
667    
668            /**
669            * Returns all the journal structures where structureId = &#63;.
670            *
671            * @param structureId the structure ID
672            * @return the matching journal structures
673            * @throws SystemException if a system exception occurred
674            */
675            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
676                    java.lang.String structureId)
677                    throws com.liferay.portal.kernel.exception.SystemException;
678    
679            /**
680            * Returns a range of all the journal structures where structureId = &#63;.
681            *
682            * <p>
683            * 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.
684            * </p>
685            *
686            * @param structureId the structure ID
687            * @param start the lower bound of the range of journal structures
688            * @param end the upper bound of the range of journal structures (not inclusive)
689            * @return the range of matching journal structures
690            * @throws SystemException if a system exception occurred
691            */
692            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
693                    java.lang.String structureId, int start, int end)
694                    throws com.liferay.portal.kernel.exception.SystemException;
695    
696            /**
697            * Returns an ordered range of all the journal structures where structureId = &#63;.
698            *
699            * <p>
700            * 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.
701            * </p>
702            *
703            * @param structureId the structure ID
704            * @param start the lower bound of the range of journal structures
705            * @param end the upper bound of the range of journal structures (not inclusive)
706            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
707            * @return the ordered range of matching journal structures
708            * @throws SystemException if a system exception occurred
709            */
710            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
711                    java.lang.String structureId, int start, int end,
712                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
713                    throws com.liferay.portal.kernel.exception.SystemException;
714    
715            /**
716            * Returns the first journal structure in the ordered set where structureId = &#63;.
717            *
718            * @param structureId the structure ID
719            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
720            * @return the first matching journal structure
721            * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found
722            * @throws SystemException if a system exception occurred
723            */
724            public com.liferay.portlet.journal.model.JournalStructure findByStructureId_First(
725                    java.lang.String structureId,
726                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
727                    throws com.liferay.portal.kernel.exception.SystemException,
728                            com.liferay.portlet.journal.NoSuchStructureException;
729    
730            /**
731            * Returns the first journal structure in the ordered set where structureId = &#63;.
732            *
733            * @param structureId the structure ID
734            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
735            * @return the first matching journal structure, or <code>null</code> if a matching journal structure could not be found
736            * @throws SystemException if a system exception occurred
737            */
738            public com.liferay.portlet.journal.model.JournalStructure fetchByStructureId_First(
739                    java.lang.String structureId,
740                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
741                    throws com.liferay.portal.kernel.exception.SystemException;
742    
743            /**
744            * Returns the last journal structure in the ordered set where structureId = &#63;.
745            *
746            * @param structureId the structure ID
747            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
748            * @return the last matching journal structure
749            * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found
750            * @throws SystemException if a system exception occurred
751            */
752            public com.liferay.portlet.journal.model.JournalStructure findByStructureId_Last(
753                    java.lang.String structureId,
754                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
755                    throws com.liferay.portal.kernel.exception.SystemException,
756                            com.liferay.portlet.journal.NoSuchStructureException;
757    
758            /**
759            * Returns the last journal structure in the ordered set where structureId = &#63;.
760            *
761            * @param structureId the structure ID
762            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
763            * @return the last matching journal structure, or <code>null</code> if a matching journal structure could not be found
764            * @throws SystemException if a system exception occurred
765            */
766            public com.liferay.portlet.journal.model.JournalStructure fetchByStructureId_Last(
767                    java.lang.String structureId,
768                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
769                    throws com.liferay.portal.kernel.exception.SystemException;
770    
771            /**
772            * Returns the journal structures before and after the current journal structure in the ordered set where structureId = &#63;.
773            *
774            * @param id the primary key of the current journal structure
775            * @param structureId the structure ID
776            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
777            * @return the previous, current, and next journal structure
778            * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found
779            * @throws SystemException if a system exception occurred
780            */
781            public com.liferay.portlet.journal.model.JournalStructure[] findByStructureId_PrevAndNext(
782                    long id, java.lang.String structureId,
783                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
784                    throws com.liferay.portal.kernel.exception.SystemException,
785                            com.liferay.portlet.journal.NoSuchStructureException;
786    
787            /**
788            * Returns all the journal structures where parentStructureId = &#63;.
789            *
790            * @param parentStructureId the parent structure ID
791            * @return the matching journal structures
792            * @throws SystemException if a system exception occurred
793            */
794            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByParentStructureId(
795                    java.lang.String parentStructureId)
796                    throws com.liferay.portal.kernel.exception.SystemException;
797    
798            /**
799            * Returns a range of all the journal structures where parentStructureId = &#63;.
800            *
801            * <p>
802            * 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.
803            * </p>
804            *
805            * @param parentStructureId the parent structure ID
806            * @param start the lower bound of the range of journal structures
807            * @param end the upper bound of the range of journal structures (not inclusive)
808            * @return the range of matching journal structures
809            * @throws SystemException if a system exception occurred
810            */
811            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByParentStructureId(
812                    java.lang.String parentStructureId, int start, int end)
813                    throws com.liferay.portal.kernel.exception.SystemException;
814    
815            /**
816            * Returns an ordered range of all the journal structures where parentStructureId = &#63;.
817            *
818            * <p>
819            * 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.
820            * </p>
821            *
822            * @param parentStructureId the parent structure ID
823            * @param start the lower bound of the range of journal structures
824            * @param end the upper bound of the range of journal structures (not inclusive)
825            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
826            * @return the ordered range of matching journal structures
827            * @throws SystemException if a system exception occurred
828            */
829            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByParentStructureId(
830                    java.lang.String parentStructureId, int start, int end,
831                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
832                    throws com.liferay.portal.kernel.exception.SystemException;
833    
834            /**
835            * Returns the first journal structure in the ordered set where parentStructureId = &#63;.
836            *
837            * @param parentStructureId the parent structure ID
838            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
839            * @return the first matching journal structure
840            * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found
841            * @throws SystemException if a system exception occurred
842            */
843            public com.liferay.portlet.journal.model.JournalStructure findByParentStructureId_First(
844                    java.lang.String parentStructureId,
845                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
846                    throws com.liferay.portal.kernel.exception.SystemException,
847                            com.liferay.portlet.journal.NoSuchStructureException;
848    
849            /**
850            * Returns the first journal structure in the ordered set where parentStructureId = &#63;.
851            *
852            * @param parentStructureId the parent structure ID
853            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
854            * @return the first matching journal structure, or <code>null</code> if a matching journal structure could not be found
855            * @throws SystemException if a system exception occurred
856            */
857            public com.liferay.portlet.journal.model.JournalStructure fetchByParentStructureId_First(
858                    java.lang.String parentStructureId,
859                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
860                    throws com.liferay.portal.kernel.exception.SystemException;
861    
862            /**
863            * Returns the last journal structure in the ordered set where parentStructureId = &#63;.
864            *
865            * @param parentStructureId the parent structure ID
866            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
867            * @return the last matching journal structure
868            * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found
869            * @throws SystemException if a system exception occurred
870            */
871            public com.liferay.portlet.journal.model.JournalStructure findByParentStructureId_Last(
872                    java.lang.String parentStructureId,
873                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
874                    throws com.liferay.portal.kernel.exception.SystemException,
875                            com.liferay.portlet.journal.NoSuchStructureException;
876    
877            /**
878            * Returns the last journal structure in the ordered set where parentStructureId = &#63;.
879            *
880            * @param parentStructureId the parent structure ID
881            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
882            * @return the last matching journal structure, or <code>null</code> if a matching journal structure could not be found
883            * @throws SystemException if a system exception occurred
884            */
885            public com.liferay.portlet.journal.model.JournalStructure fetchByParentStructureId_Last(
886                    java.lang.String parentStructureId,
887                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
888                    throws com.liferay.portal.kernel.exception.SystemException;
889    
890            /**
891            * Returns the journal structures before and after the current journal structure in the ordered set where parentStructureId = &#63;.
892            *
893            * @param id the primary key of the current journal structure
894            * @param parentStructureId the parent structure ID
895            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
896            * @return the previous, current, and next journal structure
897            * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found
898            * @throws SystemException if a system exception occurred
899            */
900            public com.liferay.portlet.journal.model.JournalStructure[] findByParentStructureId_PrevAndNext(
901                    long id, java.lang.String parentStructureId,
902                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
903                    throws com.liferay.portal.kernel.exception.SystemException,
904                            com.liferay.portlet.journal.NoSuchStructureException;
905    
906            /**
907            * Returns the journal structure where groupId = &#63; and structureId = &#63; or throws a {@link com.liferay.portlet.journal.NoSuchStructureException} if it could not be found.
908            *
909            * @param groupId the group ID
910            * @param structureId the structure ID
911            * @return the matching journal structure
912            * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found
913            * @throws SystemException if a system exception occurred
914            */
915            public com.liferay.portlet.journal.model.JournalStructure findByG_S(
916                    long groupId, java.lang.String structureId)
917                    throws com.liferay.portal.kernel.exception.SystemException,
918                            com.liferay.portlet.journal.NoSuchStructureException;
919    
920            /**
921            * Returns the journal structure where groupId = &#63; and structureId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
922            *
923            * @param groupId the group ID
924            * @param structureId the structure ID
925            * @return the matching journal structure, or <code>null</code> if a matching journal structure could not be found
926            * @throws SystemException if a system exception occurred
927            */
928            public com.liferay.portlet.journal.model.JournalStructure fetchByG_S(
929                    long groupId, java.lang.String structureId)
930                    throws com.liferay.portal.kernel.exception.SystemException;
931    
932            /**
933            * Returns 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.
934            *
935            * @param groupId the group ID
936            * @param structureId the structure ID
937            * @param retrieveFromCache whether to use the finder cache
938            * @return the matching journal structure, or <code>null</code> if a matching journal structure could not be found
939            * @throws SystemException if a system exception occurred
940            */
941            public com.liferay.portlet.journal.model.JournalStructure fetchByG_S(
942                    long groupId, java.lang.String structureId, boolean retrieveFromCache)
943                    throws com.liferay.portal.kernel.exception.SystemException;
944    
945            /**
946            * Returns all the journal structures where groupId = &#63; and parentStructureId = &#63;.
947            *
948            * @param groupId the group ID
949            * @param parentStructureId the parent structure ID
950            * @return the matching journal structures
951            * @throws SystemException if a system exception occurred
952            */
953            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
954                    long groupId, java.lang.String parentStructureId)
955                    throws com.liferay.portal.kernel.exception.SystemException;
956    
957            /**
958            * Returns a range of all the journal structures where groupId = &#63; and parentStructureId = &#63;.
959            *
960            * <p>
961            * 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.
962            * </p>
963            *
964            * @param groupId the group ID
965            * @param parentStructureId the parent structure ID
966            * @param start the lower bound of the range of journal structures
967            * @param end the upper bound of the range of journal structures (not inclusive)
968            * @return the range of matching journal structures
969            * @throws SystemException if a system exception occurred
970            */
971            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
972                    long groupId, java.lang.String parentStructureId, int start, int end)
973                    throws com.liferay.portal.kernel.exception.SystemException;
974    
975            /**
976            * Returns an ordered range of all the journal structures where groupId = &#63; and parentStructureId = &#63;.
977            *
978            * <p>
979            * 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.
980            * </p>
981            *
982            * @param groupId the group ID
983            * @param parentStructureId the parent structure ID
984            * @param start the lower bound of the range of journal structures
985            * @param end the upper bound of the range of journal structures (not inclusive)
986            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
987            * @return the ordered range of matching journal structures
988            * @throws SystemException if a system exception occurred
989            */
990            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
991                    long groupId, java.lang.String parentStructureId, int start, int end,
992                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
993                    throws com.liferay.portal.kernel.exception.SystemException;
994    
995            /**
996            * Returns the first journal structure in the ordered set where groupId = &#63; and parentStructureId = &#63;.
997            *
998            * @param groupId the group ID
999            * @param parentStructureId the parent structure ID
1000            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1001            * @return the first matching journal structure
1002            * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found
1003            * @throws SystemException if a system exception occurred
1004            */
1005            public com.liferay.portlet.journal.model.JournalStructure findByG_P_First(
1006                    long groupId, java.lang.String parentStructureId,
1007                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1008                    throws com.liferay.portal.kernel.exception.SystemException,
1009                            com.liferay.portlet.journal.NoSuchStructureException;
1010    
1011            /**
1012            * Returns the first journal structure in the ordered set where groupId = &#63; and parentStructureId = &#63;.
1013            *
1014            * @param groupId the group ID
1015            * @param parentStructureId the parent structure ID
1016            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1017            * @return the first matching journal structure, or <code>null</code> if a matching journal structure could not be found
1018            * @throws SystemException if a system exception occurred
1019            */
1020            public com.liferay.portlet.journal.model.JournalStructure fetchByG_P_First(
1021                    long groupId, java.lang.String parentStructureId,
1022                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1023                    throws com.liferay.portal.kernel.exception.SystemException;
1024    
1025            /**
1026            * Returns the last journal structure in the ordered set where groupId = &#63; and parentStructureId = &#63;.
1027            *
1028            * @param groupId the group ID
1029            * @param parentStructureId the parent structure ID
1030            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1031            * @return the last matching journal structure
1032            * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found
1033            * @throws SystemException if a system exception occurred
1034            */
1035            public com.liferay.portlet.journal.model.JournalStructure findByG_P_Last(
1036                    long groupId, java.lang.String parentStructureId,
1037                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1038                    throws com.liferay.portal.kernel.exception.SystemException,
1039                            com.liferay.portlet.journal.NoSuchStructureException;
1040    
1041            /**
1042            * Returns the last journal structure in the ordered set where groupId = &#63; and parentStructureId = &#63;.
1043            *
1044            * @param groupId the group ID
1045            * @param parentStructureId the parent structure ID
1046            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1047            * @return the last matching journal structure, or <code>null</code> if a matching journal structure could not be found
1048            * @throws SystemException if a system exception occurred
1049            */
1050            public com.liferay.portlet.journal.model.JournalStructure fetchByG_P_Last(
1051                    long groupId, java.lang.String parentStructureId,
1052                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1053                    throws com.liferay.portal.kernel.exception.SystemException;
1054    
1055            /**
1056            * Returns the journal structures before and after the current journal structure in the ordered set where groupId = &#63; and parentStructureId = &#63;.
1057            *
1058            * @param id the primary key of the current journal structure
1059            * @param groupId the group ID
1060            * @param parentStructureId the parent structure ID
1061            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1062            * @return the previous, current, and next journal structure
1063            * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found
1064            * @throws SystemException if a system exception occurred
1065            */
1066            public com.liferay.portlet.journal.model.JournalStructure[] findByG_P_PrevAndNext(
1067                    long id, long groupId, java.lang.String parentStructureId,
1068                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1069                    throws com.liferay.portal.kernel.exception.SystemException,
1070                            com.liferay.portlet.journal.NoSuchStructureException;
1071    
1072            /**
1073            * Returns all the journal structures that the user has permission to view where groupId = &#63; and parentStructureId = &#63;.
1074            *
1075            * @param groupId the group ID
1076            * @param parentStructureId the parent structure ID
1077            * @return the matching journal structures that the user has permission to view
1078            * @throws SystemException if a system exception occurred
1079            */
1080            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByG_P(
1081                    long groupId, java.lang.String parentStructureId)
1082                    throws com.liferay.portal.kernel.exception.SystemException;
1083    
1084            /**
1085            * Returns a range of all the journal structures that the user has permission to view where groupId = &#63; and parentStructureId = &#63;.
1086            *
1087            * <p>
1088            * 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.
1089            * </p>
1090            *
1091            * @param groupId the group ID
1092            * @param parentStructureId the parent structure ID
1093            * @param start the lower bound of the range of journal structures
1094            * @param end the upper bound of the range of journal structures (not inclusive)
1095            * @return the range of matching journal structures that the user has permission to view
1096            * @throws SystemException if a system exception occurred
1097            */
1098            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByG_P(
1099                    long groupId, java.lang.String parentStructureId, int start, int end)
1100                    throws com.liferay.portal.kernel.exception.SystemException;
1101    
1102            /**
1103            * Returns an ordered range of all the journal structures that the user has permissions to view where groupId = &#63; and parentStructureId = &#63;.
1104            *
1105            * <p>
1106            * 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.
1107            * </p>
1108            *
1109            * @param groupId the group ID
1110            * @param parentStructureId the parent structure ID
1111            * @param start the lower bound of the range of journal structures
1112            * @param end the upper bound of the range of journal structures (not inclusive)
1113            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1114            * @return the ordered range of matching journal structures that the user has permission to view
1115            * @throws SystemException if a system exception occurred
1116            */
1117            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByG_P(
1118                    long groupId, java.lang.String parentStructureId, int start, int end,
1119                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1120                    throws com.liferay.portal.kernel.exception.SystemException;
1121    
1122            /**
1123            * Returns the journal structures before and after the current journal structure in the ordered set of journal structures that the user has permission to view where groupId = &#63; and parentStructureId = &#63;.
1124            *
1125            * @param id the primary key of the current journal structure
1126            * @param groupId the group ID
1127            * @param parentStructureId the parent structure ID
1128            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1129            * @return the previous, current, and next journal structure
1130            * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found
1131            * @throws SystemException if a system exception occurred
1132            */
1133            public com.liferay.portlet.journal.model.JournalStructure[] filterFindByG_P_PrevAndNext(
1134                    long id, long groupId, java.lang.String parentStructureId,
1135                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1136                    throws com.liferay.portal.kernel.exception.SystemException,
1137                            com.liferay.portlet.journal.NoSuchStructureException;
1138    
1139            /**
1140            * Returns all the journal structures.
1141            *
1142            * @return the journal structures
1143            * @throws SystemException if a system exception occurred
1144            */
1145            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll()
1146                    throws com.liferay.portal.kernel.exception.SystemException;
1147    
1148            /**
1149            * Returns a range of all the journal structures.
1150            *
1151            * <p>
1152            * 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.
1153            * </p>
1154            *
1155            * @param start the lower bound of the range of journal structures
1156            * @param end the upper bound of the range of journal structures (not inclusive)
1157            * @return the range of journal structures
1158            * @throws SystemException if a system exception occurred
1159            */
1160            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll(
1161                    int start, int end)
1162                    throws com.liferay.portal.kernel.exception.SystemException;
1163    
1164            /**
1165            * Returns an ordered range of all the journal structures.
1166            *
1167            * <p>
1168            * 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.
1169            * </p>
1170            *
1171            * @param start the lower bound of the range of journal structures
1172            * @param end the upper bound of the range of journal structures (not inclusive)
1173            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1174            * @return the ordered range of journal structures
1175            * @throws SystemException if a system exception occurred
1176            */
1177            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll(
1178                    int start, int end,
1179                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1180                    throws com.liferay.portal.kernel.exception.SystemException;
1181    
1182            /**
1183            * Removes all the journal structures where uuid = &#63; from the database.
1184            *
1185            * @param uuid the uuid
1186            * @throws SystemException if a system exception occurred
1187            */
1188            public void removeByUuid(java.lang.String uuid)
1189                    throws com.liferay.portal.kernel.exception.SystemException;
1190    
1191            /**
1192            * Removes the journal structure where uuid = &#63; and groupId = &#63; from the database.
1193            *
1194            * @param uuid the uuid
1195            * @param groupId the group ID
1196            * @return the journal structure that was removed
1197            * @throws SystemException if a system exception occurred
1198            */
1199            public com.liferay.portlet.journal.model.JournalStructure removeByUUID_G(
1200                    java.lang.String uuid, long groupId)
1201                    throws com.liferay.portal.kernel.exception.SystemException,
1202                            com.liferay.portlet.journal.NoSuchStructureException;
1203    
1204            /**
1205            * Removes all the journal structures where uuid = &#63; and companyId = &#63; from the database.
1206            *
1207            * @param uuid the uuid
1208            * @param companyId the company ID
1209            * @throws SystemException if a system exception occurred
1210            */
1211            public void removeByUuid_C(java.lang.String uuid, long companyId)
1212                    throws com.liferay.portal.kernel.exception.SystemException;
1213    
1214            /**
1215            * Removes all the journal structures where groupId = &#63; from the database.
1216            *
1217            * @param groupId the group ID
1218            * @throws SystemException if a system exception occurred
1219            */
1220            public void removeByGroupId(long groupId)
1221                    throws com.liferay.portal.kernel.exception.SystemException;
1222    
1223            /**
1224            * Removes all the journal structures where structureId = &#63; from the database.
1225            *
1226            * @param structureId the structure ID
1227            * @throws SystemException if a system exception occurred
1228            */
1229            public void removeByStructureId(java.lang.String structureId)
1230                    throws com.liferay.portal.kernel.exception.SystemException;
1231    
1232            /**
1233            * Removes all the journal structures where parentStructureId = &#63; from the database.
1234            *
1235            * @param parentStructureId the parent structure ID
1236            * @throws SystemException if a system exception occurred
1237            */
1238            public void removeByParentStructureId(java.lang.String parentStructureId)
1239                    throws com.liferay.portal.kernel.exception.SystemException;
1240    
1241            /**
1242            * Removes the journal structure where groupId = &#63; and structureId = &#63; from the database.
1243            *
1244            * @param groupId the group ID
1245            * @param structureId the structure ID
1246            * @return the journal structure that was removed
1247            * @throws SystemException if a system exception occurred
1248            */
1249            public com.liferay.portlet.journal.model.JournalStructure removeByG_S(
1250                    long groupId, java.lang.String structureId)
1251                    throws com.liferay.portal.kernel.exception.SystemException,
1252                            com.liferay.portlet.journal.NoSuchStructureException;
1253    
1254            /**
1255            * Removes all the journal structures where groupId = &#63; and parentStructureId = &#63; from the database.
1256            *
1257            * @param groupId the group ID
1258            * @param parentStructureId the parent structure ID
1259            * @throws SystemException if a system exception occurred
1260            */
1261            public void removeByG_P(long groupId, java.lang.String parentStructureId)
1262                    throws com.liferay.portal.kernel.exception.SystemException;
1263    
1264            /**
1265            * Removes all the journal structures from the database.
1266            *
1267            * @throws SystemException if a system exception occurred
1268            */
1269            public void removeAll()
1270                    throws com.liferay.portal.kernel.exception.SystemException;
1271    
1272            /**
1273            * Returns the number of journal structures where uuid = &#63;.
1274            *
1275            * @param uuid the uuid
1276            * @return the number of matching journal structures
1277            * @throws SystemException if a system exception occurred
1278            */
1279            public int countByUuid(java.lang.String uuid)
1280                    throws com.liferay.portal.kernel.exception.SystemException;
1281    
1282            /**
1283            * Returns the number of journal structures where uuid = &#63; and groupId = &#63;.
1284            *
1285            * @param uuid the uuid
1286            * @param groupId the group ID
1287            * @return the number of matching journal structures
1288            * @throws SystemException if a system exception occurred
1289            */
1290            public int countByUUID_G(java.lang.String uuid, long groupId)
1291                    throws com.liferay.portal.kernel.exception.SystemException;
1292    
1293            /**
1294            * Returns the number of journal structures where uuid = &#63; and companyId = &#63;.
1295            *
1296            * @param uuid the uuid
1297            * @param companyId the company ID
1298            * @return the number of matching journal structures
1299            * @throws SystemException if a system exception occurred
1300            */
1301            public int countByUuid_C(java.lang.String uuid, long companyId)
1302                    throws com.liferay.portal.kernel.exception.SystemException;
1303    
1304            /**
1305            * Returns the number of journal structures where groupId = &#63;.
1306            *
1307            * @param groupId the group ID
1308            * @return the number of matching journal structures
1309            * @throws SystemException if a system exception occurred
1310            */
1311            public int countByGroupId(long groupId)
1312                    throws com.liferay.portal.kernel.exception.SystemException;
1313    
1314            /**
1315            * Returns the number of journal structures where groupId = any &#63;.
1316            *
1317            * @param groupIds the group IDs
1318            * @return the number of matching journal structures
1319            * @throws SystemException if a system exception occurred
1320            */
1321            public int countByGroupId(long[] groupIds)
1322                    throws com.liferay.portal.kernel.exception.SystemException;
1323    
1324            /**
1325            * Returns the number of journal structures that the user has permission to view where groupId = &#63;.
1326            *
1327            * @param groupId the group ID
1328            * @return the number of matching journal structures that the user has permission to view
1329            * @throws SystemException if a system exception occurred
1330            */
1331            public int filterCountByGroupId(long groupId)
1332                    throws com.liferay.portal.kernel.exception.SystemException;
1333    
1334            /**
1335            * Returns the number of journal structures that the user has permission to view where groupId = any &#63;.
1336            *
1337            * @param groupIds the group IDs
1338            * @return the number of matching journal structures that the user has permission to view
1339            * @throws SystemException if a system exception occurred
1340            */
1341            public int filterCountByGroupId(long[] groupIds)
1342                    throws com.liferay.portal.kernel.exception.SystemException;
1343    
1344            /**
1345            * Returns the number of journal structures where structureId = &#63;.
1346            *
1347            * @param structureId the structure ID
1348            * @return the number of matching journal structures
1349            * @throws SystemException if a system exception occurred
1350            */
1351            public int countByStructureId(java.lang.String structureId)
1352                    throws com.liferay.portal.kernel.exception.SystemException;
1353    
1354            /**
1355            * Returns the number of journal structures where parentStructureId = &#63;.
1356            *
1357            * @param parentStructureId the parent structure ID
1358            * @return the number of matching journal structures
1359            * @throws SystemException if a system exception occurred
1360            */
1361            public int countByParentStructureId(java.lang.String parentStructureId)
1362                    throws com.liferay.portal.kernel.exception.SystemException;
1363    
1364            /**
1365            * Returns the number of journal structures where groupId = &#63; and structureId = &#63;.
1366            *
1367            * @param groupId the group ID
1368            * @param structureId the structure ID
1369            * @return the number of matching journal structures
1370            * @throws SystemException if a system exception occurred
1371            */
1372            public int countByG_S(long groupId, java.lang.String structureId)
1373                    throws com.liferay.portal.kernel.exception.SystemException;
1374    
1375            /**
1376            * Returns the number of journal structures where groupId = &#63; and parentStructureId = &#63;.
1377            *
1378            * @param groupId the group ID
1379            * @param parentStructureId the parent structure ID
1380            * @return the number of matching journal structures
1381            * @throws SystemException if a system exception occurred
1382            */
1383            public int countByG_P(long groupId, java.lang.String parentStructureId)
1384                    throws com.liferay.portal.kernel.exception.SystemException;
1385    
1386            /**
1387            * Returns the number of journal structures that the user has permission to view where groupId = &#63; and parentStructureId = &#63;.
1388            *
1389            * @param groupId the group ID
1390            * @param parentStructureId the parent structure ID
1391            * @return the number of matching journal structures that the user has permission to view
1392            * @throws SystemException if a system exception occurred
1393            */
1394            public int filterCountByG_P(long groupId, java.lang.String parentStructureId)
1395                    throws com.liferay.portal.kernel.exception.SystemException;
1396    
1397            /**
1398            * Returns the number of journal structures.
1399            *
1400            * @return the number of journal structures
1401            * @throws SystemException if a system exception occurred
1402            */
1403            public int countAll()
1404                    throws com.liferay.portal.kernel.exception.SystemException;
1405    }