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.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
021    import com.liferay.portal.kernel.util.OrderByComparator;
022    import com.liferay.portal.kernel.util.ReferenceRegistry;
023    import com.liferay.portal.model.LayoutBranch;
024    import com.liferay.portal.service.ServiceContext;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the layout branch service. This utility wraps {@link LayoutBranchPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
030     *
031     * <p>
032     * Caching information and settings can be found in <code>portal.properties</code>
033     * </p>
034     *
035     * @author Brian Wing Shun Chan
036     * @see LayoutBranchPersistence
037     * @see LayoutBranchPersistenceImpl
038     * @generated
039     */
040    @ProviderType
041    public class LayoutBranchUtil {
042            /*
043             * NOTE FOR DEVELOPERS:
044             *
045             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
046             */
047    
048            /**
049             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
050             */
051            public static void clearCache() {
052                    getPersistence().clearCache();
053            }
054    
055            /**
056             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
057             */
058            public static void clearCache(LayoutBranch layoutBranch) {
059                    getPersistence().clearCache(layoutBranch);
060            }
061    
062            /**
063             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
064             */
065            public static long countWithDynamicQuery(DynamicQuery dynamicQuery) {
066                    return getPersistence().countWithDynamicQuery(dynamicQuery);
067            }
068    
069            /**
070             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
071             */
072            public static List<LayoutBranch> findWithDynamicQuery(
073                    DynamicQuery dynamicQuery) {
074                    return getPersistence().findWithDynamicQuery(dynamicQuery);
075            }
076    
077            /**
078             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
079             */
080            public static List<LayoutBranch> findWithDynamicQuery(
081                    DynamicQuery dynamicQuery, int start, int end) {
082                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
083            }
084    
085            /**
086             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
087             */
088            public static List<LayoutBranch> findWithDynamicQuery(
089                    DynamicQuery dynamicQuery, int start, int end,
090                    OrderByComparator<LayoutBranch> orderByComparator) {
091                    return getPersistence()
092                                       .findWithDynamicQuery(dynamicQuery, start, end,
093                            orderByComparator);
094            }
095    
096            /**
097             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
098             */
099            public static LayoutBranch update(LayoutBranch layoutBranch) {
100                    return getPersistence().update(layoutBranch);
101            }
102    
103            /**
104             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
105             */
106            public static LayoutBranch update(LayoutBranch layoutBranch,
107                    ServiceContext serviceContext) {
108                    return getPersistence().update(layoutBranch, serviceContext);
109            }
110    
111            /**
112            * Returns all the layout branchs where layoutSetBranchId = &#63;.
113            *
114            * @param layoutSetBranchId the layout set branch ID
115            * @return the matching layout branchs
116            */
117            public static java.util.List<com.liferay.portal.model.LayoutBranch> findByLayoutSetBranchId(
118                    long layoutSetBranchId) {
119                    return getPersistence().findByLayoutSetBranchId(layoutSetBranchId);
120            }
121    
122            /**
123            * Returns a range of all the layout branchs where layoutSetBranchId = &#63;.
124            *
125            * <p>
126            * 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.
127            * </p>
128            *
129            * @param layoutSetBranchId the layout set branch ID
130            * @param start the lower bound of the range of layout branchs
131            * @param end the upper bound of the range of layout branchs (not inclusive)
132            * @return the range of matching layout branchs
133            */
134            public static java.util.List<com.liferay.portal.model.LayoutBranch> findByLayoutSetBranchId(
135                    long layoutSetBranchId, int start, int end) {
136                    return getPersistence()
137                                       .findByLayoutSetBranchId(layoutSetBranchId, start, end);
138            }
139    
140            /**
141            * Returns an ordered range of all the layout branchs where layoutSetBranchId = &#63;.
142            *
143            * <p>
144            * 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.
145            * </p>
146            *
147            * @param layoutSetBranchId the layout set branch ID
148            * @param start the lower bound of the range of layout branchs
149            * @param end the upper bound of the range of layout branchs (not inclusive)
150            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
151            * @return the ordered range of matching layout branchs
152            */
153            public static java.util.List<com.liferay.portal.model.LayoutBranch> findByLayoutSetBranchId(
154                    long layoutSetBranchId, int start, int end,
155                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator) {
156                    return getPersistence()
157                                       .findByLayoutSetBranchId(layoutSetBranchId, start, end,
158                            orderByComparator);
159            }
160    
161            /**
162            * Returns the first layout branch in the ordered set where layoutSetBranchId = &#63;.
163            *
164            * @param layoutSetBranchId the layout set branch ID
165            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
166            * @return the first matching layout branch
167            * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found
168            */
169            public static com.liferay.portal.model.LayoutBranch findByLayoutSetBranchId_First(
170                    long layoutSetBranchId,
171                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator)
172                    throws com.liferay.portal.NoSuchLayoutBranchException {
173                    return getPersistence()
174                                       .findByLayoutSetBranchId_First(layoutSetBranchId,
175                            orderByComparator);
176            }
177    
178            /**
179            * Returns the first layout branch in the ordered set where layoutSetBranchId = &#63;.
180            *
181            * @param layoutSetBranchId the layout set branch ID
182            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
183            * @return the first matching layout branch, or <code>null</code> if a matching layout branch could not be found
184            */
185            public static com.liferay.portal.model.LayoutBranch fetchByLayoutSetBranchId_First(
186                    long layoutSetBranchId,
187                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator) {
188                    return getPersistence()
189                                       .fetchByLayoutSetBranchId_First(layoutSetBranchId,
190                            orderByComparator);
191            }
192    
193            /**
194            * Returns the last layout branch in the ordered set where layoutSetBranchId = &#63;.
195            *
196            * @param layoutSetBranchId the layout set branch ID
197            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
198            * @return the last matching layout branch
199            * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found
200            */
201            public static com.liferay.portal.model.LayoutBranch findByLayoutSetBranchId_Last(
202                    long layoutSetBranchId,
203                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator)
204                    throws com.liferay.portal.NoSuchLayoutBranchException {
205                    return getPersistence()
206                                       .findByLayoutSetBranchId_Last(layoutSetBranchId,
207                            orderByComparator);
208            }
209    
210            /**
211            * Returns the last layout branch in the ordered set where layoutSetBranchId = &#63;.
212            *
213            * @param layoutSetBranchId the layout set branch ID
214            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
215            * @return the last matching layout branch, or <code>null</code> if a matching layout branch could not be found
216            */
217            public static com.liferay.portal.model.LayoutBranch fetchByLayoutSetBranchId_Last(
218                    long layoutSetBranchId,
219                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator) {
220                    return getPersistence()
221                                       .fetchByLayoutSetBranchId_Last(layoutSetBranchId,
222                            orderByComparator);
223            }
224    
225            /**
226            * Returns the layout branchs before and after the current layout branch in the ordered set where layoutSetBranchId = &#63;.
227            *
228            * @param layoutBranchId the primary key of the current layout branch
229            * @param layoutSetBranchId the layout set branch ID
230            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
231            * @return the previous, current, and next layout branch
232            * @throws com.liferay.portal.NoSuchLayoutBranchException if a layout branch with the primary key could not be found
233            */
234            public static com.liferay.portal.model.LayoutBranch[] findByLayoutSetBranchId_PrevAndNext(
235                    long layoutBranchId, long layoutSetBranchId,
236                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator)
237                    throws com.liferay.portal.NoSuchLayoutBranchException {
238                    return getPersistence()
239                                       .findByLayoutSetBranchId_PrevAndNext(layoutBranchId,
240                            layoutSetBranchId, orderByComparator);
241            }
242    
243            /**
244            * Removes all the layout branchs where layoutSetBranchId = &#63; from the database.
245            *
246            * @param layoutSetBranchId the layout set branch ID
247            */
248            public static void removeByLayoutSetBranchId(long layoutSetBranchId) {
249                    getPersistence().removeByLayoutSetBranchId(layoutSetBranchId);
250            }
251    
252            /**
253            * Returns the number of layout branchs where layoutSetBranchId = &#63;.
254            *
255            * @param layoutSetBranchId the layout set branch ID
256            * @return the number of matching layout branchs
257            */
258            public static int countByLayoutSetBranchId(long layoutSetBranchId) {
259                    return getPersistence().countByLayoutSetBranchId(layoutSetBranchId);
260            }
261    
262            /**
263            * Returns all the layout branchs where layoutSetBranchId = &#63; and plid = &#63;.
264            *
265            * @param layoutSetBranchId the layout set branch ID
266            * @param plid the plid
267            * @return the matching layout branchs
268            */
269            public static java.util.List<com.liferay.portal.model.LayoutBranch> findByL_P(
270                    long layoutSetBranchId, long plid) {
271                    return getPersistence().findByL_P(layoutSetBranchId, plid);
272            }
273    
274            /**
275            * Returns a range of all the layout branchs where layoutSetBranchId = &#63; and plid = &#63;.
276            *
277            * <p>
278            * 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.
279            * </p>
280            *
281            * @param layoutSetBranchId the layout set branch ID
282            * @param plid the plid
283            * @param start the lower bound of the range of layout branchs
284            * @param end the upper bound of the range of layout branchs (not inclusive)
285            * @return the range of matching layout branchs
286            */
287            public static java.util.List<com.liferay.portal.model.LayoutBranch> findByL_P(
288                    long layoutSetBranchId, long plid, int start, int end) {
289                    return getPersistence().findByL_P(layoutSetBranchId, plid, start, end);
290            }
291    
292            /**
293            * Returns an ordered range of all the layout branchs where layoutSetBranchId = &#63; and plid = &#63;.
294            *
295            * <p>
296            * 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.
297            * </p>
298            *
299            * @param layoutSetBranchId the layout set branch ID
300            * @param plid the plid
301            * @param start the lower bound of the range of layout branchs
302            * @param end the upper bound of the range of layout branchs (not inclusive)
303            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
304            * @return the ordered range of matching layout branchs
305            */
306            public static java.util.List<com.liferay.portal.model.LayoutBranch> findByL_P(
307                    long layoutSetBranchId, long plid, int start, int end,
308                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator) {
309                    return getPersistence()
310                                       .findByL_P(layoutSetBranchId, plid, start, end,
311                            orderByComparator);
312            }
313    
314            /**
315            * Returns the first layout branch in the ordered set where layoutSetBranchId = &#63; and plid = &#63;.
316            *
317            * @param layoutSetBranchId the layout set branch ID
318            * @param plid the plid
319            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
320            * @return the first matching layout branch
321            * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found
322            */
323            public static com.liferay.portal.model.LayoutBranch findByL_P_First(
324                    long layoutSetBranchId, long plid,
325                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator)
326                    throws com.liferay.portal.NoSuchLayoutBranchException {
327                    return getPersistence()
328                                       .findByL_P_First(layoutSetBranchId, plid, orderByComparator);
329            }
330    
331            /**
332            * Returns the first layout branch in the ordered set where layoutSetBranchId = &#63; and plid = &#63;.
333            *
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 first matching layout branch, or <code>null</code> if a matching layout branch could not be found
338            */
339            public static com.liferay.portal.model.LayoutBranch fetchByL_P_First(
340                    long layoutSetBranchId, long plid,
341                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator) {
342                    return getPersistence()
343                                       .fetchByL_P_First(layoutSetBranchId, plid, orderByComparator);
344            }
345    
346            /**
347            * Returns the last layout branch in the ordered set where layoutSetBranchId = &#63; and plid = &#63;.
348            *
349            * @param layoutSetBranchId the layout set branch ID
350            * @param plid the plid
351            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
352            * @return the last matching layout branch
353            * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found
354            */
355            public static com.liferay.portal.model.LayoutBranch findByL_P_Last(
356                    long layoutSetBranchId, long plid,
357                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator)
358                    throws com.liferay.portal.NoSuchLayoutBranchException {
359                    return getPersistence()
360                                       .findByL_P_Last(layoutSetBranchId, plid, orderByComparator);
361            }
362    
363            /**
364            * Returns the last layout branch in the ordered set where layoutSetBranchId = &#63; and plid = &#63;.
365            *
366            * @param layoutSetBranchId the layout set branch ID
367            * @param plid the plid
368            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
369            * @return the last matching layout branch, or <code>null</code> if a matching layout branch could not be found
370            */
371            public static com.liferay.portal.model.LayoutBranch fetchByL_P_Last(
372                    long layoutSetBranchId, long plid,
373                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator) {
374                    return getPersistence()
375                                       .fetchByL_P_Last(layoutSetBranchId, plid, orderByComparator);
376            }
377    
378            /**
379            * Returns the layout branchs before and after the current layout branch in the ordered set where layoutSetBranchId = &#63; and plid = &#63;.
380            *
381            * @param layoutBranchId the primary key of the current layout branch
382            * @param layoutSetBranchId the layout set branch ID
383            * @param plid the plid
384            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
385            * @return the previous, current, and next layout branch
386            * @throws com.liferay.portal.NoSuchLayoutBranchException if a layout branch with the primary key could not be found
387            */
388            public static com.liferay.portal.model.LayoutBranch[] findByL_P_PrevAndNext(
389                    long layoutBranchId, long layoutSetBranchId, long plid,
390                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator)
391                    throws com.liferay.portal.NoSuchLayoutBranchException {
392                    return getPersistence()
393                                       .findByL_P_PrevAndNext(layoutBranchId, layoutSetBranchId,
394                            plid, orderByComparator);
395            }
396    
397            /**
398            * Removes all the layout branchs where layoutSetBranchId = &#63; and plid = &#63; from the database.
399            *
400            * @param layoutSetBranchId the layout set branch ID
401            * @param plid the plid
402            */
403            public static void removeByL_P(long layoutSetBranchId, long plid) {
404                    getPersistence().removeByL_P(layoutSetBranchId, plid);
405            }
406    
407            /**
408            * Returns the number of layout branchs where layoutSetBranchId = &#63; and plid = &#63;.
409            *
410            * @param layoutSetBranchId the layout set branch ID
411            * @param plid the plid
412            * @return the number of matching layout branchs
413            */
414            public static int countByL_P(long layoutSetBranchId, long plid) {
415                    return getPersistence().countByL_P(layoutSetBranchId, plid);
416            }
417    
418            /**
419            * 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.
420            *
421            * @param layoutSetBranchId the layout set branch ID
422            * @param plid the plid
423            * @param name the name
424            * @return the matching layout branch
425            * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found
426            */
427            public static com.liferay.portal.model.LayoutBranch findByL_P_N(
428                    long layoutSetBranchId, long plid, java.lang.String name)
429                    throws com.liferay.portal.NoSuchLayoutBranchException {
430                    return getPersistence().findByL_P_N(layoutSetBranchId, plid, name);
431            }
432    
433            /**
434            * 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.
435            *
436            * @param layoutSetBranchId the layout set branch ID
437            * @param plid the plid
438            * @param name the name
439            * @return the matching layout branch, or <code>null</code> if a matching layout branch could not be found
440            */
441            public static com.liferay.portal.model.LayoutBranch fetchByL_P_N(
442                    long layoutSetBranchId, long plid, java.lang.String name) {
443                    return getPersistence().fetchByL_P_N(layoutSetBranchId, plid, name);
444            }
445    
446            /**
447            * 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.
448            *
449            * @param layoutSetBranchId the layout set branch ID
450            * @param plid the plid
451            * @param name the name
452            * @param retrieveFromCache whether to use the finder cache
453            * @return the matching layout branch, or <code>null</code> if a matching layout branch could not be found
454            */
455            public static com.liferay.portal.model.LayoutBranch fetchByL_P_N(
456                    long layoutSetBranchId, long plid, java.lang.String name,
457                    boolean retrieveFromCache) {
458                    return getPersistence()
459                                       .fetchByL_P_N(layoutSetBranchId, plid, name,
460                            retrieveFromCache);
461            }
462    
463            /**
464            * Removes the layout branch where layoutSetBranchId = &#63; and plid = &#63; and name = &#63; from the database.
465            *
466            * @param layoutSetBranchId the layout set branch ID
467            * @param plid the plid
468            * @param name the name
469            * @return the layout branch that was removed
470            */
471            public static com.liferay.portal.model.LayoutBranch removeByL_P_N(
472                    long layoutSetBranchId, long plid, java.lang.String name)
473                    throws com.liferay.portal.NoSuchLayoutBranchException {
474                    return getPersistence().removeByL_P_N(layoutSetBranchId, plid, name);
475            }
476    
477            /**
478            * Returns the number of layout branchs where layoutSetBranchId = &#63; and plid = &#63; and name = &#63;.
479            *
480            * @param layoutSetBranchId the layout set branch ID
481            * @param plid the plid
482            * @param name the name
483            * @return the number of matching layout branchs
484            */
485            public static int countByL_P_N(long layoutSetBranchId, long plid,
486                    java.lang.String name) {
487                    return getPersistence().countByL_P_N(layoutSetBranchId, plid, name);
488            }
489    
490            /**
491            * Returns all the layout branchs where layoutSetBranchId = &#63; and plid = &#63; and master = &#63;.
492            *
493            * @param layoutSetBranchId the layout set branch ID
494            * @param plid the plid
495            * @param master the master
496            * @return the matching layout branchs
497            */
498            public static java.util.List<com.liferay.portal.model.LayoutBranch> findByL_P_M(
499                    long layoutSetBranchId, long plid, boolean master) {
500                    return getPersistence().findByL_P_M(layoutSetBranchId, plid, master);
501            }
502    
503            /**
504            * Returns a range of all the layout branchs where layoutSetBranchId = &#63; and plid = &#63; and master = &#63;.
505            *
506            * <p>
507            * 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.
508            * </p>
509            *
510            * @param layoutSetBranchId the layout set branch ID
511            * @param plid the plid
512            * @param master the master
513            * @param start the lower bound of the range of layout branchs
514            * @param end the upper bound of the range of layout branchs (not inclusive)
515            * @return the range of matching layout branchs
516            */
517            public static java.util.List<com.liferay.portal.model.LayoutBranch> findByL_P_M(
518                    long layoutSetBranchId, long plid, boolean master, int start, int end) {
519                    return getPersistence()
520                                       .findByL_P_M(layoutSetBranchId, plid, master, start, end);
521            }
522    
523            /**
524            * Returns an ordered range of all the layout branchs where layoutSetBranchId = &#63; and plid = &#63; and master = &#63;.
525            *
526            * <p>
527            * 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.
528            * </p>
529            *
530            * @param layoutSetBranchId the layout set branch ID
531            * @param plid the plid
532            * @param master the master
533            * @param start the lower bound of the range of layout branchs
534            * @param end the upper bound of the range of layout branchs (not inclusive)
535            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
536            * @return the ordered range of matching layout branchs
537            */
538            public static java.util.List<com.liferay.portal.model.LayoutBranch> findByL_P_M(
539                    long layoutSetBranchId, long plid, boolean master, int start, int end,
540                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator) {
541                    return getPersistence()
542                                       .findByL_P_M(layoutSetBranchId, plid, master, start, end,
543                            orderByComparator);
544            }
545    
546            /**
547            * Returns the first layout branch in the ordered set where layoutSetBranchId = &#63; and plid = &#63; and master = &#63;.
548            *
549            * @param layoutSetBranchId the layout set branch ID
550            * @param plid the plid
551            * @param master the master
552            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
553            * @return the first matching layout branch
554            * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found
555            */
556            public static com.liferay.portal.model.LayoutBranch findByL_P_M_First(
557                    long layoutSetBranchId, long plid, boolean master,
558                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator)
559                    throws com.liferay.portal.NoSuchLayoutBranchException {
560                    return getPersistence()
561                                       .findByL_P_M_First(layoutSetBranchId, plid, master,
562                            orderByComparator);
563            }
564    
565            /**
566            * Returns the first layout branch in the ordered set 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            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
572            * @return the first matching layout branch, or <code>null</code> if a matching layout branch could not be found
573            */
574            public static com.liferay.portal.model.LayoutBranch fetchByL_P_M_First(
575                    long layoutSetBranchId, long plid, boolean master,
576                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator) {
577                    return getPersistence()
578                                       .fetchByL_P_M_First(layoutSetBranchId, plid, master,
579                            orderByComparator);
580            }
581    
582            /**
583            * Returns the last layout branch in the ordered set where layoutSetBranchId = &#63; and plid = &#63; and master = &#63;.
584            *
585            * @param layoutSetBranchId the layout set branch ID
586            * @param plid the plid
587            * @param master the master
588            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
589            * @return the last matching layout branch
590            * @throws com.liferay.portal.NoSuchLayoutBranchException if a matching layout branch could not be found
591            */
592            public static com.liferay.portal.model.LayoutBranch findByL_P_M_Last(
593                    long layoutSetBranchId, long plid, boolean master,
594                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator)
595                    throws com.liferay.portal.NoSuchLayoutBranchException {
596                    return getPersistence()
597                                       .findByL_P_M_Last(layoutSetBranchId, plid, master,
598                            orderByComparator);
599            }
600    
601            /**
602            * Returns the last layout branch in the ordered set where layoutSetBranchId = &#63; and plid = &#63; and master = &#63;.
603            *
604            * @param layoutSetBranchId the layout set branch ID
605            * @param plid the plid
606            * @param master the master
607            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
608            * @return the last matching layout branch, or <code>null</code> if a matching layout branch could not be found
609            */
610            public static com.liferay.portal.model.LayoutBranch fetchByL_P_M_Last(
611                    long layoutSetBranchId, long plid, boolean master,
612                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator) {
613                    return getPersistence()
614                                       .fetchByL_P_M_Last(layoutSetBranchId, plid, master,
615                            orderByComparator);
616            }
617    
618            /**
619            * Returns the layout branchs before and after the current layout branch in the ordered set where layoutSetBranchId = &#63; and plid = &#63; and master = &#63;.
620            *
621            * @param layoutBranchId the primary key of the current layout branch
622            * @param layoutSetBranchId the layout set branch ID
623            * @param plid the plid
624            * @param master the master
625            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
626            * @return the previous, current, and next layout branch
627            * @throws com.liferay.portal.NoSuchLayoutBranchException if a layout branch with the primary key could not be found
628            */
629            public static com.liferay.portal.model.LayoutBranch[] findByL_P_M_PrevAndNext(
630                    long layoutBranchId, long layoutSetBranchId, long plid, boolean master,
631                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator)
632                    throws com.liferay.portal.NoSuchLayoutBranchException {
633                    return getPersistence()
634                                       .findByL_P_M_PrevAndNext(layoutBranchId, layoutSetBranchId,
635                            plid, master, orderByComparator);
636            }
637    
638            /**
639            * Removes all the layout branchs where layoutSetBranchId = &#63; and plid = &#63; and master = &#63; from the database.
640            *
641            * @param layoutSetBranchId the layout set branch ID
642            * @param plid the plid
643            * @param master the master
644            */
645            public static void removeByL_P_M(long layoutSetBranchId, long plid,
646                    boolean master) {
647                    getPersistence().removeByL_P_M(layoutSetBranchId, plid, master);
648            }
649    
650            /**
651            * Returns the number of layout branchs where layoutSetBranchId = &#63; and plid = &#63; and master = &#63;.
652            *
653            * @param layoutSetBranchId the layout set branch ID
654            * @param plid the plid
655            * @param master the master
656            * @return the number of matching layout branchs
657            */
658            public static int countByL_P_M(long layoutSetBranchId, long plid,
659                    boolean master) {
660                    return getPersistence().countByL_P_M(layoutSetBranchId, plid, master);
661            }
662    
663            /**
664            * Caches the layout branch in the entity cache if it is enabled.
665            *
666            * @param layoutBranch the layout branch
667            */
668            public static void cacheResult(
669                    com.liferay.portal.model.LayoutBranch layoutBranch) {
670                    getPersistence().cacheResult(layoutBranch);
671            }
672    
673            /**
674            * Caches the layout branchs in the entity cache if it is enabled.
675            *
676            * @param layoutBranchs the layout branchs
677            */
678            public static void cacheResult(
679                    java.util.List<com.liferay.portal.model.LayoutBranch> layoutBranchs) {
680                    getPersistence().cacheResult(layoutBranchs);
681            }
682    
683            /**
684            * Creates a new layout branch with the primary key. Does not add the layout branch to the database.
685            *
686            * @param layoutBranchId the primary key for the new layout branch
687            * @return the new layout branch
688            */
689            public static com.liferay.portal.model.LayoutBranch create(
690                    long layoutBranchId) {
691                    return getPersistence().create(layoutBranchId);
692            }
693    
694            /**
695            * Removes the layout branch with the primary key from the database. Also notifies the appropriate model listeners.
696            *
697            * @param layoutBranchId the primary key of the layout branch
698            * @return the layout branch that was removed
699            * @throws com.liferay.portal.NoSuchLayoutBranchException if a layout branch with the primary key could not be found
700            */
701            public static com.liferay.portal.model.LayoutBranch remove(
702                    long layoutBranchId)
703                    throws com.liferay.portal.NoSuchLayoutBranchException {
704                    return getPersistence().remove(layoutBranchId);
705            }
706    
707            public static com.liferay.portal.model.LayoutBranch updateImpl(
708                    com.liferay.portal.model.LayoutBranch layoutBranch) {
709                    return getPersistence().updateImpl(layoutBranch);
710            }
711    
712            /**
713            * Returns the layout branch with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutBranchException} if it could not be found.
714            *
715            * @param layoutBranchId the primary key of the layout branch
716            * @return the layout branch
717            * @throws com.liferay.portal.NoSuchLayoutBranchException if a layout branch with the primary key could not be found
718            */
719            public static com.liferay.portal.model.LayoutBranch findByPrimaryKey(
720                    long layoutBranchId)
721                    throws com.liferay.portal.NoSuchLayoutBranchException {
722                    return getPersistence().findByPrimaryKey(layoutBranchId);
723            }
724    
725            /**
726            * Returns the layout branch with the primary key or returns <code>null</code> if it could not be found.
727            *
728            * @param layoutBranchId the primary key of the layout branch
729            * @return the layout branch, or <code>null</code> if a layout branch with the primary key could not be found
730            */
731            public static com.liferay.portal.model.LayoutBranch fetchByPrimaryKey(
732                    long layoutBranchId) {
733                    return getPersistence().fetchByPrimaryKey(layoutBranchId);
734            }
735    
736            public static java.util.Map<java.io.Serializable, com.liferay.portal.model.LayoutBranch> fetchByPrimaryKeys(
737                    java.util.Set<java.io.Serializable> primaryKeys) {
738                    return getPersistence().fetchByPrimaryKeys(primaryKeys);
739            }
740    
741            /**
742            * Returns all the layout branchs.
743            *
744            * @return the layout branchs
745            */
746            public static java.util.List<com.liferay.portal.model.LayoutBranch> findAll() {
747                    return getPersistence().findAll();
748            }
749    
750            /**
751            * Returns a range of all the layout branchs.
752            *
753            * <p>
754            * 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.
755            * </p>
756            *
757            * @param start the lower bound of the range of layout branchs
758            * @param end the upper bound of the range of layout branchs (not inclusive)
759            * @return the range of layout branchs
760            */
761            public static java.util.List<com.liferay.portal.model.LayoutBranch> findAll(
762                    int start, int end) {
763                    return getPersistence().findAll(start, end);
764            }
765    
766            /**
767            * Returns an ordered range of all the layout branchs.
768            *
769            * <p>
770            * 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.
771            * </p>
772            *
773            * @param start the lower bound of the range of layout branchs
774            * @param end the upper bound of the range of layout branchs (not inclusive)
775            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
776            * @return the ordered range of layout branchs
777            */
778            public static java.util.List<com.liferay.portal.model.LayoutBranch> findAll(
779                    int start, int end,
780                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator) {
781                    return getPersistence().findAll(start, end, orderByComparator);
782            }
783    
784            /**
785            * Removes all the layout branchs from the database.
786            */
787            public static void removeAll() {
788                    getPersistence().removeAll();
789            }
790    
791            /**
792            * Returns the number of layout branchs.
793            *
794            * @return the number of layout branchs
795            */
796            public static int countAll() {
797                    return getPersistence().countAll();
798            }
799    
800            public static LayoutBranchPersistence getPersistence() {
801                    if (_persistence == null) {
802                            _persistence = (LayoutBranchPersistence)PortalBeanLocatorUtil.locate(LayoutBranchPersistence.class.getName());
803    
804                            ReferenceRegistry.registerReference(LayoutBranchUtil.class,
805                                    "_persistence");
806                    }
807    
808                    return _persistence;
809            }
810    
811            /**
812             * @deprecated As of 6.2.0
813             */
814            @Deprecated
815            public void setPersistence(LayoutBranchPersistence persistence) {
816            }
817    
818            private static LayoutBranchPersistence _persistence;
819    }