001    /**
002     * Copyright (c) 2000-2012 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     * Caching information and settings can be found in <code>portal.properties</code>
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             * NOTE FOR DEVELOPERS:
034             *
035             * 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.
036             */
037    
038            /**
039            * Caches the layout in the entity cache if it is enabled.
040            *
041            * @param layout the layout
042            */
043            public void cacheResult(com.liferay.portal.model.Layout layout);
044    
045            /**
046            * Caches the layouts in the entity cache if it is enabled.
047            *
048            * @param layouts the layouts
049            */
050            public void cacheResult(
051                    java.util.List<com.liferay.portal.model.Layout> layouts);
052    
053            /**
054            * Creates a new layout with the primary key. Does not add the layout to the database.
055            *
056            * @param plid the primary key for the new layout
057            * @return the new layout
058            */
059            public com.liferay.portal.model.Layout create(long plid);
060    
061            /**
062            * Removes the layout with the primary key from the database. Also notifies the appropriate model listeners.
063            *
064            * @param plid the primary key of the layout
065            * @return the layout that was removed
066            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
067            * @throws SystemException if a system exception occurred
068            */
069            public com.liferay.portal.model.Layout remove(long plid)
070                    throws com.liferay.portal.NoSuchLayoutException,
071                            com.liferay.portal.kernel.exception.SystemException;
072    
073            public com.liferay.portal.model.Layout updateImpl(
074                    com.liferay.portal.model.Layout layout, boolean merge)
075                    throws com.liferay.portal.kernel.exception.SystemException;
076    
077            /**
078            * Returns the layout with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found.
079            *
080            * @param plid the primary key of the layout
081            * @return the layout
082            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
083            * @throws SystemException if a system exception occurred
084            */
085            public com.liferay.portal.model.Layout findByPrimaryKey(long plid)
086                    throws com.liferay.portal.NoSuchLayoutException,
087                            com.liferay.portal.kernel.exception.SystemException;
088    
089            /**
090            * Returns the layout with the primary key or returns <code>null</code> if it could not be found.
091            *
092            * @param plid the primary key of the layout
093            * @return the layout, or <code>null</code> if a layout with the primary key could not be found
094            * @throws SystemException if a system exception occurred
095            */
096            public com.liferay.portal.model.Layout fetchByPrimaryKey(long plid)
097                    throws com.liferay.portal.kernel.exception.SystemException;
098    
099            /**
100            * Returns all the layouts where uuid = &#63;.
101            *
102            * @param uuid the uuid
103            * @return the matching layouts
104            * @throws SystemException if a system exception occurred
105            */
106            public java.util.List<com.liferay.portal.model.Layout> findByUuid(
107                    java.lang.String uuid)
108                    throws com.liferay.portal.kernel.exception.SystemException;
109    
110            /**
111            * Returns a range of all the layouts where uuid = &#63;.
112            *
113            * <p>
114            * 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.
115            * </p>
116            *
117            * @param uuid the uuid
118            * @param start the lower bound of the range of layouts
119            * @param end the upper bound of the range of layouts (not inclusive)
120            * @return the range of matching layouts
121            * @throws SystemException if a system exception occurred
122            */
123            public java.util.List<com.liferay.portal.model.Layout> findByUuid(
124                    java.lang.String uuid, int start, int end)
125                    throws com.liferay.portal.kernel.exception.SystemException;
126    
127            /**
128            * Returns an ordered range of all the layouts where uuid = &#63;.
129            *
130            * <p>
131            * 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.
132            * </p>
133            *
134            * @param uuid the uuid
135            * @param start the lower bound of the range of layouts
136            * @param end the upper bound of the range of layouts (not inclusive)
137            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
138            * @return the ordered range of matching layouts
139            * @throws SystemException if a system exception occurred
140            */
141            public java.util.List<com.liferay.portal.model.Layout> findByUuid(
142                    java.lang.String uuid, int start, int end,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException;
145    
146            /**
147            * Returns the first layout in the ordered set where uuid = &#63;.
148            *
149            * @param uuid the uuid
150            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
151            * @return the first matching layout
152            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
153            * @throws SystemException if a system exception occurred
154            */
155            public com.liferay.portal.model.Layout findByUuid_First(
156                    java.lang.String uuid,
157                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
158                    throws com.liferay.portal.NoSuchLayoutException,
159                            com.liferay.portal.kernel.exception.SystemException;
160    
161            /**
162            * Returns the first layout in the ordered set where uuid = &#63;.
163            *
164            * @param uuid the uuid
165            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
166            * @return the first matching layout, or <code>null</code> if a matching layout could not be found
167            * @throws SystemException if a system exception occurred
168            */
169            public com.liferay.portal.model.Layout fetchByUuid_First(
170                    java.lang.String uuid,
171                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172                    throws com.liferay.portal.kernel.exception.SystemException;
173    
174            /**
175            * Returns the last layout in the ordered set where uuid = &#63;.
176            *
177            * @param uuid the uuid
178            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
179            * @return the last matching layout
180            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
181            * @throws SystemException if a system exception occurred
182            */
183            public com.liferay.portal.model.Layout findByUuid_Last(
184                    java.lang.String uuid,
185                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
186                    throws com.liferay.portal.NoSuchLayoutException,
187                            com.liferay.portal.kernel.exception.SystemException;
188    
189            /**
190            * Returns the last layout in the ordered set where uuid = &#63;.
191            *
192            * @param uuid the uuid
193            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
194            * @return the last matching layout, or <code>null</code> if a matching layout could not be found
195            * @throws SystemException if a system exception occurred
196            */
197            public com.liferay.portal.model.Layout fetchByUuid_Last(
198                    java.lang.String uuid,
199                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
200                    throws com.liferay.portal.kernel.exception.SystemException;
201    
202            /**
203            * Returns the layouts before and after the current layout in the ordered set where uuid = &#63;.
204            *
205            * @param plid the primary key of the current layout
206            * @param uuid the uuid
207            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
208            * @return the previous, current, and next layout
209            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
210            * @throws SystemException if a system exception occurred
211            */
212            public com.liferay.portal.model.Layout[] findByUuid_PrevAndNext(long plid,
213                    java.lang.String uuid,
214                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
215                    throws com.liferay.portal.NoSuchLayoutException,
216                            com.liferay.portal.kernel.exception.SystemException;
217    
218            /**
219            * Returns the layout where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found.
220            *
221            * @param uuid the uuid
222            * @param groupId the group ID
223            * @return the matching layout
224            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
225            * @throws SystemException if a system exception occurred
226            */
227            public com.liferay.portal.model.Layout findByUUID_G(java.lang.String uuid,
228                    long groupId)
229                    throws com.liferay.portal.NoSuchLayoutException,
230                            com.liferay.portal.kernel.exception.SystemException;
231    
232            /**
233            * Returns the layout where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
234            *
235            * @param uuid the uuid
236            * @param groupId the group ID
237            * @return the matching layout, or <code>null</code> if a matching layout could not be found
238            * @throws SystemException if a system exception occurred
239            */
240            public com.liferay.portal.model.Layout fetchByUUID_G(
241                    java.lang.String uuid, long groupId)
242                    throws com.liferay.portal.kernel.exception.SystemException;
243    
244            /**
245            * Returns the layout where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
246            *
247            * @param uuid the uuid
248            * @param groupId the group ID
249            * @param retrieveFromCache whether to use the finder cache
250            * @return the matching layout, or <code>null</code> if a matching layout could not be found
251            * @throws SystemException if a system exception occurred
252            */
253            public com.liferay.portal.model.Layout fetchByUUID_G(
254                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
255                    throws com.liferay.portal.kernel.exception.SystemException;
256    
257            /**
258            * Returns all the layouts where groupId = &#63;.
259            *
260            * @param groupId the group ID
261            * @return the 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)
266                    throws com.liferay.portal.kernel.exception.SystemException;
267    
268            /**
269            * Returns a 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
276            * @param start the lower bound of the range of layouts
277            * @param end the upper bound of the range of layouts (not inclusive)
278            * @return the range of matching layouts
279            * @throws SystemException if a system exception occurred
280            */
281            public java.util.List<com.liferay.portal.model.Layout> findByGroupId(
282                    long groupId, int start, int end)
283                    throws com.liferay.portal.kernel.exception.SystemException;
284    
285            /**
286            * Returns an ordered range of all the layouts where groupId = &#63;.
287            *
288            * <p>
289            * 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.
290            * </p>
291            *
292            * @param groupId the group ID
293            * @param start the lower bound of the range of layouts
294            * @param end the upper bound of the range of layouts (not inclusive)
295            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
296            * @return the ordered range of matching layouts
297            * @throws SystemException if a system exception occurred
298            */
299            public java.util.List<com.liferay.portal.model.Layout> findByGroupId(
300                    long groupId, int start, int end,
301                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
302                    throws com.liferay.portal.kernel.exception.SystemException;
303    
304            /**
305            * Returns the first layout in the ordered set where groupId = &#63;.
306            *
307            * @param groupId the group ID
308            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
309            * @return the first matching layout
310            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
311            * @throws SystemException if a system exception occurred
312            */
313            public com.liferay.portal.model.Layout findByGroupId_First(long groupId,
314                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
315                    throws com.liferay.portal.NoSuchLayoutException,
316                            com.liferay.portal.kernel.exception.SystemException;
317    
318            /**
319            * Returns the first layout in the ordered set where groupId = &#63;.
320            *
321            * @param groupId the group ID
322            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
323            * @return the first matching layout, or <code>null</code> if a matching layout could not be found
324            * @throws SystemException if a system exception occurred
325            */
326            public com.liferay.portal.model.Layout fetchByGroupId_First(long groupId,
327                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
328                    throws com.liferay.portal.kernel.exception.SystemException;
329    
330            /**
331            * Returns the last layout in the ordered set where groupId = &#63;.
332            *
333            * @param groupId the group ID
334            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
335            * @return the last matching layout
336            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
337            * @throws SystemException if a system exception occurred
338            */
339            public com.liferay.portal.model.Layout findByGroupId_Last(long groupId,
340                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
341                    throws com.liferay.portal.NoSuchLayoutException,
342                            com.liferay.portal.kernel.exception.SystemException;
343    
344            /**
345            * Returns the last layout in the ordered set where groupId = &#63;.
346            *
347            * @param groupId the group ID
348            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
349            * @return the last matching layout, or <code>null</code> if a matching layout could not be found
350            * @throws SystemException if a system exception occurred
351            */
352            public com.liferay.portal.model.Layout fetchByGroupId_Last(long groupId,
353                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
354                    throws com.liferay.portal.kernel.exception.SystemException;
355    
356            /**
357            * Returns the layouts before and after the current layout in the ordered set where groupId = &#63;.
358            *
359            * @param plid the primary key of the current layout
360            * @param groupId the group ID
361            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
362            * @return the previous, current, and next layout
363            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
364            * @throws SystemException if a system exception occurred
365            */
366            public com.liferay.portal.model.Layout[] findByGroupId_PrevAndNext(
367                    long plid, long groupId,
368                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
369                    throws com.liferay.portal.NoSuchLayoutException,
370                            com.liferay.portal.kernel.exception.SystemException;
371    
372            /**
373            * Returns all the layouts that the user has permission to view where groupId = &#63;.
374            *
375            * @param groupId the group ID
376            * @return the matching layouts that the user has permission to view
377            * @throws SystemException if a system exception occurred
378            */
379            public java.util.List<com.liferay.portal.model.Layout> filterFindByGroupId(
380                    long groupId)
381                    throws com.liferay.portal.kernel.exception.SystemException;
382    
383            /**
384            * Returns a range of all the layouts that the user has permission to view where groupId = &#63;.
385            *
386            * <p>
387            * 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.
388            * </p>
389            *
390            * @param groupId the group ID
391            * @param start the lower bound of the range of layouts
392            * @param end the upper bound of the range of layouts (not inclusive)
393            * @return the range of matching layouts that the user has permission to view
394            * @throws SystemException if a system exception occurred
395            */
396            public java.util.List<com.liferay.portal.model.Layout> filterFindByGroupId(
397                    long groupId, int start, int end)
398                    throws com.liferay.portal.kernel.exception.SystemException;
399    
400            /**
401            * Returns an ordered range of all the layouts that the user has permissions to view where groupId = &#63;.
402            *
403            * <p>
404            * 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.
405            * </p>
406            *
407            * @param groupId the group ID
408            * @param start the lower bound of the range of layouts
409            * @param end the upper bound of the range of layouts (not inclusive)
410            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
411            * @return the ordered range of matching layouts that the user has permission to view
412            * @throws SystemException if a system exception occurred
413            */
414            public java.util.List<com.liferay.portal.model.Layout> filterFindByGroupId(
415                    long groupId, int start, int end,
416                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
417                    throws com.liferay.portal.kernel.exception.SystemException;
418    
419            /**
420            * Returns the layouts before and after the current layout in the ordered set of layouts that the user has permission to view where groupId = &#63;.
421            *
422            * @param plid the primary key of the current layout
423            * @param groupId the group ID
424            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
425            * @return the previous, current, and next layout
426            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
427            * @throws SystemException if a system exception occurred
428            */
429            public com.liferay.portal.model.Layout[] filterFindByGroupId_PrevAndNext(
430                    long plid, long groupId,
431                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
432                    throws com.liferay.portal.NoSuchLayoutException,
433                            com.liferay.portal.kernel.exception.SystemException;
434    
435            /**
436            * Returns all the layouts where companyId = &#63;.
437            *
438            * @param companyId the company ID
439            * @return the matching layouts
440            * @throws SystemException if a system exception occurred
441            */
442            public java.util.List<com.liferay.portal.model.Layout> findByCompanyId(
443                    long companyId)
444                    throws com.liferay.portal.kernel.exception.SystemException;
445    
446            /**
447            * Returns a range of all the layouts where companyId = &#63;.
448            *
449            * <p>
450            * 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.
451            * </p>
452            *
453            * @param companyId the company ID
454            * @param start the lower bound of the range of layouts
455            * @param end the upper bound of the range of layouts (not inclusive)
456            * @return the range of matching layouts
457            * @throws SystemException if a system exception occurred
458            */
459            public java.util.List<com.liferay.portal.model.Layout> findByCompanyId(
460                    long companyId, int start, int end)
461                    throws com.liferay.portal.kernel.exception.SystemException;
462    
463            /**
464            * Returns an ordered range of all the layouts where companyId = &#63;.
465            *
466            * <p>
467            * 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.
468            * </p>
469            *
470            * @param companyId the company ID
471            * @param start the lower bound of the range of layouts
472            * @param end the upper bound of the range of layouts (not inclusive)
473            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
474            * @return the ordered range of matching layouts
475            * @throws SystemException if a system exception occurred
476            */
477            public java.util.List<com.liferay.portal.model.Layout> findByCompanyId(
478                    long companyId, int start, int end,
479                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
480                    throws com.liferay.portal.kernel.exception.SystemException;
481    
482            /**
483            * Returns the first layout in the ordered set where companyId = &#63;.
484            *
485            * @param companyId the company ID
486            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
487            * @return the first matching layout
488            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
489            * @throws SystemException if a system exception occurred
490            */
491            public com.liferay.portal.model.Layout findByCompanyId_First(
492                    long companyId,
493                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
494                    throws com.liferay.portal.NoSuchLayoutException,
495                            com.liferay.portal.kernel.exception.SystemException;
496    
497            /**
498            * Returns the first layout in the ordered set where companyId = &#63;.
499            *
500            * @param companyId the company ID
501            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
502            * @return the first matching layout, or <code>null</code> if a matching layout could not be found
503            * @throws SystemException if a system exception occurred
504            */
505            public com.liferay.portal.model.Layout fetchByCompanyId_First(
506                    long companyId,
507                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
508                    throws com.liferay.portal.kernel.exception.SystemException;
509    
510            /**
511            * Returns the last layout in the ordered set where companyId = &#63;.
512            *
513            * @param companyId the company ID
514            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
515            * @return the last matching layout
516            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
517            * @throws SystemException if a system exception occurred
518            */
519            public com.liferay.portal.model.Layout findByCompanyId_Last(
520                    long companyId,
521                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
522                    throws com.liferay.portal.NoSuchLayoutException,
523                            com.liferay.portal.kernel.exception.SystemException;
524    
525            /**
526            * Returns the last layout in the ordered set where companyId = &#63;.
527            *
528            * @param companyId the company ID
529            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
530            * @return the last matching layout, or <code>null</code> if a matching layout could not be found
531            * @throws SystemException if a system exception occurred
532            */
533            public com.liferay.portal.model.Layout fetchByCompanyId_Last(
534                    long companyId,
535                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
536                    throws com.liferay.portal.kernel.exception.SystemException;
537    
538            /**
539            * Returns the layouts before and after the current layout in the ordered set where companyId = &#63;.
540            *
541            * @param plid the primary key of the current layout
542            * @param companyId the company ID
543            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
544            * @return the previous, current, and next layout
545            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
546            * @throws SystemException if a system exception occurred
547            */
548            public com.liferay.portal.model.Layout[] findByCompanyId_PrevAndNext(
549                    long plid, long companyId,
550                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
551                    throws com.liferay.portal.NoSuchLayoutException,
552                            com.liferay.portal.kernel.exception.SystemException;
553    
554            /**
555            * Returns the layout where iconImageId = &#63; or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found.
556            *
557            * @param iconImageId the icon image ID
558            * @return the matching layout
559            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
560            * @throws SystemException if a system exception occurred
561            */
562            public com.liferay.portal.model.Layout findByIconImageId(long iconImageId)
563                    throws com.liferay.portal.NoSuchLayoutException,
564                            com.liferay.portal.kernel.exception.SystemException;
565    
566            /**
567            * Returns the layout where iconImageId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
568            *
569            * @param iconImageId the icon image ID
570            * @return the matching layout, or <code>null</code> if a matching layout could not be found
571            * @throws SystemException if a system exception occurred
572            */
573            public com.liferay.portal.model.Layout fetchByIconImageId(long iconImageId)
574                    throws com.liferay.portal.kernel.exception.SystemException;
575    
576            /**
577            * Returns the layout where iconImageId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
578            *
579            * @param iconImageId the icon image ID
580            * @param retrieveFromCache whether to use the finder cache
581            * @return the matching layout, or <code>null</code> if a matching layout could not be found
582            * @throws SystemException if a system exception occurred
583            */
584            public com.liferay.portal.model.Layout fetchByIconImageId(
585                    long iconImageId, boolean retrieveFromCache)
586                    throws com.liferay.portal.kernel.exception.SystemException;
587    
588            /**
589            * Returns all the layouts where layoutPrototypeUuid = &#63;.
590            *
591            * @param layoutPrototypeUuid the layout prototype uuid
592            * @return the matching layouts
593            * @throws SystemException if a system exception occurred
594            */
595            public java.util.List<com.liferay.portal.model.Layout> findByLayoutPrototypeUuid(
596                    java.lang.String layoutPrototypeUuid)
597                    throws com.liferay.portal.kernel.exception.SystemException;
598    
599            /**
600            * Returns a range of all the layouts where layoutPrototypeUuid = &#63;.
601            *
602            * <p>
603            * 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.
604            * </p>
605            *
606            * @param layoutPrototypeUuid the layout prototype uuid
607            * @param start the lower bound of the range of layouts
608            * @param end the upper bound of the range of layouts (not inclusive)
609            * @return the range of matching layouts
610            * @throws SystemException if a system exception occurred
611            */
612            public java.util.List<com.liferay.portal.model.Layout> findByLayoutPrototypeUuid(
613                    java.lang.String layoutPrototypeUuid, int start, int end)
614                    throws com.liferay.portal.kernel.exception.SystemException;
615    
616            /**
617            * Returns an ordered range of all the layouts where layoutPrototypeUuid = &#63;.
618            *
619            * <p>
620            * 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.
621            * </p>
622            *
623            * @param layoutPrototypeUuid the layout prototype uuid
624            * @param start the lower bound of the range of layouts
625            * @param end the upper bound of the range of layouts (not inclusive)
626            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
627            * @return the ordered range of matching layouts
628            * @throws SystemException if a system exception occurred
629            */
630            public java.util.List<com.liferay.portal.model.Layout> findByLayoutPrototypeUuid(
631                    java.lang.String layoutPrototypeUuid, int start, int end,
632                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
633                    throws com.liferay.portal.kernel.exception.SystemException;
634    
635            /**
636            * Returns the first layout in the ordered set where layoutPrototypeUuid = &#63;.
637            *
638            * @param layoutPrototypeUuid the layout prototype uuid
639            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
640            * @return the first matching layout
641            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
642            * @throws SystemException if a system exception occurred
643            */
644            public com.liferay.portal.model.Layout findByLayoutPrototypeUuid_First(
645                    java.lang.String layoutPrototypeUuid,
646                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
647                    throws com.liferay.portal.NoSuchLayoutException,
648                            com.liferay.portal.kernel.exception.SystemException;
649    
650            /**
651            * Returns the first layout in the ordered set where layoutPrototypeUuid = &#63;.
652            *
653            * @param layoutPrototypeUuid the layout prototype uuid
654            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
655            * @return the first 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 fetchByLayoutPrototypeUuid_First(
659                    java.lang.String layoutPrototypeUuid,
660                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
661                    throws com.liferay.portal.kernel.exception.SystemException;
662    
663            /**
664            * Returns the last layout in the ordered set where layoutPrototypeUuid = &#63;.
665            *
666            * @param layoutPrototypeUuid the layout prototype uuid
667            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
668            * @return the last matching layout
669            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
670            * @throws SystemException if a system exception occurred
671            */
672            public com.liferay.portal.model.Layout findByLayoutPrototypeUuid_Last(
673                    java.lang.String layoutPrototypeUuid,
674                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
675                    throws com.liferay.portal.NoSuchLayoutException,
676                            com.liferay.portal.kernel.exception.SystemException;
677    
678            /**
679            * Returns the last layout in the ordered set where layoutPrototypeUuid = &#63;.
680            *
681            * @param layoutPrototypeUuid the layout prototype uuid
682            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
683            * @return the last matching layout, or <code>null</code> if a matching layout could not be found
684            * @throws SystemException if a system exception occurred
685            */
686            public com.liferay.portal.model.Layout fetchByLayoutPrototypeUuid_Last(
687                    java.lang.String layoutPrototypeUuid,
688                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
689                    throws com.liferay.portal.kernel.exception.SystemException;
690    
691            /**
692            * Returns the layouts before and after the current layout in the ordered set where layoutPrototypeUuid = &#63;.
693            *
694            * @param plid the primary key of the current layout
695            * @param layoutPrototypeUuid the layout prototype uuid
696            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
697            * @return the previous, current, and next layout
698            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
699            * @throws SystemException if a system exception occurred
700            */
701            public com.liferay.portal.model.Layout[] findByLayoutPrototypeUuid_PrevAndNext(
702                    long plid, java.lang.String layoutPrototypeUuid,
703                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
704                    throws com.liferay.portal.NoSuchLayoutException,
705                            com.liferay.portal.kernel.exception.SystemException;
706    
707            /**
708            * Returns all the layouts where groupId = &#63; and privateLayout = &#63;.
709            *
710            * @param groupId the group ID
711            * @param privateLayout the private layout
712            * @return the matching layouts
713            * @throws SystemException if a system exception occurred
714            */
715            public java.util.List<com.liferay.portal.model.Layout> findByG_P(
716                    long groupId, boolean privateLayout)
717                    throws com.liferay.portal.kernel.exception.SystemException;
718    
719            /**
720            * Returns a range of all the layouts where groupId = &#63; and privateLayout = &#63;.
721            *
722            * <p>
723            * 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.
724            * </p>
725            *
726            * @param groupId the group ID
727            * @param privateLayout the private layout
728            * @param start the lower bound of the range of layouts
729            * @param end the upper bound of the range of layouts (not inclusive)
730            * @return the range of matching layouts
731            * @throws SystemException if a system exception occurred
732            */
733            public java.util.List<com.liferay.portal.model.Layout> findByG_P(
734                    long groupId, boolean privateLayout, int start, int end)
735                    throws com.liferay.portal.kernel.exception.SystemException;
736    
737            /**
738            * Returns an ordered range of all the layouts where groupId = &#63; and privateLayout = &#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
745            * @param privateLayout the private layout
746            * @param start the lower bound of the range of layouts
747            * @param end the upper bound of the range of layouts (not inclusive)
748            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
749            * @return the ordered range of matching layouts
750            * @throws SystemException if a system exception occurred
751            */
752            public java.util.List<com.liferay.portal.model.Layout> findByG_P(
753                    long groupId, boolean privateLayout, int start, int end,
754                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
755                    throws com.liferay.portal.kernel.exception.SystemException;
756    
757            /**
758            * Returns the first layout in the ordered set where groupId = &#63; and privateLayout = &#63;.
759            *
760            * @param groupId the group ID
761            * @param privateLayout the private layout
762            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
763            * @return the first matching layout
764            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
765            * @throws SystemException if a system exception occurred
766            */
767            public com.liferay.portal.model.Layout findByG_P_First(long groupId,
768                    boolean privateLayout,
769                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
770                    throws com.liferay.portal.NoSuchLayoutException,
771                            com.liferay.portal.kernel.exception.SystemException;
772    
773            /**
774            * Returns the first layout in the ordered set where groupId = &#63; and privateLayout = &#63;.
775            *
776            * @param groupId the group ID
777            * @param privateLayout the private layout
778            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
779            * @return the first matching layout, or <code>null</code> if a matching layout could not be found
780            * @throws SystemException if a system exception occurred
781            */
782            public com.liferay.portal.model.Layout fetchByG_P_First(long groupId,
783                    boolean privateLayout,
784                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
785                    throws com.liferay.portal.kernel.exception.SystemException;
786    
787            /**
788            * Returns the last layout in the ordered set where groupId = &#63; and privateLayout = &#63;.
789            *
790            * @param groupId the group ID
791            * @param privateLayout the private layout
792            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
793            * @return the last matching layout
794            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
795            * @throws SystemException if a system exception occurred
796            */
797            public com.liferay.portal.model.Layout findByG_P_Last(long groupId,
798                    boolean privateLayout,
799                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
800                    throws com.liferay.portal.NoSuchLayoutException,
801                            com.liferay.portal.kernel.exception.SystemException;
802    
803            /**
804            * Returns the last layout in the ordered set where groupId = &#63; and privateLayout = &#63;.
805            *
806            * @param groupId the group ID
807            * @param privateLayout the private layout
808            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
809            * @return the last matching layout, or <code>null</code> if a matching layout could not be found
810            * @throws SystemException if a system exception occurred
811            */
812            public com.liferay.portal.model.Layout fetchByG_P_Last(long groupId,
813                    boolean privateLayout,
814                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
815                    throws com.liferay.portal.kernel.exception.SystemException;
816    
817            /**
818            * Returns the layouts before and after the current layout in the ordered set where groupId = &#63; and privateLayout = &#63;.
819            *
820            * @param plid the primary key of the current layout
821            * @param groupId the group ID
822            * @param privateLayout the private layout
823            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
824            * @return the previous, current, and next layout
825            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
826            * @throws SystemException if a system exception occurred
827            */
828            public com.liferay.portal.model.Layout[] findByG_P_PrevAndNext(long plid,
829                    long groupId, boolean privateLayout,
830                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
831                    throws com.liferay.portal.NoSuchLayoutException,
832                            com.liferay.portal.kernel.exception.SystemException;
833    
834            /**
835            * Returns all the layouts that the user has permission to view where groupId = &#63; and privateLayout = &#63;.
836            *
837            * @param groupId the group ID
838            * @param privateLayout the private layout
839            * @return the matching layouts that the user has permission to view
840            * @throws SystemException if a system exception occurred
841            */
842            public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P(
843                    long groupId, boolean privateLayout)
844                    throws com.liferay.portal.kernel.exception.SystemException;
845    
846            /**
847            * Returns a range of all the layouts that the user has permission to view where groupId = &#63; and privateLayout = &#63;.
848            *
849            * <p>
850            * 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.
851            * </p>
852            *
853            * @param groupId the group ID
854            * @param privateLayout the private layout
855            * @param start the lower bound of the range of layouts
856            * @param end the upper bound of the range of layouts (not inclusive)
857            * @return the range of matching layouts that the user has permission to view
858            * @throws SystemException if a system exception occurred
859            */
860            public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P(
861                    long groupId, boolean privateLayout, int start, int end)
862                    throws com.liferay.portal.kernel.exception.SystemException;
863    
864            /**
865            * Returns an ordered range of all the layouts that the user has permissions to view where groupId = &#63; and privateLayout = &#63;.
866            *
867            * <p>
868            * 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.
869            * </p>
870            *
871            * @param groupId the group ID
872            * @param privateLayout the private layout
873            * @param start the lower bound of the range of layouts
874            * @param end the upper bound of the range of layouts (not inclusive)
875            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
876            * @return the ordered range of matching layouts that the user has permission to view
877            * @throws SystemException if a system exception occurred
878            */
879            public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P(
880                    long groupId, boolean privateLayout, int start, int end,
881                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
882                    throws com.liferay.portal.kernel.exception.SystemException;
883    
884            /**
885            * Returns the layouts before and after the current layout in the ordered set of layouts that the user has permission to view where groupId = &#63; and privateLayout = &#63;.
886            *
887            * @param plid the primary key of the current layout
888            * @param groupId the group ID
889            * @param privateLayout the private layout
890            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
891            * @return the previous, current, and next layout
892            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
893            * @throws SystemException if a system exception occurred
894            */
895            public com.liferay.portal.model.Layout[] filterFindByG_P_PrevAndNext(
896                    long plid, long groupId, boolean privateLayout,
897                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
898                    throws com.liferay.portal.NoSuchLayoutException,
899                            com.liferay.portal.kernel.exception.SystemException;
900    
901            /**
902            * Returns 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.
903            *
904            * @param groupId the group ID
905            * @param privateLayout the private layout
906            * @param layoutId the layout ID
907            * @return the matching layout
908            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
909            * @throws SystemException if a system exception occurred
910            */
911            public com.liferay.portal.model.Layout findByG_P_L(long groupId,
912                    boolean privateLayout, long layoutId)
913                    throws com.liferay.portal.NoSuchLayoutException,
914                            com.liferay.portal.kernel.exception.SystemException;
915    
916            /**
917            * Returns 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.
918            *
919            * @param groupId the group ID
920            * @param privateLayout the private layout
921            * @param layoutId the layout ID
922            * @return the matching layout, or <code>null</code> if a matching layout could not be found
923            * @throws SystemException if a system exception occurred
924            */
925            public com.liferay.portal.model.Layout fetchByG_P_L(long groupId,
926                    boolean privateLayout, long layoutId)
927                    throws com.liferay.portal.kernel.exception.SystemException;
928    
929            /**
930            * Returns 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.
931            *
932            * @param groupId the group ID
933            * @param privateLayout the private layout
934            * @param layoutId the layout ID
935            * @param retrieveFromCache whether to use the finder cache
936            * @return the matching layout, or <code>null</code> if a matching layout could not be found
937            * @throws SystemException if a system exception occurred
938            */
939            public com.liferay.portal.model.Layout fetchByG_P_L(long groupId,
940                    boolean privateLayout, long layoutId, boolean retrieveFromCache)
941                    throws com.liferay.portal.kernel.exception.SystemException;
942    
943            /**
944            * Returns all the layouts where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
945            *
946            * @param groupId the group ID
947            * @param privateLayout the private layout
948            * @param parentLayoutId the parent layout ID
949            * @return the matching layouts
950            * @throws SystemException if a system exception occurred
951            */
952            public java.util.List<com.liferay.portal.model.Layout> findByG_P_P(
953                    long groupId, boolean privateLayout, long parentLayoutId)
954                    throws com.liferay.portal.kernel.exception.SystemException;
955    
956            /**
957            * Returns a range of all the layouts where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
958            *
959            * <p>
960            * 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.
961            * </p>
962            *
963            * @param groupId the group ID
964            * @param privateLayout the private layout
965            * @param parentLayoutId the parent layout ID
966            * @param start the lower bound of the range of layouts
967            * @param end the upper bound of the range of layouts (not inclusive)
968            * @return the range of matching layouts
969            * @throws SystemException if a system exception occurred
970            */
971            public java.util.List<com.liferay.portal.model.Layout> findByG_P_P(
972                    long groupId, boolean privateLayout, long parentLayoutId, int start,
973                    int end) throws com.liferay.portal.kernel.exception.SystemException;
974    
975            /**
976            * Returns an ordered range of all the layouts where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
977            *
978            * <p>
979            * 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.
980            * </p>
981            *
982            * @param groupId the group ID
983            * @param privateLayout the private layout
984            * @param parentLayoutId the parent layout ID
985            * @param start the lower bound of the range of layouts
986            * @param end the upper bound of the range of layouts (not inclusive)
987            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
988            * @return the ordered range of matching layouts
989            * @throws SystemException if a system exception occurred
990            */
991            public java.util.List<com.liferay.portal.model.Layout> findByG_P_P(
992                    long groupId, boolean privateLayout, long parentLayoutId, int start,
993                    int end,
994                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
995                    throws com.liferay.portal.kernel.exception.SystemException;
996    
997            /**
998            * Returns the first layout in the ordered set where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
999            *
1000            * @param groupId the group ID
1001            * @param privateLayout the private layout
1002            * @param parentLayoutId the parent layout ID
1003            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1004            * @return the first matching layout
1005            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
1006            * @throws SystemException if a system exception occurred
1007            */
1008            public com.liferay.portal.model.Layout findByG_P_P_First(long groupId,
1009                    boolean privateLayout, long parentLayoutId,
1010                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1011                    throws com.liferay.portal.NoSuchLayoutException,
1012                            com.liferay.portal.kernel.exception.SystemException;
1013    
1014            /**
1015            * Returns the first layout in the ordered set where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
1016            *
1017            * @param groupId the group ID
1018            * @param privateLayout the private layout
1019            * @param parentLayoutId the parent layout ID
1020            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1021            * @return the first matching layout, or <code>null</code> if a matching layout could not be found
1022            * @throws SystemException if a system exception occurred
1023            */
1024            public com.liferay.portal.model.Layout fetchByG_P_P_First(long groupId,
1025                    boolean privateLayout, long parentLayoutId,
1026                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1027                    throws com.liferay.portal.kernel.exception.SystemException;
1028    
1029            /**
1030            * Returns the last layout in the ordered set where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
1031            *
1032            * @param groupId the group ID
1033            * @param privateLayout the private layout
1034            * @param parentLayoutId the parent layout ID
1035            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1036            * @return the last matching layout
1037            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
1038            * @throws SystemException if a system exception occurred
1039            */
1040            public com.liferay.portal.model.Layout findByG_P_P_Last(long groupId,
1041                    boolean privateLayout, long parentLayoutId,
1042                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1043                    throws com.liferay.portal.NoSuchLayoutException,
1044                            com.liferay.portal.kernel.exception.SystemException;
1045    
1046            /**
1047            * Returns the last layout in the ordered set where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
1048            *
1049            * @param groupId the group ID
1050            * @param privateLayout the private layout
1051            * @param parentLayoutId the parent layout ID
1052            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1053            * @return the last matching layout, or <code>null</code> if a matching layout could not be found
1054            * @throws SystemException if a system exception occurred
1055            */
1056            public com.liferay.portal.model.Layout fetchByG_P_P_Last(long groupId,
1057                    boolean privateLayout, long parentLayoutId,
1058                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1059                    throws com.liferay.portal.kernel.exception.SystemException;
1060    
1061            /**
1062            * Returns the layouts before and after the current layout in the ordered set where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
1063            *
1064            * @param plid the primary key of the current layout
1065            * @param groupId the group ID
1066            * @param privateLayout the private layout
1067            * @param parentLayoutId the parent layout ID
1068            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1069            * @return the previous, current, and next layout
1070            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
1071            * @throws SystemException if a system exception occurred
1072            */
1073            public com.liferay.portal.model.Layout[] findByG_P_P_PrevAndNext(
1074                    long plid, long groupId, boolean privateLayout, long parentLayoutId,
1075                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1076                    throws com.liferay.portal.NoSuchLayoutException,
1077                            com.liferay.portal.kernel.exception.SystemException;
1078    
1079            /**
1080            * Returns all the layouts that the user has permission to view where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
1081            *
1082            * @param groupId the group ID
1083            * @param privateLayout the private layout
1084            * @param parentLayoutId the parent layout ID
1085            * @return the matching layouts that the user has permission to view
1086            * @throws SystemException if a system exception occurred
1087            */
1088            public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_P(
1089                    long groupId, boolean privateLayout, long parentLayoutId)
1090                    throws com.liferay.portal.kernel.exception.SystemException;
1091    
1092            /**
1093            * Returns a range of all the layouts that the user has permission to view where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
1094            *
1095            * <p>
1096            * 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.
1097            * </p>
1098            *
1099            * @param groupId the group ID
1100            * @param privateLayout the private layout
1101            * @param parentLayoutId the parent layout ID
1102            * @param start the lower bound of the range of layouts
1103            * @param end the upper bound of the range of layouts (not inclusive)
1104            * @return the range of matching layouts that the user has permission to view
1105            * @throws SystemException if a system exception occurred
1106            */
1107            public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_P(
1108                    long groupId, boolean privateLayout, long parentLayoutId, int start,
1109                    int end) throws com.liferay.portal.kernel.exception.SystemException;
1110    
1111            /**
1112            * Returns an ordered range of all the layouts that the user has permissions to view where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
1113            *
1114            * <p>
1115            * 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.
1116            * </p>
1117            *
1118            * @param groupId the group ID
1119            * @param privateLayout the private layout
1120            * @param parentLayoutId the parent layout ID
1121            * @param start the lower bound of the range of layouts
1122            * @param end the upper bound of the range of layouts (not inclusive)
1123            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1124            * @return the ordered range of matching layouts that the user has permission to view
1125            * @throws SystemException if a system exception occurred
1126            */
1127            public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_P(
1128                    long groupId, boolean privateLayout, long parentLayoutId, int start,
1129                    int end,
1130                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1131                    throws com.liferay.portal.kernel.exception.SystemException;
1132    
1133            /**
1134            * Returns the layouts before and after the current layout in the ordered set of layouts that the user has permission to view where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
1135            *
1136            * @param plid the primary key of the current layout
1137            * @param groupId the group ID
1138            * @param privateLayout the private layout
1139            * @param parentLayoutId the parent layout ID
1140            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1141            * @return the previous, current, and next layout
1142            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
1143            * @throws SystemException if a system exception occurred
1144            */
1145            public com.liferay.portal.model.Layout[] filterFindByG_P_P_PrevAndNext(
1146                    long plid, long groupId, boolean privateLayout, long parentLayoutId,
1147                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1148                    throws com.liferay.portal.NoSuchLayoutException,
1149                            com.liferay.portal.kernel.exception.SystemException;
1150    
1151            /**
1152            * Returns 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.
1153            *
1154            * @param groupId the group ID
1155            * @param privateLayout the private layout
1156            * @param friendlyURL the friendly u r l
1157            * @return the matching layout
1158            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
1159            * @throws SystemException if a system exception occurred
1160            */
1161            public com.liferay.portal.model.Layout findByG_P_F(long groupId,
1162                    boolean privateLayout, java.lang.String friendlyURL)
1163                    throws com.liferay.portal.NoSuchLayoutException,
1164                            com.liferay.portal.kernel.exception.SystemException;
1165    
1166            /**
1167            * Returns 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.
1168            *
1169            * @param groupId the group ID
1170            * @param privateLayout the private layout
1171            * @param friendlyURL the friendly u r l
1172            * @return the matching layout, or <code>null</code> if a matching layout could not be found
1173            * @throws SystemException if a system exception occurred
1174            */
1175            public com.liferay.portal.model.Layout fetchByG_P_F(long groupId,
1176                    boolean privateLayout, java.lang.String friendlyURL)
1177                    throws com.liferay.portal.kernel.exception.SystemException;
1178    
1179            /**
1180            * Returns 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.
1181            *
1182            * @param groupId the group ID
1183            * @param privateLayout the private layout
1184            * @param friendlyURL the friendly u r l
1185            * @param retrieveFromCache whether to use the finder cache
1186            * @return the matching layout, or <code>null</code> if a matching layout could not be found
1187            * @throws SystemException if a system exception occurred
1188            */
1189            public com.liferay.portal.model.Layout fetchByG_P_F(long groupId,
1190                    boolean privateLayout, java.lang.String friendlyURL,
1191                    boolean retrieveFromCache)
1192                    throws com.liferay.portal.kernel.exception.SystemException;
1193    
1194            /**
1195            * Returns all the layouts where groupId = &#63; and privateLayout = &#63; and type = &#63;.
1196            *
1197            * @param groupId the group ID
1198            * @param privateLayout the private layout
1199            * @param type the type
1200            * @return the matching layouts
1201            * @throws SystemException if a system exception occurred
1202            */
1203            public java.util.List<com.liferay.portal.model.Layout> findByG_P_T(
1204                    long groupId, boolean privateLayout, java.lang.String type)
1205                    throws com.liferay.portal.kernel.exception.SystemException;
1206    
1207            /**
1208            * Returns a range of all the layouts where groupId = &#63; and privateLayout = &#63; and type = &#63;.
1209            *
1210            * <p>
1211            * 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.
1212            * </p>
1213            *
1214            * @param groupId the group ID
1215            * @param privateLayout the private layout
1216            * @param type the type
1217            * @param start the lower bound of the range of layouts
1218            * @param end the upper bound of the range of layouts (not inclusive)
1219            * @return the range of matching layouts
1220            * @throws SystemException if a system exception occurred
1221            */
1222            public java.util.List<com.liferay.portal.model.Layout> findByG_P_T(
1223                    long groupId, boolean privateLayout, java.lang.String type, int start,
1224                    int end) throws com.liferay.portal.kernel.exception.SystemException;
1225    
1226            /**
1227            * Returns an ordered range of all the layouts where groupId = &#63; and privateLayout = &#63; and type = &#63;.
1228            *
1229            * <p>
1230            * 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.
1231            * </p>
1232            *
1233            * @param groupId the group ID
1234            * @param privateLayout the private layout
1235            * @param type the type
1236            * @param start the lower bound of the range of layouts
1237            * @param end the upper bound of the range of layouts (not inclusive)
1238            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1239            * @return the ordered range of matching layouts
1240            * @throws SystemException if a system exception occurred
1241            */
1242            public java.util.List<com.liferay.portal.model.Layout> findByG_P_T(
1243                    long groupId, boolean privateLayout, java.lang.String type, int start,
1244                    int end,
1245                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1246                    throws com.liferay.portal.kernel.exception.SystemException;
1247    
1248            /**
1249            * Returns the first layout in the ordered set where groupId = &#63; and privateLayout = &#63; and type = &#63;.
1250            *
1251            * @param groupId the group ID
1252            * @param privateLayout the private layout
1253            * @param type the type
1254            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1255            * @return the first matching layout
1256            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
1257            * @throws SystemException if a system exception occurred
1258            */
1259            public com.liferay.portal.model.Layout findByG_P_T_First(long groupId,
1260                    boolean privateLayout, java.lang.String type,
1261                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1262                    throws com.liferay.portal.NoSuchLayoutException,
1263                            com.liferay.portal.kernel.exception.SystemException;
1264    
1265            /**
1266            * Returns the first layout in the ordered set where groupId = &#63; and privateLayout = &#63; and type = &#63;.
1267            *
1268            * @param groupId the group ID
1269            * @param privateLayout the private layout
1270            * @param type the type
1271            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1272            * @return the first matching layout, or <code>null</code> if a matching layout could not be found
1273            * @throws SystemException if a system exception occurred
1274            */
1275            public com.liferay.portal.model.Layout fetchByG_P_T_First(long groupId,
1276                    boolean privateLayout, java.lang.String type,
1277                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1278                    throws com.liferay.portal.kernel.exception.SystemException;
1279    
1280            /**
1281            * Returns the last layout in the ordered set where groupId = &#63; and privateLayout = &#63; and type = &#63;.
1282            *
1283            * @param groupId the group ID
1284            * @param privateLayout the private layout
1285            * @param type the type
1286            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1287            * @return the last matching layout
1288            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
1289            * @throws SystemException if a system exception occurred
1290            */
1291            public com.liferay.portal.model.Layout findByG_P_T_Last(long groupId,
1292                    boolean privateLayout, java.lang.String type,
1293                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1294                    throws com.liferay.portal.NoSuchLayoutException,
1295                            com.liferay.portal.kernel.exception.SystemException;
1296    
1297            /**
1298            * Returns the last layout in the ordered set where groupId = &#63; and privateLayout = &#63; and type = &#63;.
1299            *
1300            * @param groupId the group ID
1301            * @param privateLayout the private layout
1302            * @param type the type
1303            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1304            * @return the last matching layout, or <code>null</code> if a matching layout could not be found
1305            * @throws SystemException if a system exception occurred
1306            */
1307            public com.liferay.portal.model.Layout fetchByG_P_T_Last(long groupId,
1308                    boolean privateLayout, java.lang.String type,
1309                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1310                    throws com.liferay.portal.kernel.exception.SystemException;
1311    
1312            /**
1313            * Returns the layouts before and after the current layout in the ordered set where groupId = &#63; and privateLayout = &#63; and type = &#63;.
1314            *
1315            * @param plid the primary key of the current layout
1316            * @param groupId the group ID
1317            * @param privateLayout the private layout
1318            * @param type the type
1319            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1320            * @return the previous, current, and next layout
1321            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
1322            * @throws SystemException if a system exception occurred
1323            */
1324            public com.liferay.portal.model.Layout[] findByG_P_T_PrevAndNext(
1325                    long plid, long groupId, boolean privateLayout, java.lang.String type,
1326                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1327                    throws com.liferay.portal.NoSuchLayoutException,
1328                            com.liferay.portal.kernel.exception.SystemException;
1329    
1330            /**
1331            * Returns all the layouts that the user has permission to view where groupId = &#63; and privateLayout = &#63; and type = &#63;.
1332            *
1333            * @param groupId the group ID
1334            * @param privateLayout the private layout
1335            * @param type the type
1336            * @return the matching layouts that the user has permission to view
1337            * @throws SystemException if a system exception occurred
1338            */
1339            public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_T(
1340                    long groupId, boolean privateLayout, java.lang.String type)
1341                    throws com.liferay.portal.kernel.exception.SystemException;
1342    
1343            /**
1344            * Returns a range of all the layouts that the user has permission to view where groupId = &#63; and privateLayout = &#63; and type = &#63;.
1345            *
1346            * <p>
1347            * 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.
1348            * </p>
1349            *
1350            * @param groupId the group ID
1351            * @param privateLayout the private layout
1352            * @param type the type
1353            * @param start the lower bound of the range of layouts
1354            * @param end the upper bound of the range of layouts (not inclusive)
1355            * @return the range of matching layouts that the user has permission to view
1356            * @throws SystemException if a system exception occurred
1357            */
1358            public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_T(
1359                    long groupId, boolean privateLayout, java.lang.String type, int start,
1360                    int end) throws com.liferay.portal.kernel.exception.SystemException;
1361    
1362            /**
1363            * Returns an ordered range of all the layouts that the user has permissions to view where groupId = &#63; and privateLayout = &#63; and type = &#63;.
1364            *
1365            * <p>
1366            * 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.
1367            * </p>
1368            *
1369            * @param groupId the group ID
1370            * @param privateLayout the private layout
1371            * @param type the type
1372            * @param start the lower bound of the range of layouts
1373            * @param end the upper bound of the range of layouts (not inclusive)
1374            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1375            * @return the ordered range of matching layouts that the user has permission to view
1376            * @throws SystemException if a system exception occurred
1377            */
1378            public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_T(
1379                    long groupId, boolean privateLayout, java.lang.String type, int start,
1380                    int end,
1381                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1382                    throws com.liferay.portal.kernel.exception.SystemException;
1383    
1384            /**
1385            * Returns the layouts before and after the current layout in the ordered set of layouts that the user has permission to view where groupId = &#63; and privateLayout = &#63; and type = &#63;.
1386            *
1387            * @param plid the primary key of the current layout
1388            * @param groupId the group ID
1389            * @param privateLayout the private layout
1390            * @param type the type
1391            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1392            * @return the previous, current, and next layout
1393            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
1394            * @throws SystemException if a system exception occurred
1395            */
1396            public com.liferay.portal.model.Layout[] filterFindByG_P_T_PrevAndNext(
1397                    long plid, long groupId, boolean privateLayout, java.lang.String type,
1398                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1399                    throws com.liferay.portal.NoSuchLayoutException,
1400                            com.liferay.portal.kernel.exception.SystemException;
1401    
1402            /**
1403            * Returns the layout where groupId = &#63; and privateLayout = &#63; and sourcePrototypeLayoutUuid = &#63; or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found.
1404            *
1405            * @param groupId the group ID
1406            * @param privateLayout the private layout
1407            * @param sourcePrototypeLayoutUuid the source prototype layout uuid
1408            * @return the matching layout
1409            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
1410            * @throws SystemException if a system exception occurred
1411            */
1412            public com.liferay.portal.model.Layout findByG_P_SPLU(long groupId,
1413                    boolean privateLayout, java.lang.String sourcePrototypeLayoutUuid)
1414                    throws com.liferay.portal.NoSuchLayoutException,
1415                            com.liferay.portal.kernel.exception.SystemException;
1416    
1417            /**
1418            * Returns the layout where groupId = &#63; and privateLayout = &#63; and sourcePrototypeLayoutUuid = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
1419            *
1420            * @param groupId the group ID
1421            * @param privateLayout the private layout
1422            * @param sourcePrototypeLayoutUuid the source prototype layout uuid
1423            * @return the matching layout, or <code>null</code> if a matching layout could not be found
1424            * @throws SystemException if a system exception occurred
1425            */
1426            public com.liferay.portal.model.Layout fetchByG_P_SPLU(long groupId,
1427                    boolean privateLayout, java.lang.String sourcePrototypeLayoutUuid)
1428                    throws com.liferay.portal.kernel.exception.SystemException;
1429    
1430            /**
1431            * Returns the layout where groupId = &#63; and privateLayout = &#63; and sourcePrototypeLayoutUuid = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
1432            *
1433            * @param groupId the group ID
1434            * @param privateLayout the private layout
1435            * @param sourcePrototypeLayoutUuid the source prototype layout uuid
1436            * @param retrieveFromCache whether to use the finder cache
1437            * @return the matching layout, or <code>null</code> if a matching layout could not be found
1438            * @throws SystemException if a system exception occurred
1439            */
1440            public com.liferay.portal.model.Layout fetchByG_P_SPLU(long groupId,
1441                    boolean privateLayout, java.lang.String sourcePrototypeLayoutUuid,
1442                    boolean retrieveFromCache)
1443                    throws com.liferay.portal.kernel.exception.SystemException;
1444    
1445            /**
1446            * Returns all the layouts.
1447            *
1448            * @return the layouts
1449            * @throws SystemException if a system exception occurred
1450            */
1451            public java.util.List<com.liferay.portal.model.Layout> findAll()
1452                    throws com.liferay.portal.kernel.exception.SystemException;
1453    
1454            /**
1455            * Returns a range of all the layouts.
1456            *
1457            * <p>
1458            * 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.
1459            * </p>
1460            *
1461            * @param start the lower bound of the range of layouts
1462            * @param end the upper bound of the range of layouts (not inclusive)
1463            * @return the range of layouts
1464            * @throws SystemException if a system exception occurred
1465            */
1466            public java.util.List<com.liferay.portal.model.Layout> findAll(int start,
1467                    int end) throws com.liferay.portal.kernel.exception.SystemException;
1468    
1469            /**
1470            * Returns an ordered range of all the layouts.
1471            *
1472            * <p>
1473            * 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.
1474            * </p>
1475            *
1476            * @param start the lower bound of the range of layouts
1477            * @param end the upper bound of the range of layouts (not inclusive)
1478            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1479            * @return the ordered range of layouts
1480            * @throws SystemException if a system exception occurred
1481            */
1482            public java.util.List<com.liferay.portal.model.Layout> findAll(int start,
1483                    int end,
1484                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1485                    throws com.liferay.portal.kernel.exception.SystemException;
1486    
1487            /**
1488            * Removes all the layouts where uuid = &#63; from the database.
1489            *
1490            * @param uuid the uuid
1491            * @throws SystemException if a system exception occurred
1492            */
1493            public void removeByUuid(java.lang.String uuid)
1494                    throws com.liferay.portal.kernel.exception.SystemException;
1495    
1496            /**
1497            * Removes the layout where uuid = &#63; and groupId = &#63; from the database.
1498            *
1499            * @param uuid the uuid
1500            * @param groupId the group ID
1501            * @return the layout that was removed
1502            * @throws SystemException if a system exception occurred
1503            */
1504            public com.liferay.portal.model.Layout removeByUUID_G(
1505                    java.lang.String uuid, long groupId)
1506                    throws com.liferay.portal.NoSuchLayoutException,
1507                            com.liferay.portal.kernel.exception.SystemException;
1508    
1509            /**
1510            * Removes all the layouts where groupId = &#63; from the database.
1511            *
1512            * @param groupId the group ID
1513            * @throws SystemException if a system exception occurred
1514            */
1515            public void removeByGroupId(long groupId)
1516                    throws com.liferay.portal.kernel.exception.SystemException;
1517    
1518            /**
1519            * Removes all the layouts where companyId = &#63; from the database.
1520            *
1521            * @param companyId the company ID
1522            * @throws SystemException if a system exception occurred
1523            */
1524            public void removeByCompanyId(long companyId)
1525                    throws com.liferay.portal.kernel.exception.SystemException;
1526    
1527            /**
1528            * Removes the layout where iconImageId = &#63; from the database.
1529            *
1530            * @param iconImageId the icon image ID
1531            * @return the layout that was removed
1532            * @throws SystemException if a system exception occurred
1533            */
1534            public com.liferay.portal.model.Layout removeByIconImageId(long iconImageId)
1535                    throws com.liferay.portal.NoSuchLayoutException,
1536                            com.liferay.portal.kernel.exception.SystemException;
1537    
1538            /**
1539            * Removes all the layouts where layoutPrototypeUuid = &#63; from the database.
1540            *
1541            * @param layoutPrototypeUuid the layout prototype uuid
1542            * @throws SystemException if a system exception occurred
1543            */
1544            public void removeByLayoutPrototypeUuid(
1545                    java.lang.String layoutPrototypeUuid)
1546                    throws com.liferay.portal.kernel.exception.SystemException;
1547    
1548            /**
1549            * Removes all the layouts where groupId = &#63; and privateLayout = &#63; from the database.
1550            *
1551            * @param groupId the group ID
1552            * @param privateLayout the private layout
1553            * @throws SystemException if a system exception occurred
1554            */
1555            public void removeByG_P(long groupId, boolean privateLayout)
1556                    throws com.liferay.portal.kernel.exception.SystemException;
1557    
1558            /**
1559            * Removes the layout where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; from the database.
1560            *
1561            * @param groupId the group ID
1562            * @param privateLayout the private layout
1563            * @param layoutId the layout ID
1564            * @return the layout that was removed
1565            * @throws SystemException if a system exception occurred
1566            */
1567            public com.liferay.portal.model.Layout removeByG_P_L(long groupId,
1568                    boolean privateLayout, long layoutId)
1569                    throws com.liferay.portal.NoSuchLayoutException,
1570                            com.liferay.portal.kernel.exception.SystemException;
1571    
1572            /**
1573            * Removes all the layouts where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63; from the database.
1574            *
1575            * @param groupId the group ID
1576            * @param privateLayout the private layout
1577            * @param parentLayoutId the parent layout ID
1578            * @throws SystemException if a system exception occurred
1579            */
1580            public void removeByG_P_P(long groupId, boolean privateLayout,
1581                    long parentLayoutId)
1582                    throws com.liferay.portal.kernel.exception.SystemException;
1583    
1584            /**
1585            * Removes the layout where groupId = &#63; and privateLayout = &#63; and friendlyURL = &#63; from the database.
1586            *
1587            * @param groupId the group ID
1588            * @param privateLayout the private layout
1589            * @param friendlyURL the friendly u r l
1590            * @return the layout that was removed
1591            * @throws SystemException if a system exception occurred
1592            */
1593            public com.liferay.portal.model.Layout removeByG_P_F(long groupId,
1594                    boolean privateLayout, java.lang.String friendlyURL)
1595                    throws com.liferay.portal.NoSuchLayoutException,
1596                            com.liferay.portal.kernel.exception.SystemException;
1597    
1598            /**
1599            * Removes all the layouts where groupId = &#63; and privateLayout = &#63; and type = &#63; from the database.
1600            *
1601            * @param groupId the group ID
1602            * @param privateLayout the private layout
1603            * @param type the type
1604            * @throws SystemException if a system exception occurred
1605            */
1606            public void removeByG_P_T(long groupId, boolean privateLayout,
1607                    java.lang.String type)
1608                    throws com.liferay.portal.kernel.exception.SystemException;
1609    
1610            /**
1611            * Removes the layout where groupId = &#63; and privateLayout = &#63; and sourcePrototypeLayoutUuid = &#63; from the database.
1612            *
1613            * @param groupId the group ID
1614            * @param privateLayout the private layout
1615            * @param sourcePrototypeLayoutUuid the source prototype layout uuid
1616            * @return the layout that was removed
1617            * @throws SystemException if a system exception occurred
1618            */
1619            public com.liferay.portal.model.Layout removeByG_P_SPLU(long groupId,
1620                    boolean privateLayout, java.lang.String sourcePrototypeLayoutUuid)
1621                    throws com.liferay.portal.NoSuchLayoutException,
1622                            com.liferay.portal.kernel.exception.SystemException;
1623    
1624            /**
1625            * Removes all the layouts from the database.
1626            *
1627            * @throws SystemException if a system exception occurred
1628            */
1629            public void removeAll()
1630                    throws com.liferay.portal.kernel.exception.SystemException;
1631    
1632            /**
1633            * Returns the number of layouts where uuid = &#63;.
1634            *
1635            * @param uuid the uuid
1636            * @return the number of matching layouts
1637            * @throws SystemException if a system exception occurred
1638            */
1639            public int countByUuid(java.lang.String uuid)
1640                    throws com.liferay.portal.kernel.exception.SystemException;
1641    
1642            /**
1643            * Returns the number of layouts where uuid = &#63; and groupId = &#63;.
1644            *
1645            * @param uuid the uuid
1646            * @param groupId the group ID
1647            * @return the number of matching layouts
1648            * @throws SystemException if a system exception occurred
1649            */
1650            public int countByUUID_G(java.lang.String uuid, long groupId)
1651                    throws com.liferay.portal.kernel.exception.SystemException;
1652    
1653            /**
1654            * Returns the number of layouts where groupId = &#63;.
1655            *
1656            * @param groupId the group ID
1657            * @return the number of matching layouts
1658            * @throws SystemException if a system exception occurred
1659            */
1660            public int countByGroupId(long groupId)
1661                    throws com.liferay.portal.kernel.exception.SystemException;
1662    
1663            /**
1664            * Returns the number of layouts that the user has permission to view where groupId = &#63;.
1665            *
1666            * @param groupId the group ID
1667            * @return the number of matching layouts that the user has permission to view
1668            * @throws SystemException if a system exception occurred
1669            */
1670            public int filterCountByGroupId(long groupId)
1671                    throws com.liferay.portal.kernel.exception.SystemException;
1672    
1673            /**
1674            * Returns the number of layouts where companyId = &#63;.
1675            *
1676            * @param companyId the company ID
1677            * @return the number of matching layouts
1678            * @throws SystemException if a system exception occurred
1679            */
1680            public int countByCompanyId(long companyId)
1681                    throws com.liferay.portal.kernel.exception.SystemException;
1682    
1683            /**
1684            * Returns the number of layouts where iconImageId = &#63;.
1685            *
1686            * @param iconImageId the icon image ID
1687            * @return the number of matching layouts
1688            * @throws SystemException if a system exception occurred
1689            */
1690            public int countByIconImageId(long iconImageId)
1691                    throws com.liferay.portal.kernel.exception.SystemException;
1692    
1693            /**
1694            * Returns the number of layouts where layoutPrototypeUuid = &#63;.
1695            *
1696            * @param layoutPrototypeUuid the layout prototype uuid
1697            * @return the number of matching layouts
1698            * @throws SystemException if a system exception occurred
1699            */
1700            public int countByLayoutPrototypeUuid(java.lang.String layoutPrototypeUuid)
1701                    throws com.liferay.portal.kernel.exception.SystemException;
1702    
1703            /**
1704            * Returns the number of layouts where groupId = &#63; and privateLayout = &#63;.
1705            *
1706            * @param groupId the group ID
1707            * @param privateLayout the private layout
1708            * @return the number of matching layouts
1709            * @throws SystemException if a system exception occurred
1710            */
1711            public int countByG_P(long groupId, boolean privateLayout)
1712                    throws com.liferay.portal.kernel.exception.SystemException;
1713    
1714            /**
1715            * Returns the number of layouts that the user has permission to view where groupId = &#63; and privateLayout = &#63;.
1716            *
1717            * @param groupId the group ID
1718            * @param privateLayout the private layout
1719            * @return the number of matching layouts that the user has permission to view
1720            * @throws SystemException if a system exception occurred
1721            */
1722            public int filterCountByG_P(long groupId, boolean privateLayout)
1723                    throws com.liferay.portal.kernel.exception.SystemException;
1724    
1725            /**
1726            * Returns the number of layouts where groupId = &#63; and privateLayout = &#63; and layoutId = &#63;.
1727            *
1728            * @param groupId the group ID
1729            * @param privateLayout the private layout
1730            * @param layoutId the layout ID
1731            * @return the number of matching layouts
1732            * @throws SystemException if a system exception occurred
1733            */
1734            public int countByG_P_L(long groupId, boolean privateLayout, long layoutId)
1735                    throws com.liferay.portal.kernel.exception.SystemException;
1736    
1737            /**
1738            * Returns the number of layouts where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
1739            *
1740            * @param groupId the group ID
1741            * @param privateLayout the private layout
1742            * @param parentLayoutId the parent layout ID
1743            * @return the number of matching layouts
1744            * @throws SystemException if a system exception occurred
1745            */
1746            public int countByG_P_P(long groupId, boolean privateLayout,
1747                    long parentLayoutId)
1748                    throws com.liferay.portal.kernel.exception.SystemException;
1749    
1750            /**
1751            * Returns the number of layouts that the user has permission to view where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
1752            *
1753            * @param groupId the group ID
1754            * @param privateLayout the private layout
1755            * @param parentLayoutId the parent layout ID
1756            * @return the number of matching layouts that the user has permission to view
1757            * @throws SystemException if a system exception occurred
1758            */
1759            public int filterCountByG_P_P(long groupId, boolean privateLayout,
1760                    long parentLayoutId)
1761                    throws com.liferay.portal.kernel.exception.SystemException;
1762    
1763            /**
1764            * Returns the number of layouts where groupId = &#63; and privateLayout = &#63; and friendlyURL = &#63;.
1765            *
1766            * @param groupId the group ID
1767            * @param privateLayout the private layout
1768            * @param friendlyURL the friendly u r l
1769            * @return the number of matching layouts
1770            * @throws SystemException if a system exception occurred
1771            */
1772            public int countByG_P_F(long groupId, boolean privateLayout,
1773                    java.lang.String friendlyURL)
1774                    throws com.liferay.portal.kernel.exception.SystemException;
1775    
1776            /**
1777            * Returns the number of layouts where groupId = &#63; and privateLayout = &#63; and type = &#63;.
1778            *
1779            * @param groupId the group ID
1780            * @param privateLayout the private layout
1781            * @param type the type
1782            * @return the number of matching layouts
1783            * @throws SystemException if a system exception occurred
1784            */
1785            public int countByG_P_T(long groupId, boolean privateLayout,
1786                    java.lang.String type)
1787                    throws com.liferay.portal.kernel.exception.SystemException;
1788    
1789            /**
1790            * Returns the number of layouts that the user has permission to view where groupId = &#63; and privateLayout = &#63; and type = &#63;.
1791            *
1792            * @param groupId the group ID
1793            * @param privateLayout the private layout
1794            * @param type the type
1795            * @return the number of matching layouts that the user has permission to view
1796            * @throws SystemException if a system exception occurred
1797            */
1798            public int filterCountByG_P_T(long groupId, boolean privateLayout,
1799                    java.lang.String type)
1800                    throws com.liferay.portal.kernel.exception.SystemException;
1801    
1802            /**
1803            * Returns the number of layouts where groupId = &#63; and privateLayout = &#63; and sourcePrototypeLayoutUuid = &#63;.
1804            *
1805            * @param groupId the group ID
1806            * @param privateLayout the private layout
1807            * @param sourcePrototypeLayoutUuid the source prototype layout uuid
1808            * @return the number of matching layouts
1809            * @throws SystemException if a system exception occurred
1810            */
1811            public int countByG_P_SPLU(long groupId, boolean privateLayout,
1812                    java.lang.String sourcePrototypeLayoutUuid)
1813                    throws com.liferay.portal.kernel.exception.SystemException;
1814    
1815            /**
1816            * Returns the number of layouts.
1817            *
1818            * @return the number of layouts
1819            * @throws SystemException if a system exception occurred
1820            */
1821            public int countAll()
1822                    throws com.liferay.portal.kernel.exception.SystemException;
1823    }