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.portal.service.persistence;
16  
17  import com.liferay.portal.model.Layout;
18  
19  /**
20   * <a href="LayoutPersistence.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * @author    Brian Wing Shun Chan
28   * @see       LayoutPersistenceImpl
29   * @see       LayoutUtil
30   * @generated
31   */
32  public interface LayoutPersistence extends BasePersistence<Layout> {
33      public void cacheResult(com.liferay.portal.model.Layout layout);
34  
35      public void cacheResult(
36          java.util.List<com.liferay.portal.model.Layout> layouts);
37  
38      public com.liferay.portal.model.Layout create(long plid);
39  
40      public com.liferay.portal.model.Layout remove(long plid)
41          throws com.liferay.portal.NoSuchLayoutException,
42              com.liferay.portal.kernel.exception.SystemException;
43  
44      public com.liferay.portal.model.Layout updateImpl(
45          com.liferay.portal.model.Layout layout, boolean merge)
46          throws com.liferay.portal.kernel.exception.SystemException;
47  
48      public com.liferay.portal.model.Layout findByPrimaryKey(long plid)
49          throws com.liferay.portal.NoSuchLayoutException,
50              com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portal.model.Layout fetchByPrimaryKey(long plid)
53          throws com.liferay.portal.kernel.exception.SystemException;
54  
55      public java.util.List<com.liferay.portal.model.Layout> findByGroupId(
56          long groupId)
57          throws com.liferay.portal.kernel.exception.SystemException;
58  
59      public java.util.List<com.liferay.portal.model.Layout> findByGroupId(
60          long groupId, int start, int end)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portal.model.Layout> findByGroupId(
64          long groupId, int start, int end,
65          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
66          throws com.liferay.portal.kernel.exception.SystemException;
67  
68      public com.liferay.portal.model.Layout findByGroupId_First(long groupId,
69          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
70          throws com.liferay.portal.NoSuchLayoutException,
71              com.liferay.portal.kernel.exception.SystemException;
72  
73      public com.liferay.portal.model.Layout findByGroupId_Last(long groupId,
74          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
75          throws com.liferay.portal.NoSuchLayoutException,
76              com.liferay.portal.kernel.exception.SystemException;
77  
78      public com.liferay.portal.model.Layout[] findByGroupId_PrevAndNext(
79          long plid, long groupId,
80          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
81          throws com.liferay.portal.NoSuchLayoutException,
82              com.liferay.portal.kernel.exception.SystemException;
83  
84      public java.util.List<com.liferay.portal.model.Layout> findByCompanyId(
85          long companyId)
86          throws com.liferay.portal.kernel.exception.SystemException;
87  
88      public java.util.List<com.liferay.portal.model.Layout> findByCompanyId(
89          long companyId, int start, int end)
90          throws com.liferay.portal.kernel.exception.SystemException;
91  
92      public java.util.List<com.liferay.portal.model.Layout> findByCompanyId(
93          long companyId, int start, int end,
94          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
95          throws com.liferay.portal.kernel.exception.SystemException;
96  
97      public com.liferay.portal.model.Layout findByCompanyId_First(
98          long companyId,
99          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
100         throws com.liferay.portal.NoSuchLayoutException,
101             com.liferay.portal.kernel.exception.SystemException;
102 
103     public com.liferay.portal.model.Layout findByCompanyId_Last(
104         long companyId,
105         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
106         throws com.liferay.portal.NoSuchLayoutException,
107             com.liferay.portal.kernel.exception.SystemException;
108 
109     public com.liferay.portal.model.Layout[] findByCompanyId_PrevAndNext(
110         long plid, long companyId,
111         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
112         throws com.liferay.portal.NoSuchLayoutException,
113             com.liferay.portal.kernel.exception.SystemException;
114 
115     public com.liferay.portal.model.Layout findByDLFolderId(long dlFolderId)
116         throws com.liferay.portal.NoSuchLayoutException,
117             com.liferay.portal.kernel.exception.SystemException;
118 
119     public com.liferay.portal.model.Layout fetchByDLFolderId(long dlFolderId)
120         throws com.liferay.portal.kernel.exception.SystemException;
121 
122     public com.liferay.portal.model.Layout fetchByDLFolderId(long dlFolderId,
123         boolean retrieveFromCache)
124         throws com.liferay.portal.kernel.exception.SystemException;
125 
126     public com.liferay.portal.model.Layout findByIconImageId(long iconImageId)
127         throws com.liferay.portal.NoSuchLayoutException,
128             com.liferay.portal.kernel.exception.SystemException;
129 
130     public com.liferay.portal.model.Layout fetchByIconImageId(long iconImageId)
131         throws com.liferay.portal.kernel.exception.SystemException;
132 
133     public com.liferay.portal.model.Layout fetchByIconImageId(
134         long iconImageId, boolean retrieveFromCache)
135         throws com.liferay.portal.kernel.exception.SystemException;
136 
137     public java.util.List<com.liferay.portal.model.Layout> findByG_P(
138         long groupId, boolean privateLayout)
139         throws com.liferay.portal.kernel.exception.SystemException;
140 
141     public java.util.List<com.liferay.portal.model.Layout> findByG_P(
142         long groupId, boolean privateLayout, int start, int end)
143         throws com.liferay.portal.kernel.exception.SystemException;
144 
145     public java.util.List<com.liferay.portal.model.Layout> findByG_P(
146         long groupId, boolean privateLayout, int start, int end,
147         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148         throws com.liferay.portal.kernel.exception.SystemException;
149 
150     public com.liferay.portal.model.Layout findByG_P_First(long groupId,
151         boolean privateLayout,
152         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153         throws com.liferay.portal.NoSuchLayoutException,
154             com.liferay.portal.kernel.exception.SystemException;
155 
156     public com.liferay.portal.model.Layout findByG_P_Last(long groupId,
157         boolean privateLayout,
158         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159         throws com.liferay.portal.NoSuchLayoutException,
160             com.liferay.portal.kernel.exception.SystemException;
161 
162     public com.liferay.portal.model.Layout[] findByG_P_PrevAndNext(long plid,
163         long groupId, boolean privateLayout,
164         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165         throws com.liferay.portal.NoSuchLayoutException,
166             com.liferay.portal.kernel.exception.SystemException;
167 
168     public com.liferay.portal.model.Layout findByG_P_L(long groupId,
169         boolean privateLayout, long layoutId)
170         throws com.liferay.portal.NoSuchLayoutException,
171             com.liferay.portal.kernel.exception.SystemException;
172 
173     public com.liferay.portal.model.Layout fetchByG_P_L(long groupId,
174         boolean privateLayout, long layoutId)
175         throws com.liferay.portal.kernel.exception.SystemException;
176 
177     public com.liferay.portal.model.Layout fetchByG_P_L(long groupId,
178         boolean privateLayout, long layoutId, boolean retrieveFromCache)
179         throws com.liferay.portal.kernel.exception.SystemException;
180 
181     public java.util.List<com.liferay.portal.model.Layout> findByG_P_P(
182         long groupId, boolean privateLayout, long parentLayoutId)
183         throws com.liferay.portal.kernel.exception.SystemException;
184 
185     public java.util.List<com.liferay.portal.model.Layout> findByG_P_P(
186         long groupId, boolean privateLayout, long parentLayoutId, int start,
187         int end) throws com.liferay.portal.kernel.exception.SystemException;
188 
189     public java.util.List<com.liferay.portal.model.Layout> findByG_P_P(
190         long groupId, boolean privateLayout, long parentLayoutId, int start,
191         int end,
192         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
193         throws com.liferay.portal.kernel.exception.SystemException;
194 
195     public com.liferay.portal.model.Layout findByG_P_P_First(long groupId,
196         boolean privateLayout, long parentLayoutId,
197         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
198         throws com.liferay.portal.NoSuchLayoutException,
199             com.liferay.portal.kernel.exception.SystemException;
200 
201     public com.liferay.portal.model.Layout findByG_P_P_Last(long groupId,
202         boolean privateLayout, long parentLayoutId,
203         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
204         throws com.liferay.portal.NoSuchLayoutException,
205             com.liferay.portal.kernel.exception.SystemException;
206 
207     public com.liferay.portal.model.Layout[] findByG_P_P_PrevAndNext(
208         long plid, long groupId, boolean privateLayout, long parentLayoutId,
209         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210         throws com.liferay.portal.NoSuchLayoutException,
211             com.liferay.portal.kernel.exception.SystemException;
212 
213     public com.liferay.portal.model.Layout findByG_P_F(long groupId,
214         boolean privateLayout, java.lang.String friendlyURL)
215         throws com.liferay.portal.NoSuchLayoutException,
216             com.liferay.portal.kernel.exception.SystemException;
217 
218     public com.liferay.portal.model.Layout fetchByG_P_F(long groupId,
219         boolean privateLayout, java.lang.String friendlyURL)
220         throws com.liferay.portal.kernel.exception.SystemException;
221 
222     public com.liferay.portal.model.Layout fetchByG_P_F(long groupId,
223         boolean privateLayout, java.lang.String friendlyURL,
224         boolean retrieveFromCache)
225         throws com.liferay.portal.kernel.exception.SystemException;
226 
227     public java.util.List<com.liferay.portal.model.Layout> findByG_P_T(
228         long groupId, boolean privateLayout, java.lang.String type)
229         throws com.liferay.portal.kernel.exception.SystemException;
230 
231     public java.util.List<com.liferay.portal.model.Layout> findByG_P_T(
232         long groupId, boolean privateLayout, java.lang.String type, int start,
233         int end) throws com.liferay.portal.kernel.exception.SystemException;
234 
235     public java.util.List<com.liferay.portal.model.Layout> findByG_P_T(
236         long groupId, boolean privateLayout, java.lang.String type, int start,
237         int end,
238         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
239         throws com.liferay.portal.kernel.exception.SystemException;
240 
241     public com.liferay.portal.model.Layout findByG_P_T_First(long groupId,
242         boolean privateLayout, java.lang.String type,
243         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
244         throws com.liferay.portal.NoSuchLayoutException,
245             com.liferay.portal.kernel.exception.SystemException;
246 
247     public com.liferay.portal.model.Layout findByG_P_T_Last(long groupId,
248         boolean privateLayout, java.lang.String type,
249         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
250         throws com.liferay.portal.NoSuchLayoutException,
251             com.liferay.portal.kernel.exception.SystemException;
252 
253     public com.liferay.portal.model.Layout[] findByG_P_T_PrevAndNext(
254         long plid, long groupId, boolean privateLayout, java.lang.String type,
255         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
256         throws com.liferay.portal.NoSuchLayoutException,
257             com.liferay.portal.kernel.exception.SystemException;
258 
259     public java.util.List<com.liferay.portal.model.Layout> findAll()
260         throws com.liferay.portal.kernel.exception.SystemException;
261 
262     public java.util.List<com.liferay.portal.model.Layout> findAll(int start,
263         int end) throws com.liferay.portal.kernel.exception.SystemException;
264 
265     public java.util.List<com.liferay.portal.model.Layout> findAll(int start,
266         int end,
267         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
268         throws com.liferay.portal.kernel.exception.SystemException;
269 
270     public void removeByGroupId(long groupId)
271         throws com.liferay.portal.kernel.exception.SystemException;
272 
273     public void removeByCompanyId(long companyId)
274         throws com.liferay.portal.kernel.exception.SystemException;
275 
276     public void removeByDLFolderId(long dlFolderId)
277         throws com.liferay.portal.NoSuchLayoutException,
278             com.liferay.portal.kernel.exception.SystemException;
279 
280     public void removeByIconImageId(long iconImageId)
281         throws com.liferay.portal.NoSuchLayoutException,
282             com.liferay.portal.kernel.exception.SystemException;
283 
284     public void removeByG_P(long groupId, boolean privateLayout)
285         throws com.liferay.portal.kernel.exception.SystemException;
286 
287     public void removeByG_P_L(long groupId, boolean privateLayout, long layoutId)
288         throws com.liferay.portal.NoSuchLayoutException,
289             com.liferay.portal.kernel.exception.SystemException;
290 
291     public void removeByG_P_P(long groupId, boolean privateLayout,
292         long parentLayoutId)
293         throws com.liferay.portal.kernel.exception.SystemException;
294 
295     public void removeByG_P_F(long groupId, boolean privateLayout,
296         java.lang.String friendlyURL)
297         throws com.liferay.portal.NoSuchLayoutException,
298             com.liferay.portal.kernel.exception.SystemException;
299 
300     public void removeByG_P_T(long groupId, boolean privateLayout,
301         java.lang.String type)
302         throws com.liferay.portal.kernel.exception.SystemException;
303 
304     public void removeAll()
305         throws com.liferay.portal.kernel.exception.SystemException;
306 
307     public int countByGroupId(long groupId)
308         throws com.liferay.portal.kernel.exception.SystemException;
309 
310     public int countByCompanyId(long companyId)
311         throws com.liferay.portal.kernel.exception.SystemException;
312 
313     public int countByDLFolderId(long dlFolderId)
314         throws com.liferay.portal.kernel.exception.SystemException;
315 
316     public int countByIconImageId(long iconImageId)
317         throws com.liferay.portal.kernel.exception.SystemException;
318 
319     public int countByG_P(long groupId, boolean privateLayout)
320         throws com.liferay.portal.kernel.exception.SystemException;
321 
322     public int countByG_P_L(long groupId, boolean privateLayout, long layoutId)
323         throws com.liferay.portal.kernel.exception.SystemException;
324 
325     public int countByG_P_P(long groupId, boolean privateLayout,
326         long parentLayoutId)
327         throws com.liferay.portal.kernel.exception.SystemException;
328 
329     public int countByG_P_F(long groupId, boolean privateLayout,
330         java.lang.String friendlyURL)
331         throws com.liferay.portal.kernel.exception.SystemException;
332 
333     public int countByG_P_T(long groupId, boolean privateLayout,
334         java.lang.String type)
335         throws com.liferay.portal.kernel.exception.SystemException;
336 
337     public int countAll()
338         throws com.liferay.portal.kernel.exception.SystemException;
339 }