1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service.persistence;
24  
25  import com.liferay.portal.model.Layout;
26  
27  /**
28   * <a href="LayoutPersistence.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       LayoutPersistenceImpl
37   * @see       LayoutUtil
38   * @generated
39   */
40  public interface LayoutPersistence extends BasePersistence<Layout> {
41      public void cacheResult(com.liferay.portal.model.Layout layout);
42  
43      public void cacheResult(
44          java.util.List<com.liferay.portal.model.Layout> layouts);
45  
46      public com.liferay.portal.model.Layout create(long plid);
47  
48      public com.liferay.portal.model.Layout remove(long plid)
49          throws com.liferay.portal.NoSuchLayoutException,
50              com.liferay.portal.SystemException;
51  
52      /**
53       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
54       */
55      public com.liferay.portal.model.Layout update(
56          com.liferay.portal.model.Layout layout)
57          throws com.liferay.portal.SystemException;
58  
59      public com.liferay.portal.model.Layout updateImpl(
60          com.liferay.portal.model.Layout layout, boolean merge)
61          throws com.liferay.portal.SystemException;
62  
63      public com.liferay.portal.model.Layout findByPrimaryKey(long plid)
64          throws com.liferay.portal.NoSuchLayoutException,
65              com.liferay.portal.SystemException;
66  
67      public com.liferay.portal.model.Layout fetchByPrimaryKey(long plid)
68          throws com.liferay.portal.SystemException;
69  
70      public java.util.List<com.liferay.portal.model.Layout> findByGroupId(
71          long groupId) throws com.liferay.portal.SystemException;
72  
73      public java.util.List<com.liferay.portal.model.Layout> findByGroupId(
74          long groupId, int start, int end)
75          throws com.liferay.portal.SystemException;
76  
77      public java.util.List<com.liferay.portal.model.Layout> findByGroupId(
78          long groupId, int start, int end,
79          com.liferay.portal.kernel.util.OrderByComparator obc)
80          throws com.liferay.portal.SystemException;
81  
82      public com.liferay.portal.model.Layout findByGroupId_First(long groupId,
83          com.liferay.portal.kernel.util.OrderByComparator obc)
84          throws com.liferay.portal.NoSuchLayoutException,
85              com.liferay.portal.SystemException;
86  
87      public com.liferay.portal.model.Layout findByGroupId_Last(long groupId,
88          com.liferay.portal.kernel.util.OrderByComparator obc)
89          throws com.liferay.portal.NoSuchLayoutException,
90              com.liferay.portal.SystemException;
91  
92      public com.liferay.portal.model.Layout[] findByGroupId_PrevAndNext(
93          long plid, long groupId,
94          com.liferay.portal.kernel.util.OrderByComparator obc)
95          throws com.liferay.portal.NoSuchLayoutException,
96              com.liferay.portal.SystemException;
97  
98      public java.util.List<com.liferay.portal.model.Layout> findByCompanyId(
99          long companyId) throws com.liferay.portal.SystemException;
100 
101     public java.util.List<com.liferay.portal.model.Layout> findByCompanyId(
102         long companyId, int start, int end)
103         throws com.liferay.portal.SystemException;
104 
105     public java.util.List<com.liferay.portal.model.Layout> findByCompanyId(
106         long companyId, int start, int end,
107         com.liferay.portal.kernel.util.OrderByComparator obc)
108         throws com.liferay.portal.SystemException;
109 
110     public com.liferay.portal.model.Layout findByCompanyId_First(
111         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
112         throws com.liferay.portal.NoSuchLayoutException,
113             com.liferay.portal.SystemException;
114 
115     public com.liferay.portal.model.Layout findByCompanyId_Last(
116         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
117         throws com.liferay.portal.NoSuchLayoutException,
118             com.liferay.portal.SystemException;
119 
120     public com.liferay.portal.model.Layout[] findByCompanyId_PrevAndNext(
121         long plid, long companyId,
122         com.liferay.portal.kernel.util.OrderByComparator obc)
123         throws com.liferay.portal.NoSuchLayoutException,
124             com.liferay.portal.SystemException;
125 
126     public com.liferay.portal.model.Layout findByDLFolderId(long dlFolderId)
127         throws com.liferay.portal.NoSuchLayoutException,
128             com.liferay.portal.SystemException;
129 
130     public com.liferay.portal.model.Layout fetchByDLFolderId(long dlFolderId)
131         throws com.liferay.portal.SystemException;
132 
133     public com.liferay.portal.model.Layout fetchByDLFolderId(long dlFolderId,
134         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
135 
136     public com.liferay.portal.model.Layout findByIconImageId(long iconImageId)
137         throws com.liferay.portal.NoSuchLayoutException,
138             com.liferay.portal.SystemException;
139 
140     public com.liferay.portal.model.Layout fetchByIconImageId(long iconImageId)
141         throws com.liferay.portal.SystemException;
142 
143     public com.liferay.portal.model.Layout fetchByIconImageId(
144         long iconImageId, boolean retrieveFromCache)
145         throws com.liferay.portal.SystemException;
146 
147     public java.util.List<com.liferay.portal.model.Layout> findByG_P(
148         long groupId, boolean privateLayout)
149         throws com.liferay.portal.SystemException;
150 
151     public java.util.List<com.liferay.portal.model.Layout> findByG_P(
152         long groupId, boolean privateLayout, int start, int end)
153         throws com.liferay.portal.SystemException;
154 
155     public java.util.List<com.liferay.portal.model.Layout> findByG_P(
156         long groupId, boolean privateLayout, int start, int end,
157         com.liferay.portal.kernel.util.OrderByComparator obc)
158         throws com.liferay.portal.SystemException;
159 
160     public com.liferay.portal.model.Layout findByG_P_First(long groupId,
161         boolean privateLayout,
162         com.liferay.portal.kernel.util.OrderByComparator obc)
163         throws com.liferay.portal.NoSuchLayoutException,
164             com.liferay.portal.SystemException;
165 
166     public com.liferay.portal.model.Layout findByG_P_Last(long groupId,
167         boolean privateLayout,
168         com.liferay.portal.kernel.util.OrderByComparator obc)
169         throws com.liferay.portal.NoSuchLayoutException,
170             com.liferay.portal.SystemException;
171 
172     public com.liferay.portal.model.Layout[] findByG_P_PrevAndNext(long plid,
173         long groupId, boolean privateLayout,
174         com.liferay.portal.kernel.util.OrderByComparator obc)
175         throws com.liferay.portal.NoSuchLayoutException,
176             com.liferay.portal.SystemException;
177 
178     public com.liferay.portal.model.Layout findByG_P_L(long groupId,
179         boolean privateLayout, long layoutId)
180         throws com.liferay.portal.NoSuchLayoutException,
181             com.liferay.portal.SystemException;
182 
183     public com.liferay.portal.model.Layout fetchByG_P_L(long groupId,
184         boolean privateLayout, long layoutId)
185         throws com.liferay.portal.SystemException;
186 
187     public com.liferay.portal.model.Layout fetchByG_P_L(long groupId,
188         boolean privateLayout, long layoutId, boolean retrieveFromCache)
189         throws com.liferay.portal.SystemException;
190 
191     public java.util.List<com.liferay.portal.model.Layout> findByG_P_P(
192         long groupId, boolean privateLayout, long parentLayoutId)
193         throws com.liferay.portal.SystemException;
194 
195     public java.util.List<com.liferay.portal.model.Layout> findByG_P_P(
196         long groupId, boolean privateLayout, long parentLayoutId, int start,
197         int end) throws com.liferay.portal.SystemException;
198 
199     public java.util.List<com.liferay.portal.model.Layout> findByG_P_P(
200         long groupId, boolean privateLayout, long parentLayoutId, int start,
201         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
202         throws com.liferay.portal.SystemException;
203 
204     public com.liferay.portal.model.Layout findByG_P_P_First(long groupId,
205         boolean privateLayout, long parentLayoutId,
206         com.liferay.portal.kernel.util.OrderByComparator obc)
207         throws com.liferay.portal.NoSuchLayoutException,
208             com.liferay.portal.SystemException;
209 
210     public com.liferay.portal.model.Layout findByG_P_P_Last(long groupId,
211         boolean privateLayout, long parentLayoutId,
212         com.liferay.portal.kernel.util.OrderByComparator obc)
213         throws com.liferay.portal.NoSuchLayoutException,
214             com.liferay.portal.SystemException;
215 
216     public com.liferay.portal.model.Layout[] findByG_P_P_PrevAndNext(
217         long plid, long groupId, boolean privateLayout, long parentLayoutId,
218         com.liferay.portal.kernel.util.OrderByComparator obc)
219         throws com.liferay.portal.NoSuchLayoutException,
220             com.liferay.portal.SystemException;
221 
222     public com.liferay.portal.model.Layout findByG_P_F(long groupId,
223         boolean privateLayout, java.lang.String friendlyURL)
224         throws com.liferay.portal.NoSuchLayoutException,
225             com.liferay.portal.SystemException;
226 
227     public com.liferay.portal.model.Layout fetchByG_P_F(long groupId,
228         boolean privateLayout, java.lang.String friendlyURL)
229         throws com.liferay.portal.SystemException;
230 
231     public com.liferay.portal.model.Layout fetchByG_P_F(long groupId,
232         boolean privateLayout, java.lang.String friendlyURL,
233         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
234 
235     public java.util.List<com.liferay.portal.model.Layout> findByG_P_T(
236         long groupId, boolean privateLayout, java.lang.String type)
237         throws com.liferay.portal.SystemException;
238 
239     public java.util.List<com.liferay.portal.model.Layout> findByG_P_T(
240         long groupId, boolean privateLayout, java.lang.String type, int start,
241         int end) throws com.liferay.portal.SystemException;
242 
243     public java.util.List<com.liferay.portal.model.Layout> findByG_P_T(
244         long groupId, boolean privateLayout, java.lang.String type, int start,
245         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
246         throws com.liferay.portal.SystemException;
247 
248     public com.liferay.portal.model.Layout findByG_P_T_First(long groupId,
249         boolean privateLayout, java.lang.String type,
250         com.liferay.portal.kernel.util.OrderByComparator obc)
251         throws com.liferay.portal.NoSuchLayoutException,
252             com.liferay.portal.SystemException;
253 
254     public com.liferay.portal.model.Layout findByG_P_T_Last(long groupId,
255         boolean privateLayout, java.lang.String type,
256         com.liferay.portal.kernel.util.OrderByComparator obc)
257         throws com.liferay.portal.NoSuchLayoutException,
258             com.liferay.portal.SystemException;
259 
260     public com.liferay.portal.model.Layout[] findByG_P_T_PrevAndNext(
261         long plid, long groupId, boolean privateLayout, java.lang.String type,
262         com.liferay.portal.kernel.util.OrderByComparator obc)
263         throws com.liferay.portal.NoSuchLayoutException,
264             com.liferay.portal.SystemException;
265 
266     public java.util.List<com.liferay.portal.model.Layout> findAll()
267         throws com.liferay.portal.SystemException;
268 
269     public java.util.List<com.liferay.portal.model.Layout> findAll(int start,
270         int end) throws com.liferay.portal.SystemException;
271 
272     public java.util.List<com.liferay.portal.model.Layout> findAll(int start,
273         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
274         throws com.liferay.portal.SystemException;
275 
276     public void removeByGroupId(long groupId)
277         throws com.liferay.portal.SystemException;
278 
279     public void removeByCompanyId(long companyId)
280         throws com.liferay.portal.SystemException;
281 
282     public void removeByDLFolderId(long dlFolderId)
283         throws com.liferay.portal.NoSuchLayoutException,
284             com.liferay.portal.SystemException;
285 
286     public void removeByIconImageId(long iconImageId)
287         throws com.liferay.portal.NoSuchLayoutException,
288             com.liferay.portal.SystemException;
289 
290     public void removeByG_P(long groupId, boolean privateLayout)
291         throws com.liferay.portal.SystemException;
292 
293     public void removeByG_P_L(long groupId, boolean privateLayout, long layoutId)
294         throws com.liferay.portal.NoSuchLayoutException,
295             com.liferay.portal.SystemException;
296 
297     public void removeByG_P_P(long groupId, boolean privateLayout,
298         long parentLayoutId) throws com.liferay.portal.SystemException;
299 
300     public void removeByG_P_F(long groupId, boolean privateLayout,
301         java.lang.String friendlyURL)
302         throws com.liferay.portal.NoSuchLayoutException,
303             com.liferay.portal.SystemException;
304 
305     public void removeByG_P_T(long groupId, boolean privateLayout,
306         java.lang.String type) throws com.liferay.portal.SystemException;
307 
308     public void removeAll() throws com.liferay.portal.SystemException;
309 
310     public int countByGroupId(long groupId)
311         throws com.liferay.portal.SystemException;
312 
313     public int countByCompanyId(long companyId)
314         throws com.liferay.portal.SystemException;
315 
316     public int countByDLFolderId(long dlFolderId)
317         throws com.liferay.portal.SystemException;
318 
319     public int countByIconImageId(long iconImageId)
320         throws com.liferay.portal.SystemException;
321 
322     public int countByG_P(long groupId, boolean privateLayout)
323         throws com.liferay.portal.SystemException;
324 
325     public int countByG_P_L(long groupId, boolean privateLayout, long layoutId)
326         throws com.liferay.portal.SystemException;
327 
328     public int countByG_P_P(long groupId, boolean privateLayout,
329         long parentLayoutId) throws com.liferay.portal.SystemException;
330 
331     public int countByG_P_F(long groupId, boolean privateLayout,
332         java.lang.String friendlyURL) throws com.liferay.portal.SystemException;
333 
334     public int countByG_P_T(long groupId, boolean privateLayout,
335         java.lang.String type) throws com.liferay.portal.SystemException;
336 
337     public int countAll() throws com.liferay.portal.SystemException;
338 }