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