001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import 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            * @throws SystemException if a system exception occurred
047            */
048            public java.util.List<com.liferay.portal.model.LayoutBranch> findByLayoutSetBranchId(
049                    long layoutSetBranchId)
050                    throws com.liferay.portal.kernel.exception.SystemException;
051    
052            /**
053            * Returns a range of all the layout branchs where layoutSetBranchId = &#63;.
054            *
055            * <p>
056            * 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.
057            * </p>
058            *
059            * @param layoutSetBranchId the layout set branch ID
060            * @param start the lower bound of the range of layout branchs
061            * @param end the upper bound of the range of layout branchs (not inclusive)
062            * @return the range of matching layout branchs
063            * @throws SystemException if a system exception occurred
064            */
065            public java.util.List<com.liferay.portal.model.LayoutBranch> findByLayoutSetBranchId(
066                    long layoutSetBranchId, int start, int end)
067                    throws com.liferay.portal.kernel.exception.SystemException;
068    
069            /**
070            * Returns an ordered range of all the layout branchs where layoutSetBranchId = &#63;.
071            *
072            * <p>
073            * 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.
074            * </p>
075            *
076            * @param layoutSetBranchId the layout set branch ID
077            * @param start the lower bound of the range of layout branchs
078            * @param end the upper bound of the range of layout branchs (not inclusive)
079            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
080            * @return the ordered range of matching layout branchs
081            * @throws SystemException if a system exception occurred
082            */
083            public java.util.List<com.liferay.portal.model.LayoutBranch> findByLayoutSetBranchId(
084                    long layoutSetBranchId, int start, int end,
085                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
086                    throws com.liferay.portal.kernel.exception.SystemException;
087    
088            /**
089            * Returns the first layout branch in the ordered set where layoutSetBranchId = &#63;.
090            *
091            * @param layoutSetBranchId the layout set branch ID
092            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
093            * @return the first matching layout branch
094            * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found
095            * @throws SystemException if a system exception occurred
096            */
097            public com.liferay.portal.model.LayoutBranch findByLayoutSetBranchId_First(
098                    long layoutSetBranchId,
099                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
100                    throws com.liferay.portal.NoSuchLayoutBranchException,
101                            com.liferay.portal.kernel.exception.SystemException;
102    
103            /**
104            * Returns the first layout branch in the ordered set where layoutSetBranchId = &#63;.
105            *
106            * @param layoutSetBranchId the layout set branch ID
107            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
108            * @return the first matching layout branch, or <code>null</code> if a matching layout branch could not be found
109            * @throws SystemException if a system exception occurred
110            */
111            public com.liferay.portal.model.LayoutBranch fetchByLayoutSetBranchId_First(
112                    long layoutSetBranchId,
113                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
114                    throws com.liferay.portal.kernel.exception.SystemException;
115    
116            /**
117            * Returns the last layout branch in the ordered set where layoutSetBranchId = &#63;.
118            *
119            * @param layoutSetBranchId the layout set branch ID
120            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
121            * @return the last matching layout branch
122            * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found
123            * @throws SystemException if a system exception occurred
124            */
125            public com.liferay.portal.model.LayoutBranch findByLayoutSetBranchId_Last(
126                    long layoutSetBranchId,
127                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
128                    throws com.liferay.portal.NoSuchLayoutBranchException,
129                            com.liferay.portal.kernel.exception.SystemException;
130    
131            /**
132            * Returns the last layout branch in the ordered set where layoutSetBranchId = &#63;.
133            *
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 last matching layout branch, or <code>null</code> if a matching layout branch could not be found
137            * @throws SystemException if a system exception occurred
138            */
139            public com.liferay.portal.model.LayoutBranch fetchByLayoutSetBranchId_Last(
140                    long layoutSetBranchId,
141                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142                    throws com.liferay.portal.kernel.exception.SystemException;
143    
144            /**
145            * Returns the layout branchs before and after the current layout branch in the ordered set where layoutSetBranchId = &#63;.
146            *
147            * @param LayoutBranchId the primary key of the current layout branch
148            * @param layoutSetBranchId the layout set branch ID
149            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
150            * @return the previous, current, and next layout branch
151            * @throws com.liferay.portal.NoSuchLayoutBranchException if a layout branch with the primary key could not be found
152            * @throws SystemException if a system exception occurred
153            */
154            public com.liferay.portal.model.LayoutBranch[] findByLayoutSetBranchId_PrevAndNext(
155                    long LayoutBranchId, long layoutSetBranchId,
156                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157                    throws com.liferay.portal.NoSuchLayoutBranchException,
158                            com.liferay.portal.kernel.exception.SystemException;
159    
160            /**
161            * Removes all the layout branchs where layoutSetBranchId = &#63; from the database.
162            *
163            * @param layoutSetBranchId the layout set branch ID
164            * @throws SystemException if a system exception occurred
165            */
166            public void removeByLayoutSetBranchId(long layoutSetBranchId)
167                    throws com.liferay.portal.kernel.exception.SystemException;
168    
169            /**
170            * Returns the number of layout branchs where layoutSetBranchId = &#63;.
171            *
172            * @param layoutSetBranchId the layout set branch ID
173            * @return the number of matching layout branchs
174            * @throws SystemException if a system exception occurred
175            */
176            public int countByLayoutSetBranchId(long layoutSetBranchId)
177                    throws com.liferay.portal.kernel.exception.SystemException;
178    
179            /**
180            * Returns all the layout branchs where layoutSetBranchId = &#63; and plid = &#63;.
181            *
182            * @param layoutSetBranchId the layout set branch ID
183            * @param plid the plid
184            * @return the matching layout branchs
185            * @throws SystemException if a system exception occurred
186            */
187            public java.util.List<com.liferay.portal.model.LayoutBranch> findByL_P(
188                    long layoutSetBranchId, long plid)
189                    throws com.liferay.portal.kernel.exception.SystemException;
190    
191            /**
192            * Returns a range of all the layout branchs where layoutSetBranchId = &#63; and plid = &#63;.
193            *
194            * <p>
195            * 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.
196            * </p>
197            *
198            * @param layoutSetBranchId the layout set branch ID
199            * @param plid the plid
200            * @param start the lower bound of the range of layout branchs
201            * @param end the upper bound of the range of layout branchs (not inclusive)
202            * @return the range of matching layout branchs
203            * @throws SystemException if a system exception occurred
204            */
205            public java.util.List<com.liferay.portal.model.LayoutBranch> findByL_P(
206                    long layoutSetBranchId, long plid, int start, int end)
207                    throws com.liferay.portal.kernel.exception.SystemException;
208    
209            /**
210            * Returns an ordered range of all the layout branchs where layoutSetBranchId = &#63; and plid = &#63;.
211            *
212            * <p>
213            * 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.
214            * </p>
215            *
216            * @param layoutSetBranchId the layout set branch ID
217            * @param plid the plid
218            * @param start the lower bound of the range of layout branchs
219            * @param end the upper bound of the range of layout branchs (not inclusive)
220            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
221            * @return the ordered range of matching layout branchs
222            * @throws SystemException if a system exception occurred
223            */
224            public java.util.List<com.liferay.portal.model.LayoutBranch> findByL_P(
225                    long layoutSetBranchId, long plid, int start, int end,
226                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227                    throws com.liferay.portal.kernel.exception.SystemException;
228    
229            /**
230            * Returns the first 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 first matching layout branch
236            * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found
237            * @throws SystemException if a system exception occurred
238            */
239            public com.liferay.portal.model.LayoutBranch findByL_P_First(
240                    long layoutSetBranchId, long plid,
241                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
242                    throws com.liferay.portal.NoSuchLayoutBranchException,
243                            com.liferay.portal.kernel.exception.SystemException;
244    
245            /**
246            * Returns the first layout branch in the ordered set where layoutSetBranchId = &#63; and plid = &#63;.
247            *
248            * @param layoutSetBranchId the layout set branch ID
249            * @param plid the plid
250            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
251            * @return the first matching layout branch, or <code>null</code> if a matching layout branch could not be found
252            * @throws SystemException if a system exception occurred
253            */
254            public com.liferay.portal.model.LayoutBranch fetchByL_P_First(
255                    long layoutSetBranchId, long plid,
256                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
257                    throws com.liferay.portal.kernel.exception.SystemException;
258    
259            /**
260            * Returns the last layout branch in the ordered set where layoutSetBranchId = &#63; and plid = &#63;.
261            *
262            * @param layoutSetBranchId the layout set branch ID
263            * @param plid the plid
264            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
265            * @return the last matching layout branch
266            * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found
267            * @throws SystemException if a system exception occurred
268            */
269            public com.liferay.portal.model.LayoutBranch findByL_P_Last(
270                    long layoutSetBranchId, long plid,
271                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
272                    throws com.liferay.portal.NoSuchLayoutBranchException,
273                            com.liferay.portal.kernel.exception.SystemException;
274    
275            /**
276            * Returns the last layout branch in the ordered set where layoutSetBranchId = &#63; and plid = &#63;.
277            *
278            * @param layoutSetBranchId the layout set branch ID
279            * @param plid the plid
280            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
281            * @return the last matching layout branch, or <code>null</code> if a matching layout branch could not be found
282            * @throws SystemException if a system exception occurred
283            */
284            public com.liferay.portal.model.LayoutBranch fetchByL_P_Last(
285                    long layoutSetBranchId, long plid,
286                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
287                    throws com.liferay.portal.kernel.exception.SystemException;
288    
289            /**
290            * Returns the layout branchs before and after the current layout branch in the ordered set where layoutSetBranchId = &#63; and plid = &#63;.
291            *
292            * @param LayoutBranchId the primary key of the current layout branch
293            * @param layoutSetBranchId the layout set branch ID
294            * @param plid the plid
295            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
296            * @return the previous, current, and next layout branch
297            * @throws com.liferay.portal.NoSuchLayoutBranchException if a layout branch with the primary key could not be found
298            * @throws SystemException if a system exception occurred
299            */
300            public com.liferay.portal.model.LayoutBranch[] findByL_P_PrevAndNext(
301                    long LayoutBranchId, long layoutSetBranchId, long plid,
302                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
303                    throws com.liferay.portal.NoSuchLayoutBranchException,
304                            com.liferay.portal.kernel.exception.SystemException;
305    
306            /**
307            * Removes all the layout branchs where layoutSetBranchId = &#63; and plid = &#63; from the database.
308            *
309            * @param layoutSetBranchId the layout set branch ID
310            * @param plid the plid
311            * @throws SystemException if a system exception occurred
312            */
313            public void removeByL_P(long layoutSetBranchId, long plid)
314                    throws com.liferay.portal.kernel.exception.SystemException;
315    
316            /**
317            * Returns the number of layout branchs where layoutSetBranchId = &#63; and plid = &#63;.
318            *
319            * @param layoutSetBranchId the layout set branch ID
320            * @param plid the plid
321            * @return the number of matching layout branchs
322            * @throws SystemException if a system exception occurred
323            */
324            public int countByL_P(long layoutSetBranchId, long plid)
325                    throws com.liferay.portal.kernel.exception.SystemException;
326    
327            /**
328            * 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.
329            *
330            * @param layoutSetBranchId the layout set branch ID
331            * @param plid the plid
332            * @param name the name
333            * @return the matching layout branch
334            * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found
335            * @throws SystemException if a system exception occurred
336            */
337            public com.liferay.portal.model.LayoutBranch findByL_P_N(
338                    long layoutSetBranchId, long plid, java.lang.String name)
339                    throws com.liferay.portal.NoSuchLayoutBranchException,
340                            com.liferay.portal.kernel.exception.SystemException;
341    
342            /**
343            * 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.
344            *
345            * @param layoutSetBranchId the layout set branch ID
346            * @param plid the plid
347            * @param name the name
348            * @return the matching layout branch, or <code>null</code> if a matching layout branch could not be found
349            * @throws SystemException if a system exception occurred
350            */
351            public com.liferay.portal.model.LayoutBranch fetchByL_P_N(
352                    long layoutSetBranchId, long plid, java.lang.String name)
353                    throws com.liferay.portal.kernel.exception.SystemException;
354    
355            /**
356            * 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.
357            *
358            * @param layoutSetBranchId the layout set branch ID
359            * @param plid the plid
360            * @param name the name
361            * @param retrieveFromCache whether to use the finder cache
362            * @return the matching layout branch, or <code>null</code> if a matching layout branch could not be found
363            * @throws SystemException if a system exception occurred
364            */
365            public com.liferay.portal.model.LayoutBranch fetchByL_P_N(
366                    long layoutSetBranchId, long plid, java.lang.String name,
367                    boolean retrieveFromCache)
368                    throws com.liferay.portal.kernel.exception.SystemException;
369    
370            /**
371            * Removes the layout branch where layoutSetBranchId = &#63; and plid = &#63; and name = &#63; from the database.
372            *
373            * @param layoutSetBranchId the layout set branch ID
374            * @param plid the plid
375            * @param name the name
376            * @return the layout branch that was removed
377            * @throws SystemException if a system exception occurred
378            */
379            public com.liferay.portal.model.LayoutBranch removeByL_P_N(
380                    long layoutSetBranchId, long plid, java.lang.String name)
381                    throws com.liferay.portal.NoSuchLayoutBranchException,
382                            com.liferay.portal.kernel.exception.SystemException;
383    
384            /**
385            * Returns the number of layout branchs where layoutSetBranchId = &#63; and plid = &#63; and name = &#63;.
386            *
387            * @param layoutSetBranchId the layout set branch ID
388            * @param plid the plid
389            * @param name the name
390            * @return the number of matching layout branchs
391            * @throws SystemException if a system exception occurred
392            */
393            public int countByL_P_N(long layoutSetBranchId, long plid,
394                    java.lang.String name)
395                    throws com.liferay.portal.kernel.exception.SystemException;
396    
397            /**
398            * Returns all the layout branchs where layoutSetBranchId = &#63; and plid = &#63; and master = &#63;.
399            *
400            * @param layoutSetBranchId the layout set branch ID
401            * @param plid the plid
402            * @param master the master
403            * @return the matching layout branchs
404            * @throws SystemException if a system exception occurred
405            */
406            public java.util.List<com.liferay.portal.model.LayoutBranch> findByL_P_M(
407                    long layoutSetBranchId, long plid, boolean master)
408                    throws com.liferay.portal.kernel.exception.SystemException;
409    
410            /**
411            * Returns a range of all the layout branchs where layoutSetBranchId = &#63; and plid = &#63; and master = &#63;.
412            *
413            * <p>
414            * 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.
415            * </p>
416            *
417            * @param layoutSetBranchId the layout set branch ID
418            * @param plid the plid
419            * @param master the master
420            * @param start the lower bound of the range of layout branchs
421            * @param end the upper bound of the range of layout branchs (not inclusive)
422            * @return the range of matching layout branchs
423            * @throws SystemException if a system exception occurred
424            */
425            public java.util.List<com.liferay.portal.model.LayoutBranch> findByL_P_M(
426                    long layoutSetBranchId, long plid, boolean master, int start, int end)
427                    throws com.liferay.portal.kernel.exception.SystemException;
428    
429            /**
430            * Returns an ordered range of all the layout branchs where layoutSetBranchId = &#63; and plid = &#63; and master = &#63;.
431            *
432            * <p>
433            * 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.
434            * </p>
435            *
436            * @param layoutSetBranchId the layout set branch ID
437            * @param plid the plid
438            * @param master the master
439            * @param start the lower bound of the range of layout branchs
440            * @param end the upper bound of the range of layout branchs (not inclusive)
441            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
442            * @return the ordered range of matching layout branchs
443            * @throws SystemException if a system exception occurred
444            */
445            public java.util.List<com.liferay.portal.model.LayoutBranch> findByL_P_M(
446                    long layoutSetBranchId, long plid, boolean master, int start, int end,
447                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
448                    throws com.liferay.portal.kernel.exception.SystemException;
449    
450            /**
451            * Returns the first layout branch in the ordered set where layoutSetBranchId = &#63; and plid = &#63; and master = &#63;.
452            *
453            * @param layoutSetBranchId the layout set branch ID
454            * @param plid the plid
455            * @param master the master
456            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
457            * @return the first matching layout branch
458            * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found
459            * @throws SystemException if a system exception occurred
460            */
461            public com.liferay.portal.model.LayoutBranch findByL_P_M_First(
462                    long layoutSetBranchId, long plid, boolean master,
463                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
464                    throws com.liferay.portal.NoSuchLayoutBranchException,
465                            com.liferay.portal.kernel.exception.SystemException;
466    
467            /**
468            * Returns the first layout branch in the ordered set where layoutSetBranchId = &#63; and plid = &#63; and master = &#63;.
469            *
470            * @param layoutSetBranchId the layout set branch ID
471            * @param plid the plid
472            * @param master the master
473            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
474            * @return the first matching layout branch, or <code>null</code> if a matching layout branch could not be found
475            * @throws SystemException if a system exception occurred
476            */
477            public com.liferay.portal.model.LayoutBranch fetchByL_P_M_First(
478                    long layoutSetBranchId, long plid, boolean master,
479                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
480                    throws com.liferay.portal.kernel.exception.SystemException;
481    
482            /**
483            * Returns the last layout branch in the ordered set where layoutSetBranchId = &#63; and plid = &#63; and master = &#63;.
484            *
485            * @param layoutSetBranchId the layout set branch ID
486            * @param plid the plid
487            * @param master the master
488            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
489            * @return the last matching layout branch
490            * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found
491            * @throws SystemException if a system exception occurred
492            */
493            public com.liferay.portal.model.LayoutBranch findByL_P_M_Last(
494                    long layoutSetBranchId, long plid, boolean master,
495                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
496                    throws com.liferay.portal.NoSuchLayoutBranchException,
497                            com.liferay.portal.kernel.exception.SystemException;
498    
499            /**
500            * Returns the last layout branch in the ordered set where layoutSetBranchId = &#63; and plid = &#63; and master = &#63;.
501            *
502            * @param layoutSetBranchId the layout set branch ID
503            * @param plid the plid
504            * @param master the master
505            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
506            * @return the last matching layout branch, or <code>null</code> if a matching layout branch could not be found
507            * @throws SystemException if a system exception occurred
508            */
509            public com.liferay.portal.model.LayoutBranch fetchByL_P_M_Last(
510                    long layoutSetBranchId, long plid, boolean master,
511                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
512                    throws com.liferay.portal.kernel.exception.SystemException;
513    
514            /**
515            * Returns the layout branchs before and after the current layout branch in the ordered set where layoutSetBranchId = &#63; and plid = &#63; and master = &#63;.
516            *
517            * @param LayoutBranchId the primary key of the current layout branch
518            * @param layoutSetBranchId the layout set branch ID
519            * @param plid the plid
520            * @param master the master
521            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
522            * @return the previous, current, and next layout branch
523            * @throws com.liferay.portal.NoSuchLayoutBranchException if a layout branch with the primary key could not be found
524            * @throws SystemException if a system exception occurred
525            */
526            public com.liferay.portal.model.LayoutBranch[] findByL_P_M_PrevAndNext(
527                    long LayoutBranchId, long layoutSetBranchId, long plid, boolean master,
528                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
529                    throws com.liferay.portal.NoSuchLayoutBranchException,
530                            com.liferay.portal.kernel.exception.SystemException;
531    
532            /**
533            * Removes all the layout branchs where layoutSetBranchId = &#63; and plid = &#63; and master = &#63; from the database.
534            *
535            * @param layoutSetBranchId the layout set branch ID
536            * @param plid the plid
537            * @param master the master
538            * @throws SystemException if a system exception occurred
539            */
540            public void removeByL_P_M(long layoutSetBranchId, long plid, boolean master)
541                    throws com.liferay.portal.kernel.exception.SystemException;
542    
543            /**
544            * Returns the number of layout branchs where layoutSetBranchId = &#63; and plid = &#63; and master = &#63;.
545            *
546            * @param layoutSetBranchId the layout set branch ID
547            * @param plid the plid
548            * @param master the master
549            * @return the number of matching layout branchs
550            * @throws SystemException if a system exception occurred
551            */
552            public int countByL_P_M(long layoutSetBranchId, long plid, boolean master)
553                    throws com.liferay.portal.kernel.exception.SystemException;
554    
555            /**
556            * Caches the layout branch in the entity cache if it is enabled.
557            *
558            * @param layoutBranch the layout branch
559            */
560            public void cacheResult(com.liferay.portal.model.LayoutBranch layoutBranch);
561    
562            /**
563            * Caches the layout branchs in the entity cache if it is enabled.
564            *
565            * @param layoutBranchs the layout branchs
566            */
567            public void cacheResult(
568                    java.util.List<com.liferay.portal.model.LayoutBranch> layoutBranchs);
569    
570            /**
571            * Creates a new layout branch with the primary key. Does not add the layout branch to the database.
572            *
573            * @param LayoutBranchId the primary key for the new layout branch
574            * @return the new layout branch
575            */
576            public com.liferay.portal.model.LayoutBranch create(long LayoutBranchId);
577    
578            /**
579            * Removes the layout branch with the primary key from the database. Also notifies the appropriate model listeners.
580            *
581            * @param LayoutBranchId the primary key of the layout branch
582            * @return the layout branch that was removed
583            * @throws com.liferay.portal.NoSuchLayoutBranchException if a layout branch with the primary key could not be found
584            * @throws SystemException if a system exception occurred
585            */
586            public com.liferay.portal.model.LayoutBranch remove(long LayoutBranchId)
587                    throws com.liferay.portal.NoSuchLayoutBranchException,
588                            com.liferay.portal.kernel.exception.SystemException;
589    
590            public com.liferay.portal.model.LayoutBranch updateImpl(
591                    com.liferay.portal.model.LayoutBranch layoutBranch)
592                    throws com.liferay.portal.kernel.exception.SystemException;
593    
594            /**
595            * Returns the layout branch with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutBranchException} if it could not be found.
596            *
597            * @param LayoutBranchId the primary key of the layout branch
598            * @return the layout branch
599            * @throws com.liferay.portal.NoSuchLayoutBranchException if a layout branch with the primary key could not be found
600            * @throws SystemException if a system exception occurred
601            */
602            public com.liferay.portal.model.LayoutBranch findByPrimaryKey(
603                    long LayoutBranchId)
604                    throws com.liferay.portal.NoSuchLayoutBranchException,
605                            com.liferay.portal.kernel.exception.SystemException;
606    
607            /**
608            * Returns the layout branch with the primary key or returns <code>null</code> if it could not be found.
609            *
610            * @param LayoutBranchId the primary key of the layout branch
611            * @return the layout branch, or <code>null</code> if a layout branch with the primary key could not be found
612            * @throws SystemException if a system exception occurred
613            */
614            public com.liferay.portal.model.LayoutBranch fetchByPrimaryKey(
615                    long LayoutBranchId)
616                    throws com.liferay.portal.kernel.exception.SystemException;
617    
618            /**
619            * Returns all the layout branchs.
620            *
621            * @return the layout branchs
622            * @throws SystemException if a system exception occurred
623            */
624            public java.util.List<com.liferay.portal.model.LayoutBranch> findAll()
625                    throws com.liferay.portal.kernel.exception.SystemException;
626    
627            /**
628            * Returns a range of all the layout branchs.
629            *
630            * <p>
631            * 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.
632            * </p>
633            *
634            * @param start the lower bound of the range of layout branchs
635            * @param end the upper bound of the range of layout branchs (not inclusive)
636            * @return the range of layout branchs
637            * @throws SystemException if a system exception occurred
638            */
639            public java.util.List<com.liferay.portal.model.LayoutBranch> findAll(
640                    int start, int end)
641                    throws com.liferay.portal.kernel.exception.SystemException;
642    
643            /**
644            * Returns an ordered range of all the layout branchs.
645            *
646            * <p>
647            * 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.
648            * </p>
649            *
650            * @param start the lower bound of the range of layout branchs
651            * @param end the upper bound of the range of layout branchs (not inclusive)
652            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
653            * @return the ordered range of layout branchs
654            * @throws SystemException if a system exception occurred
655            */
656            public java.util.List<com.liferay.portal.model.LayoutBranch> findAll(
657                    int start, int end,
658                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
659                    throws com.liferay.portal.kernel.exception.SystemException;
660    
661            /**
662            * Removes all the layout branchs from the database.
663            *
664            * @throws SystemException if a system exception occurred
665            */
666            public void removeAll()
667                    throws com.liferay.portal.kernel.exception.SystemException;
668    
669            /**
670            * Returns the number of layout branchs.
671            *
672            * @return the number of layout branchs
673            * @throws SystemException if a system exception occurred
674            */
675            public int countAll()
676                    throws com.liferay.portal.kernel.exception.SystemException;
677    }