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