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