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