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