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