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