001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.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            * Caches the layout set branch in the entity cache if it is enabled.
114            *
115            * @param layoutSetBranch the layout set branch
116            */
117            public static void cacheResult(
118                    com.liferay.portal.model.LayoutSetBranch layoutSetBranch) {
119                    getPersistence().cacheResult(layoutSetBranch);
120            }
121    
122            /**
123            * Caches the layout set branchs in the entity cache if it is enabled.
124            *
125            * @param layoutSetBranchs the layout set branchs
126            */
127            public static void cacheResult(
128                    java.util.List<com.liferay.portal.model.LayoutSetBranch> layoutSetBranchs) {
129                    getPersistence().cacheResult(layoutSetBranchs);
130            }
131    
132            /**
133            * Creates a new layout set branch with the primary key. Does not add the layout set branch to the database.
134            *
135            * @param layoutSetBranchId the primary key for the new layout set branch
136            * @return the new layout set branch
137            */
138            public static com.liferay.portal.model.LayoutSetBranch create(
139                    long layoutSetBranchId) {
140                    return getPersistence().create(layoutSetBranchId);
141            }
142    
143            /**
144            * Removes the layout set branch with the primary key from the database. Also notifies the appropriate model listeners.
145            *
146            * @param layoutSetBranchId the primary key of the layout set branch
147            * @return the layout set branch that was removed
148            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
149            * @throws SystemException if a system exception occurred
150            */
151            public static com.liferay.portal.model.LayoutSetBranch remove(
152                    long layoutSetBranchId)
153                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
154                            com.liferay.portal.kernel.exception.SystemException {
155                    return getPersistence().remove(layoutSetBranchId);
156            }
157    
158            public static com.liferay.portal.model.LayoutSetBranch updateImpl(
159                    com.liferay.portal.model.LayoutSetBranch layoutSetBranch)
160                    throws com.liferay.portal.kernel.exception.SystemException {
161                    return getPersistence().updateImpl(layoutSetBranch);
162            }
163    
164            /**
165            * Returns the layout set branch with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutSetBranchException} if it could not be found.
166            *
167            * @param layoutSetBranchId the primary key of the layout set branch
168            * @return the layout set branch
169            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
170            * @throws SystemException if a system exception occurred
171            */
172            public static com.liferay.portal.model.LayoutSetBranch findByPrimaryKey(
173                    long layoutSetBranchId)
174                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
175                            com.liferay.portal.kernel.exception.SystemException {
176                    return getPersistence().findByPrimaryKey(layoutSetBranchId);
177            }
178    
179            /**
180            * Returns the layout set branch with the primary key or returns <code>null</code> if it could not be found.
181            *
182            * @param layoutSetBranchId the primary key of the layout set branch
183            * @return the layout set branch, or <code>null</code> if a layout set branch with the primary key could not be found
184            * @throws SystemException if a system exception occurred
185            */
186            public static com.liferay.portal.model.LayoutSetBranch fetchByPrimaryKey(
187                    long layoutSetBranchId)
188                    throws com.liferay.portal.kernel.exception.SystemException {
189                    return getPersistence().fetchByPrimaryKey(layoutSetBranchId);
190            }
191    
192            /**
193            * Returns all the layout set branchs where groupId = &#63;.
194            *
195            * @param groupId the group ID
196            * @return the matching layout set branchs
197            * @throws SystemException if a system exception occurred
198            */
199            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByGroupId(
200                    long groupId)
201                    throws com.liferay.portal.kernel.exception.SystemException {
202                    return getPersistence().findByGroupId(groupId);
203            }
204    
205            /**
206            * Returns a range of all the layout set branchs where groupId = &#63;.
207            *
208            * <p>
209            * 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.
210            * </p>
211            *
212            * @param groupId the group ID
213            * @param start the lower bound of the range of layout set branchs
214            * @param end the upper bound of the range of layout set branchs (not inclusive)
215            * @return the range of matching layout set branchs
216            * @throws SystemException if a system exception occurred
217            */
218            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByGroupId(
219                    long groupId, int start, int end)
220                    throws com.liferay.portal.kernel.exception.SystemException {
221                    return getPersistence().findByGroupId(groupId, start, end);
222            }
223    
224            /**
225            * Returns an ordered range of all the layout set branchs where groupId = &#63;.
226            *
227            * <p>
228            * 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.
229            * </p>
230            *
231            * @param groupId the group ID
232            * @param start the lower bound of the range of layout set branchs
233            * @param end the upper bound of the range of layout set branchs (not inclusive)
234            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
235            * @return the ordered range of matching layout set branchs
236            * @throws SystemException if a system exception occurred
237            */
238            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByGroupId(
239                    long groupId, int start, int end,
240                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
241                    throws com.liferay.portal.kernel.exception.SystemException {
242                    return getPersistence()
243                                       .findByGroupId(groupId, start, end, orderByComparator);
244            }
245    
246            /**
247            * Returns the first layout set branch in the ordered set where groupId = &#63;.
248            *
249            * @param groupId the group ID
250            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
251            * @return the first matching layout set branch
252            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found
253            * @throws SystemException if a system exception occurred
254            */
255            public static com.liferay.portal.model.LayoutSetBranch findByGroupId_First(
256                    long groupId,
257                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
258                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
259                            com.liferay.portal.kernel.exception.SystemException {
260                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
261            }
262    
263            /**
264            * Returns the first layout set branch in the ordered set where groupId = &#63;.
265            *
266            * @param groupId the group ID
267            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
268            * @return the first matching layout set branch, or <code>null</code> if a matching layout set branch could not be found
269            * @throws SystemException if a system exception occurred
270            */
271            public static com.liferay.portal.model.LayoutSetBranch fetchByGroupId_First(
272                    long groupId,
273                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
274                    throws com.liferay.portal.kernel.exception.SystemException {
275                    return getPersistence().fetchByGroupId_First(groupId, orderByComparator);
276            }
277    
278            /**
279            * Returns the last layout set branch in the ordered set where groupId = &#63;.
280            *
281            * @param groupId the group ID
282            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
283            * @return the last matching layout set branch
284            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found
285            * @throws SystemException if a system exception occurred
286            */
287            public static com.liferay.portal.model.LayoutSetBranch findByGroupId_Last(
288                    long groupId,
289                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
290                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
291                            com.liferay.portal.kernel.exception.SystemException {
292                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
293            }
294    
295            /**
296            * Returns the last layout set branch in the ordered set where groupId = &#63;.
297            *
298            * @param groupId the group ID
299            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
300            * @return the last matching layout set branch, or <code>null</code> if a matching layout set branch could not be found
301            * @throws SystemException if a system exception occurred
302            */
303            public static com.liferay.portal.model.LayoutSetBranch fetchByGroupId_Last(
304                    long groupId,
305                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
306                    throws com.liferay.portal.kernel.exception.SystemException {
307                    return getPersistence().fetchByGroupId_Last(groupId, orderByComparator);
308            }
309    
310            /**
311            * Returns the layout set branchs before and after the current layout set branch in the ordered set where groupId = &#63;.
312            *
313            * @param layoutSetBranchId the primary key of the current layout set branch
314            * @param groupId the group ID
315            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
316            * @return the previous, current, and next layout set branch
317            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
318            * @throws SystemException if a system exception occurred
319            */
320            public static com.liferay.portal.model.LayoutSetBranch[] findByGroupId_PrevAndNext(
321                    long layoutSetBranchId, long groupId,
322                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
323                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
324                            com.liferay.portal.kernel.exception.SystemException {
325                    return getPersistence()
326                                       .findByGroupId_PrevAndNext(layoutSetBranchId, groupId,
327                            orderByComparator);
328            }
329    
330            /**
331            * Returns all the layout set branchs that the user has permission to view where groupId = &#63;.
332            *
333            * @param groupId the group ID
334            * @return the matching layout set branchs that the user has permission to view
335            * @throws SystemException if a system exception occurred
336            */
337            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByGroupId(
338                    long groupId)
339                    throws com.liferay.portal.kernel.exception.SystemException {
340                    return getPersistence().filterFindByGroupId(groupId);
341            }
342    
343            /**
344            * Returns a range of all the layout set branchs that the user has permission to view where groupId = &#63;.
345            *
346            * <p>
347            * 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.
348            * </p>
349            *
350            * @param groupId the group ID
351            * @param start the lower bound of the range of layout set branchs
352            * @param end the upper bound of the range of layout set branchs (not inclusive)
353            * @return the range of matching layout set branchs that the user has permission to view
354            * @throws SystemException if a system exception occurred
355            */
356            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByGroupId(
357                    long groupId, int start, int end)
358                    throws com.liferay.portal.kernel.exception.SystemException {
359                    return getPersistence().filterFindByGroupId(groupId, start, end);
360            }
361    
362            /**
363            * Returns an ordered range of all the layout set branchs that the user has permissions to view where groupId = &#63;.
364            *
365            * <p>
366            * 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.
367            * </p>
368            *
369            * @param groupId the group ID
370            * @param start the lower bound of the range of layout set branchs
371            * @param end the upper bound of the range of layout set branchs (not inclusive)
372            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
373            * @return the ordered range of matching layout set branchs that the user has permission to view
374            * @throws SystemException if a system exception occurred
375            */
376            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByGroupId(
377                    long groupId, int start, int end,
378                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
379                    throws com.liferay.portal.kernel.exception.SystemException {
380                    return getPersistence()
381                                       .filterFindByGroupId(groupId, start, end, orderByComparator);
382            }
383    
384            /**
385            * 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;.
386            *
387            * @param layoutSetBranchId the primary key of the current layout set branch
388            * @param groupId the group ID
389            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
390            * @return the previous, current, and next layout set branch
391            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
392            * @throws SystemException if a system exception occurred
393            */
394            public static com.liferay.portal.model.LayoutSetBranch[] filterFindByGroupId_PrevAndNext(
395                    long layoutSetBranchId, long groupId,
396                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
397                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
398                            com.liferay.portal.kernel.exception.SystemException {
399                    return getPersistence()
400                                       .filterFindByGroupId_PrevAndNext(layoutSetBranchId, groupId,
401                            orderByComparator);
402            }
403    
404            /**
405            * Returns all the layout set branchs where groupId = &#63; and privateLayout = &#63;.
406            *
407            * @param groupId the group ID
408            * @param privateLayout the private layout
409            * @return the matching layout set branchs
410            * @throws SystemException if a system exception occurred
411            */
412            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P(
413                    long groupId, boolean privateLayout)
414                    throws com.liferay.portal.kernel.exception.SystemException {
415                    return getPersistence().findByG_P(groupId, privateLayout);
416            }
417    
418            /**
419            * Returns a range of all the layout set branchs where groupId = &#63; and privateLayout = &#63;.
420            *
421            * <p>
422            * 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.
423            * </p>
424            *
425            * @param groupId the group ID
426            * @param privateLayout the private layout
427            * @param start the lower bound of the range of layout set branchs
428            * @param end the upper bound of the range of layout set branchs (not inclusive)
429            * @return the range of matching layout set branchs
430            * @throws SystemException if a system exception occurred
431            */
432            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P(
433                    long groupId, boolean privateLayout, int start, int end)
434                    throws com.liferay.portal.kernel.exception.SystemException {
435                    return getPersistence().findByG_P(groupId, privateLayout, start, end);
436            }
437    
438            /**
439            * Returns an ordered range of all the layout set branchs where groupId = &#63; and privateLayout = &#63;.
440            *
441            * <p>
442            * 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.
443            * </p>
444            *
445            * @param groupId the group ID
446            * @param privateLayout the private layout
447            * @param start the lower bound of the range of layout set branchs
448            * @param end the upper bound of the range of layout set branchs (not inclusive)
449            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
450            * @return the ordered range of matching layout set branchs
451            * @throws SystemException if a system exception occurred
452            */
453            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P(
454                    long groupId, boolean privateLayout, int start, int end,
455                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
456                    throws com.liferay.portal.kernel.exception.SystemException {
457                    return getPersistence()
458                                       .findByG_P(groupId, privateLayout, start, end,
459                            orderByComparator);
460            }
461    
462            /**
463            * Returns the first layout set branch in the ordered set where groupId = &#63; and privateLayout = &#63;.
464            *
465            * @param groupId the group ID
466            * @param privateLayout the private layout
467            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
468            * @return the first matching layout set branch
469            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found
470            * @throws SystemException if a system exception occurred
471            */
472            public static com.liferay.portal.model.LayoutSetBranch findByG_P_First(
473                    long groupId, boolean privateLayout,
474                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
475                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
476                            com.liferay.portal.kernel.exception.SystemException {
477                    return getPersistence()
478                                       .findByG_P_First(groupId, privateLayout, orderByComparator);
479            }
480    
481            /**
482            * Returns the first layout set branch in the ordered set where groupId = &#63; and privateLayout = &#63;.
483            *
484            * @param groupId the group ID
485            * @param privateLayout the private layout
486            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
487            * @return the first matching layout set branch, or <code>null</code> if a matching layout set branch could not be found
488            * @throws SystemException if a system exception occurred
489            */
490            public static com.liferay.portal.model.LayoutSetBranch fetchByG_P_First(
491                    long groupId, boolean privateLayout,
492                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
493                    throws com.liferay.portal.kernel.exception.SystemException {
494                    return getPersistence()
495                                       .fetchByG_P_First(groupId, privateLayout, orderByComparator);
496            }
497    
498            /**
499            * Returns the last layout set branch in the ordered set where groupId = &#63; and privateLayout = &#63;.
500            *
501            * @param groupId the group ID
502            * @param privateLayout the private layout
503            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
504            * @return the last matching layout set branch
505            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found
506            * @throws SystemException if a system exception occurred
507            */
508            public static com.liferay.portal.model.LayoutSetBranch findByG_P_Last(
509                    long groupId, boolean privateLayout,
510                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
511                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
512                            com.liferay.portal.kernel.exception.SystemException {
513                    return getPersistence()
514                                       .findByG_P_Last(groupId, privateLayout, orderByComparator);
515            }
516    
517            /**
518            * Returns the last layout set branch in the ordered set where groupId = &#63; and privateLayout = &#63;.
519            *
520            * @param groupId the group ID
521            * @param privateLayout the private layout
522            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
523            * @return the last matching layout set branch, or <code>null</code> if a matching layout set branch could not be found
524            * @throws SystemException if a system exception occurred
525            */
526            public static com.liferay.portal.model.LayoutSetBranch fetchByG_P_Last(
527                    long groupId, boolean privateLayout,
528                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
529                    throws com.liferay.portal.kernel.exception.SystemException {
530                    return getPersistence()
531                                       .fetchByG_P_Last(groupId, privateLayout, orderByComparator);
532            }
533    
534            /**
535            * Returns the layout set branchs before and after the current layout set branch in the ordered set where groupId = &#63; and privateLayout = &#63;.
536            *
537            * @param layoutSetBranchId the primary key of the current layout set branch
538            * @param groupId the group ID
539            * @param privateLayout the private layout
540            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
541            * @return the previous, current, and next layout set branch
542            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
543            * @throws SystemException if a system exception occurred
544            */
545            public static com.liferay.portal.model.LayoutSetBranch[] findByG_P_PrevAndNext(
546                    long layoutSetBranchId, long groupId, boolean privateLayout,
547                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
548                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
549                            com.liferay.portal.kernel.exception.SystemException {
550                    return getPersistence()
551                                       .findByG_P_PrevAndNext(layoutSetBranchId, groupId,
552                            privateLayout, orderByComparator);
553            }
554    
555            /**
556            * Returns all the layout set branchs that the user has permission to view where groupId = &#63; and privateLayout = &#63;.
557            *
558            * @param groupId the group ID
559            * @param privateLayout the private layout
560            * @return the matching layout set branchs that the user has permission to view
561            * @throws SystemException if a system exception occurred
562            */
563            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P(
564                    long groupId, boolean privateLayout)
565                    throws com.liferay.portal.kernel.exception.SystemException {
566                    return getPersistence().filterFindByG_P(groupId, privateLayout);
567            }
568    
569            /**
570            * Returns a range of all the layout set branchs that the user has permission to view where groupId = &#63; and privateLayout = &#63;.
571            *
572            * <p>
573            * 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.
574            * </p>
575            *
576            * @param groupId the group ID
577            * @param privateLayout the private layout
578            * @param start the lower bound of the range of layout set branchs
579            * @param end the upper bound of the range of layout set branchs (not inclusive)
580            * @return the range of matching layout set branchs that the user has permission to view
581            * @throws SystemException if a system exception occurred
582            */
583            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P(
584                    long groupId, boolean privateLayout, int start, int end)
585                    throws com.liferay.portal.kernel.exception.SystemException {
586                    return getPersistence()
587                                       .filterFindByG_P(groupId, privateLayout, start, end);
588            }
589    
590            /**
591            * Returns an ordered range of all the layout set branchs that the user has permissions to view where groupId = &#63; and privateLayout = &#63;.
592            *
593            * <p>
594            * 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.
595            * </p>
596            *
597            * @param groupId the group ID
598            * @param privateLayout the private layout
599            * @param start the lower bound of the range of layout set branchs
600            * @param end the upper bound of the range of layout set branchs (not inclusive)
601            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
602            * @return the ordered range of matching layout set branchs that the user has permission to view
603            * @throws SystemException if a system exception occurred
604            */
605            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P(
606                    long groupId, boolean privateLayout, int start, int end,
607                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
608                    throws com.liferay.portal.kernel.exception.SystemException {
609                    return getPersistence()
610                                       .filterFindByG_P(groupId, privateLayout, start, end,
611                            orderByComparator);
612            }
613    
614            /**
615            * 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;.
616            *
617            * @param layoutSetBranchId the primary key of the current layout set branch
618            * @param groupId the group ID
619            * @param privateLayout the private layout
620            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
621            * @return the previous, current, and next layout set branch
622            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
623            * @throws SystemException if a system exception occurred
624            */
625            public static com.liferay.portal.model.LayoutSetBranch[] filterFindByG_P_PrevAndNext(
626                    long layoutSetBranchId, long groupId, boolean privateLayout,
627                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
628                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
629                            com.liferay.portal.kernel.exception.SystemException {
630                    return getPersistence()
631                                       .filterFindByG_P_PrevAndNext(layoutSetBranchId, groupId,
632                            privateLayout, orderByComparator);
633            }
634    
635            /**
636            * 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.
637            *
638            * @param groupId the group ID
639            * @param privateLayout the private layout
640            * @param name the name
641            * @return the matching layout set branch
642            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found
643            * @throws SystemException if a system exception occurred
644            */
645            public static com.liferay.portal.model.LayoutSetBranch findByG_P_N(
646                    long groupId, boolean privateLayout, java.lang.String name)
647                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
648                            com.liferay.portal.kernel.exception.SystemException {
649                    return getPersistence().findByG_P_N(groupId, privateLayout, name);
650            }
651    
652            /**
653            * 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.
654            *
655            * @param groupId the group ID
656            * @param privateLayout the private layout
657            * @param name the name
658            * @return the matching layout set branch, or <code>null</code> if a matching layout set branch could not be found
659            * @throws SystemException if a system exception occurred
660            */
661            public static com.liferay.portal.model.LayoutSetBranch fetchByG_P_N(
662                    long groupId, boolean privateLayout, java.lang.String name)
663                    throws com.liferay.portal.kernel.exception.SystemException {
664                    return getPersistence().fetchByG_P_N(groupId, privateLayout, name);
665            }
666    
667            /**
668            * 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.
669            *
670            * @param groupId the group ID
671            * @param privateLayout the private layout
672            * @param name the name
673            * @param retrieveFromCache whether to use the finder cache
674            * @return the matching layout set branch, or <code>null</code> if a matching layout set branch could not be found
675            * @throws SystemException if a system exception occurred
676            */
677            public static com.liferay.portal.model.LayoutSetBranch fetchByG_P_N(
678                    long groupId, boolean privateLayout, java.lang.String name,
679                    boolean retrieveFromCache)
680                    throws com.liferay.portal.kernel.exception.SystemException {
681                    return getPersistence()
682                                       .fetchByG_P_N(groupId, privateLayout, name, retrieveFromCache);
683            }
684    
685            /**
686            * Returns all the layout set branchs.
687            *
688            * @return the layout set branchs
689            * @throws SystemException if a system exception occurred
690            */
691            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findAll()
692                    throws com.liferay.portal.kernel.exception.SystemException {
693                    return getPersistence().findAll();
694            }
695    
696            /**
697            * Returns a range of all the layout set branchs.
698            *
699            * <p>
700            * 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.
701            * </p>
702            *
703            * @param start the lower bound of the range of layout set branchs
704            * @param end the upper bound of the range of layout set branchs (not inclusive)
705            * @return the range of layout set branchs
706            * @throws SystemException if a system exception occurred
707            */
708            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findAll(
709                    int start, int end)
710                    throws com.liferay.portal.kernel.exception.SystemException {
711                    return getPersistence().findAll(start, end);
712            }
713    
714            /**
715            * Returns an ordered range of all the layout set branchs.
716            *
717            * <p>
718            * 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.
719            * </p>
720            *
721            * @param start the lower bound of the range of layout set branchs
722            * @param end the upper bound of the range of layout set branchs (not inclusive)
723            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
724            * @return the ordered range of layout set branchs
725            * @throws SystemException if a system exception occurred
726            */
727            public static java.util.List<com.liferay.portal.model.LayoutSetBranch> findAll(
728                    int start, int end,
729                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
730                    throws com.liferay.portal.kernel.exception.SystemException {
731                    return getPersistence().findAll(start, end, orderByComparator);
732            }
733    
734            /**
735            * Removes all the layout set branchs where groupId = &#63; from the database.
736            *
737            * @param groupId the group ID
738            * @throws SystemException if a system exception occurred
739            */
740            public static void removeByGroupId(long groupId)
741                    throws com.liferay.portal.kernel.exception.SystemException {
742                    getPersistence().removeByGroupId(groupId);
743            }
744    
745            /**
746            * Removes all the layout set branchs where groupId = &#63; and privateLayout = &#63; from the database.
747            *
748            * @param groupId the group ID
749            * @param privateLayout the private layout
750            * @throws SystemException if a system exception occurred
751            */
752            public static void removeByG_P(long groupId, boolean privateLayout)
753                    throws com.liferay.portal.kernel.exception.SystemException {
754                    getPersistence().removeByG_P(groupId, privateLayout);
755            }
756    
757            /**
758            * Removes the layout set branch where groupId = &#63; and privateLayout = &#63; and name = &#63; from the database.
759            *
760            * @param groupId the group ID
761            * @param privateLayout the private layout
762            * @param name the name
763            * @return the layout set branch that was removed
764            * @throws SystemException if a system exception occurred
765            */
766            public static com.liferay.portal.model.LayoutSetBranch removeByG_P_N(
767                    long groupId, boolean privateLayout, java.lang.String name)
768                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
769                            com.liferay.portal.kernel.exception.SystemException {
770                    return getPersistence().removeByG_P_N(groupId, privateLayout, name);
771            }
772    
773            /**
774            * Removes all the layout set branchs from the database.
775            *
776            * @throws SystemException if a system exception occurred
777            */
778            public static void removeAll()
779                    throws com.liferay.portal.kernel.exception.SystemException {
780                    getPersistence().removeAll();
781            }
782    
783            /**
784            * Returns the number of layout set branchs where groupId = &#63;.
785            *
786            * @param groupId the group ID
787            * @return the number of matching layout set branchs
788            * @throws SystemException if a system exception occurred
789            */
790            public static int countByGroupId(long groupId)
791                    throws com.liferay.portal.kernel.exception.SystemException {
792                    return getPersistence().countByGroupId(groupId);
793            }
794    
795            /**
796            * Returns the number of layout set branchs that the user has permission to view where groupId = &#63;.
797            *
798            * @param groupId the group ID
799            * @return the number of matching layout set branchs that the user has permission to view
800            * @throws SystemException if a system exception occurred
801            */
802            public static int filterCountByGroupId(long groupId)
803                    throws com.liferay.portal.kernel.exception.SystemException {
804                    return getPersistence().filterCountByGroupId(groupId);
805            }
806    
807            /**
808            * Returns the number of layout set branchs where groupId = &#63; and privateLayout = &#63;.
809            *
810            * @param groupId the group ID
811            * @param privateLayout the private layout
812            * @return the number of matching layout set branchs
813            * @throws SystemException if a system exception occurred
814            */
815            public static int countByG_P(long groupId, boolean privateLayout)
816                    throws com.liferay.portal.kernel.exception.SystemException {
817                    return getPersistence().countByG_P(groupId, privateLayout);
818            }
819    
820            /**
821            * Returns the number of layout set branchs that the user has permission to view where groupId = &#63; and privateLayout = &#63;.
822            *
823            * @param groupId the group ID
824            * @param privateLayout the private layout
825            * @return the number of matching layout set branchs that the user has permission to view
826            * @throws SystemException if a system exception occurred
827            */
828            public static int filterCountByG_P(long groupId, boolean privateLayout)
829                    throws com.liferay.portal.kernel.exception.SystemException {
830                    return getPersistence().filterCountByG_P(groupId, privateLayout);
831            }
832    
833            /**
834            * Returns the number of layout set branchs where groupId = &#63; and privateLayout = &#63; and name = &#63;.
835            *
836            * @param groupId the group ID
837            * @param privateLayout the private layout
838            * @param name the name
839            * @return the number of matching layout set branchs
840            * @throws SystemException if a system exception occurred
841            */
842            public static int countByG_P_N(long groupId, boolean privateLayout,
843                    java.lang.String name)
844                    throws com.liferay.portal.kernel.exception.SystemException {
845                    return getPersistence().countByG_P_N(groupId, privateLayout, name);
846            }
847    
848            /**
849            * Returns the number of layout set branchs.
850            *
851            * @return the number of layout set branchs
852            * @throws SystemException if a system exception occurred
853            */
854            public static int countAll()
855                    throws com.liferay.portal.kernel.exception.SystemException {
856                    return getPersistence().countAll();
857            }
858    
859            public static LayoutSetBranchPersistence getPersistence() {
860                    if (_persistence == null) {
861                            _persistence = (LayoutSetBranchPersistence)PortalBeanLocatorUtil.locate(LayoutSetBranchPersistence.class.getName());
862    
863                            ReferenceRegistry.registerReference(LayoutSetBranchUtil.class,
864                                    "_persistence");
865                    }
866    
867                    return _persistence;
868            }
869    
870            /**
871             * @deprecated
872             */
873            public void setPersistence(LayoutSetBranchPersistence persistence) {
874            }
875    
876            private static LayoutSetBranchPersistence _persistence;
877    }