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