1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
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.SystemException,
45              com.liferay.portlet.journal.NoSuchStructureException;
46  
47      /**
48       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
49       */
50      public com.liferay.portlet.journal.model.JournalStructure update(
51          com.liferay.portlet.journal.model.JournalStructure journalStructure)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portlet.journal.model.JournalStructure updateImpl(
55          com.liferay.portlet.journal.model.JournalStructure journalStructure,
56          boolean merge) throws com.liferay.portal.SystemException;
57  
58      public com.liferay.portlet.journal.model.JournalStructure findByPrimaryKey(
59          long id)
60          throws com.liferay.portal.SystemException,
61              com.liferay.portlet.journal.NoSuchStructureException;
62  
63      public com.liferay.portlet.journal.model.JournalStructure fetchByPrimaryKey(
64          long id) throws com.liferay.portal.SystemException;
65  
66      public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
67          java.lang.String uuid) throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
70          java.lang.String uuid, int start, int end)
71          throws com.liferay.portal.SystemException;
72  
73      public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
74          java.lang.String uuid, int start, int end,
75          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
76          throws com.liferay.portal.SystemException;
77  
78      public com.liferay.portlet.journal.model.JournalStructure findByUuid_First(
79          java.lang.String uuid,
80          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
81          throws com.liferay.portal.SystemException,
82              com.liferay.portlet.journal.NoSuchStructureException;
83  
84      public com.liferay.portlet.journal.model.JournalStructure findByUuid_Last(
85          java.lang.String uuid,
86          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
87          throws com.liferay.portal.SystemException,
88              com.liferay.portlet.journal.NoSuchStructureException;
89  
90      public com.liferay.portlet.journal.model.JournalStructure[] findByUuid_PrevAndNext(
91          long id, java.lang.String uuid,
92          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
93          throws com.liferay.portal.SystemException,
94              com.liferay.portlet.journal.NoSuchStructureException;
95  
96      public com.liferay.portlet.journal.model.JournalStructure findByUUID_G(
97          java.lang.String uuid, long groupId)
98          throws com.liferay.portal.SystemException,
99              com.liferay.portlet.journal.NoSuchStructureException;
100 
101     public com.liferay.portlet.journal.model.JournalStructure fetchByUUID_G(
102         java.lang.String uuid, long groupId)
103         throws com.liferay.portal.SystemException;
104 
105     public com.liferay.portlet.journal.model.JournalStructure fetchByUUID_G(
106         java.lang.String uuid, long groupId, boolean retrieveFromCache)
107         throws com.liferay.portal.SystemException;
108 
109     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
110         long groupId) throws com.liferay.portal.SystemException;
111 
112     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
113         long groupId, int start, int end)
114         throws com.liferay.portal.SystemException;
115 
116     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
117         long groupId, int start, int end,
118         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
119         throws com.liferay.portal.SystemException;
120 
121     public com.liferay.portlet.journal.model.JournalStructure findByGroupId_First(
122         long groupId,
123         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
124         throws com.liferay.portal.SystemException,
125             com.liferay.portlet.journal.NoSuchStructureException;
126 
127     public com.liferay.portlet.journal.model.JournalStructure findByGroupId_Last(
128         long groupId,
129         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
130         throws com.liferay.portal.SystemException,
131             com.liferay.portlet.journal.NoSuchStructureException;
132 
133     public com.liferay.portlet.journal.model.JournalStructure[] findByGroupId_PrevAndNext(
134         long id, long groupId,
135         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136         throws com.liferay.portal.SystemException,
137             com.liferay.portlet.journal.NoSuchStructureException;
138 
139     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
140         java.lang.String structureId) throws com.liferay.portal.SystemException;
141 
142     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
143         java.lang.String structureId, int start, int end)
144         throws com.liferay.portal.SystemException;
145 
146     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
147         java.lang.String structureId, int start, int end,
148         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149         throws com.liferay.portal.SystemException;
150 
151     public com.liferay.portlet.journal.model.JournalStructure findByStructureId_First(
152         java.lang.String structureId,
153         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154         throws com.liferay.portal.SystemException,
155             com.liferay.portlet.journal.NoSuchStructureException;
156 
157     public com.liferay.portlet.journal.model.JournalStructure findByStructureId_Last(
158         java.lang.String structureId,
159         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
160         throws com.liferay.portal.SystemException,
161             com.liferay.portlet.journal.NoSuchStructureException;
162 
163     public com.liferay.portlet.journal.model.JournalStructure[] findByStructureId_PrevAndNext(
164         long id, java.lang.String structureId,
165         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166         throws com.liferay.portal.SystemException,
167             com.liferay.portlet.journal.NoSuchStructureException;
168 
169     public com.liferay.portlet.journal.model.JournalStructure findByG_S(
170         long groupId, java.lang.String structureId)
171         throws com.liferay.portal.SystemException,
172             com.liferay.portlet.journal.NoSuchStructureException;
173 
174     public com.liferay.portlet.journal.model.JournalStructure fetchByG_S(
175         long groupId, java.lang.String structureId)
176         throws com.liferay.portal.SystemException;
177 
178     public com.liferay.portlet.journal.model.JournalStructure fetchByG_S(
179         long groupId, java.lang.String structureId, boolean retrieveFromCache)
180         throws com.liferay.portal.SystemException;
181 
182     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
183         long groupId, java.lang.String parentStructureId)
184         throws com.liferay.portal.SystemException;
185 
186     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
187         long groupId, java.lang.String parentStructureId, int start, int end)
188         throws com.liferay.portal.SystemException;
189 
190     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
191         long groupId, java.lang.String parentStructureId, int start, int end,
192         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
193         throws com.liferay.portal.SystemException;
194 
195     public com.liferay.portlet.journal.model.JournalStructure findByG_P_First(
196         long groupId, java.lang.String parentStructureId,
197         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
198         throws com.liferay.portal.SystemException,
199             com.liferay.portlet.journal.NoSuchStructureException;
200 
201     public com.liferay.portlet.journal.model.JournalStructure findByG_P_Last(
202         long groupId, java.lang.String parentStructureId,
203         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
204         throws com.liferay.portal.SystemException,
205             com.liferay.portlet.journal.NoSuchStructureException;
206 
207     public com.liferay.portlet.journal.model.JournalStructure[] findByG_P_PrevAndNext(
208         long id, long groupId, java.lang.String parentStructureId,
209         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210         throws com.liferay.portal.SystemException,
211             com.liferay.portlet.journal.NoSuchStructureException;
212 
213     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll()
214         throws com.liferay.portal.SystemException;
215 
216     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll(
217         int start, int end) throws com.liferay.portal.SystemException;
218 
219     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll(
220         int start, int end,
221         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
222         throws com.liferay.portal.SystemException;
223 
224     public void removeByUuid(java.lang.String uuid)
225         throws com.liferay.portal.SystemException;
226 
227     public void removeByUUID_G(java.lang.String uuid, long groupId)
228         throws com.liferay.portal.SystemException,
229             com.liferay.portlet.journal.NoSuchStructureException;
230 
231     public void removeByGroupId(long groupId)
232         throws com.liferay.portal.SystemException;
233 
234     public void removeByStructureId(java.lang.String structureId)
235         throws com.liferay.portal.SystemException;
236 
237     public void removeByG_S(long groupId, java.lang.String structureId)
238         throws com.liferay.portal.SystemException,
239             com.liferay.portlet.journal.NoSuchStructureException;
240 
241     public void removeByG_P(long groupId, java.lang.String parentStructureId)
242         throws com.liferay.portal.SystemException;
243 
244     public void removeAll() throws com.liferay.portal.SystemException;
245 
246     public int countByUuid(java.lang.String uuid)
247         throws com.liferay.portal.SystemException;
248 
249     public int countByUUID_G(java.lang.String uuid, long groupId)
250         throws com.liferay.portal.SystemException;
251 
252     public int countByGroupId(long groupId)
253         throws com.liferay.portal.SystemException;
254 
255     public int countByStructureId(java.lang.String structureId)
256         throws com.liferay.portal.SystemException;
257 
258     public int countByG_S(long groupId, java.lang.String structureId)
259         throws com.liferay.portal.SystemException;
260 
261     public int countByG_P(long groupId, java.lang.String parentStructureId)
262         throws com.liferay.portal.SystemException;
263 
264     public int countAll() throws com.liferay.portal.SystemException;
265 }