1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.journal.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.journal.model.JournalStructure;
20  
21  /**
22   * <a href="JournalStructurePersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       JournalStructurePersistenceImpl
31   * @see       JournalStructureUtil
32   * @generated
33   */
34  public interface JournalStructurePersistence extends BasePersistence<JournalStructure> {
35      public void cacheResult(
36          com.liferay.portlet.journal.model.JournalStructure journalStructure);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.journal.model.JournalStructure> journalStructures);
40  
41      public com.liferay.portlet.journal.model.JournalStructure create(long id);
42  
43      public com.liferay.portlet.journal.model.JournalStructure remove(long id)
44          throws com.liferay.portal.kernel.exception.SystemException,
45              com.liferay.portlet.journal.NoSuchStructureException;
46  
47      public com.liferay.portlet.journal.model.JournalStructure updateImpl(
48          com.liferay.portlet.journal.model.JournalStructure journalStructure,
49          boolean merge)
50          throws com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portlet.journal.model.JournalStructure findByPrimaryKey(
53          long id)
54          throws com.liferay.portal.kernel.exception.SystemException,
55              com.liferay.portlet.journal.NoSuchStructureException;
56  
57      public com.liferay.portlet.journal.model.JournalStructure fetchByPrimaryKey(
58          long id) throws com.liferay.portal.kernel.exception.SystemException;
59  
60      public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
61          java.lang.String uuid)
62          throws com.liferay.portal.kernel.exception.SystemException;
63  
64      public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
65          java.lang.String uuid, int start, int end)
66          throws com.liferay.portal.kernel.exception.SystemException;
67  
68      public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
69          java.lang.String uuid, int start, int end,
70          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
71          throws com.liferay.portal.kernel.exception.SystemException;
72  
73      public com.liferay.portlet.journal.model.JournalStructure findByUuid_First(
74          java.lang.String uuid,
75          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
76          throws com.liferay.portal.kernel.exception.SystemException,
77              com.liferay.portlet.journal.NoSuchStructureException;
78  
79      public com.liferay.portlet.journal.model.JournalStructure findByUuid_Last(
80          java.lang.String uuid,
81          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82          throws com.liferay.portal.kernel.exception.SystemException,
83              com.liferay.portlet.journal.NoSuchStructureException;
84  
85      public com.liferay.portlet.journal.model.JournalStructure[] findByUuid_PrevAndNext(
86          long id, java.lang.String uuid,
87          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
88          throws com.liferay.portal.kernel.exception.SystemException,
89              com.liferay.portlet.journal.NoSuchStructureException;
90  
91      public com.liferay.portlet.journal.model.JournalStructure findByUUID_G(
92          java.lang.String uuid, long groupId)
93          throws com.liferay.portal.kernel.exception.SystemException,
94              com.liferay.portlet.journal.NoSuchStructureException;
95  
96      public com.liferay.portlet.journal.model.JournalStructure fetchByUUID_G(
97          java.lang.String uuid, long groupId)
98          throws com.liferay.portal.kernel.exception.SystemException;
99  
100     public com.liferay.portlet.journal.model.JournalStructure fetchByUUID_G(
101         java.lang.String uuid, long groupId, boolean retrieveFromCache)
102         throws com.liferay.portal.kernel.exception.SystemException;
103 
104     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
105         long groupId)
106         throws com.liferay.portal.kernel.exception.SystemException;
107 
108     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
109         long groupId, int start, int end)
110         throws com.liferay.portal.kernel.exception.SystemException;
111 
112     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
113         long groupId, int start, int end,
114         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
115         throws com.liferay.portal.kernel.exception.SystemException;
116 
117     public com.liferay.portlet.journal.model.JournalStructure findByGroupId_First(
118         long groupId,
119         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
120         throws com.liferay.portal.kernel.exception.SystemException,
121             com.liferay.portlet.journal.NoSuchStructureException;
122 
123     public com.liferay.portlet.journal.model.JournalStructure findByGroupId_Last(
124         long groupId,
125         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
126         throws com.liferay.portal.kernel.exception.SystemException,
127             com.liferay.portlet.journal.NoSuchStructureException;
128 
129     public com.liferay.portlet.journal.model.JournalStructure[] findByGroupId_PrevAndNext(
130         long id, long groupId,
131         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
132         throws com.liferay.portal.kernel.exception.SystemException,
133             com.liferay.portlet.journal.NoSuchStructureException;
134 
135     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
136         java.lang.String structureId)
137         throws com.liferay.portal.kernel.exception.SystemException;
138 
139     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
140         java.lang.String structureId, int start, int end)
141         throws com.liferay.portal.kernel.exception.SystemException;
142 
143     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
144         java.lang.String structureId, int start, int end,
145         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146         throws com.liferay.portal.kernel.exception.SystemException;
147 
148     public com.liferay.portlet.journal.model.JournalStructure findByStructureId_First(
149         java.lang.String structureId,
150         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151         throws com.liferay.portal.kernel.exception.SystemException,
152             com.liferay.portlet.journal.NoSuchStructureException;
153 
154     public com.liferay.portlet.journal.model.JournalStructure findByStructureId_Last(
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_PrevAndNext(
161         long id, 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 findByG_S(
167         long groupId, java.lang.String structureId)
168         throws com.liferay.portal.kernel.exception.SystemException,
169             com.liferay.portlet.journal.NoSuchStructureException;
170 
171     public com.liferay.portlet.journal.model.JournalStructure fetchByG_S(
172         long groupId, java.lang.String structureId)
173         throws com.liferay.portal.kernel.exception.SystemException;
174 
175     public com.liferay.portlet.journal.model.JournalStructure fetchByG_S(
176         long groupId, java.lang.String structureId, boolean retrieveFromCache)
177         throws com.liferay.portal.kernel.exception.SystemException;
178 
179     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
180         long groupId, java.lang.String parentStructureId)
181         throws com.liferay.portal.kernel.exception.SystemException;
182 
183     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
184         long groupId, java.lang.String parentStructureId, int start, int end)
185         throws com.liferay.portal.kernel.exception.SystemException;
186 
187     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
188         long groupId, java.lang.String parentStructureId, int start, int end,
189         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
190         throws com.liferay.portal.kernel.exception.SystemException;
191 
192     public com.liferay.portlet.journal.model.JournalStructure findByG_P_First(
193         long groupId, java.lang.String parentStructureId,
194         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
195         throws com.liferay.portal.kernel.exception.SystemException,
196             com.liferay.portlet.journal.NoSuchStructureException;
197 
198     public com.liferay.portlet.journal.model.JournalStructure findByG_P_Last(
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_PrevAndNext(
205         long id, 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 java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll()
211         throws com.liferay.portal.kernel.exception.SystemException;
212 
213     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll(
214         int start, int end)
215         throws com.liferay.portal.kernel.exception.SystemException;
216 
217     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll(
218         int start, int end,
219         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
220         throws com.liferay.portal.kernel.exception.SystemException;
221 
222     public void removeByUuid(java.lang.String uuid)
223         throws com.liferay.portal.kernel.exception.SystemException;
224 
225     public void removeByUUID_G(java.lang.String uuid, long groupId)
226         throws com.liferay.portal.kernel.exception.SystemException,
227             com.liferay.portlet.journal.NoSuchStructureException;
228 
229     public void removeByGroupId(long groupId)
230         throws com.liferay.portal.kernel.exception.SystemException;
231 
232     public void removeByStructureId(java.lang.String structureId)
233         throws com.liferay.portal.kernel.exception.SystemException;
234 
235     public void removeByG_S(long groupId, java.lang.String structureId)
236         throws com.liferay.portal.kernel.exception.SystemException,
237             com.liferay.portlet.journal.NoSuchStructureException;
238 
239     public void removeByG_P(long groupId, java.lang.String parentStructureId)
240         throws com.liferay.portal.kernel.exception.SystemException;
241 
242     public void removeAll()
243         throws com.liferay.portal.kernel.exception.SystemException;
244 
245     public int countByUuid(java.lang.String uuid)
246         throws com.liferay.portal.kernel.exception.SystemException;
247 
248     public int countByUUID_G(java.lang.String uuid, long groupId)
249         throws com.liferay.portal.kernel.exception.SystemException;
250 
251     public int countByGroupId(long groupId)
252         throws com.liferay.portal.kernel.exception.SystemException;
253 
254     public int countByStructureId(java.lang.String structureId)
255         throws com.liferay.portal.kernel.exception.SystemException;
256 
257     public int countByG_S(long groupId, java.lang.String structureId)
258         throws com.liferay.portal.kernel.exception.SystemException;
259 
260     public int countByG_P(long groupId, java.lang.String parentStructureId)
261         throws com.liferay.portal.kernel.exception.SystemException;
262 
263     public int countAll()
264         throws com.liferay.portal.kernel.exception.SystemException;
265 }