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