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