001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.model.Layout;
018    
019    /**
020     * The persistence interface for the layout service.
021     *
022     * <p>
023     * Never modify this interface directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this interface.
024     * </p>
025     *
026     * @author Brian Wing Shun Chan
027     * @see LayoutPersistenceImpl
028     * @see LayoutUtil
029     * @generated
030     */
031    public interface LayoutPersistence extends BasePersistence<Layout> {
032            /**
033            * Caches the layout in the entity cache if it is enabled.
034            *
035            * @param layout the layout to cache
036            */
037            public void cacheResult(com.liferay.portal.model.Layout layout);
038    
039            /**
040            * Caches the layouts in the entity cache if it is enabled.
041            *
042            * @param layouts the layouts to cache
043            */
044            public void cacheResult(
045                    java.util.List<com.liferay.portal.model.Layout> layouts);
046    
047            /**
048            * Creates a new layout with the primary key.
049            *
050            * @param plid the primary key for the new layout
051            * @return the new layout
052            */
053            public com.liferay.portal.model.Layout create(long plid);
054    
055            /**
056            * Removes the layout with the primary key from the database. Also notifies the appropriate model listeners.
057            *
058            * @param plid the primary key of the layout to remove
059            * @return the layout that was removed
060            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
061            * @throws SystemException if a system exception occurred
062            */
063            public com.liferay.portal.model.Layout remove(long plid)
064                    throws com.liferay.portal.NoSuchLayoutException,
065                            com.liferay.portal.kernel.exception.SystemException;
066    
067            public com.liferay.portal.model.Layout updateImpl(
068                    com.liferay.portal.model.Layout layout, boolean merge)
069                    throws com.liferay.portal.kernel.exception.SystemException;
070    
071            /**
072            * Finds the layout with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found.
073            *
074            * @param plid the primary key of the layout to find
075            * @return the layout
076            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
077            * @throws SystemException if a system exception occurred
078            */
079            public com.liferay.portal.model.Layout findByPrimaryKey(long plid)
080                    throws com.liferay.portal.NoSuchLayoutException,
081                            com.liferay.portal.kernel.exception.SystemException;
082    
083            /**
084            * Finds the layout with the primary key or returns <code>null</code> if it could not be found.
085            *
086            * @param plid the primary key of the layout to find
087            * @return the layout, or <code>null</code> if a layout with the primary key could not be found
088            * @throws SystemException if a system exception occurred
089            */
090            public com.liferay.portal.model.Layout fetchByPrimaryKey(long plid)
091                    throws com.liferay.portal.kernel.exception.SystemException;
092    
093            /**
094            * Finds all the layouts where uuid = &#63;.
095            *
096            * @param uuid the uuid to search with
097            * @return the matching layouts
098            * @throws SystemException if a system exception occurred
099            */
100            public java.util.List<com.liferay.portal.model.Layout> findByUuid(
101                    java.lang.String uuid)
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            /**
105            * Finds a range of all the layouts where uuid = &#63;.
106            *
107            * <p>
108            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
109            * </p>
110            *
111            * @param uuid the uuid to search with
112            * @param start the lower bound of the range of layouts to return
113            * @param end the upper bound of the range of layouts to return (not inclusive)
114            * @return the range of matching layouts
115            * @throws SystemException if a system exception occurred
116            */
117            public java.util.List<com.liferay.portal.model.Layout> findByUuid(
118                    java.lang.String uuid, int start, int end)
119                    throws com.liferay.portal.kernel.exception.SystemException;
120    
121            /**
122            * Finds an ordered range of all the layouts where uuid = &#63;.
123            *
124            * <p>
125            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
126            * </p>
127            *
128            * @param uuid the uuid to search with
129            * @param start the lower bound of the range of layouts to return
130            * @param end the upper bound of the range of layouts to return (not inclusive)
131            * @param orderByComparator the comparator to order the results by
132            * @return the ordered range of matching layouts
133            * @throws SystemException if a system exception occurred
134            */
135            public java.util.List<com.liferay.portal.model.Layout> findByUuid(
136                    java.lang.String uuid, int start, int end,
137                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
138                    throws com.liferay.portal.kernel.exception.SystemException;
139    
140            /**
141            * Finds the first layout in the ordered set where uuid = &#63;.
142            *
143            * <p>
144            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
145            * </p>
146            *
147            * @param uuid the uuid to search with
148            * @param orderByComparator the comparator to order the set by
149            * @return the first matching layout
150            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
151            * @throws SystemException if a system exception occurred
152            */
153            public com.liferay.portal.model.Layout findByUuid_First(
154                    java.lang.String uuid,
155                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156                    throws com.liferay.portal.NoSuchLayoutException,
157                            com.liferay.portal.kernel.exception.SystemException;
158    
159            /**
160            * Finds the last layout in the ordered set where uuid = &#63;.
161            *
162            * <p>
163            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
164            * </p>
165            *
166            * @param uuid the uuid to search with
167            * @param orderByComparator the comparator to order the set by
168            * @return the last matching layout
169            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
170            * @throws SystemException if a system exception occurred
171            */
172            public com.liferay.portal.model.Layout findByUuid_Last(
173                    java.lang.String uuid,
174                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
175                    throws com.liferay.portal.NoSuchLayoutException,
176                            com.liferay.portal.kernel.exception.SystemException;
177    
178            /**
179            * Finds the layouts before and after the current layout in the ordered set where uuid = &#63;.
180            *
181            * <p>
182            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
183            * </p>
184            *
185            * @param plid the primary key of the current layout
186            * @param uuid the uuid to search with
187            * @param orderByComparator the comparator to order the set by
188            * @return the previous, current, and next layout
189            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
190            * @throws SystemException if a system exception occurred
191            */
192            public com.liferay.portal.model.Layout[] findByUuid_PrevAndNext(long plid,
193                    java.lang.String uuid,
194                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
195                    throws com.liferay.portal.NoSuchLayoutException,
196                            com.liferay.portal.kernel.exception.SystemException;
197    
198            /**
199            * Finds the layout where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found.
200            *
201            * @param uuid the uuid to search with
202            * @param groupId the group id to search with
203            * @return the matching layout
204            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
205            * @throws SystemException if a system exception occurred
206            */
207            public com.liferay.portal.model.Layout findByUUID_G(java.lang.String uuid,
208                    long groupId)
209                    throws com.liferay.portal.NoSuchLayoutException,
210                            com.liferay.portal.kernel.exception.SystemException;
211    
212            /**
213            * Finds the layout where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
214            *
215            * @param uuid the uuid to search with
216            * @param groupId the group id to search with
217            * @return the matching layout, or <code>null</code> if a matching layout could not be found
218            * @throws SystemException if a system exception occurred
219            */
220            public com.liferay.portal.model.Layout fetchByUUID_G(
221                    java.lang.String uuid, long groupId)
222                    throws com.liferay.portal.kernel.exception.SystemException;
223    
224            /**
225            * Finds the layout where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
226            *
227            * @param uuid the uuid to search with
228            * @param groupId the group id to search with
229            * @return the matching layout, or <code>null</code> if a matching layout could not be found
230            * @throws SystemException if a system exception occurred
231            */
232            public com.liferay.portal.model.Layout fetchByUUID_G(
233                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
234                    throws com.liferay.portal.kernel.exception.SystemException;
235    
236            /**
237            * Finds all the layouts where groupId = &#63;.
238            *
239            * @param groupId the group id to search with
240            * @return the matching layouts
241            * @throws SystemException if a system exception occurred
242            */
243            public java.util.List<com.liferay.portal.model.Layout> findByGroupId(
244                    long groupId)
245                    throws com.liferay.portal.kernel.exception.SystemException;
246    
247            /**
248            * Finds a range of all the layouts where groupId = &#63;.
249            *
250            * <p>
251            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
252            * </p>
253            *
254            * @param groupId the group id to search with
255            * @param start the lower bound of the range of layouts to return
256            * @param end the upper bound of the range of layouts to return (not inclusive)
257            * @return the range of matching layouts
258            * @throws SystemException if a system exception occurred
259            */
260            public java.util.List<com.liferay.portal.model.Layout> findByGroupId(
261                    long groupId, int start, int end)
262                    throws com.liferay.portal.kernel.exception.SystemException;
263    
264            /**
265            * Finds an ordered range of all the layouts where groupId = &#63;.
266            *
267            * <p>
268            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
269            * </p>
270            *
271            * @param groupId the group id to search with
272            * @param start the lower bound of the range of layouts to return
273            * @param end the upper bound of the range of layouts to return (not inclusive)
274            * @param orderByComparator the comparator to order the results by
275            * @return the ordered range of matching layouts
276            * @throws SystemException if a system exception occurred
277            */
278            public java.util.List<com.liferay.portal.model.Layout> findByGroupId(
279                    long groupId, int start, int end,
280                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
281                    throws com.liferay.portal.kernel.exception.SystemException;
282    
283            /**
284            * Finds the first layout in the ordered set where groupId = &#63;.
285            *
286            * <p>
287            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
288            * </p>
289            *
290            * @param groupId the group id to search with
291            * @param orderByComparator the comparator to order the set by
292            * @return the first matching layout
293            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
294            * @throws SystemException if a system exception occurred
295            */
296            public com.liferay.portal.model.Layout findByGroupId_First(long groupId,
297                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
298                    throws com.liferay.portal.NoSuchLayoutException,
299                            com.liferay.portal.kernel.exception.SystemException;
300    
301            /**
302            * Finds the last layout in the ordered set where groupId = &#63;.
303            *
304            * <p>
305            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
306            * </p>
307            *
308            * @param groupId the group id to search with
309            * @param orderByComparator the comparator to order the set by
310            * @return the last matching layout
311            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
312            * @throws SystemException if a system exception occurred
313            */
314            public com.liferay.portal.model.Layout findByGroupId_Last(long groupId,
315                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
316                    throws com.liferay.portal.NoSuchLayoutException,
317                            com.liferay.portal.kernel.exception.SystemException;
318    
319            /**
320            * Finds the layouts before and after the current layout in the ordered set where groupId = &#63;.
321            *
322            * <p>
323            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
324            * </p>
325            *
326            * @param plid the primary key of the current layout
327            * @param groupId the group id to search with
328            * @param orderByComparator the comparator to order the set by
329            * @return the previous, current, and next layout
330            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
331            * @throws SystemException if a system exception occurred
332            */
333            public com.liferay.portal.model.Layout[] findByGroupId_PrevAndNext(
334                    long plid, long groupId,
335                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
336                    throws com.liferay.portal.NoSuchLayoutException,
337                            com.liferay.portal.kernel.exception.SystemException;
338    
339            /**
340            * Finds all the layouts where companyId = &#63;.
341            *
342            * @param companyId the company id to search with
343            * @return the matching layouts
344            * @throws SystemException if a system exception occurred
345            */
346            public java.util.List<com.liferay.portal.model.Layout> findByCompanyId(
347                    long companyId)
348                    throws com.liferay.portal.kernel.exception.SystemException;
349    
350            /**
351            * Finds a range of all the layouts where companyId = &#63;.
352            *
353            * <p>
354            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
355            * </p>
356            *
357            * @param companyId the company id to search with
358            * @param start the lower bound of the range of layouts to return
359            * @param end the upper bound of the range of layouts to return (not inclusive)
360            * @return the range of matching layouts
361            * @throws SystemException if a system exception occurred
362            */
363            public java.util.List<com.liferay.portal.model.Layout> findByCompanyId(
364                    long companyId, int start, int end)
365                    throws com.liferay.portal.kernel.exception.SystemException;
366    
367            /**
368            * Finds an ordered range of all the layouts where companyId = &#63;.
369            *
370            * <p>
371            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
372            * </p>
373            *
374            * @param companyId the company id to search with
375            * @param start the lower bound of the range of layouts to return
376            * @param end the upper bound of the range of layouts to return (not inclusive)
377            * @param orderByComparator the comparator to order the results by
378            * @return the ordered range of matching layouts
379            * @throws SystemException if a system exception occurred
380            */
381            public java.util.List<com.liferay.portal.model.Layout> findByCompanyId(
382                    long companyId, int start, int end,
383                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
384                    throws com.liferay.portal.kernel.exception.SystemException;
385    
386            /**
387            * Finds the first layout in the ordered set where companyId = &#63;.
388            *
389            * <p>
390            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
391            * </p>
392            *
393            * @param companyId the company id to search with
394            * @param orderByComparator the comparator to order the set by
395            * @return the first matching layout
396            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
397            * @throws SystemException if a system exception occurred
398            */
399            public com.liferay.portal.model.Layout findByCompanyId_First(
400                    long companyId,
401                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
402                    throws com.liferay.portal.NoSuchLayoutException,
403                            com.liferay.portal.kernel.exception.SystemException;
404    
405            /**
406            * Finds the last layout in the ordered set where companyId = &#63;.
407            *
408            * <p>
409            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
410            * </p>
411            *
412            * @param companyId the company id to search with
413            * @param orderByComparator the comparator to order the set by
414            * @return the last matching layout
415            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
416            * @throws SystemException if a system exception occurred
417            */
418            public com.liferay.portal.model.Layout findByCompanyId_Last(
419                    long companyId,
420                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
421                    throws com.liferay.portal.NoSuchLayoutException,
422                            com.liferay.portal.kernel.exception.SystemException;
423    
424            /**
425            * Finds the layouts before and after the current layout in the ordered set where companyId = &#63;.
426            *
427            * <p>
428            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
429            * </p>
430            *
431            * @param plid the primary key of the current layout
432            * @param companyId the company id to search with
433            * @param orderByComparator the comparator to order the set by
434            * @return the previous, current, and next layout
435            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
436            * @throws SystemException if a system exception occurred
437            */
438            public com.liferay.portal.model.Layout[] findByCompanyId_PrevAndNext(
439                    long plid, long companyId,
440                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
441                    throws com.liferay.portal.NoSuchLayoutException,
442                            com.liferay.portal.kernel.exception.SystemException;
443    
444            /**
445            * Finds the layout where dlFolderId = &#63; or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found.
446            *
447            * @param dlFolderId the dl folder id to search with
448            * @return the matching layout
449            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
450            * @throws SystemException if a system exception occurred
451            */
452            public com.liferay.portal.model.Layout findByDLFolderId(long dlFolderId)
453                    throws com.liferay.portal.NoSuchLayoutException,
454                            com.liferay.portal.kernel.exception.SystemException;
455    
456            /**
457            * Finds the layout where dlFolderId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
458            *
459            * @param dlFolderId the dl folder id to search with
460            * @return the matching layout, or <code>null</code> if a matching layout could not be found
461            * @throws SystemException if a system exception occurred
462            */
463            public com.liferay.portal.model.Layout fetchByDLFolderId(long dlFolderId)
464                    throws com.liferay.portal.kernel.exception.SystemException;
465    
466            /**
467            * Finds the layout where dlFolderId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
468            *
469            * @param dlFolderId the dl folder id to search with
470            * @return the matching layout, or <code>null</code> if a matching layout could not be found
471            * @throws SystemException if a system exception occurred
472            */
473            public com.liferay.portal.model.Layout fetchByDLFolderId(long dlFolderId,
474                    boolean retrieveFromCache)
475                    throws com.liferay.portal.kernel.exception.SystemException;
476    
477            /**
478            * Finds the layout where iconImageId = &#63; or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found.
479            *
480            * @param iconImageId the icon image id to search with
481            * @return the matching layout
482            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
483            * @throws SystemException if a system exception occurred
484            */
485            public com.liferay.portal.model.Layout findByIconImageId(long iconImageId)
486                    throws com.liferay.portal.NoSuchLayoutException,
487                            com.liferay.portal.kernel.exception.SystemException;
488    
489            /**
490            * Finds the layout where iconImageId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
491            *
492            * @param iconImageId the icon image id to search with
493            * @return the matching layout, or <code>null</code> if a matching layout could not be found
494            * @throws SystemException if a system exception occurred
495            */
496            public com.liferay.portal.model.Layout fetchByIconImageId(long iconImageId)
497                    throws com.liferay.portal.kernel.exception.SystemException;
498    
499            /**
500            * Finds the layout where iconImageId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
501            *
502            * @param iconImageId the icon image id to search with
503            * @return the matching layout, or <code>null</code> if a matching layout could not be found
504            * @throws SystemException if a system exception occurred
505            */
506            public com.liferay.portal.model.Layout fetchByIconImageId(
507                    long iconImageId, boolean retrieveFromCache)
508                    throws com.liferay.portal.kernel.exception.SystemException;
509    
510            /**
511            * Finds all the layouts where groupId = &#63; and privateLayout = &#63;.
512            *
513            * @param groupId the group id to search with
514            * @param privateLayout the private layout to search with
515            * @return the matching layouts
516            * @throws SystemException if a system exception occurred
517            */
518            public java.util.List<com.liferay.portal.model.Layout> findByG_P(
519                    long groupId, boolean privateLayout)
520                    throws com.liferay.portal.kernel.exception.SystemException;
521    
522            /**
523            * Finds a range of all the layouts where groupId = &#63; and privateLayout = &#63;.
524            *
525            * <p>
526            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
527            * </p>
528            *
529            * @param groupId the group id to search with
530            * @param privateLayout the private layout to search with
531            * @param start the lower bound of the range of layouts to return
532            * @param end the upper bound of the range of layouts to return (not inclusive)
533            * @return the range of matching layouts
534            * @throws SystemException if a system exception occurred
535            */
536            public java.util.List<com.liferay.portal.model.Layout> findByG_P(
537                    long groupId, boolean privateLayout, int start, int end)
538                    throws com.liferay.portal.kernel.exception.SystemException;
539    
540            /**
541            * Finds an ordered range of all the layouts where groupId = &#63; and privateLayout = &#63;.
542            *
543            * <p>
544            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
545            * </p>
546            *
547            * @param groupId the group id to search with
548            * @param privateLayout the private layout to search with
549            * @param start the lower bound of the range of layouts to return
550            * @param end the upper bound of the range of layouts to return (not inclusive)
551            * @param orderByComparator the comparator to order the results by
552            * @return the ordered range of matching layouts
553            * @throws SystemException if a system exception occurred
554            */
555            public java.util.List<com.liferay.portal.model.Layout> findByG_P(
556                    long groupId, boolean privateLayout, int start, int end,
557                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
558                    throws com.liferay.portal.kernel.exception.SystemException;
559    
560            /**
561            * Finds the first layout in the ordered set where groupId = &#63; and privateLayout = &#63;.
562            *
563            * <p>
564            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
565            * </p>
566            *
567            * @param groupId the group id to search with
568            * @param privateLayout the private layout to search with
569            * @param orderByComparator the comparator to order the set by
570            * @return the first matching layout
571            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
572            * @throws SystemException if a system exception occurred
573            */
574            public com.liferay.portal.model.Layout findByG_P_First(long groupId,
575                    boolean privateLayout,
576                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
577                    throws com.liferay.portal.NoSuchLayoutException,
578                            com.liferay.portal.kernel.exception.SystemException;
579    
580            /**
581            * Finds the last layout in the ordered set where groupId = &#63; and privateLayout = &#63;.
582            *
583            * <p>
584            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
585            * </p>
586            *
587            * @param groupId the group id to search with
588            * @param privateLayout the private layout to search with
589            * @param orderByComparator the comparator to order the set by
590            * @return the last matching layout
591            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
592            * @throws SystemException if a system exception occurred
593            */
594            public com.liferay.portal.model.Layout findByG_P_Last(long groupId,
595                    boolean privateLayout,
596                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
597                    throws com.liferay.portal.NoSuchLayoutException,
598                            com.liferay.portal.kernel.exception.SystemException;
599    
600            /**
601            * Finds the layouts before and after the current layout in the ordered set where groupId = &#63; and privateLayout = &#63;.
602            *
603            * <p>
604            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
605            * </p>
606            *
607            * @param plid the primary key of the current layout
608            * @param groupId the group id to search with
609            * @param privateLayout the private layout to search with
610            * @param orderByComparator the comparator to order the set by
611            * @return the previous, current, and next layout
612            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
613            * @throws SystemException if a system exception occurred
614            */
615            public com.liferay.portal.model.Layout[] findByG_P_PrevAndNext(long plid,
616                    long groupId, boolean privateLayout,
617                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
618                    throws com.liferay.portal.NoSuchLayoutException,
619                            com.liferay.portal.kernel.exception.SystemException;
620    
621            /**
622            * Finds the layout where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found.
623            *
624            * @param groupId the group id to search with
625            * @param privateLayout the private layout to search with
626            * @param layoutId the layout id to search with
627            * @return the matching layout
628            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
629            * @throws SystemException if a system exception occurred
630            */
631            public com.liferay.portal.model.Layout findByG_P_L(long groupId,
632                    boolean privateLayout, long layoutId)
633                    throws com.liferay.portal.NoSuchLayoutException,
634                            com.liferay.portal.kernel.exception.SystemException;
635    
636            /**
637            * Finds the layout where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
638            *
639            * @param groupId the group id to search with
640            * @param privateLayout the private layout to search with
641            * @param layoutId the layout id to search with
642            * @return the matching layout, or <code>null</code> if a matching layout could not be found
643            * @throws SystemException if a system exception occurred
644            */
645            public com.liferay.portal.model.Layout fetchByG_P_L(long groupId,
646                    boolean privateLayout, long layoutId)
647                    throws com.liferay.portal.kernel.exception.SystemException;
648    
649            /**
650            * Finds the layout where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
651            *
652            * @param groupId the group id to search with
653            * @param privateLayout the private layout to search with
654            * @param layoutId the layout id to search with
655            * @return the matching layout, or <code>null</code> if a matching layout could not be found
656            * @throws SystemException if a system exception occurred
657            */
658            public com.liferay.portal.model.Layout fetchByG_P_L(long groupId,
659                    boolean privateLayout, long layoutId, boolean retrieveFromCache)
660                    throws com.liferay.portal.kernel.exception.SystemException;
661    
662            /**
663            * Finds all the layouts where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
664            *
665            * @param groupId the group id to search with
666            * @param privateLayout the private layout to search with
667            * @param parentLayoutId the parent layout id to search with
668            * @return the matching layouts
669            * @throws SystemException if a system exception occurred
670            */
671            public java.util.List<com.liferay.portal.model.Layout> findByG_P_P(
672                    long groupId, boolean privateLayout, long parentLayoutId)
673                    throws com.liferay.portal.kernel.exception.SystemException;
674    
675            /**
676            * Finds a range of all the layouts where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
677            *
678            * <p>
679            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
680            * </p>
681            *
682            * @param groupId the group id to search with
683            * @param privateLayout the private layout to search with
684            * @param parentLayoutId the parent layout id to search with
685            * @param start the lower bound of the range of layouts to return
686            * @param end the upper bound of the range of layouts to return (not inclusive)
687            * @return the range of matching layouts
688            * @throws SystemException if a system exception occurred
689            */
690            public java.util.List<com.liferay.portal.model.Layout> findByG_P_P(
691                    long groupId, boolean privateLayout, long parentLayoutId, int start,
692                    int end) throws com.liferay.portal.kernel.exception.SystemException;
693    
694            /**
695            * Finds an ordered range of all the layouts where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
696            *
697            * <p>
698            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
699            * </p>
700            *
701            * @param groupId the group id to search with
702            * @param privateLayout the private layout to search with
703            * @param parentLayoutId the parent layout id to search with
704            * @param start the lower bound of the range of layouts to return
705            * @param end the upper bound of the range of layouts to return (not inclusive)
706            * @param orderByComparator the comparator to order the results by
707            * @return the ordered range of matching layouts
708            * @throws SystemException if a system exception occurred
709            */
710            public java.util.List<com.liferay.portal.model.Layout> findByG_P_P(
711                    long groupId, boolean privateLayout, long parentLayoutId, int start,
712                    int end,
713                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
714                    throws com.liferay.portal.kernel.exception.SystemException;
715    
716            /**
717            * Finds the first layout in the ordered set where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
718            *
719            * <p>
720            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
721            * </p>
722            *
723            * @param groupId the group id to search with
724            * @param privateLayout the private layout to search with
725            * @param parentLayoutId the parent layout id to search with
726            * @param orderByComparator the comparator to order the set by
727            * @return the first matching layout
728            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
729            * @throws SystemException if a system exception occurred
730            */
731            public com.liferay.portal.model.Layout findByG_P_P_First(long groupId,
732                    boolean privateLayout, long parentLayoutId,
733                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
734                    throws com.liferay.portal.NoSuchLayoutException,
735                            com.liferay.portal.kernel.exception.SystemException;
736    
737            /**
738            * Finds the last layout in the ordered set where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
739            *
740            * <p>
741            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
742            * </p>
743            *
744            * @param groupId the group id to search with
745            * @param privateLayout the private layout to search with
746            * @param parentLayoutId the parent layout id to search with
747            * @param orderByComparator the comparator to order the set by
748            * @return the last matching layout
749            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
750            * @throws SystemException if a system exception occurred
751            */
752            public com.liferay.portal.model.Layout findByG_P_P_Last(long groupId,
753                    boolean privateLayout, long parentLayoutId,
754                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
755                    throws com.liferay.portal.NoSuchLayoutException,
756                            com.liferay.portal.kernel.exception.SystemException;
757    
758            /**
759            * Finds the layouts before and after the current layout in the ordered set where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
760            *
761            * <p>
762            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
763            * </p>
764            *
765            * @param plid the primary key of the current layout
766            * @param groupId the group id to search with
767            * @param privateLayout the private layout to search with
768            * @param parentLayoutId the parent layout id to search with
769            * @param orderByComparator the comparator to order the set by
770            * @return the previous, current, and next layout
771            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
772            * @throws SystemException if a system exception occurred
773            */
774            public com.liferay.portal.model.Layout[] findByG_P_P_PrevAndNext(
775                    long plid, long groupId, boolean privateLayout, long parentLayoutId,
776                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
777                    throws com.liferay.portal.NoSuchLayoutException,
778                            com.liferay.portal.kernel.exception.SystemException;
779    
780            /**
781            * Finds the layout where groupId = &#63; and privateLayout = &#63; and friendlyURL = &#63; or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found.
782            *
783            * @param groupId the group id to search with
784            * @param privateLayout the private layout to search with
785            * @param friendlyURL the friendly u r l to search with
786            * @return the matching layout
787            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
788            * @throws SystemException if a system exception occurred
789            */
790            public com.liferay.portal.model.Layout findByG_P_F(long groupId,
791                    boolean privateLayout, java.lang.String friendlyURL)
792                    throws com.liferay.portal.NoSuchLayoutException,
793                            com.liferay.portal.kernel.exception.SystemException;
794    
795            /**
796            * Finds the layout where groupId = &#63; and privateLayout = &#63; and friendlyURL = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
797            *
798            * @param groupId the group id to search with
799            * @param privateLayout the private layout to search with
800            * @param friendlyURL the friendly u r l to search with
801            * @return the matching layout, or <code>null</code> if a matching layout could not be found
802            * @throws SystemException if a system exception occurred
803            */
804            public com.liferay.portal.model.Layout fetchByG_P_F(long groupId,
805                    boolean privateLayout, java.lang.String friendlyURL)
806                    throws com.liferay.portal.kernel.exception.SystemException;
807    
808            /**
809            * Finds the layout where groupId = &#63; and privateLayout = &#63; and friendlyURL = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
810            *
811            * @param groupId the group id to search with
812            * @param privateLayout the private layout to search with
813            * @param friendlyURL the friendly u r l to search with
814            * @return the matching layout, or <code>null</code> if a matching layout could not be found
815            * @throws SystemException if a system exception occurred
816            */
817            public com.liferay.portal.model.Layout fetchByG_P_F(long groupId,
818                    boolean privateLayout, java.lang.String friendlyURL,
819                    boolean retrieveFromCache)
820                    throws com.liferay.portal.kernel.exception.SystemException;
821    
822            /**
823            * Finds all the layouts where groupId = &#63; and privateLayout = &#63; and type = &#63;.
824            *
825            * @param groupId the group id to search with
826            * @param privateLayout the private layout to search with
827            * @param type the type to search with
828            * @return the matching layouts
829            * @throws SystemException if a system exception occurred
830            */
831            public java.util.List<com.liferay.portal.model.Layout> findByG_P_T(
832                    long groupId, boolean privateLayout, java.lang.String type)
833                    throws com.liferay.portal.kernel.exception.SystemException;
834    
835            /**
836            * Finds a range of all the layouts where groupId = &#63; and privateLayout = &#63; and type = &#63;.
837            *
838            * <p>
839            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
840            * </p>
841            *
842            * @param groupId the group id to search with
843            * @param privateLayout the private layout to search with
844            * @param type the type to search with
845            * @param start the lower bound of the range of layouts to return
846            * @param end the upper bound of the range of layouts to return (not inclusive)
847            * @return the range of matching layouts
848            * @throws SystemException if a system exception occurred
849            */
850            public java.util.List<com.liferay.portal.model.Layout> findByG_P_T(
851                    long groupId, boolean privateLayout, java.lang.String type, int start,
852                    int end) throws com.liferay.portal.kernel.exception.SystemException;
853    
854            /**
855            * Finds an ordered range of all the layouts where groupId = &#63; and privateLayout = &#63; and type = &#63;.
856            *
857            * <p>
858            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
859            * </p>
860            *
861            * @param groupId the group id to search with
862            * @param privateLayout the private layout to search with
863            * @param type the type to search with
864            * @param start the lower bound of the range of layouts to return
865            * @param end the upper bound of the range of layouts to return (not inclusive)
866            * @param orderByComparator the comparator to order the results by
867            * @return the ordered range of matching layouts
868            * @throws SystemException if a system exception occurred
869            */
870            public java.util.List<com.liferay.portal.model.Layout> findByG_P_T(
871                    long groupId, boolean privateLayout, java.lang.String type, int start,
872                    int end,
873                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
874                    throws com.liferay.portal.kernel.exception.SystemException;
875    
876            /**
877            * Finds the first layout in the ordered set where groupId = &#63; and privateLayout = &#63; and type = &#63;.
878            *
879            * <p>
880            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
881            * </p>
882            *
883            * @param groupId the group id to search with
884            * @param privateLayout the private layout to search with
885            * @param type the type to search with
886            * @param orderByComparator the comparator to order the set by
887            * @return the first matching layout
888            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
889            * @throws SystemException if a system exception occurred
890            */
891            public com.liferay.portal.model.Layout findByG_P_T_First(long groupId,
892                    boolean privateLayout, java.lang.String type,
893                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
894                    throws com.liferay.portal.NoSuchLayoutException,
895                            com.liferay.portal.kernel.exception.SystemException;
896    
897            /**
898            * Finds the last layout in the ordered set where groupId = &#63; and privateLayout = &#63; and type = &#63;.
899            *
900            * <p>
901            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
902            * </p>
903            *
904            * @param groupId the group id to search with
905            * @param privateLayout the private layout to search with
906            * @param type the type to search with
907            * @param orderByComparator the comparator to order the set by
908            * @return the last matching layout
909            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
910            * @throws SystemException if a system exception occurred
911            */
912            public com.liferay.portal.model.Layout findByG_P_T_Last(long groupId,
913                    boolean privateLayout, java.lang.String type,
914                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
915                    throws com.liferay.portal.NoSuchLayoutException,
916                            com.liferay.portal.kernel.exception.SystemException;
917    
918            /**
919            * Finds the layouts before and after the current layout in the ordered set where groupId = &#63; and privateLayout = &#63; and type = &#63;.
920            *
921            * <p>
922            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
923            * </p>
924            *
925            * @param plid the primary key of the current layout
926            * @param groupId the group id to search with
927            * @param privateLayout the private layout to search with
928            * @param type the type to search with
929            * @param orderByComparator the comparator to order the set by
930            * @return the previous, current, and next layout
931            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
932            * @throws SystemException if a system exception occurred
933            */
934            public com.liferay.portal.model.Layout[] findByG_P_T_PrevAndNext(
935                    long plid, long groupId, boolean privateLayout, java.lang.String type,
936                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
937                    throws com.liferay.portal.NoSuchLayoutException,
938                            com.liferay.portal.kernel.exception.SystemException;
939    
940            /**
941            * Finds all the layouts.
942            *
943            * @return the layouts
944            * @throws SystemException if a system exception occurred
945            */
946            public java.util.List<com.liferay.portal.model.Layout> findAll()
947                    throws com.liferay.portal.kernel.exception.SystemException;
948    
949            /**
950            * Finds a range of all the layouts.
951            *
952            * <p>
953            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
954            * </p>
955            *
956            * @param start the lower bound of the range of layouts to return
957            * @param end the upper bound of the range of layouts to return (not inclusive)
958            * @return the range of layouts
959            * @throws SystemException if a system exception occurred
960            */
961            public java.util.List<com.liferay.portal.model.Layout> findAll(int start,
962                    int end) throws com.liferay.portal.kernel.exception.SystemException;
963    
964            /**
965            * Finds an ordered range of all the layouts.
966            *
967            * <p>
968            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
969            * </p>
970            *
971            * @param start the lower bound of the range of layouts to return
972            * @param end the upper bound of the range of layouts to return (not inclusive)
973            * @param orderByComparator the comparator to order the results by
974            * @return the ordered range of layouts
975            * @throws SystemException if a system exception occurred
976            */
977            public java.util.List<com.liferay.portal.model.Layout> findAll(int start,
978                    int end,
979                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
980                    throws com.liferay.portal.kernel.exception.SystemException;
981    
982            /**
983            * Removes all the layouts where uuid = &#63; from the database.
984            *
985            * @param uuid the uuid to search with
986            * @throws SystemException if a system exception occurred
987            */
988            public void removeByUuid(java.lang.String uuid)
989                    throws com.liferay.portal.kernel.exception.SystemException;
990    
991            /**
992            * Removes the layout where uuid = &#63; and groupId = &#63; from the database.
993            *
994            * @param uuid the uuid to search with
995            * @param groupId the group id to search with
996            * @throws SystemException if a system exception occurred
997            */
998            public void removeByUUID_G(java.lang.String uuid, long groupId)
999                    throws com.liferay.portal.NoSuchLayoutException,
1000                            com.liferay.portal.kernel.exception.SystemException;
1001    
1002            /**
1003            * Removes all the layouts where groupId = &#63; from the database.
1004            *
1005            * @param groupId the group id to search with
1006            * @throws SystemException if a system exception occurred
1007            */
1008            public void removeByGroupId(long groupId)
1009                    throws com.liferay.portal.kernel.exception.SystemException;
1010    
1011            /**
1012            * Removes all the layouts where companyId = &#63; from the database.
1013            *
1014            * @param companyId the company id to search with
1015            * @throws SystemException if a system exception occurred
1016            */
1017            public void removeByCompanyId(long companyId)
1018                    throws com.liferay.portal.kernel.exception.SystemException;
1019    
1020            /**
1021            * Removes the layout where dlFolderId = &#63; from the database.
1022            *
1023            * @param dlFolderId the dl folder id to search with
1024            * @throws SystemException if a system exception occurred
1025            */
1026            public void removeByDLFolderId(long dlFolderId)
1027                    throws com.liferay.portal.NoSuchLayoutException,
1028                            com.liferay.portal.kernel.exception.SystemException;
1029    
1030            /**
1031            * Removes the layout where iconImageId = &#63; from the database.
1032            *
1033            * @param iconImageId the icon image id to search with
1034            * @throws SystemException if a system exception occurred
1035            */
1036            public void removeByIconImageId(long iconImageId)
1037                    throws com.liferay.portal.NoSuchLayoutException,
1038                            com.liferay.portal.kernel.exception.SystemException;
1039    
1040            /**
1041            * Removes all the layouts where groupId = &#63; and privateLayout = &#63; from the database.
1042            *
1043            * @param groupId the group id to search with
1044            * @param privateLayout the private layout to search with
1045            * @throws SystemException if a system exception occurred
1046            */
1047            public void removeByG_P(long groupId, boolean privateLayout)
1048                    throws com.liferay.portal.kernel.exception.SystemException;
1049    
1050            /**
1051            * Removes the layout where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; from the database.
1052            *
1053            * @param groupId the group id to search with
1054            * @param privateLayout the private layout to search with
1055            * @param layoutId the layout id to search with
1056            * @throws SystemException if a system exception occurred
1057            */
1058            public void removeByG_P_L(long groupId, boolean privateLayout, long layoutId)
1059                    throws com.liferay.portal.NoSuchLayoutException,
1060                            com.liferay.portal.kernel.exception.SystemException;
1061    
1062            /**
1063            * Removes all the layouts where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63; from the database.
1064            *
1065            * @param groupId the group id to search with
1066            * @param privateLayout the private layout to search with
1067            * @param parentLayoutId the parent layout id to search with
1068            * @throws SystemException if a system exception occurred
1069            */
1070            public void removeByG_P_P(long groupId, boolean privateLayout,
1071                    long parentLayoutId)
1072                    throws com.liferay.portal.kernel.exception.SystemException;
1073    
1074            /**
1075            * Removes the layout where groupId = &#63; and privateLayout = &#63; and friendlyURL = &#63; from the database.
1076            *
1077            * @param groupId the group id to search with
1078            * @param privateLayout the private layout to search with
1079            * @param friendlyURL the friendly u r l to search with
1080            * @throws SystemException if a system exception occurred
1081            */
1082            public void removeByG_P_F(long groupId, boolean privateLayout,
1083                    java.lang.String friendlyURL)
1084                    throws com.liferay.portal.NoSuchLayoutException,
1085                            com.liferay.portal.kernel.exception.SystemException;
1086    
1087            /**
1088            * Removes all the layouts where groupId = &#63; and privateLayout = &#63; and type = &#63; from the database.
1089            *
1090            * @param groupId the group id to search with
1091            * @param privateLayout the private layout to search with
1092            * @param type the type to search with
1093            * @throws SystemException if a system exception occurred
1094            */
1095            public void removeByG_P_T(long groupId, boolean privateLayout,
1096                    java.lang.String type)
1097                    throws com.liferay.portal.kernel.exception.SystemException;
1098    
1099            /**
1100            * Removes all the layouts from the database.
1101            *
1102            * @throws SystemException if a system exception occurred
1103            */
1104            public void removeAll()
1105                    throws com.liferay.portal.kernel.exception.SystemException;
1106    
1107            /**
1108            * Counts all the layouts where uuid = &#63;.
1109            *
1110            * @param uuid the uuid to search with
1111            * @return the number of matching layouts
1112            * @throws SystemException if a system exception occurred
1113            */
1114            public int countByUuid(java.lang.String uuid)
1115                    throws com.liferay.portal.kernel.exception.SystemException;
1116    
1117            /**
1118            * Counts all the layouts where uuid = &#63; and groupId = &#63;.
1119            *
1120            * @param uuid the uuid to search with
1121            * @param groupId the group id to search with
1122            * @return the number of matching layouts
1123            * @throws SystemException if a system exception occurred
1124            */
1125            public int countByUUID_G(java.lang.String uuid, long groupId)
1126                    throws com.liferay.portal.kernel.exception.SystemException;
1127    
1128            /**
1129            * Counts all the layouts where groupId = &#63;.
1130            *
1131            * @param groupId the group id to search with
1132            * @return the number of matching layouts
1133            * @throws SystemException if a system exception occurred
1134            */
1135            public int countByGroupId(long groupId)
1136                    throws com.liferay.portal.kernel.exception.SystemException;
1137    
1138            /**
1139            * Counts all the layouts where companyId = &#63;.
1140            *
1141            * @param companyId the company id to search with
1142            * @return the number of matching layouts
1143            * @throws SystemException if a system exception occurred
1144            */
1145            public int countByCompanyId(long companyId)
1146                    throws com.liferay.portal.kernel.exception.SystemException;
1147    
1148            /**
1149            * Counts all the layouts where dlFolderId = &#63;.
1150            *
1151            * @param dlFolderId the dl folder id to search with
1152            * @return the number of matching layouts
1153            * @throws SystemException if a system exception occurred
1154            */
1155            public int countByDLFolderId(long dlFolderId)
1156                    throws com.liferay.portal.kernel.exception.SystemException;
1157    
1158            /**
1159            * Counts all the layouts where iconImageId = &#63;.
1160            *
1161            * @param iconImageId the icon image id to search with
1162            * @return the number of matching layouts
1163            * @throws SystemException if a system exception occurred
1164            */
1165            public int countByIconImageId(long iconImageId)
1166                    throws com.liferay.portal.kernel.exception.SystemException;
1167    
1168            /**
1169            * Counts all the layouts where groupId = &#63; and privateLayout = &#63;.
1170            *
1171            * @param groupId the group id to search with
1172            * @param privateLayout the private layout to search with
1173            * @return the number of matching layouts
1174            * @throws SystemException if a system exception occurred
1175            */
1176            public int countByG_P(long groupId, boolean privateLayout)
1177                    throws com.liferay.portal.kernel.exception.SystemException;
1178    
1179            /**
1180            * Counts all the layouts where groupId = &#63; and privateLayout = &#63; and layoutId = &#63;.
1181            *
1182            * @param groupId the group id to search with
1183            * @param privateLayout the private layout to search with
1184            * @param layoutId the layout id to search with
1185            * @return the number of matching layouts
1186            * @throws SystemException if a system exception occurred
1187            */
1188            public int countByG_P_L(long groupId, boolean privateLayout, long layoutId)
1189                    throws com.liferay.portal.kernel.exception.SystemException;
1190    
1191            /**
1192            * Counts all the layouts where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
1193            *
1194            * @param groupId the group id to search with
1195            * @param privateLayout the private layout to search with
1196            * @param parentLayoutId the parent layout id to search with
1197            * @return the number of matching layouts
1198            * @throws SystemException if a system exception occurred
1199            */
1200            public int countByG_P_P(long groupId, boolean privateLayout,
1201                    long parentLayoutId)
1202                    throws com.liferay.portal.kernel.exception.SystemException;
1203    
1204            /**
1205            * Counts all the layouts where groupId = &#63; and privateLayout = &#63; and friendlyURL = &#63;.
1206            *
1207            * @param groupId the group id to search with
1208            * @param privateLayout the private layout to search with
1209            * @param friendlyURL the friendly u r l to search with
1210            * @return the number of matching layouts
1211            * @throws SystemException if a system exception occurred
1212            */
1213            public int countByG_P_F(long groupId, boolean privateLayout,
1214                    java.lang.String friendlyURL)
1215                    throws com.liferay.portal.kernel.exception.SystemException;
1216    
1217            /**
1218            * Counts all the layouts where groupId = &#63; and privateLayout = &#63; and type = &#63;.
1219            *
1220            * @param groupId the group id to search with
1221            * @param privateLayout the private layout to search with
1222            * @param type the type to search with
1223            * @return the number of matching layouts
1224            * @throws SystemException if a system exception occurred
1225            */
1226            public int countByG_P_T(long groupId, boolean privateLayout,
1227                    java.lang.String type)
1228                    throws com.liferay.portal.kernel.exception.SystemException;
1229    
1230            /**
1231            * Counts all the layouts.
1232            *
1233            * @return the number of layouts
1234            * @throws SystemException if a system exception occurred
1235            */
1236            public int countAll()
1237                    throws com.liferay.portal.kernel.exception.SystemException;
1238    }