001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.model.LayoutBranch;
020    
021    /**
022     * The persistence interface for the layout branch service.
023     *
024     * <p>
025     * Caching information and settings can be found in <code>portal.properties</code>
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see LayoutBranchPersistenceImpl
030     * @see LayoutBranchUtil
031     * @generated
032     */
033    @ProviderType
034    public interface LayoutBranchPersistence extends BasePersistence<LayoutBranch> {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify or reference this interface directly. Always use {@link LayoutBranchUtil} to access the layout branch persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
039             */
040    
041            /**
042            * Returns all the layout branchs where layoutSetBranchId = &#63;.
043            *
044            * @param layoutSetBranchId the layout set branch ID
045            * @return the matching layout branchs
046            */
047            public java.util.List<com.liferay.portal.model.LayoutBranch> findByLayoutSetBranchId(
048                    long layoutSetBranchId);
049    
050            /**
051            * Returns a range of all the layout branchs where layoutSetBranchId = &#63;.
052            *
053            * <p>
054            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutBranchModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
055            * </p>
056            *
057            * @param layoutSetBranchId the layout set branch ID
058            * @param start the lower bound of the range of layout branchs
059            * @param end the upper bound of the range of layout branchs (not inclusive)
060            * @return the range of matching layout branchs
061            */
062            public java.util.List<com.liferay.portal.model.LayoutBranch> findByLayoutSetBranchId(
063                    long layoutSetBranchId, int start, int end);
064    
065            /**
066            * Returns an ordered range of all the layout branchs where layoutSetBranchId = &#63;.
067            *
068            * <p>
069            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutBranchModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
070            * </p>
071            *
072            * @param layoutSetBranchId the layout set branch ID
073            * @param start the lower bound of the range of layout branchs
074            * @param end the upper bound of the range of layout branchs (not inclusive)
075            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
076            * @return the ordered range of matching layout branchs
077            */
078            public java.util.List<com.liferay.portal.model.LayoutBranch> findByLayoutSetBranchId(
079                    long layoutSetBranchId, int start, int end,
080                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator);
081    
082            /**
083            * Returns the first layout branch in the ordered set where layoutSetBranchId = &#63;.
084            *
085            * @param layoutSetBranchId the layout set branch ID
086            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
087            * @return the first matching layout branch
088            * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found
089            */
090            public com.liferay.portal.model.LayoutBranch findByLayoutSetBranchId_First(
091                    long layoutSetBranchId,
092                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator)
093                    throws com.liferay.portal.NoSuchLayoutBranchException;
094    
095            /**
096            * Returns the first layout branch in the ordered set where layoutSetBranchId = &#63;.
097            *
098            * @param layoutSetBranchId the layout set branch ID
099            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
100            * @return the first matching layout branch, or <code>null</code> if a matching layout branch could not be found
101            */
102            public com.liferay.portal.model.LayoutBranch fetchByLayoutSetBranchId_First(
103                    long layoutSetBranchId,
104                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator);
105    
106            /**
107            * Returns the last layout branch in the ordered set where layoutSetBranchId = &#63;.
108            *
109            * @param layoutSetBranchId the layout set branch ID
110            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
111            * @return the last matching layout branch
112            * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found
113            */
114            public com.liferay.portal.model.LayoutBranch findByLayoutSetBranchId_Last(
115                    long layoutSetBranchId,
116                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator)
117                    throws com.liferay.portal.NoSuchLayoutBranchException;
118    
119            /**
120            * Returns the last layout branch in the ordered set where layoutSetBranchId = &#63;.
121            *
122            * @param layoutSetBranchId the layout set branch ID
123            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
124            * @return the last matching layout branch, or <code>null</code> if a matching layout branch could not be found
125            */
126            public com.liferay.portal.model.LayoutBranch fetchByLayoutSetBranchId_Last(
127                    long layoutSetBranchId,
128                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator);
129    
130            /**
131            * Returns the layout branchs before and after the current layout branch in the ordered set where layoutSetBranchId = &#63;.
132            *
133            * @param layoutBranchId the primary key of the current layout branch
134            * @param layoutSetBranchId the layout set branch ID
135            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
136            * @return the previous, current, and next layout branch
137            * @throws com.liferay.portal.NoSuchLayoutBranchException if a layout branch with the primary key could not be found
138            */
139            public com.liferay.portal.model.LayoutBranch[] findByLayoutSetBranchId_PrevAndNext(
140                    long layoutBranchId, long layoutSetBranchId,
141                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator)
142                    throws com.liferay.portal.NoSuchLayoutBranchException;
143    
144            /**
145            * Removes all the layout branchs where layoutSetBranchId = &#63; from the database.
146            *
147            * @param layoutSetBranchId the layout set branch ID
148            */
149            public void removeByLayoutSetBranchId(long layoutSetBranchId);
150    
151            /**
152            * Returns the number of layout branchs where layoutSetBranchId = &#63;.
153            *
154            * @param layoutSetBranchId the layout set branch ID
155            * @return the number of matching layout branchs
156            */
157            public int countByLayoutSetBranchId(long layoutSetBranchId);
158    
159            /**
160            * Returns all the layout branchs where layoutSetBranchId = &#63; and plid = &#63;.
161            *
162            * @param layoutSetBranchId the layout set branch ID
163            * @param plid the plid
164            * @return the matching layout branchs
165            */
166            public java.util.List<com.liferay.portal.model.LayoutBranch> findByL_P(
167                    long layoutSetBranchId, long plid);
168    
169            /**
170            * Returns a range of all the layout branchs where layoutSetBranchId = &#63; and plid = &#63;.
171            *
172            * <p>
173            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutBranchModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
174            * </p>
175            *
176            * @param layoutSetBranchId the layout set branch ID
177            * @param plid the plid
178            * @param start the lower bound of the range of layout branchs
179            * @param end the upper bound of the range of layout branchs (not inclusive)
180            * @return the range of matching layout branchs
181            */
182            public java.util.List<com.liferay.portal.model.LayoutBranch> findByL_P(
183                    long layoutSetBranchId, long plid, int start, int end);
184    
185            /**
186            * Returns an ordered range of all the layout branchs where layoutSetBranchId = &#63; and plid = &#63;.
187            *
188            * <p>
189            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutBranchModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
190            * </p>
191            *
192            * @param layoutSetBranchId the layout set branch ID
193            * @param plid the plid
194            * @param start the lower bound of the range of layout branchs
195            * @param end the upper bound of the range of layout branchs (not inclusive)
196            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
197            * @return the ordered range of matching layout branchs
198            */
199            public java.util.List<com.liferay.portal.model.LayoutBranch> findByL_P(
200                    long layoutSetBranchId, long plid, int start, int end,
201                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator);
202    
203            /**
204            * Returns the first layout branch in the ordered set where layoutSetBranchId = &#63; and plid = &#63;.
205            *
206            * @param layoutSetBranchId the layout set branch ID
207            * @param plid the plid
208            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
209            * @return the first matching layout branch
210            * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found
211            */
212            public com.liferay.portal.model.LayoutBranch findByL_P_First(
213                    long layoutSetBranchId, long plid,
214                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator)
215                    throws com.liferay.portal.NoSuchLayoutBranchException;
216    
217            /**
218            * Returns the first layout branch in the ordered set where layoutSetBranchId = &#63; and plid = &#63;.
219            *
220            * @param layoutSetBranchId the layout set branch ID
221            * @param plid the plid
222            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
223            * @return the first matching layout branch, or <code>null</code> if a matching layout branch could not be found
224            */
225            public com.liferay.portal.model.LayoutBranch fetchByL_P_First(
226                    long layoutSetBranchId, long plid,
227                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator);
228    
229            /**
230            * Returns the last layout branch in the ordered set where layoutSetBranchId = &#63; and plid = &#63;.
231            *
232            * @param layoutSetBranchId the layout set branch ID
233            * @param plid the plid
234            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
235            * @return the last matching layout branch
236            * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found
237            */
238            public com.liferay.portal.model.LayoutBranch findByL_P_Last(
239                    long layoutSetBranchId, long plid,
240                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator)
241                    throws com.liferay.portal.NoSuchLayoutBranchException;
242    
243            /**
244            * Returns the last layout branch in the ordered set where layoutSetBranchId = &#63; and plid = &#63;.
245            *
246            * @param layoutSetBranchId the layout set branch ID
247            * @param plid the plid
248            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
249            * @return the last matching layout branch, or <code>null</code> if a matching layout branch could not be found
250            */
251            public com.liferay.portal.model.LayoutBranch fetchByL_P_Last(
252                    long layoutSetBranchId, long plid,
253                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator);
254    
255            /**
256            * Returns the layout branchs before and after the current layout branch in the ordered set where layoutSetBranchId = &#63; and plid = &#63;.
257            *
258            * @param layoutBranchId the primary key of the current layout branch
259            * @param layoutSetBranchId the layout set branch ID
260            * @param plid the plid
261            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
262            * @return the previous, current, and next layout branch
263            * @throws com.liferay.portal.NoSuchLayoutBranchException if a layout branch with the primary key could not be found
264            */
265            public com.liferay.portal.model.LayoutBranch[] findByL_P_PrevAndNext(
266                    long layoutBranchId, long layoutSetBranchId, long plid,
267                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator)
268                    throws com.liferay.portal.NoSuchLayoutBranchException;
269    
270            /**
271            * Removes all the layout branchs where layoutSetBranchId = &#63; and plid = &#63; from the database.
272            *
273            * @param layoutSetBranchId the layout set branch ID
274            * @param plid the plid
275            */
276            public void removeByL_P(long layoutSetBranchId, long plid);
277    
278            /**
279            * Returns the number of layout branchs where layoutSetBranchId = &#63; and plid = &#63;.
280            *
281            * @param layoutSetBranchId the layout set branch ID
282            * @param plid the plid
283            * @return the number of matching layout branchs
284            */
285            public int countByL_P(long layoutSetBranchId, long plid);
286    
287            /**
288            * Returns the layout branch where layoutSetBranchId = &#63; and plid = &#63; and name = &#63; or throws a {@link com.liferay.portal.NoSuchLayoutBranchException} if it could not be found.
289            *
290            * @param layoutSetBranchId the layout set branch ID
291            * @param plid the plid
292            * @param name the name
293            * @return the matching layout branch
294            * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found
295            */
296            public com.liferay.portal.model.LayoutBranch findByL_P_N(
297                    long layoutSetBranchId, long plid, java.lang.String name)
298                    throws com.liferay.portal.NoSuchLayoutBranchException;
299    
300            /**
301            * Returns the layout branch where layoutSetBranchId = &#63; and plid = &#63; and name = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
302            *
303            * @param layoutSetBranchId the layout set branch ID
304            * @param plid the plid
305            * @param name the name
306            * @return the matching layout branch, or <code>null</code> if a matching layout branch could not be found
307            */
308            public com.liferay.portal.model.LayoutBranch fetchByL_P_N(
309                    long layoutSetBranchId, long plid, java.lang.String name);
310    
311            /**
312            * Returns the layout branch where layoutSetBranchId = &#63; and plid = &#63; and name = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
313            *
314            * @param layoutSetBranchId the layout set branch ID
315            * @param plid the plid
316            * @param name the name
317            * @param retrieveFromCache whether to use the finder cache
318            * @return the matching layout branch, or <code>null</code> if a matching layout branch could not be found
319            */
320            public com.liferay.portal.model.LayoutBranch fetchByL_P_N(
321                    long layoutSetBranchId, long plid, java.lang.String name,
322                    boolean retrieveFromCache);
323    
324            /**
325            * Removes the layout branch where layoutSetBranchId = &#63; and plid = &#63; and name = &#63; from the database.
326            *
327            * @param layoutSetBranchId the layout set branch ID
328            * @param plid the plid
329            * @param name the name
330            * @return the layout branch that was removed
331            */
332            public com.liferay.portal.model.LayoutBranch removeByL_P_N(
333                    long layoutSetBranchId, long plid, java.lang.String name)
334                    throws com.liferay.portal.NoSuchLayoutBranchException;
335    
336            /**
337            * Returns the number of layout branchs where layoutSetBranchId = &#63; and plid = &#63; and name = &#63;.
338            *
339            * @param layoutSetBranchId the layout set branch ID
340            * @param plid the plid
341            * @param name the name
342            * @return the number of matching layout branchs
343            */
344            public int countByL_P_N(long layoutSetBranchId, long plid,
345                    java.lang.String name);
346    
347            /**
348            * Returns all the layout branchs where layoutSetBranchId = &#63; and plid = &#63; and master = &#63;.
349            *
350            * @param layoutSetBranchId the layout set branch ID
351            * @param plid the plid
352            * @param master the master
353            * @return the matching layout branchs
354            */
355            public java.util.List<com.liferay.portal.model.LayoutBranch> findByL_P_M(
356                    long layoutSetBranchId, long plid, boolean master);
357    
358            /**
359            * Returns a range of all the layout branchs where layoutSetBranchId = &#63; and plid = &#63; and master = &#63;.
360            *
361            * <p>
362            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutBranchModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
363            * </p>
364            *
365            * @param layoutSetBranchId the layout set branch ID
366            * @param plid the plid
367            * @param master the master
368            * @param start the lower bound of the range of layout branchs
369            * @param end the upper bound of the range of layout branchs (not inclusive)
370            * @return the range of matching layout branchs
371            */
372            public java.util.List<com.liferay.portal.model.LayoutBranch> findByL_P_M(
373                    long layoutSetBranchId, long plid, boolean master, int start, int end);
374    
375            /**
376            * Returns an ordered range of all the layout branchs where layoutSetBranchId = &#63; and plid = &#63; and master = &#63;.
377            *
378            * <p>
379            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutBranchModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
380            * </p>
381            *
382            * @param layoutSetBranchId the layout set branch ID
383            * @param plid the plid
384            * @param master the master
385            * @param start the lower bound of the range of layout branchs
386            * @param end the upper bound of the range of layout branchs (not inclusive)
387            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
388            * @return the ordered range of matching layout branchs
389            */
390            public java.util.List<com.liferay.portal.model.LayoutBranch> findByL_P_M(
391                    long layoutSetBranchId, long plid, boolean master, int start, int end,
392                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator);
393    
394            /**
395            * Returns the first layout branch in the ordered set where layoutSetBranchId = &#63; and plid = &#63; and master = &#63;.
396            *
397            * @param layoutSetBranchId the layout set branch ID
398            * @param plid the plid
399            * @param master the master
400            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
401            * @return the first matching layout branch
402            * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found
403            */
404            public com.liferay.portal.model.LayoutBranch findByL_P_M_First(
405                    long layoutSetBranchId, long plid, boolean master,
406                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator)
407                    throws com.liferay.portal.NoSuchLayoutBranchException;
408    
409            /**
410            * Returns the first layout branch in the ordered set where layoutSetBranchId = &#63; and plid = &#63; and master = &#63;.
411            *
412            * @param layoutSetBranchId the layout set branch ID
413            * @param plid the plid
414            * @param master the master
415            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
416            * @return the first matching layout branch, or <code>null</code> if a matching layout branch could not be found
417            */
418            public com.liferay.portal.model.LayoutBranch fetchByL_P_M_First(
419                    long layoutSetBranchId, long plid, boolean master,
420                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator);
421    
422            /**
423            * Returns the last layout branch in the ordered set where layoutSetBranchId = &#63; and plid = &#63; and master = &#63;.
424            *
425            * @param layoutSetBranchId the layout set branch ID
426            * @param plid the plid
427            * @param master the master
428            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
429            * @return the last matching layout branch
430            * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found
431            */
432            public com.liferay.portal.model.LayoutBranch findByL_P_M_Last(
433                    long layoutSetBranchId, long plid, boolean master,
434                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator)
435                    throws com.liferay.portal.NoSuchLayoutBranchException;
436    
437            /**
438            * Returns the last layout branch in the ordered set where layoutSetBranchId = &#63; and plid = &#63; and master = &#63;.
439            *
440            * @param layoutSetBranchId the layout set branch ID
441            * @param plid the plid
442            * @param master the master
443            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
444            * @return the last matching layout branch, or <code>null</code> if a matching layout branch could not be found
445            */
446            public com.liferay.portal.model.LayoutBranch fetchByL_P_M_Last(
447                    long layoutSetBranchId, long plid, boolean master,
448                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator);
449    
450            /**
451            * Returns the layout branchs before and after the current layout branch in the ordered set where layoutSetBranchId = &#63; and plid = &#63; and master = &#63;.
452            *
453            * @param layoutBranchId the primary key of the current layout branch
454            * @param layoutSetBranchId the layout set branch ID
455            * @param plid the plid
456            * @param master the master
457            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
458            * @return the previous, current, and next layout branch
459            * @throws com.liferay.portal.NoSuchLayoutBranchException if a layout branch with the primary key could not be found
460            */
461            public com.liferay.portal.model.LayoutBranch[] findByL_P_M_PrevAndNext(
462                    long layoutBranchId, long layoutSetBranchId, long plid, boolean master,
463                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator)
464                    throws com.liferay.portal.NoSuchLayoutBranchException;
465    
466            /**
467            * Removes all the layout branchs where layoutSetBranchId = &#63; and plid = &#63; and master = &#63; from the database.
468            *
469            * @param layoutSetBranchId the layout set branch ID
470            * @param plid the plid
471            * @param master the master
472            */
473            public void removeByL_P_M(long layoutSetBranchId, long plid, boolean master);
474    
475            /**
476            * Returns the number of layout branchs where layoutSetBranchId = &#63; and plid = &#63; and master = &#63;.
477            *
478            * @param layoutSetBranchId the layout set branch ID
479            * @param plid the plid
480            * @param master the master
481            * @return the number of matching layout branchs
482            */
483            public int countByL_P_M(long layoutSetBranchId, long plid, boolean master);
484    
485            /**
486            * Caches the layout branch in the entity cache if it is enabled.
487            *
488            * @param layoutBranch the layout branch
489            */
490            public void cacheResult(com.liferay.portal.model.LayoutBranch layoutBranch);
491    
492            /**
493            * Caches the layout branchs in the entity cache if it is enabled.
494            *
495            * @param layoutBranchs the layout branchs
496            */
497            public void cacheResult(
498                    java.util.List<com.liferay.portal.model.LayoutBranch> layoutBranchs);
499    
500            /**
501            * Creates a new layout branch with the primary key. Does not add the layout branch to the database.
502            *
503            * @param layoutBranchId the primary key for the new layout branch
504            * @return the new layout branch
505            */
506            public com.liferay.portal.model.LayoutBranch create(long layoutBranchId);
507    
508            /**
509            * Removes the layout branch with the primary key from the database. Also notifies the appropriate model listeners.
510            *
511            * @param layoutBranchId the primary key of the layout branch
512            * @return the layout branch that was removed
513            * @throws com.liferay.portal.NoSuchLayoutBranchException if a layout branch with the primary key could not be found
514            */
515            public com.liferay.portal.model.LayoutBranch remove(long layoutBranchId)
516                    throws com.liferay.portal.NoSuchLayoutBranchException;
517    
518            public com.liferay.portal.model.LayoutBranch updateImpl(
519                    com.liferay.portal.model.LayoutBranch layoutBranch);
520    
521            /**
522            * Returns the layout branch with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutBranchException} if it could not be found.
523            *
524            * @param layoutBranchId the primary key of the layout branch
525            * @return the layout branch
526            * @throws com.liferay.portal.NoSuchLayoutBranchException if a layout branch with the primary key could not be found
527            */
528            public com.liferay.portal.model.LayoutBranch findByPrimaryKey(
529                    long layoutBranchId)
530                    throws com.liferay.portal.NoSuchLayoutBranchException;
531    
532            /**
533            * Returns the layout branch with the primary key or returns <code>null</code> if it could not be found.
534            *
535            * @param layoutBranchId the primary key of the layout branch
536            * @return the layout branch, or <code>null</code> if a layout branch with the primary key could not be found
537            */
538            public com.liferay.portal.model.LayoutBranch fetchByPrimaryKey(
539                    long layoutBranchId);
540    
541            @Override
542            public java.util.Map<java.io.Serializable, com.liferay.portal.model.LayoutBranch> fetchByPrimaryKeys(
543                    java.util.Set<java.io.Serializable> primaryKeys);
544    
545            /**
546            * Returns all the layout branchs.
547            *
548            * @return the layout branchs
549            */
550            public java.util.List<com.liferay.portal.model.LayoutBranch> findAll();
551    
552            /**
553            * Returns a range of all the layout branchs.
554            *
555            * <p>
556            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutBranchModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
557            * </p>
558            *
559            * @param start the lower bound of the range of layout branchs
560            * @param end the upper bound of the range of layout branchs (not inclusive)
561            * @return the range of layout branchs
562            */
563            public java.util.List<com.liferay.portal.model.LayoutBranch> findAll(
564                    int start, int end);
565    
566            /**
567            * Returns an ordered range of all the layout branchs.
568            *
569            * <p>
570            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutBranchModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
571            * </p>
572            *
573            * @param start the lower bound of the range of layout branchs
574            * @param end the upper bound of the range of layout branchs (not inclusive)
575            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
576            * @return the ordered range of layout branchs
577            */
578            public java.util.List<com.liferay.portal.model.LayoutBranch> findAll(
579                    int start, int end,
580                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator);
581    
582            /**
583            * Removes all the layout branchs from the database.
584            */
585            public void removeAll();
586    
587            /**
588            * Returns the number of layout branchs.
589            *
590            * @return the number of layout branchs
591            */
592            public int countAll();
593    }