001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.kernel.util.ReferenceRegistry;
022    import com.liferay.portal.model.LayoutSetBranch;
023    import com.liferay.portal.service.ServiceContext;
024    
025    import java.util.List;
026    
027    /**
028     * The persistence utility for the layout set branch service. This utility wraps {@link LayoutSetBranchPersistenceImpl} 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.
029     *
030     * <p>
031     * Caching information and settings can be found in <code>portal.properties</code>
032     * </p>
033     *
034     * @author Brian Wing Shun Chan
035     * @see LayoutSetBranchPersistence
036     * @see LayoutSetBranchPersistenceImpl
037     * @generated
038     */
039    public class LayoutSetBranchUtil {
040            /*
041             * NOTE FOR DEVELOPERS:
042             *
043             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
044             */
045    
046            /**
047             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
048             */
049            public static void clearCache() {
050                    getPersistence().clearCache();
051            }
052    
053            /**
054             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
055             */
056            public static void clearCache(LayoutSetBranch layoutSetBranch) {
057                    getPersistence().clearCache(layoutSetBranch);
058            }
059    
060            /**
061             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
062             */
063            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
064                    throws SystemException {
065                    return getPersistence().countWithDynamicQuery(dynamicQuery);
066            }
067    
068            /**
069             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
070             */
071            public static List<LayoutSetBranch> findWithDynamicQuery(
072                    DynamicQuery dynamicQuery) throws SystemException {
073                    return getPersistence().findWithDynamicQuery(dynamicQuery);
074            }
075    
076            /**
077             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
078             */
079            public static List<LayoutSetBranch> findWithDynamicQuery(
080                    DynamicQuery dynamicQuery, int start, int end)
081                    throws SystemException {
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<LayoutSetBranch> findWithDynamicQuery(
089                    DynamicQuery dynamicQuery, int start, int end,
090                    OrderByComparator orderByComparator) throws SystemException {
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 LayoutSetBranch update(LayoutSetBranch layoutSetBranch)
100                    throws SystemException {
101                    return getPersistence().update(layoutSetBranch);
102            }
103    
104            /**
105             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
106             */
107            public static LayoutSetBranch update(LayoutSetBranch layoutSetBranch,
108                    ServiceContext serviceContext) throws SystemException {
109                    return getPersistence().update(layoutSetBranch, serviceContext);
110            }
111    
112            /**
113            * Returns all the layout set branchs where groupId = &#63;.
114            *
115            * @param groupId the group ID
116            * @return the matching layout set branchs
117            * @throws SystemException if a system exception occurred
118            */
119            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByGroupId(
120                    long groupId)
121                    throws com.liferay.portal.kernel.exception.SystemException {
122                    return getPersistence().findByGroupId(groupId);
123            }
124    
125            /**
126            * Returns a range of all the layout set branchs where groupId = &#63;.
127            *
128            * <p>
129            * 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.LayoutSetBranchModelImpl}. 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.
130            * </p>
131            *
132            * @param groupId the group ID
133            * @param start the lower bound of the range of layout set branchs
134            * @param end the upper bound of the range of layout set branchs (not inclusive)
135            * @return the range of matching layout set branchs
136            * @throws SystemException if a system exception occurred
137            */
138            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByGroupId(
139                    long groupId, int start, int end)
140                    throws com.liferay.portal.kernel.exception.SystemException {
141                    return getPersistence().findByGroupId(groupId, start, end);
142            }
143    
144            /**
145            * Returns an ordered range of all the layout set branchs where groupId = &#63;.
146            *
147            * <p>
148            * 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.LayoutSetBranchModelImpl}. 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.
149            * </p>
150            *
151            * @param groupId the group ID
152            * @param start the lower bound of the range of layout set branchs
153            * @param end the upper bound of the range of layout set branchs (not inclusive)
154            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
155            * @return the ordered range of matching layout set branchs
156            * @throws SystemException if a system exception occurred
157            */
158            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByGroupId(
159                    long groupId, int start, int end,
160                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
161                    throws com.liferay.portal.kernel.exception.SystemException {
162                    return getPersistence()
163                                       .findByGroupId(groupId, start, end, orderByComparator);
164            }
165    
166            /**
167            * Returns the first layout set branch in the ordered set where groupId = &#63;.
168            *
169            * @param groupId the group ID
170            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
171            * @return the first matching layout set branch
172            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found
173            * @throws SystemException if a system exception occurred
174            */
175            public static com.liferay.portal.model.LayoutSetBranch findByGroupId_First(
176                    long groupId,
177                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
178                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
181            }
182    
183            /**
184            * Returns the first layout set branch in the ordered set where groupId = &#63;.
185            *
186            * @param groupId the group ID
187            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
188            * @return the first matching layout set branch, or <code>null</code> if a matching layout set branch could not be found
189            * @throws SystemException if a system exception occurred
190            */
191            public static com.liferay.portal.model.LayoutSetBranch fetchByGroupId_First(
192                    long groupId,
193                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
194                    throws com.liferay.portal.kernel.exception.SystemException {
195                    return getPersistence().fetchByGroupId_First(groupId, orderByComparator);
196            }
197    
198            /**
199            * Returns the last layout set branch in the ordered set where groupId = &#63;.
200            *
201            * @param groupId the group ID
202            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
203            * @return the last matching layout set branch
204            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found
205            * @throws SystemException if a system exception occurred
206            */
207            public static com.liferay.portal.model.LayoutSetBranch findByGroupId_Last(
208                    long groupId,
209                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
211                            com.liferay.portal.kernel.exception.SystemException {
212                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
213            }
214    
215            /**
216            * Returns the last layout set branch in the ordered set where groupId = &#63;.
217            *
218            * @param groupId the group ID
219            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
220            * @return the last matching layout set branch, or <code>null</code> if a matching layout set branch could not be found
221            * @throws SystemException if a system exception occurred
222            */
223            public static com.liferay.portal.model.LayoutSetBranch fetchByGroupId_Last(
224                    long groupId,
225                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
226                    throws com.liferay.portal.kernel.exception.SystemException {
227                    return getPersistence().fetchByGroupId_Last(groupId, orderByComparator);
228            }
229    
230            /**
231            * Returns the layout set branchs before and after the current layout set branch in the ordered set where groupId = &#63;.
232            *
233            * @param layoutSetBranchId the primary key of the current layout set branch
234            * @param groupId the group ID
235            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
236            * @return the previous, current, and next layout set branch
237            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
238            * @throws SystemException if a system exception occurred
239            */
240            public static com.liferay.portal.model.LayoutSetBranch[] findByGroupId_PrevAndNext(
241                    long layoutSetBranchId, long groupId,
242                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
244                            com.liferay.portal.kernel.exception.SystemException {
245                    return getPersistence()
246                                       .findByGroupId_PrevAndNext(layoutSetBranchId, groupId,
247                            orderByComparator);
248            }
249    
250            /**
251            * Returns all the layout set branchs that the user has permission to view where groupId = &#63;.
252            *
253            * @param groupId the group ID
254            * @return the matching layout set branchs that the user has permission to view
255            * @throws SystemException if a system exception occurred
256            */
257            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByGroupId(
258                    long groupId)
259                    throws com.liferay.portal.kernel.exception.SystemException {
260                    return getPersistence().filterFindByGroupId(groupId);
261            }
262    
263            /**
264            * Returns a range of all the layout set branchs that the user has permission to view where groupId = &#63;.
265            *
266            * <p>
267            * 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.LayoutSetBranchModelImpl}. 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.
268            * </p>
269            *
270            * @param groupId the group ID
271            * @param start the lower bound of the range of layout set branchs
272            * @param end the upper bound of the range of layout set branchs (not inclusive)
273            * @return the range of matching layout set branchs that the user has permission to view
274            * @throws SystemException if a system exception occurred
275            */
276            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByGroupId(
277                    long groupId, int start, int end)
278                    throws com.liferay.portal.kernel.exception.SystemException {
279                    return getPersistence().filterFindByGroupId(groupId, start, end);
280            }
281    
282            /**
283            * Returns an ordered range of all the layout set branchs that the user has permissions to view where groupId = &#63;.
284            *
285            * <p>
286            * 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.LayoutSetBranchModelImpl}. 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.
287            * </p>
288            *
289            * @param groupId the group ID
290            * @param start the lower bound of the range of layout set branchs
291            * @param end the upper bound of the range of layout set branchs (not inclusive)
292            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
293            * @return the ordered range of matching layout set branchs that the user has permission to view
294            * @throws SystemException if a system exception occurred
295            */
296            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByGroupId(
297                    long groupId, int start, int end,
298                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
299                    throws com.liferay.portal.kernel.exception.SystemException {
300                    return getPersistence()
301                                       .filterFindByGroupId(groupId, start, end, orderByComparator);
302            }
303    
304            /**
305            * Returns the layout set branchs before and after the current layout set branch in the ordered set of layout set branchs that the user has permission to view where groupId = &#63;.
306            *
307            * @param layoutSetBranchId the primary key of the current layout set branch
308            * @param groupId the group ID
309            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
310            * @return the previous, current, and next layout set branch
311            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
312            * @throws SystemException if a system exception occurred
313            */
314            public static com.liferay.portal.model.LayoutSetBranch[] filterFindByGroupId_PrevAndNext(
315                    long layoutSetBranchId, long groupId,
316                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
317                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
318                            com.liferay.portal.kernel.exception.SystemException {
319                    return getPersistence()
320                                       .filterFindByGroupId_PrevAndNext(layoutSetBranchId, groupId,
321                            orderByComparator);
322            }
323    
324            /**
325            * Removes all the layout set branchs where groupId = &#63; from the database.
326            *
327            * @param groupId the group ID
328            * @throws SystemException if a system exception occurred
329            */
330            public static void removeByGroupId(long groupId)
331                    throws com.liferay.portal.kernel.exception.SystemException {
332                    getPersistence().removeByGroupId(groupId);
333            }
334    
335            /**
336            * Returns the number of layout set branchs where groupId = &#63;.
337            *
338            * @param groupId the group ID
339            * @return the number of matching layout set branchs
340            * @throws SystemException if a system exception occurred
341            */
342            public static int countByGroupId(long groupId)
343                    throws com.liferay.portal.kernel.exception.SystemException {
344                    return getPersistence().countByGroupId(groupId);
345            }
346    
347            /**
348            * Returns the number of layout set branchs that the user has permission to view where groupId = &#63;.
349            *
350            * @param groupId the group ID
351            * @return the number of matching layout set branchs that the user has permission to view
352            * @throws SystemException if a system exception occurred
353            */
354            public static int filterCountByGroupId(long groupId)
355                    throws com.liferay.portal.kernel.exception.SystemException {
356                    return getPersistence().filterCountByGroupId(groupId);
357            }
358    
359            /**
360            * Returns all the layout set branchs where groupId = &#63; and privateLayout = &#63;.
361            *
362            * @param groupId the group ID
363            * @param privateLayout the private layout
364            * @return the matching layout set branchs
365            * @throws SystemException if a system exception occurred
366            */
367            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P(
368                    long groupId, boolean privateLayout)
369                    throws com.liferay.portal.kernel.exception.SystemException {
370                    return getPersistence().findByG_P(groupId, privateLayout);
371            }
372    
373            /**
374            * Returns a range of all the layout set branchs where groupId = &#63; and privateLayout = &#63;.
375            *
376            * <p>
377            * 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.LayoutSetBranchModelImpl}. 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.
378            * </p>
379            *
380            * @param groupId the group ID
381            * @param privateLayout the private layout
382            * @param start the lower bound of the range of layout set branchs
383            * @param end the upper bound of the range of layout set branchs (not inclusive)
384            * @return the range of matching layout set branchs
385            * @throws SystemException if a system exception occurred
386            */
387            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P(
388                    long groupId, boolean privateLayout, int start, int end)
389                    throws com.liferay.portal.kernel.exception.SystemException {
390                    return getPersistence().findByG_P(groupId, privateLayout, start, end);
391            }
392    
393            /**
394            * Returns an ordered range of all the layout set branchs where groupId = &#63; and privateLayout = &#63;.
395            *
396            * <p>
397            * 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.LayoutSetBranchModelImpl}. 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.
398            * </p>
399            *
400            * @param groupId the group ID
401            * @param privateLayout the private layout
402            * @param start the lower bound of the range of layout set branchs
403            * @param end the upper bound of the range of layout set branchs (not inclusive)
404            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
405            * @return the ordered range of matching layout set branchs
406            * @throws SystemException if a system exception occurred
407            */
408            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P(
409                    long groupId, boolean privateLayout, int start, int end,
410                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
411                    throws com.liferay.portal.kernel.exception.SystemException {
412                    return getPersistence()
413                                       .findByG_P(groupId, privateLayout, start, end,
414                            orderByComparator);
415            }
416    
417            /**
418            * Returns the first layout set branch in the ordered set where groupId = &#63; and privateLayout = &#63;.
419            *
420            * @param groupId the group ID
421            * @param privateLayout the private layout
422            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
423            * @return the first matching layout set branch
424            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found
425            * @throws SystemException if a system exception occurred
426            */
427            public static com.liferay.portal.model.LayoutSetBranch findByG_P_First(
428                    long groupId, boolean privateLayout,
429                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
430                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
431                            com.liferay.portal.kernel.exception.SystemException {
432                    return getPersistence()
433                                       .findByG_P_First(groupId, privateLayout, orderByComparator);
434            }
435    
436            /**
437            * Returns the first layout set branch in the ordered set where groupId = &#63; and privateLayout = &#63;.
438            *
439            * @param groupId the group ID
440            * @param privateLayout the private layout
441            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
442            * @return the first matching layout set branch, or <code>null</code> if a matching layout set branch could not be found
443            * @throws SystemException if a system exception occurred
444            */
445            public static com.liferay.portal.model.LayoutSetBranch fetchByG_P_First(
446                    long groupId, boolean privateLayout,
447                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
448                    throws com.liferay.portal.kernel.exception.SystemException {
449                    return getPersistence()
450                                       .fetchByG_P_First(groupId, privateLayout, orderByComparator);
451            }
452    
453            /**
454            * Returns the last layout set branch in the ordered set where groupId = &#63; and privateLayout = &#63;.
455            *
456            * @param groupId the group ID
457            * @param privateLayout the private layout
458            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
459            * @return the last matching layout set branch
460            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found
461            * @throws SystemException if a system exception occurred
462            */
463            public static com.liferay.portal.model.LayoutSetBranch findByG_P_Last(
464                    long groupId, boolean privateLayout,
465                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
466                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
467                            com.liferay.portal.kernel.exception.SystemException {
468                    return getPersistence()
469                                       .findByG_P_Last(groupId, privateLayout, orderByComparator);
470            }
471    
472            /**
473            * Returns the last layout set branch in the ordered set where groupId = &#63; and privateLayout = &#63;.
474            *
475            * @param groupId the group ID
476            * @param privateLayout the private layout
477            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
478            * @return the last matching layout set branch, or <code>null</code> if a matching layout set branch could not be found
479            * @throws SystemException if a system exception occurred
480            */
481            public static com.liferay.portal.model.LayoutSetBranch fetchByG_P_Last(
482                    long groupId, boolean privateLayout,
483                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
484                    throws com.liferay.portal.kernel.exception.SystemException {
485                    return getPersistence()
486                                       .fetchByG_P_Last(groupId, privateLayout, orderByComparator);
487            }
488    
489            /**
490            * Returns the layout set branchs before and after the current layout set branch in the ordered set where groupId = &#63; and privateLayout = &#63;.
491            *
492            * @param layoutSetBranchId the primary key of the current layout set branch
493            * @param groupId the group ID
494            * @param privateLayout the private layout
495            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
496            * @return the previous, current, and next layout set branch
497            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
498            * @throws SystemException if a system exception occurred
499            */
500            public static com.liferay.portal.model.LayoutSetBranch[] findByG_P_PrevAndNext(
501                    long layoutSetBranchId, long groupId, boolean privateLayout,
502                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
503                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
504                            com.liferay.portal.kernel.exception.SystemException {
505                    return getPersistence()
506                                       .findByG_P_PrevAndNext(layoutSetBranchId, groupId,
507                            privateLayout, orderByComparator);
508            }
509    
510            /**
511            * Returns all the layout set branchs that the user has permission to view where groupId = &#63; and privateLayout = &#63;.
512            *
513            * @param groupId the group ID
514            * @param privateLayout the private layout
515            * @return the matching layout set branchs that the user has permission to view
516            * @throws SystemException if a system exception occurred
517            */
518            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P(
519                    long groupId, boolean privateLayout)
520                    throws com.liferay.portal.kernel.exception.SystemException {
521                    return getPersistence().filterFindByG_P(groupId, privateLayout);
522            }
523    
524            /**
525            * Returns a range of all the layout set branchs that the user has permission to view where groupId = &#63; and privateLayout = &#63;.
526            *
527            * <p>
528            * 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.LayoutSetBranchModelImpl}. 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.
529            * </p>
530            *
531            * @param groupId the group ID
532            * @param privateLayout the private layout
533            * @param start the lower bound of the range of layout set branchs
534            * @param end the upper bound of the range of layout set branchs (not inclusive)
535            * @return the range of matching layout set branchs that the user has permission to view
536            * @throws SystemException if a system exception occurred
537            */
538            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P(
539                    long groupId, boolean privateLayout, int start, int end)
540                    throws com.liferay.portal.kernel.exception.SystemException {
541                    return getPersistence()
542                                       .filterFindByG_P(groupId, privateLayout, start, end);
543            }
544    
545            /**
546            * Returns an ordered range of all the layout set branchs that the user has permissions to view where groupId = &#63; and privateLayout = &#63;.
547            *
548            * <p>
549            * 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.LayoutSetBranchModelImpl}. 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.
550            * </p>
551            *
552            * @param groupId the group ID
553            * @param privateLayout the private layout
554            * @param start the lower bound of the range of layout set branchs
555            * @param end the upper bound of the range of layout set branchs (not inclusive)
556            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
557            * @return the ordered range of matching layout set branchs that the user has permission to view
558            * @throws SystemException if a system exception occurred
559            */
560            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P(
561                    long groupId, boolean privateLayout, int start, int end,
562                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
563                    throws com.liferay.portal.kernel.exception.SystemException {
564                    return getPersistence()
565                                       .filterFindByG_P(groupId, privateLayout, start, end,
566                            orderByComparator);
567            }
568    
569            /**
570            * Returns the layout set branchs before and after the current layout set branch in the ordered set of layout set branchs that the user has permission to view where groupId = &#63; and privateLayout = &#63;.
571            *
572            * @param layoutSetBranchId the primary key of the current layout set branch
573            * @param groupId the group ID
574            * @param privateLayout the private layout
575            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
576            * @return the previous, current, and next layout set branch
577            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
578            * @throws SystemException if a system exception occurred
579            */
580            public static com.liferay.portal.model.LayoutSetBranch[] filterFindByG_P_PrevAndNext(
581                    long layoutSetBranchId, long groupId, boolean privateLayout,
582                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
583                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
584                            com.liferay.portal.kernel.exception.SystemException {
585                    return getPersistence()
586                                       .filterFindByG_P_PrevAndNext(layoutSetBranchId, groupId,
587                            privateLayout, orderByComparator);
588            }
589    
590            /**
591            * Removes all the layout set branchs where groupId = &#63; and privateLayout = &#63; from the database.
592            *
593            * @param groupId the group ID
594            * @param privateLayout the private layout
595            * @throws SystemException if a system exception occurred
596            */
597            public static void removeByG_P(long groupId, boolean privateLayout)
598                    throws com.liferay.portal.kernel.exception.SystemException {
599                    getPersistence().removeByG_P(groupId, privateLayout);
600            }
601    
602            /**
603            * Returns the number of layout set branchs where groupId = &#63; and privateLayout = &#63;.
604            *
605            * @param groupId the group ID
606            * @param privateLayout the private layout
607            * @return the number of matching layout set branchs
608            * @throws SystemException if a system exception occurred
609            */
610            public static int countByG_P(long groupId, boolean privateLayout)
611                    throws com.liferay.portal.kernel.exception.SystemException {
612                    return getPersistence().countByG_P(groupId, privateLayout);
613            }
614    
615            /**
616            * Returns the number of layout set branchs that the user has permission to view where groupId = &#63; and privateLayout = &#63;.
617            *
618            * @param groupId the group ID
619            * @param privateLayout the private layout
620            * @return the number of matching layout set branchs that the user has permission to view
621            * @throws SystemException if a system exception occurred
622            */
623            public static int filterCountByG_P(long groupId, boolean privateLayout)
624                    throws com.liferay.portal.kernel.exception.SystemException {
625                    return getPersistence().filterCountByG_P(groupId, privateLayout);
626            }
627    
628            /**
629            * Returns the layout set branch where groupId = &#63; and privateLayout = &#63; and name = &#63; or throws a {@link com.liferay.portal.NoSuchLayoutSetBranchException} if it could not be found.
630            *
631            * @param groupId the group ID
632            * @param privateLayout the private layout
633            * @param name the name
634            * @return the matching layout set branch
635            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found
636            * @throws SystemException if a system exception occurred
637            */
638            public static com.liferay.portal.model.LayoutSetBranch findByG_P_N(
639                    long groupId, boolean privateLayout, java.lang.String name)
640                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
641                            com.liferay.portal.kernel.exception.SystemException {
642                    return getPersistence().findByG_P_N(groupId, privateLayout, name);
643            }
644    
645            /**
646            * Returns the layout set branch where groupId = &#63; and privateLayout = &#63; and name = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
647            *
648            * @param groupId the group ID
649            * @param privateLayout the private layout
650            * @param name the name
651            * @return the matching layout set branch, or <code>null</code> if a matching layout set branch could not be found
652            * @throws SystemException if a system exception occurred
653            */
654            public static com.liferay.portal.model.LayoutSetBranch fetchByG_P_N(
655                    long groupId, boolean privateLayout, java.lang.String name)
656                    throws com.liferay.portal.kernel.exception.SystemException {
657                    return getPersistence().fetchByG_P_N(groupId, privateLayout, name);
658            }
659    
660            /**
661            * Returns the layout set branch where groupId = &#63; and privateLayout = &#63; and name = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
662            *
663            * @param groupId the group ID
664            * @param privateLayout the private layout
665            * @param name the name
666            * @param retrieveFromCache whether to use the finder cache
667            * @return the matching layout set branch, or <code>null</code> if a matching layout set branch could not be found
668            * @throws SystemException if a system exception occurred
669            */
670            public static com.liferay.portal.model.LayoutSetBranch fetchByG_P_N(
671                    long groupId, boolean privateLayout, java.lang.String name,
672                    boolean retrieveFromCache)
673                    throws com.liferay.portal.kernel.exception.SystemException {
674                    return getPersistence()
675                                       .fetchByG_P_N(groupId, privateLayout, name, retrieveFromCache);
676            }
677    
678            /**
679            * Removes the layout set branch where groupId = &#63; and privateLayout = &#63; and name = &#63; from the database.
680            *
681            * @param groupId the group ID
682            * @param privateLayout the private layout
683            * @param name the name
684            * @return the layout set branch that was removed
685            * @throws SystemException if a system exception occurred
686            */
687            public static com.liferay.portal.model.LayoutSetBranch removeByG_P_N(
688                    long groupId, boolean privateLayout, java.lang.String name)
689                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
690                            com.liferay.portal.kernel.exception.SystemException {
691                    return getPersistence().removeByG_P_N(groupId, privateLayout, name);
692            }
693    
694            /**
695            * Returns the number of layout set branchs where groupId = &#63; and privateLayout = &#63; and name = &#63;.
696            *
697            * @param groupId the group ID
698            * @param privateLayout the private layout
699            * @param name the name
700            * @return the number of matching layout set branchs
701            * @throws SystemException if a system exception occurred
702            */
703            public static int countByG_P_N(long groupId, boolean privateLayout,
704                    java.lang.String name)
705                    throws com.liferay.portal.kernel.exception.SystemException {
706                    return getPersistence().countByG_P_N(groupId, privateLayout, name);
707            }
708    
709            /**
710            * Returns all the layout set branchs where groupId = &#63; and privateLayout = &#63; and master = &#63;.
711            *
712            * @param groupId the group ID
713            * @param privateLayout the private layout
714            * @param master the master
715            * @return the matching layout set branchs
716            * @throws SystemException if a system exception occurred
717            */
718            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P_M(
719                    long groupId, boolean privateLayout, boolean master)
720                    throws com.liferay.portal.kernel.exception.SystemException {
721                    return getPersistence().findByG_P_M(groupId, privateLayout, master);
722            }
723    
724            /**
725            * Returns a range of all the layout set branchs where groupId = &#63; and privateLayout = &#63; and master = &#63;.
726            *
727            * <p>
728            * 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.LayoutSetBranchModelImpl}. 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.
729            * </p>
730            *
731            * @param groupId the group ID
732            * @param privateLayout the private layout
733            * @param master the master
734            * @param start the lower bound of the range of layout set branchs
735            * @param end the upper bound of the range of layout set branchs (not inclusive)
736            * @return the range of matching layout set branchs
737            * @throws SystemException if a system exception occurred
738            */
739            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P_M(
740                    long groupId, boolean privateLayout, boolean master, int start, int end)
741                    throws com.liferay.portal.kernel.exception.SystemException {
742                    return getPersistence()
743                                       .findByG_P_M(groupId, privateLayout, master, start, end);
744            }
745    
746            /**
747            * Returns an ordered range of all the layout set branchs where groupId = &#63; and privateLayout = &#63; and master = &#63;.
748            *
749            * <p>
750            * 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.LayoutSetBranchModelImpl}. 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.
751            * </p>
752            *
753            * @param groupId the group ID
754            * @param privateLayout the private layout
755            * @param master the master
756            * @param start the lower bound of the range of layout set branchs
757            * @param end the upper bound of the range of layout set branchs (not inclusive)
758            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
759            * @return the ordered range of matching layout set branchs
760            * @throws SystemException if a system exception occurred
761            */
762            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P_M(
763                    long groupId, boolean privateLayout, boolean master, int start,
764                    int end,
765                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
766                    throws com.liferay.portal.kernel.exception.SystemException {
767                    return getPersistence()
768                                       .findByG_P_M(groupId, privateLayout, master, start, end,
769                            orderByComparator);
770            }
771    
772            /**
773            * Returns the first layout set branch in the ordered set where groupId = &#63; and privateLayout = &#63; and master = &#63;.
774            *
775            * @param groupId the group ID
776            * @param privateLayout the private layout
777            * @param master the master
778            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
779            * @return the first matching layout set branch
780            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found
781            * @throws SystemException if a system exception occurred
782            */
783            public static com.liferay.portal.model.LayoutSetBranch findByG_P_M_First(
784                    long groupId, boolean privateLayout, boolean master,
785                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
786                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
787                            com.liferay.portal.kernel.exception.SystemException {
788                    return getPersistence()
789                                       .findByG_P_M_First(groupId, privateLayout, master,
790                            orderByComparator);
791            }
792    
793            /**
794            * Returns the first layout set branch in the ordered set where groupId = &#63; and privateLayout = &#63; and master = &#63;.
795            *
796            * @param groupId the group ID
797            * @param privateLayout the private layout
798            * @param master the master
799            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
800            * @return the first matching layout set branch, or <code>null</code> if a matching layout set branch could not be found
801            * @throws SystemException if a system exception occurred
802            */
803            public static com.liferay.portal.model.LayoutSetBranch fetchByG_P_M_First(
804                    long groupId, boolean privateLayout, boolean master,
805                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
806                    throws com.liferay.portal.kernel.exception.SystemException {
807                    return getPersistence()
808                                       .fetchByG_P_M_First(groupId, privateLayout, master,
809                            orderByComparator);
810            }
811    
812            /**
813            * Returns the last layout set branch in the ordered set where groupId = &#63; and privateLayout = &#63; and master = &#63;.
814            *
815            * @param groupId the group ID
816            * @param privateLayout the private layout
817            * @param master the master
818            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
819            * @return the last matching layout set branch
820            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found
821            * @throws SystemException if a system exception occurred
822            */
823            public static com.liferay.portal.model.LayoutSetBranch findByG_P_M_Last(
824                    long groupId, boolean privateLayout, boolean master,
825                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
826                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
827                            com.liferay.portal.kernel.exception.SystemException {
828                    return getPersistence()
829                                       .findByG_P_M_Last(groupId, privateLayout, master,
830                            orderByComparator);
831            }
832    
833            /**
834            * Returns the last layout set branch in the ordered set where groupId = &#63; and privateLayout = &#63; and master = &#63;.
835            *
836            * @param groupId the group ID
837            * @param privateLayout the private layout
838            * @param master the master
839            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
840            * @return the last matching layout set branch, or <code>null</code> if a matching layout set branch could not be found
841            * @throws SystemException if a system exception occurred
842            */
843            public static com.liferay.portal.model.LayoutSetBranch fetchByG_P_M_Last(
844                    long groupId, boolean privateLayout, boolean master,
845                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
846                    throws com.liferay.portal.kernel.exception.SystemException {
847                    return getPersistence()
848                                       .fetchByG_P_M_Last(groupId, privateLayout, master,
849                            orderByComparator);
850            }
851    
852            /**
853            * Returns the layout set branchs before and after the current layout set branch in the ordered set where groupId = &#63; and privateLayout = &#63; and master = &#63;.
854            *
855            * @param layoutSetBranchId the primary key of the current layout set branch
856            * @param groupId the group ID
857            * @param privateLayout the private layout
858            * @param master the master
859            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
860            * @return the previous, current, and next layout set branch
861            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
862            * @throws SystemException if a system exception occurred
863            */
864            public static com.liferay.portal.model.LayoutSetBranch[] findByG_P_M_PrevAndNext(
865                    long layoutSetBranchId, long groupId, boolean privateLayout,
866                    boolean master,
867                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
868                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
869                            com.liferay.portal.kernel.exception.SystemException {
870                    return getPersistence()
871                                       .findByG_P_M_PrevAndNext(layoutSetBranchId, groupId,
872                            privateLayout, master, orderByComparator);
873            }
874    
875            /**
876            * Returns all the layout set branchs that the user has permission to view where groupId = &#63; and privateLayout = &#63; and master = &#63;.
877            *
878            * @param groupId the group ID
879            * @param privateLayout the private layout
880            * @param master the master
881            * @return the matching layout set branchs that the user has permission to view
882            * @throws SystemException if a system exception occurred
883            */
884            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P_M(
885                    long groupId, boolean privateLayout, boolean master)
886                    throws com.liferay.portal.kernel.exception.SystemException {
887                    return getPersistence().filterFindByG_P_M(groupId, privateLayout, master);
888            }
889    
890            /**
891            * Returns a range of all the layout set branchs that the user has permission to view where groupId = &#63; and privateLayout = &#63; and master = &#63;.
892            *
893            * <p>
894            * 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.LayoutSetBranchModelImpl}. 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.
895            * </p>
896            *
897            * @param groupId the group ID
898            * @param privateLayout the private layout
899            * @param master the master
900            * @param start the lower bound of the range of layout set branchs
901            * @param end the upper bound of the range of layout set branchs (not inclusive)
902            * @return the range of matching layout set branchs that the user has permission to view
903            * @throws SystemException if a system exception occurred
904            */
905            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P_M(
906                    long groupId, boolean privateLayout, boolean master, int start, int end)
907                    throws com.liferay.portal.kernel.exception.SystemException {
908                    return getPersistence()
909                                       .filterFindByG_P_M(groupId, privateLayout, master, start, end);
910            }
911    
912            /**
913            * Returns an ordered range of all the layout set branchs that the user has permissions to view where groupId = &#63; and privateLayout = &#63; and master = &#63;.
914            *
915            * <p>
916            * 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.LayoutSetBranchModelImpl}. 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.
917            * </p>
918            *
919            * @param groupId the group ID
920            * @param privateLayout the private layout
921            * @param master the master
922            * @param start the lower bound of the range of layout set branchs
923            * @param end the upper bound of the range of layout set branchs (not inclusive)
924            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
925            * @return the ordered range of matching layout set branchs that the user has permission to view
926            * @throws SystemException if a system exception occurred
927            */
928            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P_M(
929                    long groupId, boolean privateLayout, boolean master, int start,
930                    int end,
931                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
932                    throws com.liferay.portal.kernel.exception.SystemException {
933                    return getPersistence()
934                                       .filterFindByG_P_M(groupId, privateLayout, master, start,
935                            end, orderByComparator);
936            }
937    
938            /**
939            * Returns the layout set branchs before and after the current layout set branch in the ordered set of layout set branchs that the user has permission to view where groupId = &#63; and privateLayout = &#63; and master = &#63;.
940            *
941            * @param layoutSetBranchId the primary key of the current layout set branch
942            * @param groupId the group ID
943            * @param privateLayout the private layout
944            * @param master the master
945            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
946            * @return the previous, current, and next layout set branch
947            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
948            * @throws SystemException if a system exception occurred
949            */
950            public static com.liferay.portal.model.LayoutSetBranch[] filterFindByG_P_M_PrevAndNext(
951                    long layoutSetBranchId, long groupId, boolean privateLayout,
952                    boolean master,
953                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
954                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
955                            com.liferay.portal.kernel.exception.SystemException {
956                    return getPersistence()
957                                       .filterFindByG_P_M_PrevAndNext(layoutSetBranchId, groupId,
958                            privateLayout, master, orderByComparator);
959            }
960    
961            /**
962            * Removes all the layout set branchs where groupId = &#63; and privateLayout = &#63; and master = &#63; from the database.
963            *
964            * @param groupId the group ID
965            * @param privateLayout the private layout
966            * @param master the master
967            * @throws SystemException if a system exception occurred
968            */
969            public static void removeByG_P_M(long groupId, boolean privateLayout,
970                    boolean master)
971                    throws com.liferay.portal.kernel.exception.SystemException {
972                    getPersistence().removeByG_P_M(groupId, privateLayout, master);
973            }
974    
975            /**
976            * Returns the number of layout set branchs where groupId = &#63; and privateLayout = &#63; and master = &#63;.
977            *
978            * @param groupId the group ID
979            * @param privateLayout the private layout
980            * @param master the master
981            * @return the number of matching layout set branchs
982            * @throws SystemException if a system exception occurred
983            */
984            public static int countByG_P_M(long groupId, boolean privateLayout,
985                    boolean master)
986                    throws com.liferay.portal.kernel.exception.SystemException {
987                    return getPersistence().countByG_P_M(groupId, privateLayout, master);
988            }
989    
990            /**
991            * Returns the number of layout set branchs that the user has permission to view where groupId = &#63; and privateLayout = &#63; and master = &#63;.
992            *
993            * @param groupId the group ID
994            * @param privateLayout the private layout
995            * @param master the master
996            * @return the number of matching layout set branchs that the user has permission to view
997            * @throws SystemException if a system exception occurred
998            */
999            public static int filterCountByG_P_M(long groupId, boolean privateLayout,
1000                    boolean master)
1001                    throws com.liferay.portal.kernel.exception.SystemException {
1002                    return getPersistence()
1003                                       .filterCountByG_P_M(groupId, privateLayout, master);
1004            }
1005    
1006            /**
1007            * Caches the layout set branch in the entity cache if it is enabled.
1008            *
1009            * @param layoutSetBranch the layout set branch
1010            */
1011            public static void cacheResult(
1012                    com.liferay.portal.model.LayoutSetBranch layoutSetBranch) {
1013                    getPersistence().cacheResult(layoutSetBranch);
1014            }
1015    
1016            /**
1017            * Caches the layout set branchs in the entity cache if it is enabled.
1018            *
1019            * @param layoutSetBranchs the layout set branchs
1020            */
1021            public static void cacheResult(
1022                    java.util.List<com.liferay.portal.model.LayoutSetBranch> layoutSetBranchs) {
1023                    getPersistence().cacheResult(layoutSetBranchs);
1024            }
1025    
1026            /**
1027            * Creates a new layout set branch with the primary key. Does not add the layout set branch to the database.
1028            *
1029            * @param layoutSetBranchId the primary key for the new layout set branch
1030            * @return the new layout set branch
1031            */
1032            public static com.liferay.portal.model.LayoutSetBranch create(
1033                    long layoutSetBranchId) {
1034                    return getPersistence().create(layoutSetBranchId);
1035            }
1036    
1037            /**
1038            * Removes the layout set branch with the primary key from the database. Also notifies the appropriate model listeners.
1039            *
1040            * @param layoutSetBranchId the primary key of the layout set branch
1041            * @return the layout set branch that was removed
1042            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
1043            * @throws SystemException if a system exception occurred
1044            */
1045            public static com.liferay.portal.model.LayoutSetBranch remove(
1046                    long layoutSetBranchId)
1047                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
1048                            com.liferay.portal.kernel.exception.SystemException {
1049                    return getPersistence().remove(layoutSetBranchId);
1050            }
1051    
1052            public static com.liferay.portal.model.LayoutSetBranch updateImpl(
1053                    com.liferay.portal.model.LayoutSetBranch layoutSetBranch)
1054                    throws com.liferay.portal.kernel.exception.SystemException {
1055                    return getPersistence().updateImpl(layoutSetBranch);
1056            }
1057    
1058            /**
1059            * Returns the layout set branch with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutSetBranchException} if it could not be found.
1060            *
1061            * @param layoutSetBranchId the primary key of the layout set branch
1062            * @return the layout set branch
1063            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
1064            * @throws SystemException if a system exception occurred
1065            */
1066            public static com.liferay.portal.model.LayoutSetBranch findByPrimaryKey(
1067                    long layoutSetBranchId)
1068                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
1069                            com.liferay.portal.kernel.exception.SystemException {
1070                    return getPersistence().findByPrimaryKey(layoutSetBranchId);
1071            }
1072    
1073            /**
1074            * Returns the layout set branch with the primary key or returns <code>null</code> if it could not be found.
1075            *
1076            * @param layoutSetBranchId the primary key of the layout set branch
1077            * @return the layout set branch, or <code>null</code> if a layout set branch with the primary key could not be found
1078            * @throws SystemException if a system exception occurred
1079            */
1080            public static com.liferay.portal.model.LayoutSetBranch fetchByPrimaryKey(
1081                    long layoutSetBranchId)
1082                    throws com.liferay.portal.kernel.exception.SystemException {
1083                    return getPersistence().fetchByPrimaryKey(layoutSetBranchId);
1084            }
1085    
1086            /**
1087            * Returns all the layout set branchs.
1088            *
1089            * @return the layout set branchs
1090            * @throws SystemException if a system exception occurred
1091            */
1092            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findAll()
1093                    throws com.liferay.portal.kernel.exception.SystemException {
1094                    return getPersistence().findAll();
1095            }
1096    
1097            /**
1098            * Returns a range of all the layout set branchs.
1099            *
1100            * <p>
1101            * 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.LayoutSetBranchModelImpl}. 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.
1102            * </p>
1103            *
1104            * @param start the lower bound of the range of layout set branchs
1105            * @param end the upper bound of the range of layout set branchs (not inclusive)
1106            * @return the range of layout set branchs
1107            * @throws SystemException if a system exception occurred
1108            */
1109            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findAll(
1110                    int start, int end)
1111                    throws com.liferay.portal.kernel.exception.SystemException {
1112                    return getPersistence().findAll(start, end);
1113            }
1114    
1115            /**
1116            * Returns an ordered range of all the layout set branchs.
1117            *
1118            * <p>
1119            * 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.LayoutSetBranchModelImpl}. 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.
1120            * </p>
1121            *
1122            * @param start the lower bound of the range of layout set branchs
1123            * @param end the upper bound of the range of layout set branchs (not inclusive)
1124            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1125            * @return the ordered range of layout set branchs
1126            * @throws SystemException if a system exception occurred
1127            */
1128            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findAll(
1129                    int start, int end,
1130                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1131                    throws com.liferay.portal.kernel.exception.SystemException {
1132                    return getPersistence().findAll(start, end, orderByComparator);
1133            }
1134    
1135            /**
1136            * Removes all the layout set branchs from the database.
1137            *
1138            * @throws SystemException if a system exception occurred
1139            */
1140            public static void removeAll()
1141                    throws com.liferay.portal.kernel.exception.SystemException {
1142                    getPersistence().removeAll();
1143            }
1144    
1145            /**
1146            * Returns the number of layout set branchs.
1147            *
1148            * @return the number of layout set branchs
1149            * @throws SystemException if a system exception occurred
1150            */
1151            public static int countAll()
1152                    throws com.liferay.portal.kernel.exception.SystemException {
1153                    return getPersistence().countAll();
1154            }
1155    
1156            public static LayoutSetBranchPersistence getPersistence() {
1157                    if (_persistence == null) {
1158                            _persistence = (LayoutSetBranchPersistence)PortalBeanLocatorUtil.locate(LayoutSetBranchPersistence.class.getName());
1159    
1160                            ReferenceRegistry.registerReference(LayoutSetBranchUtil.class,
1161                                    "_persistence");
1162                    }
1163    
1164                    return _persistence;
1165            }
1166    
1167            /**
1168             * @deprecated As of 6.2.0
1169             */
1170            public void setPersistence(LayoutSetBranchPersistence persistence) {
1171            }
1172    
1173            private static LayoutSetBranchPersistence _persistence;
1174    }