1   /**
2    * Copyright (c) 2000-2009 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   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.journal.service.persistence;
21  
22  import com.liferay.portal.service.persistence.BasePersistence;
23  
24  /**
25   * <a href="JournalStructurePersistence.java.html"><b><i>View Source</i></b></a>
26   *
27   * @author Brian Wing Shun Chan
28   *
29   */
30  public interface JournalStructurePersistence extends BasePersistence {
31      public void cacheResult(
32          com.liferay.portlet.journal.model.JournalStructure journalStructure);
33  
34      public void cacheResult(
35          java.util.List<com.liferay.portlet.journal.model.JournalStructure> journalStructures);
36  
37      public void clearCache();
38  
39      public com.liferay.portlet.journal.model.JournalStructure create(long id);
40  
41      public com.liferay.portlet.journal.model.JournalStructure remove(long id)
42          throws com.liferay.portal.SystemException,
43              com.liferay.portlet.journal.NoSuchStructureException;
44  
45      public com.liferay.portlet.journal.model.JournalStructure remove(
46          com.liferay.portlet.journal.model.JournalStructure journalStructure)
47          throws com.liferay.portal.SystemException;
48  
49      /**
50       * @deprecated Use <code>update(JournalStructure journalStructure, boolean merge)</code>.
51       */
52      public com.liferay.portlet.journal.model.JournalStructure update(
53          com.liferay.portlet.journal.model.JournalStructure journalStructure)
54          throws com.liferay.portal.SystemException;
55  
56      /**
57       * Add, update, or merge, the entity. This method also calls the model
58       * listeners to trigger the proper events associated with adding, deleting,
59       * or updating an entity.
60       *
61       * @param        journalStructure the entity to add, update, or merge
62       * @param        merge boolean value for whether to merge the entity. The
63       *                default value is false. Setting merge to true is more
64       *                expensive and should only be true when journalStructure is
65       *                transient. See LEP-5473 for a detailed discussion of this
66       *                method.
67       * @return        true if the portlet can be displayed via Ajax
68       */
69      public com.liferay.portlet.journal.model.JournalStructure update(
70          com.liferay.portlet.journal.model.JournalStructure journalStructure,
71          boolean merge) throws com.liferay.portal.SystemException;
72  
73      public com.liferay.portlet.journal.model.JournalStructure updateImpl(
74          com.liferay.portlet.journal.model.JournalStructure journalStructure,
75          boolean merge) throws com.liferay.portal.SystemException;
76  
77      public com.liferay.portlet.journal.model.JournalStructure findByPrimaryKey(
78          long id)
79          throws com.liferay.portal.SystemException,
80              com.liferay.portlet.journal.NoSuchStructureException;
81  
82      public com.liferay.portlet.journal.model.JournalStructure fetchByPrimaryKey(
83          long id) throws com.liferay.portal.SystemException;
84  
85      public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
86          java.lang.String uuid) throws com.liferay.portal.SystemException;
87  
88      public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
89          java.lang.String uuid, int start, int end)
90          throws com.liferay.portal.SystemException;
91  
92      public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
93          java.lang.String uuid, int start, int end,
94          com.liferay.portal.kernel.util.OrderByComparator obc)
95          throws com.liferay.portal.SystemException;
96  
97      public com.liferay.portlet.journal.model.JournalStructure findByUuid_First(
98          java.lang.String uuid,
99          com.liferay.portal.kernel.util.OrderByComparator obc)
100         throws com.liferay.portal.SystemException,
101             com.liferay.portlet.journal.NoSuchStructureException;
102 
103     public com.liferay.portlet.journal.model.JournalStructure findByUuid_Last(
104         java.lang.String uuid,
105         com.liferay.portal.kernel.util.OrderByComparator obc)
106         throws com.liferay.portal.SystemException,
107             com.liferay.portlet.journal.NoSuchStructureException;
108 
109     public com.liferay.portlet.journal.model.JournalStructure[] findByUuid_PrevAndNext(
110         long id, java.lang.String uuid,
111         com.liferay.portal.kernel.util.OrderByComparator obc)
112         throws com.liferay.portal.SystemException,
113             com.liferay.portlet.journal.NoSuchStructureException;
114 
115     public com.liferay.portlet.journal.model.JournalStructure findByUUID_G(
116         java.lang.String uuid, long groupId)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portlet.journal.NoSuchStructureException;
119 
120     public com.liferay.portlet.journal.model.JournalStructure fetchByUUID_G(
121         java.lang.String uuid, long groupId)
122         throws com.liferay.portal.SystemException;
123 
124     public com.liferay.portlet.journal.model.JournalStructure fetchByUUID_G(
125         java.lang.String uuid, long groupId, boolean retrieveFromCache)
126         throws com.liferay.portal.SystemException;
127 
128     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
129         long groupId) throws com.liferay.portal.SystemException;
130 
131     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
132         long groupId, int start, int end)
133         throws com.liferay.portal.SystemException;
134 
135     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
136         long groupId, int start, int end,
137         com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.SystemException;
139 
140     public com.liferay.portlet.journal.model.JournalStructure findByGroupId_First(
141         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.SystemException,
143             com.liferay.portlet.journal.NoSuchStructureException;
144 
145     public com.liferay.portlet.journal.model.JournalStructure findByGroupId_Last(
146         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.SystemException,
148             com.liferay.portlet.journal.NoSuchStructureException;
149 
150     public com.liferay.portlet.journal.model.JournalStructure[] findByGroupId_PrevAndNext(
151         long id, long groupId,
152         com.liferay.portal.kernel.util.OrderByComparator obc)
153         throws com.liferay.portal.SystemException,
154             com.liferay.portlet.journal.NoSuchStructureException;
155 
156     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
157         java.lang.String structureId) throws com.liferay.portal.SystemException;
158 
159     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
160         java.lang.String structureId, int start, int end)
161         throws com.liferay.portal.SystemException;
162 
163     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
164         java.lang.String structureId, int start, int end,
165         com.liferay.portal.kernel.util.OrderByComparator obc)
166         throws com.liferay.portal.SystemException;
167 
168     public com.liferay.portlet.journal.model.JournalStructure findByStructureId_First(
169         java.lang.String structureId,
170         com.liferay.portal.kernel.util.OrderByComparator obc)
171         throws com.liferay.portal.SystemException,
172             com.liferay.portlet.journal.NoSuchStructureException;
173 
174     public com.liferay.portlet.journal.model.JournalStructure findByStructureId_Last(
175         java.lang.String structureId,
176         com.liferay.portal.kernel.util.OrderByComparator obc)
177         throws com.liferay.portal.SystemException,
178             com.liferay.portlet.journal.NoSuchStructureException;
179 
180     public com.liferay.portlet.journal.model.JournalStructure[] findByStructureId_PrevAndNext(
181         long id, java.lang.String structureId,
182         com.liferay.portal.kernel.util.OrderByComparator obc)
183         throws com.liferay.portal.SystemException,
184             com.liferay.portlet.journal.NoSuchStructureException;
185 
186     public com.liferay.portlet.journal.model.JournalStructure findByG_S(
187         long groupId, java.lang.String structureId)
188         throws com.liferay.portal.SystemException,
189             com.liferay.portlet.journal.NoSuchStructureException;
190 
191     public com.liferay.portlet.journal.model.JournalStructure fetchByG_S(
192         long groupId, java.lang.String structureId)
193         throws com.liferay.portal.SystemException;
194 
195     public com.liferay.portlet.journal.model.JournalStructure fetchByG_S(
196         long groupId, java.lang.String structureId, boolean retrieveFromCache)
197         throws com.liferay.portal.SystemException;
198 
199     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
200         long groupId, java.lang.String parentStructureId)
201         throws com.liferay.portal.SystemException;
202 
203     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
204         long groupId, java.lang.String parentStructureId, int start, int end)
205         throws com.liferay.portal.SystemException;
206 
207     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
208         long groupId, java.lang.String parentStructureId, int start, int end,
209         com.liferay.portal.kernel.util.OrderByComparator obc)
210         throws com.liferay.portal.SystemException;
211 
212     public com.liferay.portlet.journal.model.JournalStructure findByG_P_First(
213         long groupId, java.lang.String parentStructureId,
214         com.liferay.portal.kernel.util.OrderByComparator obc)
215         throws com.liferay.portal.SystemException,
216             com.liferay.portlet.journal.NoSuchStructureException;
217 
218     public com.liferay.portlet.journal.model.JournalStructure findByG_P_Last(
219         long groupId, java.lang.String parentStructureId,
220         com.liferay.portal.kernel.util.OrderByComparator obc)
221         throws com.liferay.portal.SystemException,
222             com.liferay.portlet.journal.NoSuchStructureException;
223 
224     public com.liferay.portlet.journal.model.JournalStructure[] findByG_P_PrevAndNext(
225         long id, long groupId, java.lang.String parentStructureId,
226         com.liferay.portal.kernel.util.OrderByComparator obc)
227         throws com.liferay.portal.SystemException,
228             com.liferay.portlet.journal.NoSuchStructureException;
229 
230     public java.util.List<Object> findWithDynamicQuery(
231         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
232         throws com.liferay.portal.SystemException;
233 
234     public java.util.List<Object> findWithDynamicQuery(
235         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
236         int end) throws com.liferay.portal.SystemException;
237 
238     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll()
239         throws com.liferay.portal.SystemException;
240 
241     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll(
242         int start, int end) throws com.liferay.portal.SystemException;
243 
244     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll(
245         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
246         throws com.liferay.portal.SystemException;
247 
248     public void removeByUuid(java.lang.String uuid)
249         throws com.liferay.portal.SystemException;
250 
251     public void removeByUUID_G(java.lang.String uuid, long groupId)
252         throws com.liferay.portal.SystemException,
253             com.liferay.portlet.journal.NoSuchStructureException;
254 
255     public void removeByGroupId(long groupId)
256         throws com.liferay.portal.SystemException;
257 
258     public void removeByStructureId(java.lang.String structureId)
259         throws com.liferay.portal.SystemException;
260 
261     public void removeByG_S(long groupId, java.lang.String structureId)
262         throws com.liferay.portal.SystemException,
263             com.liferay.portlet.journal.NoSuchStructureException;
264 
265     public void removeByG_P(long groupId, java.lang.String parentStructureId)
266         throws com.liferay.portal.SystemException;
267 
268     public void removeAll() throws com.liferay.portal.SystemException;
269 
270     public int countByUuid(java.lang.String uuid)
271         throws com.liferay.portal.SystemException;
272 
273     public int countByUUID_G(java.lang.String uuid, long groupId)
274         throws com.liferay.portal.SystemException;
275 
276     public int countByGroupId(long groupId)
277         throws com.liferay.portal.SystemException;
278 
279     public int countByStructureId(java.lang.String structureId)
280         throws com.liferay.portal.SystemException;
281 
282     public int countByG_S(long groupId, java.lang.String structureId)
283         throws com.liferay.portal.SystemException;
284 
285     public int countByG_P(long groupId, java.lang.String parentStructureId)
286         throws com.liferay.portal.SystemException;
287 
288     public int countAll() throws com.liferay.portal.SystemException;
289 }