001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.model.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)
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 the layout branch where layoutSetBranchId = &#63; and plid = &#63; and master = &#63; or throws a {@link com.liferay.portal.NoSuchLayoutBranchException} if it could not be found.
392            *
393            * @param layoutSetBranchId the layout set branch ID
394            * @param plid the plid
395            * @param master the master
396            * @return the matching layout branch
397            * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found
398            * @throws SystemException if a system exception occurred
399            */
400            public com.liferay.portal.model.LayoutBranch findByL_P_M(
401                    long layoutSetBranchId, long plid, boolean master)
402                    throws com.liferay.portal.NoSuchLayoutBranchException,
403                            com.liferay.portal.kernel.exception.SystemException;
404    
405            /**
406            * Returns the layout branch where layoutSetBranchId = &#63; and plid = &#63; and master = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
407            *
408            * @param layoutSetBranchId the layout set branch ID
409            * @param plid the plid
410            * @param master the master
411            * @return the matching layout branch, or <code>null</code> if a matching layout branch could not be found
412            * @throws SystemException if a system exception occurred
413            */
414            public com.liferay.portal.model.LayoutBranch fetchByL_P_M(
415                    long layoutSetBranchId, long plid, boolean master)
416                    throws com.liferay.portal.kernel.exception.SystemException;
417    
418            /**
419            * Returns the layout branch where layoutSetBranchId = &#63; and plid = &#63; and master = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
420            *
421            * @param layoutSetBranchId the layout set branch ID
422            * @param plid the plid
423            * @param master the master
424            * @param retrieveFromCache whether to use the finder cache
425            * @return the matching layout branch, or <code>null</code> if a matching layout branch could not be found
426            * @throws SystemException if a system exception occurred
427            */
428            public com.liferay.portal.model.LayoutBranch fetchByL_P_M(
429                    long layoutSetBranchId, long plid, boolean master,
430                    boolean retrieveFromCache)
431                    throws com.liferay.portal.kernel.exception.SystemException;
432    
433            /**
434            * Returns all the layout branchs.
435            *
436            * @return the layout branchs
437            * @throws SystemException if a system exception occurred
438            */
439            public java.util.List<com.liferay.portal.model.LayoutBranch> findAll()
440                    throws com.liferay.portal.kernel.exception.SystemException;
441    
442            /**
443            * Returns a range of all the layout branchs.
444            *
445            * <p>
446            * 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.
447            * </p>
448            *
449            * @param start the lower bound of the range of layout branchs
450            * @param end the upper bound of the range of layout branchs (not inclusive)
451            * @return the range of layout branchs
452            * @throws SystemException if a system exception occurred
453            */
454            public java.util.List<com.liferay.portal.model.LayoutBranch> findAll(
455                    int start, int end)
456                    throws com.liferay.portal.kernel.exception.SystemException;
457    
458            /**
459            * Returns an ordered range of all the layout branchs.
460            *
461            * <p>
462            * 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.
463            * </p>
464            *
465            * @param start the lower bound of the range of layout branchs
466            * @param end the upper bound of the range of layout branchs (not inclusive)
467            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
468            * @return the ordered range of layout branchs
469            * @throws SystemException if a system exception occurred
470            */
471            public java.util.List<com.liferay.portal.model.LayoutBranch> findAll(
472                    int start, int end,
473                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
474                    throws com.liferay.portal.kernel.exception.SystemException;
475    
476            /**
477            * Removes all the layout branchs where layoutSetBranchId = &#63; from the database.
478            *
479            * @param layoutSetBranchId the layout set branch ID
480            * @throws SystemException if a system exception occurred
481            */
482            public void removeByLayoutSetBranchId(long layoutSetBranchId)
483                    throws com.liferay.portal.kernel.exception.SystemException;
484    
485            /**
486            * Removes all the layout branchs where layoutSetBranchId = &#63; and plid = &#63; from the database.
487            *
488            * @param layoutSetBranchId the layout set branch ID
489            * @param plid the plid
490            * @throws SystemException if a system exception occurred
491            */
492            public void removeByL_P(long layoutSetBranchId, long plid)
493                    throws com.liferay.portal.kernel.exception.SystemException;
494    
495            /**
496            * Removes the layout branch where layoutSetBranchId = &#63; and plid = &#63; and name = &#63; from the database.
497            *
498            * @param layoutSetBranchId the layout set branch ID
499            * @param plid the plid
500            * @param name the name
501            * @return the layout branch that was removed
502            * @throws SystemException if a system exception occurred
503            */
504            public com.liferay.portal.model.LayoutBranch removeByL_P_N(
505                    long layoutSetBranchId, long plid, java.lang.String name)
506                    throws com.liferay.portal.NoSuchLayoutBranchException,
507                            com.liferay.portal.kernel.exception.SystemException;
508    
509            /**
510            * Removes the layout branch where layoutSetBranchId = &#63; and plid = &#63; and master = &#63; from the database.
511            *
512            * @param layoutSetBranchId the layout set branch ID
513            * @param plid the plid
514            * @param master the master
515            * @return the layout branch that was removed
516            * @throws SystemException if a system exception occurred
517            */
518            public com.liferay.portal.model.LayoutBranch removeByL_P_M(
519                    long layoutSetBranchId, long plid, boolean master)
520                    throws com.liferay.portal.NoSuchLayoutBranchException,
521                            com.liferay.portal.kernel.exception.SystemException;
522    
523            /**
524            * Removes all the layout branchs from the database.
525            *
526            * @throws SystemException if a system exception occurred
527            */
528            public void removeAll()
529                    throws com.liferay.portal.kernel.exception.SystemException;
530    
531            /**
532            * Returns the number of layout branchs where layoutSetBranchId = &#63;.
533            *
534            * @param layoutSetBranchId the layout set branch ID
535            * @return the number of matching layout branchs
536            * @throws SystemException if a system exception occurred
537            */
538            public int countByLayoutSetBranchId(long layoutSetBranchId)
539                    throws com.liferay.portal.kernel.exception.SystemException;
540    
541            /**
542            * Returns the number of layout branchs where layoutSetBranchId = &#63; and plid = &#63;.
543            *
544            * @param layoutSetBranchId the layout set branch ID
545            * @param plid the plid
546            * @return the number of matching layout branchs
547            * @throws SystemException if a system exception occurred
548            */
549            public int countByL_P(long layoutSetBranchId, long plid)
550                    throws com.liferay.portal.kernel.exception.SystemException;
551    
552            /**
553            * Returns the number of layout branchs where layoutSetBranchId = &#63; and plid = &#63; and name = &#63;.
554            *
555            * @param layoutSetBranchId the layout set branch ID
556            * @param plid the plid
557            * @param name the name
558            * @return the number of matching layout branchs
559            * @throws SystemException if a system exception occurred
560            */
561            public int countByL_P_N(long layoutSetBranchId, long plid,
562                    java.lang.String name)
563                    throws com.liferay.portal.kernel.exception.SystemException;
564    
565            /**
566            * Returns the number of layout branchs where layoutSetBranchId = &#63; and plid = &#63; and master = &#63;.
567            *
568            * @param layoutSetBranchId the layout set branch ID
569            * @param plid the plid
570            * @param master the master
571            * @return the number of matching layout branchs
572            * @throws SystemException if a system exception occurred
573            */
574            public int countByL_P_M(long layoutSetBranchId, long plid, boolean master)
575                    throws com.liferay.portal.kernel.exception.SystemException;
576    
577            /**
578            * Returns the number of layout branchs.
579            *
580            * @return the number of layout branchs
581            * @throws SystemException if a system exception occurred
582            */
583            public int countAll()
584                    throws com.liferay.portal.kernel.exception.SystemException;
585    }