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