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