001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import 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 all the layouts where companyId = &#63; and layoutPrototypeUuid = &#63;.
1304            *
1305            * @param companyId the company ID
1306            * @param layoutPrototypeUuid the layout prototype uuid
1307            * @return the matching layouts
1308            * @throws SystemException if a system exception occurred
1309            */
1310            public java.util.List<com.liferay.portal.model.Layout> findByC_L(
1311                    long companyId, java.lang.String layoutPrototypeUuid)
1312                    throws com.liferay.portal.kernel.exception.SystemException;
1313    
1314            /**
1315            * Returns a range of all the layouts where companyId = &#63; and layoutPrototypeUuid = &#63;.
1316            *
1317            * <p>
1318            * 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.
1319            * </p>
1320            *
1321            * @param companyId the company ID
1322            * @param layoutPrototypeUuid the layout prototype uuid
1323            * @param start the lower bound of the range of layouts
1324            * @param end the upper bound of the range of layouts (not inclusive)
1325            * @return the range of matching layouts
1326            * @throws SystemException if a system exception occurred
1327            */
1328            public java.util.List<com.liferay.portal.model.Layout> findByC_L(
1329                    long companyId, java.lang.String layoutPrototypeUuid, int start, int end)
1330                    throws com.liferay.portal.kernel.exception.SystemException;
1331    
1332            /**
1333            * Returns an ordered range of all the layouts where companyId = &#63; and layoutPrototypeUuid = &#63;.
1334            *
1335            * <p>
1336            * 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.
1337            * </p>
1338            *
1339            * @param companyId the company ID
1340            * @param layoutPrototypeUuid the layout prototype uuid
1341            * @param start the lower bound of the range of layouts
1342            * @param end the upper bound of the range of layouts (not inclusive)
1343            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1344            * @return the ordered range of matching layouts
1345            * @throws SystemException if a system exception occurred
1346            */
1347            public java.util.List<com.liferay.portal.model.Layout> findByC_L(
1348                    long companyId, java.lang.String layoutPrototypeUuid, int start,
1349                    int end,
1350                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1351                    throws com.liferay.portal.kernel.exception.SystemException;
1352    
1353            /**
1354            * Returns the first layout in the ordered set where companyId = &#63; and layoutPrototypeUuid = &#63;.
1355            *
1356            * @param companyId the company ID
1357            * @param layoutPrototypeUuid the layout prototype uuid
1358            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1359            * @return the first matching layout
1360            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
1361            * @throws SystemException if a system exception occurred
1362            */
1363            public com.liferay.portal.model.Layout findByC_L_First(long companyId,
1364                    java.lang.String layoutPrototypeUuid,
1365                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1366                    throws com.liferay.portal.NoSuchLayoutException,
1367                            com.liferay.portal.kernel.exception.SystemException;
1368    
1369            /**
1370            * Returns the first layout in the ordered set where companyId = &#63; and layoutPrototypeUuid = &#63;.
1371            *
1372            * @param companyId the company ID
1373            * @param layoutPrototypeUuid the layout prototype uuid
1374            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1375            * @return the first matching layout, or <code>null</code> if a matching layout could not be found
1376            * @throws SystemException if a system exception occurred
1377            */
1378            public com.liferay.portal.model.Layout fetchByC_L_First(long companyId,
1379                    java.lang.String layoutPrototypeUuid,
1380                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1381                    throws com.liferay.portal.kernel.exception.SystemException;
1382    
1383            /**
1384            * Returns the last layout in the ordered set where companyId = &#63; and layoutPrototypeUuid = &#63;.
1385            *
1386            * @param companyId the company ID
1387            * @param layoutPrototypeUuid the layout prototype uuid
1388            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1389            * @return the last matching layout
1390            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
1391            * @throws SystemException if a system exception occurred
1392            */
1393            public com.liferay.portal.model.Layout findByC_L_Last(long companyId,
1394                    java.lang.String layoutPrototypeUuid,
1395                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1396                    throws com.liferay.portal.NoSuchLayoutException,
1397                            com.liferay.portal.kernel.exception.SystemException;
1398    
1399            /**
1400            * Returns the last layout in the ordered set where companyId = &#63; and layoutPrototypeUuid = &#63;.
1401            *
1402            * @param companyId the company ID
1403            * @param layoutPrototypeUuid the layout prototype uuid
1404            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1405            * @return the last matching layout, or <code>null</code> if a matching layout could not be found
1406            * @throws SystemException if a system exception occurred
1407            */
1408            public com.liferay.portal.model.Layout fetchByC_L_Last(long companyId,
1409                    java.lang.String layoutPrototypeUuid,
1410                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1411                    throws com.liferay.portal.kernel.exception.SystemException;
1412    
1413            /**
1414            * Returns the layouts before and after the current layout in the ordered set where companyId = &#63; and layoutPrototypeUuid = &#63;.
1415            *
1416            * @param plid the primary key of the current layout
1417            * @param companyId the company ID
1418            * @param layoutPrototypeUuid the layout prototype uuid
1419            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1420            * @return the previous, current, and next layout
1421            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
1422            * @throws SystemException if a system exception occurred
1423            */
1424            public com.liferay.portal.model.Layout[] findByC_L_PrevAndNext(long plid,
1425                    long companyId, java.lang.String layoutPrototypeUuid,
1426                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1427                    throws com.liferay.portal.NoSuchLayoutException,
1428                            com.liferay.portal.kernel.exception.SystemException;
1429    
1430            /**
1431            * Removes all the layouts where companyId = &#63; and layoutPrototypeUuid = &#63; from the database.
1432            *
1433            * @param companyId the company ID
1434            * @param layoutPrototypeUuid the layout prototype uuid
1435            * @throws SystemException if a system exception occurred
1436            */
1437            public void removeByC_L(long companyId, java.lang.String layoutPrototypeUuid)
1438                    throws com.liferay.portal.kernel.exception.SystemException;
1439    
1440            /**
1441            * Returns the number of layouts where companyId = &#63; and layoutPrototypeUuid = &#63;.
1442            *
1443            * @param companyId the company ID
1444            * @param layoutPrototypeUuid the layout prototype uuid
1445            * @return the number of matching layouts
1446            * @throws SystemException if a system exception occurred
1447            */
1448            public int countByC_L(long companyId, java.lang.String layoutPrototypeUuid)
1449                    throws com.liferay.portal.kernel.exception.SystemException;
1450    
1451            /**
1452            * Returns the layout where privateLayout = &#63; and iconImageId = &#63; or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found.
1453            *
1454            * @param privateLayout the private layout
1455            * @param iconImageId the icon image ID
1456            * @return the matching layout
1457            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
1458            * @throws SystemException if a system exception occurred
1459            */
1460            public com.liferay.portal.model.Layout findByP_I(boolean privateLayout,
1461                    long iconImageId)
1462                    throws com.liferay.portal.NoSuchLayoutException,
1463                            com.liferay.portal.kernel.exception.SystemException;
1464    
1465            /**
1466            * Returns the layout where privateLayout = &#63; and iconImageId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
1467            *
1468            * @param privateLayout the private layout
1469            * @param iconImageId the icon image ID
1470            * @return the matching layout, or <code>null</code> if a matching layout could not be found
1471            * @throws SystemException if a system exception occurred
1472            */
1473            public com.liferay.portal.model.Layout fetchByP_I(boolean privateLayout,
1474                    long iconImageId)
1475                    throws com.liferay.portal.kernel.exception.SystemException;
1476    
1477            /**
1478            * Returns the layout where privateLayout = &#63; and iconImageId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
1479            *
1480            * @param privateLayout the private layout
1481            * @param iconImageId the icon image ID
1482            * @param retrieveFromCache whether to use the finder cache
1483            * @return the matching layout, or <code>null</code> if a matching layout could not be found
1484            * @throws SystemException if a system exception occurred
1485            */
1486            public com.liferay.portal.model.Layout fetchByP_I(boolean privateLayout,
1487                    long iconImageId, boolean retrieveFromCache)
1488                    throws com.liferay.portal.kernel.exception.SystemException;
1489    
1490            /**
1491            * Removes the layout where privateLayout = &#63; and iconImageId = &#63; from the database.
1492            *
1493            * @param privateLayout the private layout
1494            * @param iconImageId the icon image ID
1495            * @return the layout that was removed
1496            * @throws SystemException if a system exception occurred
1497            */
1498            public com.liferay.portal.model.Layout removeByP_I(boolean privateLayout,
1499                    long iconImageId)
1500                    throws com.liferay.portal.NoSuchLayoutException,
1501                            com.liferay.portal.kernel.exception.SystemException;
1502    
1503            /**
1504            * Returns the number of layouts where privateLayout = &#63; and iconImageId = &#63;.
1505            *
1506            * @param privateLayout the private layout
1507            * @param iconImageId the icon image ID
1508            * @return the number of matching layouts
1509            * @throws SystemException if a system exception occurred
1510            */
1511            public int countByP_I(boolean privateLayout, long iconImageId)
1512                    throws com.liferay.portal.kernel.exception.SystemException;
1513    
1514            /**
1515            * 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.
1516            *
1517            * @param groupId the group ID
1518            * @param privateLayout the private layout
1519            * @param layoutId the layout ID
1520            * @return the matching layout
1521            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
1522            * @throws SystemException if a system exception occurred
1523            */
1524            public com.liferay.portal.model.Layout findByG_P_L(long groupId,
1525                    boolean privateLayout, long layoutId)
1526                    throws com.liferay.portal.NoSuchLayoutException,
1527                            com.liferay.portal.kernel.exception.SystemException;
1528    
1529            /**
1530            * 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.
1531            *
1532            * @param groupId the group ID
1533            * @param privateLayout the private layout
1534            * @param layoutId the layout ID
1535            * @return the matching layout, or <code>null</code> if a matching layout could not be found
1536            * @throws SystemException if a system exception occurred
1537            */
1538            public com.liferay.portal.model.Layout fetchByG_P_L(long groupId,
1539                    boolean privateLayout, long layoutId)
1540                    throws com.liferay.portal.kernel.exception.SystemException;
1541    
1542            /**
1543            * 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.
1544            *
1545            * @param groupId the group ID
1546            * @param privateLayout the private layout
1547            * @param layoutId the layout ID
1548            * @param retrieveFromCache whether to use the finder cache
1549            * @return the matching layout, or <code>null</code> if a matching layout could not be found
1550            * @throws SystemException if a system exception occurred
1551            */
1552            public com.liferay.portal.model.Layout fetchByG_P_L(long groupId,
1553                    boolean privateLayout, long layoutId, boolean retrieveFromCache)
1554                    throws com.liferay.portal.kernel.exception.SystemException;
1555    
1556            /**
1557            * Removes the layout where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; from the database.
1558            *
1559            * @param groupId the group ID
1560            * @param privateLayout the private layout
1561            * @param layoutId the layout ID
1562            * @return the layout that was removed
1563            * @throws SystemException if a system exception occurred
1564            */
1565            public com.liferay.portal.model.Layout removeByG_P_L(long groupId,
1566                    boolean privateLayout, long layoutId)
1567                    throws com.liferay.portal.NoSuchLayoutException,
1568                            com.liferay.portal.kernel.exception.SystemException;
1569    
1570            /**
1571            * Returns the number of layouts where groupId = &#63; and privateLayout = &#63; and layoutId = &#63;.
1572            *
1573            * @param groupId the group ID
1574            * @param privateLayout the private layout
1575            * @param layoutId the layout ID
1576            * @return the number of matching layouts
1577            * @throws SystemException if a system exception occurred
1578            */
1579            public int countByG_P_L(long groupId, boolean privateLayout, long layoutId)
1580                    throws com.liferay.portal.kernel.exception.SystemException;
1581    
1582            /**
1583            * 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.
1584            *
1585            * @param groupId the group ID
1586            * @param privateLayout the private layout
1587            * @param friendlyURL the friendly u r l
1588            * @return the matching layout
1589            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
1590            * @throws SystemException if a system exception occurred
1591            */
1592            public com.liferay.portal.model.Layout findByG_P_F(long groupId,
1593                    boolean privateLayout, java.lang.String friendlyURL)
1594                    throws com.liferay.portal.NoSuchLayoutException,
1595                            com.liferay.portal.kernel.exception.SystemException;
1596    
1597            /**
1598            * 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.
1599            *
1600            * @param groupId the group ID
1601            * @param privateLayout the private layout
1602            * @param friendlyURL the friendly u r l
1603            * @return the matching layout, or <code>null</code> if a matching layout could not be found
1604            * @throws SystemException if a system exception occurred
1605            */
1606            public com.liferay.portal.model.Layout fetchByG_P_F(long groupId,
1607                    boolean privateLayout, java.lang.String friendlyURL)
1608                    throws com.liferay.portal.kernel.exception.SystemException;
1609    
1610            /**
1611            * 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.
1612            *
1613            * @param groupId the group ID
1614            * @param privateLayout the private layout
1615            * @param friendlyURL the friendly u r l
1616            * @param retrieveFromCache whether to use the finder cache
1617            * @return the matching layout, or <code>null</code> if a matching layout could not be found
1618            * @throws SystemException if a system exception occurred
1619            */
1620            public com.liferay.portal.model.Layout fetchByG_P_F(long groupId,
1621                    boolean privateLayout, java.lang.String friendlyURL,
1622                    boolean retrieveFromCache)
1623                    throws com.liferay.portal.kernel.exception.SystemException;
1624    
1625            /**
1626            * Removes the layout where groupId = &#63; and privateLayout = &#63; and friendlyURL = &#63; from the database.
1627            *
1628            * @param groupId the group ID
1629            * @param privateLayout the private layout
1630            * @param friendlyURL the friendly u r l
1631            * @return the layout that was removed
1632            * @throws SystemException if a system exception occurred
1633            */
1634            public com.liferay.portal.model.Layout removeByG_P_F(long groupId,
1635                    boolean privateLayout, java.lang.String friendlyURL)
1636                    throws com.liferay.portal.NoSuchLayoutException,
1637                            com.liferay.portal.kernel.exception.SystemException;
1638    
1639            /**
1640            * Returns the number of layouts where groupId = &#63; and privateLayout = &#63; and friendlyURL = &#63;.
1641            *
1642            * @param groupId the group ID
1643            * @param privateLayout the private layout
1644            * @param friendlyURL the friendly u r l
1645            * @return the number of matching layouts
1646            * @throws SystemException if a system exception occurred
1647            */
1648            public int countByG_P_F(long groupId, boolean privateLayout,
1649                    java.lang.String friendlyURL)
1650                    throws com.liferay.portal.kernel.exception.SystemException;
1651    
1652            /**
1653            * Returns all the layouts where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
1654            *
1655            * @param groupId the group ID
1656            * @param privateLayout the private layout
1657            * @param parentLayoutId the parent layout ID
1658            * @return the matching layouts
1659            * @throws SystemException if a system exception occurred
1660            */
1661            public java.util.List<com.liferay.portal.model.Layout> findByG_P_P(
1662                    long groupId, boolean privateLayout, long parentLayoutId)
1663                    throws com.liferay.portal.kernel.exception.SystemException;
1664    
1665            /**
1666            * Returns a range of all the layouts where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
1667            *
1668            * <p>
1669            * 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.
1670            * </p>
1671            *
1672            * @param groupId the group ID
1673            * @param privateLayout the private layout
1674            * @param parentLayoutId the parent layout ID
1675            * @param start the lower bound of the range of layouts
1676            * @param end the upper bound of the range of layouts (not inclusive)
1677            * @return the range of matching layouts
1678            * @throws SystemException if a system exception occurred
1679            */
1680            public java.util.List<com.liferay.portal.model.Layout> findByG_P_P(
1681                    long groupId, boolean privateLayout, long parentLayoutId, int start,
1682                    int end) throws com.liferay.portal.kernel.exception.SystemException;
1683    
1684            /**
1685            * Returns an ordered range of all the layouts where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
1686            *
1687            * <p>
1688            * 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.
1689            * </p>
1690            *
1691            * @param groupId the group ID
1692            * @param privateLayout the private layout
1693            * @param parentLayoutId the parent layout ID
1694            * @param start the lower bound of the range of layouts
1695            * @param end the upper bound of the range of layouts (not inclusive)
1696            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1697            * @return the ordered range of matching layouts
1698            * @throws SystemException if a system exception occurred
1699            */
1700            public java.util.List<com.liferay.portal.model.Layout> findByG_P_P(
1701                    long groupId, boolean privateLayout, long parentLayoutId, int start,
1702                    int end,
1703                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1704                    throws com.liferay.portal.kernel.exception.SystemException;
1705    
1706            /**
1707            * Returns the first layout in the ordered set where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
1708            *
1709            * @param groupId the group ID
1710            * @param privateLayout the private layout
1711            * @param parentLayoutId the parent layout ID
1712            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1713            * @return the first matching layout
1714            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
1715            * @throws SystemException if a system exception occurred
1716            */
1717            public com.liferay.portal.model.Layout findByG_P_P_First(long groupId,
1718                    boolean privateLayout, long parentLayoutId,
1719                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1720                    throws com.liferay.portal.NoSuchLayoutException,
1721                            com.liferay.portal.kernel.exception.SystemException;
1722    
1723            /**
1724            * Returns the first layout in the ordered set where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
1725            *
1726            * @param groupId the group ID
1727            * @param privateLayout the private layout
1728            * @param parentLayoutId the parent layout ID
1729            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1730            * @return the first matching layout, or <code>null</code> if a matching layout could not be found
1731            * @throws SystemException if a system exception occurred
1732            */
1733            public com.liferay.portal.model.Layout fetchByG_P_P_First(long groupId,
1734                    boolean privateLayout, long parentLayoutId,
1735                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1736                    throws com.liferay.portal.kernel.exception.SystemException;
1737    
1738            /**
1739            * Returns the last layout in the ordered set where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
1740            *
1741            * @param groupId the group ID
1742            * @param privateLayout the private layout
1743            * @param parentLayoutId the parent layout ID
1744            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1745            * @return the last matching layout
1746            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
1747            * @throws SystemException if a system exception occurred
1748            */
1749            public com.liferay.portal.model.Layout findByG_P_P_Last(long groupId,
1750                    boolean privateLayout, long parentLayoutId,
1751                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1752                    throws com.liferay.portal.NoSuchLayoutException,
1753                            com.liferay.portal.kernel.exception.SystemException;
1754    
1755            /**
1756            * Returns the last layout in the ordered set where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
1757            *
1758            * @param groupId the group ID
1759            * @param privateLayout the private layout
1760            * @param parentLayoutId the parent layout ID
1761            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1762            * @return the last matching layout, or <code>null</code> if a matching layout could not be found
1763            * @throws SystemException if a system exception occurred
1764            */
1765            public com.liferay.portal.model.Layout fetchByG_P_P_Last(long groupId,
1766                    boolean privateLayout, long parentLayoutId,
1767                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1768                    throws com.liferay.portal.kernel.exception.SystemException;
1769    
1770            /**
1771            * Returns the layouts before and after the current layout in the ordered set where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
1772            *
1773            * @param plid the primary key of the current layout
1774            * @param groupId the group ID
1775            * @param privateLayout the private layout
1776            * @param parentLayoutId the parent layout ID
1777            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1778            * @return the previous, current, and next layout
1779            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
1780            * @throws SystemException if a system exception occurred
1781            */
1782            public com.liferay.portal.model.Layout[] findByG_P_P_PrevAndNext(
1783                    long plid, long groupId, boolean privateLayout, long parentLayoutId,
1784                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1785                    throws com.liferay.portal.NoSuchLayoutException,
1786                            com.liferay.portal.kernel.exception.SystemException;
1787    
1788            /**
1789            * Returns all the layouts that the user has permission to view where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
1790            *
1791            * @param groupId the group ID
1792            * @param privateLayout the private layout
1793            * @param parentLayoutId the parent layout ID
1794            * @return the matching layouts that the user has permission to view
1795            * @throws SystemException if a system exception occurred
1796            */
1797            public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_P(
1798                    long groupId, boolean privateLayout, long parentLayoutId)
1799                    throws com.liferay.portal.kernel.exception.SystemException;
1800    
1801            /**
1802            * Returns a range of all the layouts that the user has permission to view where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
1803            *
1804            * <p>
1805            * 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.
1806            * </p>
1807            *
1808            * @param groupId the group ID
1809            * @param privateLayout the private layout
1810            * @param parentLayoutId the parent layout ID
1811            * @param start the lower bound of the range of layouts
1812            * @param end the upper bound of the range of layouts (not inclusive)
1813            * @return the range of matching layouts that the user has permission to view
1814            * @throws SystemException if a system exception occurred
1815            */
1816            public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_P(
1817                    long groupId, boolean privateLayout, long parentLayoutId, int start,
1818                    int end) throws com.liferay.portal.kernel.exception.SystemException;
1819    
1820            /**
1821            * Returns an ordered range of all the layouts that the user has permissions to view where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
1822            *
1823            * <p>
1824            * 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.
1825            * </p>
1826            *
1827            * @param groupId the group ID
1828            * @param privateLayout the private layout
1829            * @param parentLayoutId the parent layout ID
1830            * @param start the lower bound of the range of layouts
1831            * @param end the upper bound of the range of layouts (not inclusive)
1832            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1833            * @return the ordered range of matching layouts that the user has permission to view
1834            * @throws SystemException if a system exception occurred
1835            */
1836            public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_P(
1837                    long groupId, boolean privateLayout, long parentLayoutId, int start,
1838                    int end,
1839                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1840                    throws com.liferay.portal.kernel.exception.SystemException;
1841    
1842            /**
1843            * 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;.
1844            *
1845            * @param plid the primary key of the current layout
1846            * @param groupId the group ID
1847            * @param privateLayout the private layout
1848            * @param parentLayoutId the parent layout ID
1849            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1850            * @return the previous, current, and next layout
1851            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
1852            * @throws SystemException if a system exception occurred
1853            */
1854            public com.liferay.portal.model.Layout[] filterFindByG_P_P_PrevAndNext(
1855                    long plid, long groupId, boolean privateLayout, long parentLayoutId,
1856                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1857                    throws com.liferay.portal.NoSuchLayoutException,
1858                            com.liferay.portal.kernel.exception.SystemException;
1859    
1860            /**
1861            * Removes all the layouts where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63; from the database.
1862            *
1863            * @param groupId the group ID
1864            * @param privateLayout the private layout
1865            * @param parentLayoutId the parent layout ID
1866            * @throws SystemException if a system exception occurred
1867            */
1868            public void removeByG_P_P(long groupId, boolean privateLayout,
1869                    long parentLayoutId)
1870                    throws com.liferay.portal.kernel.exception.SystemException;
1871    
1872            /**
1873            * Returns the number of layouts where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
1874            *
1875            * @param groupId the group ID
1876            * @param privateLayout the private layout
1877            * @param parentLayoutId the parent layout ID
1878            * @return the number of matching layouts
1879            * @throws SystemException if a system exception occurred
1880            */
1881            public int countByG_P_P(long groupId, boolean privateLayout,
1882                    long parentLayoutId)
1883                    throws com.liferay.portal.kernel.exception.SystemException;
1884    
1885            /**
1886            * Returns the number of layouts that the user has permission to view where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63;.
1887            *
1888            * @param groupId the group ID
1889            * @param privateLayout the private layout
1890            * @param parentLayoutId the parent layout ID
1891            * @return the number of matching layouts that the user has permission to view
1892            * @throws SystemException if a system exception occurred
1893            */
1894            public int filterCountByG_P_P(long groupId, boolean privateLayout,
1895                    long parentLayoutId)
1896                    throws com.liferay.portal.kernel.exception.SystemException;
1897    
1898            /**
1899            * Returns all the layouts where groupId = &#63; and privateLayout = &#63; and type = &#63;.
1900            *
1901            * @param groupId the group ID
1902            * @param privateLayout the private layout
1903            * @param type the type
1904            * @return the matching layouts
1905            * @throws SystemException if a system exception occurred
1906            */
1907            public java.util.List<com.liferay.portal.model.Layout> findByG_P_T(
1908                    long groupId, boolean privateLayout, java.lang.String type)
1909                    throws com.liferay.portal.kernel.exception.SystemException;
1910    
1911            /**
1912            * Returns a range of all the layouts where groupId = &#63; and privateLayout = &#63; and type = &#63;.
1913            *
1914            * <p>
1915            * 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.
1916            * </p>
1917            *
1918            * @param groupId the group ID
1919            * @param privateLayout the private layout
1920            * @param type the type
1921            * @param start the lower bound of the range of layouts
1922            * @param end the upper bound of the range of layouts (not inclusive)
1923            * @return the range of matching layouts
1924            * @throws SystemException if a system exception occurred
1925            */
1926            public java.util.List<com.liferay.portal.model.Layout> findByG_P_T(
1927                    long groupId, boolean privateLayout, java.lang.String type, int start,
1928                    int end) throws com.liferay.portal.kernel.exception.SystemException;
1929    
1930            /**
1931            * Returns an ordered range of all the layouts where groupId = &#63; and privateLayout = &#63; and type = &#63;.
1932            *
1933            * <p>
1934            * 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.
1935            * </p>
1936            *
1937            * @param groupId the group ID
1938            * @param privateLayout the private layout
1939            * @param type the type
1940            * @param start the lower bound of the range of layouts
1941            * @param end the upper bound of the range of layouts (not inclusive)
1942            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1943            * @return the ordered range of matching layouts
1944            * @throws SystemException if a system exception occurred
1945            */
1946            public java.util.List<com.liferay.portal.model.Layout> findByG_P_T(
1947                    long groupId, boolean privateLayout, java.lang.String type, int start,
1948                    int end,
1949                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1950                    throws com.liferay.portal.kernel.exception.SystemException;
1951    
1952            /**
1953            * Returns the first layout in the ordered set where groupId = &#63; and privateLayout = &#63; and type = &#63;.
1954            *
1955            * @param groupId the group ID
1956            * @param privateLayout the private layout
1957            * @param type the type
1958            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1959            * @return the first matching layout
1960            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
1961            * @throws SystemException if a system exception occurred
1962            */
1963            public com.liferay.portal.model.Layout findByG_P_T_First(long groupId,
1964                    boolean privateLayout, java.lang.String type,
1965                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1966                    throws com.liferay.portal.NoSuchLayoutException,
1967                            com.liferay.portal.kernel.exception.SystemException;
1968    
1969            /**
1970            * Returns the first layout in the ordered set where groupId = &#63; and privateLayout = &#63; and type = &#63;.
1971            *
1972            * @param groupId the group ID
1973            * @param privateLayout the private layout
1974            * @param type the type
1975            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1976            * @return the first matching layout, or <code>null</code> if a matching layout could not be found
1977            * @throws SystemException if a system exception occurred
1978            */
1979            public com.liferay.portal.model.Layout fetchByG_P_T_First(long groupId,
1980                    boolean privateLayout, java.lang.String type,
1981                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1982                    throws com.liferay.portal.kernel.exception.SystemException;
1983    
1984            /**
1985            * Returns the last layout in the ordered set where groupId = &#63; and privateLayout = &#63; and type = &#63;.
1986            *
1987            * @param groupId the group ID
1988            * @param privateLayout the private layout
1989            * @param type the type
1990            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1991            * @return the last matching layout
1992            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
1993            * @throws SystemException if a system exception occurred
1994            */
1995            public com.liferay.portal.model.Layout findByG_P_T_Last(long groupId,
1996                    boolean privateLayout, java.lang.String type,
1997                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1998                    throws com.liferay.portal.NoSuchLayoutException,
1999                            com.liferay.portal.kernel.exception.SystemException;
2000    
2001            /**
2002            * Returns the last layout in the ordered set where groupId = &#63; and privateLayout = &#63; and type = &#63;.
2003            *
2004            * @param groupId the group ID
2005            * @param privateLayout the private layout
2006            * @param type the type
2007            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2008            * @return the last matching layout, or <code>null</code> if a matching layout could not be found
2009            * @throws SystemException if a system exception occurred
2010            */
2011            public com.liferay.portal.model.Layout fetchByG_P_T_Last(long groupId,
2012                    boolean privateLayout, java.lang.String type,
2013                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2014                    throws com.liferay.portal.kernel.exception.SystemException;
2015    
2016            /**
2017            * Returns the layouts before and after the current layout in the ordered set where groupId = &#63; and privateLayout = &#63; and type = &#63;.
2018            *
2019            * @param plid the primary key of the current layout
2020            * @param groupId the group ID
2021            * @param privateLayout the private layout
2022            * @param type the type
2023            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2024            * @return the previous, current, and next layout
2025            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
2026            * @throws SystemException if a system exception occurred
2027            */
2028            public com.liferay.portal.model.Layout[] findByG_P_T_PrevAndNext(
2029                    long plid, long groupId, boolean privateLayout, java.lang.String type,
2030                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2031                    throws com.liferay.portal.NoSuchLayoutException,
2032                            com.liferay.portal.kernel.exception.SystemException;
2033    
2034            /**
2035            * Returns all the layouts that the user has permission to view where groupId = &#63; and privateLayout = &#63; and type = &#63;.
2036            *
2037            * @param groupId the group ID
2038            * @param privateLayout the private layout
2039            * @param type the type
2040            * @return the matching layouts that the user has permission to view
2041            * @throws SystemException if a system exception occurred
2042            */
2043            public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_T(
2044                    long groupId, boolean privateLayout, java.lang.String type)
2045                    throws com.liferay.portal.kernel.exception.SystemException;
2046    
2047            /**
2048            * Returns a range of all the layouts that the user has permission to view where groupId = &#63; and privateLayout = &#63; and type = &#63;.
2049            *
2050            * <p>
2051            * 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.
2052            * </p>
2053            *
2054            * @param groupId the group ID
2055            * @param privateLayout the private layout
2056            * @param type the type
2057            * @param start the lower bound of the range of layouts
2058            * @param end the upper bound of the range of layouts (not inclusive)
2059            * @return the range of matching layouts that the user has permission to view
2060            * @throws SystemException if a system exception occurred
2061            */
2062            public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_T(
2063                    long groupId, boolean privateLayout, java.lang.String type, int start,
2064                    int end) throws com.liferay.portal.kernel.exception.SystemException;
2065    
2066            /**
2067            * Returns an ordered range of all the layouts that the user has permissions to view where groupId = &#63; and privateLayout = &#63; and type = &#63;.
2068            *
2069            * <p>
2070            * 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.
2071            * </p>
2072            *
2073            * @param groupId the group ID
2074            * @param privateLayout the private layout
2075            * @param type the type
2076            * @param start the lower bound of the range of layouts
2077            * @param end the upper bound of the range of layouts (not inclusive)
2078            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2079            * @return the ordered range of matching layouts that the user has permission to view
2080            * @throws SystemException if a system exception occurred
2081            */
2082            public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_T(
2083                    long groupId, boolean privateLayout, java.lang.String type, int start,
2084                    int end,
2085                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2086                    throws com.liferay.portal.kernel.exception.SystemException;
2087    
2088            /**
2089            * 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;.
2090            *
2091            * @param plid the primary key of the current layout
2092            * @param groupId the group ID
2093            * @param privateLayout the private layout
2094            * @param type the type
2095            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2096            * @return the previous, current, and next layout
2097            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
2098            * @throws SystemException if a system exception occurred
2099            */
2100            public com.liferay.portal.model.Layout[] filterFindByG_P_T_PrevAndNext(
2101                    long plid, long groupId, boolean privateLayout, java.lang.String type,
2102                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2103                    throws com.liferay.portal.NoSuchLayoutException,
2104                            com.liferay.portal.kernel.exception.SystemException;
2105    
2106            /**
2107            * Removes all the layouts where groupId = &#63; and privateLayout = &#63; and type = &#63; from the database.
2108            *
2109            * @param groupId the group ID
2110            * @param privateLayout the private layout
2111            * @param type the type
2112            * @throws SystemException if a system exception occurred
2113            */
2114            public void removeByG_P_T(long groupId, boolean privateLayout,
2115                    java.lang.String type)
2116                    throws com.liferay.portal.kernel.exception.SystemException;
2117    
2118            /**
2119            * Returns the number of layouts where groupId = &#63; and privateLayout = &#63; and type = &#63;.
2120            *
2121            * @param groupId the group ID
2122            * @param privateLayout the private layout
2123            * @param type the type
2124            * @return the number of matching layouts
2125            * @throws SystemException if a system exception occurred
2126            */
2127            public int countByG_P_T(long groupId, boolean privateLayout,
2128                    java.lang.String type)
2129                    throws com.liferay.portal.kernel.exception.SystemException;
2130    
2131            /**
2132            * Returns the number of layouts that the user has permission to view where groupId = &#63; and privateLayout = &#63; and type = &#63;.
2133            *
2134            * @param groupId the group ID
2135            * @param privateLayout the private layout
2136            * @param type the type
2137            * @return the number of matching layouts that the user has permission to view
2138            * @throws SystemException if a system exception occurred
2139            */
2140            public int filterCountByG_P_T(long groupId, boolean privateLayout,
2141                    java.lang.String type)
2142                    throws com.liferay.portal.kernel.exception.SystemException;
2143    
2144            /**
2145            * 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.
2146            *
2147            * @param groupId the group ID
2148            * @param privateLayout the private layout
2149            * @param sourcePrototypeLayoutUuid the source prototype layout uuid
2150            * @return the matching layout
2151            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
2152            * @throws SystemException if a system exception occurred
2153            */
2154            public com.liferay.portal.model.Layout findByG_P_SPLU(long groupId,
2155                    boolean privateLayout, java.lang.String sourcePrototypeLayoutUuid)
2156                    throws com.liferay.portal.NoSuchLayoutException,
2157                            com.liferay.portal.kernel.exception.SystemException;
2158    
2159            /**
2160            * 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.
2161            *
2162            * @param groupId the group ID
2163            * @param privateLayout the private layout
2164            * @param sourcePrototypeLayoutUuid the source prototype layout uuid
2165            * @return the matching layout, or <code>null</code> if a matching layout could not be found
2166            * @throws SystemException if a system exception occurred
2167            */
2168            public com.liferay.portal.model.Layout fetchByG_P_SPLU(long groupId,
2169                    boolean privateLayout, java.lang.String sourcePrototypeLayoutUuid)
2170                    throws com.liferay.portal.kernel.exception.SystemException;
2171    
2172            /**
2173            * 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.
2174            *
2175            * @param groupId the group ID
2176            * @param privateLayout the private layout
2177            * @param sourcePrototypeLayoutUuid the source prototype layout uuid
2178            * @param retrieveFromCache whether to use the finder cache
2179            * @return the matching layout, or <code>null</code> if a matching layout could not be found
2180            * @throws SystemException if a system exception occurred
2181            */
2182            public com.liferay.portal.model.Layout fetchByG_P_SPLU(long groupId,
2183                    boolean privateLayout, java.lang.String sourcePrototypeLayoutUuid,
2184                    boolean retrieveFromCache)
2185                    throws com.liferay.portal.kernel.exception.SystemException;
2186    
2187            /**
2188            * Removes the layout where groupId = &#63; and privateLayout = &#63; and sourcePrototypeLayoutUuid = &#63; from the database.
2189            *
2190            * @param groupId the group ID
2191            * @param privateLayout the private layout
2192            * @param sourcePrototypeLayoutUuid the source prototype layout uuid
2193            * @return the layout that was removed
2194            * @throws SystemException if a system exception occurred
2195            */
2196            public com.liferay.portal.model.Layout removeByG_P_SPLU(long groupId,
2197                    boolean privateLayout, java.lang.String sourcePrototypeLayoutUuid)
2198                    throws com.liferay.portal.NoSuchLayoutException,
2199                            com.liferay.portal.kernel.exception.SystemException;
2200    
2201            /**
2202            * Returns the number of layouts where groupId = &#63; and privateLayout = &#63; and sourcePrototypeLayoutUuid = &#63;.
2203            *
2204            * @param groupId the group ID
2205            * @param privateLayout the private layout
2206            * @param sourcePrototypeLayoutUuid the source prototype layout uuid
2207            * @return the number of matching layouts
2208            * @throws SystemException if a system exception occurred
2209            */
2210            public int countByG_P_SPLU(long groupId, boolean privateLayout,
2211                    java.lang.String sourcePrototypeLayoutUuid)
2212                    throws com.liferay.portal.kernel.exception.SystemException;
2213    
2214            /**
2215            * Returns all the layouts where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63; and priority &le; &#63;.
2216            *
2217            * @param groupId the group ID
2218            * @param privateLayout the private layout
2219            * @param parentLayoutId the parent layout ID
2220            * @param priority the priority
2221            * @return the matching layouts
2222            * @throws SystemException if a system exception occurred
2223            */
2224            public java.util.List<com.liferay.portal.model.Layout> findByG_P_P_LtP(
2225                    long groupId, boolean privateLayout, long parentLayoutId, int priority)
2226                    throws com.liferay.portal.kernel.exception.SystemException;
2227    
2228            /**
2229            * Returns a range of all the layouts where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63; and priority &le; &#63;.
2230            *
2231            * <p>
2232            * 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.
2233            * </p>
2234            *
2235            * @param groupId the group ID
2236            * @param privateLayout the private layout
2237            * @param parentLayoutId the parent layout ID
2238            * @param priority the priority
2239            * @param start the lower bound of the range of layouts
2240            * @param end the upper bound of the range of layouts (not inclusive)
2241            * @return the range of matching layouts
2242            * @throws SystemException if a system exception occurred
2243            */
2244            public java.util.List<com.liferay.portal.model.Layout> findByG_P_P_LtP(
2245                    long groupId, boolean privateLayout, long parentLayoutId, int priority,
2246                    int start, int end)
2247                    throws com.liferay.portal.kernel.exception.SystemException;
2248    
2249            /**
2250            * Returns an ordered range of all the layouts where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63; and priority &le; &#63;.
2251            *
2252            * <p>
2253            * 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.
2254            * </p>
2255            *
2256            * @param groupId the group ID
2257            * @param privateLayout the private layout
2258            * @param parentLayoutId the parent layout ID
2259            * @param priority the priority
2260            * @param start the lower bound of the range of layouts
2261            * @param end the upper bound of the range of layouts (not inclusive)
2262            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2263            * @return the ordered range of matching layouts
2264            * @throws SystemException if a system exception occurred
2265            */
2266            public java.util.List<com.liferay.portal.model.Layout> findByG_P_P_LtP(
2267                    long groupId, boolean privateLayout, long parentLayoutId, int priority,
2268                    int start, int end,
2269                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2270                    throws com.liferay.portal.kernel.exception.SystemException;
2271    
2272            /**
2273            * Returns the first layout in the ordered set where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63; and priority &le; &#63;.
2274            *
2275            * @param groupId the group ID
2276            * @param privateLayout the private layout
2277            * @param parentLayoutId the parent layout ID
2278            * @param priority the priority
2279            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2280            * @return the first matching layout
2281            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
2282            * @throws SystemException if a system exception occurred
2283            */
2284            public com.liferay.portal.model.Layout findByG_P_P_LtP_First(long groupId,
2285                    boolean privateLayout, long parentLayoutId, int priority,
2286                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2287                    throws com.liferay.portal.NoSuchLayoutException,
2288                            com.liferay.portal.kernel.exception.SystemException;
2289    
2290            /**
2291            * Returns the first layout in the ordered set where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63; and priority &le; &#63;.
2292            *
2293            * @param groupId the group ID
2294            * @param privateLayout the private layout
2295            * @param parentLayoutId the parent layout ID
2296            * @param priority the priority
2297            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2298            * @return the first matching layout, or <code>null</code> if a matching layout could not be found
2299            * @throws SystemException if a system exception occurred
2300            */
2301            public com.liferay.portal.model.Layout fetchByG_P_P_LtP_First(
2302                    long groupId, boolean privateLayout, long parentLayoutId, int priority,
2303                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2304                    throws com.liferay.portal.kernel.exception.SystemException;
2305    
2306            /**
2307            * Returns the last layout in the ordered set where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63; and priority &le; &#63;.
2308            *
2309            * @param groupId the group ID
2310            * @param privateLayout the private layout
2311            * @param parentLayoutId the parent layout ID
2312            * @param priority the priority
2313            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2314            * @return the last matching layout
2315            * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found
2316            * @throws SystemException if a system exception occurred
2317            */
2318            public com.liferay.portal.model.Layout findByG_P_P_LtP_Last(long groupId,
2319                    boolean privateLayout, long parentLayoutId, int priority,
2320                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2321                    throws com.liferay.portal.NoSuchLayoutException,
2322                            com.liferay.portal.kernel.exception.SystemException;
2323    
2324            /**
2325            * Returns the last layout in the ordered set where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63; and priority &le; &#63;.
2326            *
2327            * @param groupId the group ID
2328            * @param privateLayout the private layout
2329            * @param parentLayoutId the parent layout ID
2330            * @param priority the priority
2331            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2332            * @return the last matching layout, or <code>null</code> if a matching layout could not be found
2333            * @throws SystemException if a system exception occurred
2334            */
2335            public com.liferay.portal.model.Layout fetchByG_P_P_LtP_Last(long groupId,
2336                    boolean privateLayout, long parentLayoutId, int priority,
2337                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2338                    throws com.liferay.portal.kernel.exception.SystemException;
2339    
2340            /**
2341            * Returns the layouts before and after the current layout in the ordered set where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63; and priority &le; &#63;.
2342            *
2343            * @param plid the primary key of the current layout
2344            * @param groupId the group ID
2345            * @param privateLayout the private layout
2346            * @param parentLayoutId the parent layout ID
2347            * @param priority the priority
2348            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2349            * @return the previous, current, and next layout
2350            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
2351            * @throws SystemException if a system exception occurred
2352            */
2353            public com.liferay.portal.model.Layout[] findByG_P_P_LtP_PrevAndNext(
2354                    long plid, long groupId, boolean privateLayout, long parentLayoutId,
2355                    int priority,
2356                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2357                    throws com.liferay.portal.NoSuchLayoutException,
2358                            com.liferay.portal.kernel.exception.SystemException;
2359    
2360            /**
2361            * Returns all the layouts that the user has permission to view where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63; and priority &le; &#63;.
2362            *
2363            * @param groupId the group ID
2364            * @param privateLayout the private layout
2365            * @param parentLayoutId the parent layout ID
2366            * @param priority the priority
2367            * @return the matching layouts that the user has permission to view
2368            * @throws SystemException if a system exception occurred
2369            */
2370            public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_P_LtP(
2371                    long groupId, boolean privateLayout, long parentLayoutId, int priority)
2372                    throws com.liferay.portal.kernel.exception.SystemException;
2373    
2374            /**
2375            * Returns a range of all the layouts that the user has permission to view where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63; and priority &le; &#63;.
2376            *
2377            * <p>
2378            * 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.
2379            * </p>
2380            *
2381            * @param groupId the group ID
2382            * @param privateLayout the private layout
2383            * @param parentLayoutId the parent layout ID
2384            * @param priority the priority
2385            * @param start the lower bound of the range of layouts
2386            * @param end the upper bound of the range of layouts (not inclusive)
2387            * @return the range of matching layouts that the user has permission to view
2388            * @throws SystemException if a system exception occurred
2389            */
2390            public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_P_LtP(
2391                    long groupId, boolean privateLayout, long parentLayoutId, int priority,
2392                    int start, int end)
2393                    throws com.liferay.portal.kernel.exception.SystemException;
2394    
2395            /**
2396            * Returns an ordered range of all the layouts that the user has permissions to view where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63; and priority &le; &#63;.
2397            *
2398            * <p>
2399            * 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.
2400            * </p>
2401            *
2402            * @param groupId the group ID
2403            * @param privateLayout the private layout
2404            * @param parentLayoutId the parent layout ID
2405            * @param priority the priority
2406            * @param start the lower bound of the range of layouts
2407            * @param end the upper bound of the range of layouts (not inclusive)
2408            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2409            * @return the ordered range of matching layouts that the user has permission to view
2410            * @throws SystemException if a system exception occurred
2411            */
2412            public java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_P_LtP(
2413                    long groupId, boolean privateLayout, long parentLayoutId, int priority,
2414                    int start, int end,
2415                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2416                    throws com.liferay.portal.kernel.exception.SystemException;
2417    
2418            /**
2419            * 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; and priority &le; &#63;.
2420            *
2421            * @param plid the primary key of the current layout
2422            * @param groupId the group ID
2423            * @param privateLayout the private layout
2424            * @param parentLayoutId the parent layout ID
2425            * @param priority the priority
2426            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2427            * @return the previous, current, and next layout
2428            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
2429            * @throws SystemException if a system exception occurred
2430            */
2431            public com.liferay.portal.model.Layout[] filterFindByG_P_P_LtP_PrevAndNext(
2432                    long plid, long groupId, boolean privateLayout, long parentLayoutId,
2433                    int priority,
2434                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2435                    throws com.liferay.portal.NoSuchLayoutException,
2436                            com.liferay.portal.kernel.exception.SystemException;
2437    
2438            /**
2439            * Removes all the layouts where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63; and priority &le; &#63; from the database.
2440            *
2441            * @param groupId the group ID
2442            * @param privateLayout the private layout
2443            * @param parentLayoutId the parent layout ID
2444            * @param priority the priority
2445            * @throws SystemException if a system exception occurred
2446            */
2447            public void removeByG_P_P_LtP(long groupId, boolean privateLayout,
2448                    long parentLayoutId, int priority)
2449                    throws com.liferay.portal.kernel.exception.SystemException;
2450    
2451            /**
2452            * Returns the number of layouts where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63; and priority &le; &#63;.
2453            *
2454            * @param groupId the group ID
2455            * @param privateLayout the private layout
2456            * @param parentLayoutId the parent layout ID
2457            * @param priority the priority
2458            * @return the number of matching layouts
2459            * @throws SystemException if a system exception occurred
2460            */
2461            public int countByG_P_P_LtP(long groupId, boolean privateLayout,
2462                    long parentLayoutId, int priority)
2463                    throws com.liferay.portal.kernel.exception.SystemException;
2464    
2465            /**
2466            * Returns the number of layouts that the user has permission to view where groupId = &#63; and privateLayout = &#63; and parentLayoutId = &#63; and priority &le; &#63;.
2467            *
2468            * @param groupId the group ID
2469            * @param privateLayout the private layout
2470            * @param parentLayoutId the parent layout ID
2471            * @param priority the priority
2472            * @return the number of matching layouts that the user has permission to view
2473            * @throws SystemException if a system exception occurred
2474            */
2475            public int filterCountByG_P_P_LtP(long groupId, boolean privateLayout,
2476                    long parentLayoutId, int priority)
2477                    throws com.liferay.portal.kernel.exception.SystemException;
2478    
2479            /**
2480            * Caches the layout in the entity cache if it is enabled.
2481            *
2482            * @param layout the layout
2483            */
2484            public void cacheResult(com.liferay.portal.model.Layout layout);
2485    
2486            /**
2487            * Caches the layouts in the entity cache if it is enabled.
2488            *
2489            * @param layouts the layouts
2490            */
2491            public void cacheResult(
2492                    java.util.List<com.liferay.portal.model.Layout> layouts);
2493    
2494            /**
2495            * Creates a new layout with the primary key. Does not add the layout to the database.
2496            *
2497            * @param plid the primary key for the new layout
2498            * @return the new layout
2499            */
2500            public com.liferay.portal.model.Layout create(long plid);
2501    
2502            /**
2503            * Removes the layout with the primary key from the database. Also notifies the appropriate model listeners.
2504            *
2505            * @param plid the primary key of the layout
2506            * @return the layout that was removed
2507            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
2508            * @throws SystemException if a system exception occurred
2509            */
2510            public com.liferay.portal.model.Layout remove(long plid)
2511                    throws com.liferay.portal.NoSuchLayoutException,
2512                            com.liferay.portal.kernel.exception.SystemException;
2513    
2514            public com.liferay.portal.model.Layout updateImpl(
2515                    com.liferay.portal.model.Layout layout)
2516                    throws com.liferay.portal.kernel.exception.SystemException;
2517    
2518            /**
2519            * Returns the layout with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found.
2520            *
2521            * @param plid the primary key of the layout
2522            * @return the layout
2523            * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found
2524            * @throws SystemException if a system exception occurred
2525            */
2526            public com.liferay.portal.model.Layout findByPrimaryKey(long plid)
2527                    throws com.liferay.portal.NoSuchLayoutException,
2528                            com.liferay.portal.kernel.exception.SystemException;
2529    
2530            /**
2531            * Returns the layout with the primary key or returns <code>null</code> if it could not be found.
2532            *
2533            * @param plid the primary key of the layout
2534            * @return the layout, or <code>null</code> if a layout with the primary key could not be found
2535            * @throws SystemException if a system exception occurred
2536            */
2537            public com.liferay.portal.model.Layout fetchByPrimaryKey(long plid)
2538                    throws com.liferay.portal.kernel.exception.SystemException;
2539    
2540            /**
2541            * Returns all the layouts.
2542            *
2543            * @return the layouts
2544            * @throws SystemException if a system exception occurred
2545            */
2546            public java.util.List<com.liferay.portal.model.Layout> findAll()
2547                    throws com.liferay.portal.kernel.exception.SystemException;
2548    
2549            /**
2550            * Returns a range of all the layouts.
2551            *
2552            * <p>
2553            * 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.
2554            * </p>
2555            *
2556            * @param start the lower bound of the range of layouts
2557            * @param end the upper bound of the range of layouts (not inclusive)
2558            * @return the range of layouts
2559            * @throws SystemException if a system exception occurred
2560            */
2561            public java.util.List<com.liferay.portal.model.Layout> findAll(int start,
2562                    int end) throws com.liferay.portal.kernel.exception.SystemException;
2563    
2564            /**
2565            * Returns an ordered range of all the layouts.
2566            *
2567            * <p>
2568            * 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.
2569            * </p>
2570            *
2571            * @param start the lower bound of the range of layouts
2572            * @param end the upper bound of the range of layouts (not inclusive)
2573            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2574            * @return the ordered range of layouts
2575            * @throws SystemException if a system exception occurred
2576            */
2577            public java.util.List<com.liferay.portal.model.Layout> findAll(int start,
2578                    int end,
2579                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2580                    throws com.liferay.portal.kernel.exception.SystemException;
2581    
2582            /**
2583            * Removes all the layouts from the database.
2584            *
2585            * @throws SystemException if a system exception occurred
2586            */
2587            public void removeAll()
2588                    throws com.liferay.portal.kernel.exception.SystemException;
2589    
2590            /**
2591            * Returns the number of layouts.
2592            *
2593            * @return the number of layouts
2594            * @throws SystemException if a system exception occurred
2595            */
2596            public int countAll()
2597                    throws com.liferay.portal.kernel.exception.SystemException;
2598    }