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