001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.journal.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.journal.model.JournalStructure;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       JournalStructurePersistenceImpl
024     * @see       JournalStructureUtil
025     * @generated
026     */
027    public interface JournalStructurePersistence extends BasePersistence<JournalStructure> {
028            public void cacheResult(
029                    com.liferay.portlet.journal.model.JournalStructure journalStructure);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.journal.model.JournalStructure> journalStructures);
033    
034            public com.liferay.portlet.journal.model.JournalStructure create(long id);
035    
036            public com.liferay.portlet.journal.model.JournalStructure remove(long id)
037                    throws com.liferay.portal.kernel.exception.SystemException,
038                            com.liferay.portlet.journal.NoSuchStructureException;
039    
040            public com.liferay.portlet.journal.model.JournalStructure updateImpl(
041                    com.liferay.portlet.journal.model.JournalStructure journalStructure,
042                    boolean merge)
043                    throws com.liferay.portal.kernel.exception.SystemException;
044    
045            public com.liferay.portlet.journal.model.JournalStructure findByPrimaryKey(
046                    long id)
047                    throws com.liferay.portal.kernel.exception.SystemException,
048                            com.liferay.portlet.journal.NoSuchStructureException;
049    
050            public com.liferay.portlet.journal.model.JournalStructure fetchByPrimaryKey(
051                    long id) throws com.liferay.portal.kernel.exception.SystemException;
052    
053            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
054                    java.lang.String uuid)
055                    throws com.liferay.portal.kernel.exception.SystemException;
056    
057            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
058                    java.lang.String uuid, int start, int end)
059                    throws com.liferay.portal.kernel.exception.SystemException;
060    
061            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
062                    java.lang.String uuid, int start, int end,
063                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
064                    throws com.liferay.portal.kernel.exception.SystemException;
065    
066            public com.liferay.portlet.journal.model.JournalStructure findByUuid_First(
067                    java.lang.String uuid,
068                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
069                    throws com.liferay.portal.kernel.exception.SystemException,
070                            com.liferay.portlet.journal.NoSuchStructureException;
071    
072            public com.liferay.portlet.journal.model.JournalStructure findByUuid_Last(
073                    java.lang.String uuid,
074                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075                    throws com.liferay.portal.kernel.exception.SystemException,
076                            com.liferay.portlet.journal.NoSuchStructureException;
077    
078            public com.liferay.portlet.journal.model.JournalStructure[] findByUuid_PrevAndNext(
079                    long id, java.lang.String uuid,
080                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
081                    throws com.liferay.portal.kernel.exception.SystemException,
082                            com.liferay.portlet.journal.NoSuchStructureException;
083    
084            public com.liferay.portlet.journal.model.JournalStructure findByUUID_G(
085                    java.lang.String uuid, long groupId)
086                    throws com.liferay.portal.kernel.exception.SystemException,
087                            com.liferay.portlet.journal.NoSuchStructureException;
088    
089            public com.liferay.portlet.journal.model.JournalStructure fetchByUUID_G(
090                    java.lang.String uuid, long groupId)
091                    throws com.liferay.portal.kernel.exception.SystemException;
092    
093            public com.liferay.portlet.journal.model.JournalStructure fetchByUUID_G(
094                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
095                    throws com.liferay.portal.kernel.exception.SystemException;
096    
097            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
098                    long groupId)
099                    throws com.liferay.portal.kernel.exception.SystemException;
100    
101            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
102                    long groupId, int start, int end)
103                    throws com.liferay.portal.kernel.exception.SystemException;
104    
105            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
106                    long groupId, int start, int end,
107                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
108                    throws com.liferay.portal.kernel.exception.SystemException;
109    
110            public com.liferay.portlet.journal.model.JournalStructure findByGroupId_First(
111                    long groupId,
112                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
113                    throws com.liferay.portal.kernel.exception.SystemException,
114                            com.liferay.portlet.journal.NoSuchStructureException;
115    
116            public com.liferay.portlet.journal.model.JournalStructure findByGroupId_Last(
117                    long groupId,
118                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
119                    throws com.liferay.portal.kernel.exception.SystemException,
120                            com.liferay.portlet.journal.NoSuchStructureException;
121    
122            public com.liferay.portlet.journal.model.JournalStructure[] findByGroupId_PrevAndNext(
123                    long id, long groupId,
124                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
125                    throws com.liferay.portal.kernel.exception.SystemException,
126                            com.liferay.portlet.journal.NoSuchStructureException;
127    
128            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByGroupId(
129                    long groupId)
130                    throws com.liferay.portal.kernel.exception.SystemException;
131    
132            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByGroupId(
133                    long groupId, int start, int end)
134                    throws com.liferay.portal.kernel.exception.SystemException;
135    
136            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByGroupId(
137                    long groupId, int start, int end,
138                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139                    throws com.liferay.portal.kernel.exception.SystemException;
140    
141            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
142                    java.lang.String structureId)
143                    throws com.liferay.portal.kernel.exception.SystemException;
144    
145            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
146                    java.lang.String structureId, int start, int end)
147                    throws com.liferay.portal.kernel.exception.SystemException;
148    
149            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
150                    java.lang.String structureId, int start, int end,
151                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152                    throws com.liferay.portal.kernel.exception.SystemException;
153    
154            public com.liferay.portlet.journal.model.JournalStructure findByStructureId_First(
155                    java.lang.String structureId,
156                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157                    throws com.liferay.portal.kernel.exception.SystemException,
158                            com.liferay.portlet.journal.NoSuchStructureException;
159    
160            public com.liferay.portlet.journal.model.JournalStructure findByStructureId_Last(
161                    java.lang.String structureId,
162                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163                    throws com.liferay.portal.kernel.exception.SystemException,
164                            com.liferay.portlet.journal.NoSuchStructureException;
165    
166            public com.liferay.portlet.journal.model.JournalStructure[] findByStructureId_PrevAndNext(
167                    long id, java.lang.String structureId,
168                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
169                    throws com.liferay.portal.kernel.exception.SystemException,
170                            com.liferay.portlet.journal.NoSuchStructureException;
171    
172            public com.liferay.portlet.journal.model.JournalStructure findByG_S(
173                    long groupId, java.lang.String structureId)
174                    throws com.liferay.portal.kernel.exception.SystemException,
175                            com.liferay.portlet.journal.NoSuchStructureException;
176    
177            public com.liferay.portlet.journal.model.JournalStructure fetchByG_S(
178                    long groupId, java.lang.String structureId)
179                    throws com.liferay.portal.kernel.exception.SystemException;
180    
181            public com.liferay.portlet.journal.model.JournalStructure fetchByG_S(
182                    long groupId, java.lang.String structureId, boolean retrieveFromCache)
183                    throws com.liferay.portal.kernel.exception.SystemException;
184    
185            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
186                    long groupId, java.lang.String parentStructureId)
187                    throws com.liferay.portal.kernel.exception.SystemException;
188    
189            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
190                    long groupId, java.lang.String parentStructureId, int start, int end)
191                    throws com.liferay.portal.kernel.exception.SystemException;
192    
193            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
194                    long groupId, java.lang.String parentStructureId, int start, int end,
195                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
196                    throws com.liferay.portal.kernel.exception.SystemException;
197    
198            public com.liferay.portlet.journal.model.JournalStructure findByG_P_First(
199                    long groupId, java.lang.String parentStructureId,
200                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
201                    throws com.liferay.portal.kernel.exception.SystemException,
202                            com.liferay.portlet.journal.NoSuchStructureException;
203    
204            public com.liferay.portlet.journal.model.JournalStructure findByG_P_Last(
205                    long groupId, java.lang.String parentStructureId,
206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207                    throws com.liferay.portal.kernel.exception.SystemException,
208                            com.liferay.portlet.journal.NoSuchStructureException;
209    
210            public com.liferay.portlet.journal.model.JournalStructure[] findByG_P_PrevAndNext(
211                    long id, long groupId, java.lang.String parentStructureId,
212                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
213                    throws com.liferay.portal.kernel.exception.SystemException,
214                            com.liferay.portlet.journal.NoSuchStructureException;
215    
216            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByG_P(
217                    long groupId, java.lang.String parentStructureId)
218                    throws com.liferay.portal.kernel.exception.SystemException;
219    
220            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByG_P(
221                    long groupId, java.lang.String parentStructureId, int start, int end)
222                    throws com.liferay.portal.kernel.exception.SystemException;
223    
224            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByG_P(
225                    long groupId, java.lang.String parentStructureId, int start, int end,
226                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227                    throws com.liferay.portal.kernel.exception.SystemException;
228    
229            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll()
230                    throws com.liferay.portal.kernel.exception.SystemException;
231    
232            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll(
233                    int start, int end)
234                    throws com.liferay.portal.kernel.exception.SystemException;
235    
236            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll(
237                    int start, int end,
238                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
239                    throws com.liferay.portal.kernel.exception.SystemException;
240    
241            public void removeByUuid(java.lang.String uuid)
242                    throws com.liferay.portal.kernel.exception.SystemException;
243    
244            public void removeByUUID_G(java.lang.String uuid, long groupId)
245                    throws com.liferay.portal.kernel.exception.SystemException,
246                            com.liferay.portlet.journal.NoSuchStructureException;
247    
248            public void removeByGroupId(long groupId)
249                    throws com.liferay.portal.kernel.exception.SystemException;
250    
251            public void removeByStructureId(java.lang.String structureId)
252                    throws com.liferay.portal.kernel.exception.SystemException;
253    
254            public void removeByG_S(long groupId, java.lang.String structureId)
255                    throws com.liferay.portal.kernel.exception.SystemException,
256                            com.liferay.portlet.journal.NoSuchStructureException;
257    
258            public void removeByG_P(long groupId, java.lang.String parentStructureId)
259                    throws com.liferay.portal.kernel.exception.SystemException;
260    
261            public void removeAll()
262                    throws com.liferay.portal.kernel.exception.SystemException;
263    
264            public int countByUuid(java.lang.String uuid)
265                    throws com.liferay.portal.kernel.exception.SystemException;
266    
267            public int countByUUID_G(java.lang.String uuid, long groupId)
268                    throws com.liferay.portal.kernel.exception.SystemException;
269    
270            public int countByGroupId(long groupId)
271                    throws com.liferay.portal.kernel.exception.SystemException;
272    
273            public int filterCountByGroupId(long groupId)
274                    throws com.liferay.portal.kernel.exception.SystemException;
275    
276            public int countByStructureId(java.lang.String structureId)
277                    throws com.liferay.portal.kernel.exception.SystemException;
278    
279            public int countByG_S(long groupId, java.lang.String structureId)
280                    throws com.liferay.portal.kernel.exception.SystemException;
281    
282            public int filterCountByG_S(long groupId, java.lang.String structureId)
283                    throws com.liferay.portal.kernel.exception.SystemException;
284    
285            public int countByG_P(long groupId, java.lang.String parentStructureId)
286                    throws com.liferay.portal.kernel.exception.SystemException;
287    
288            public int filterCountByG_P(long groupId, java.lang.String parentStructureId)
289                    throws com.liferay.portal.kernel.exception.SystemException;
290    
291            public int countAll()
292                    throws com.liferay.portal.kernel.exception.SystemException;
293    }