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.model.LayoutSetBranch;
018    
019    /**
020     * The persistence interface for the layout set branch service.
021     *
022     * <p>
023     * Caching information and settings can be found in <code>portal.properties</code>
024     * </p>
025     *
026     * @author Brian Wing Shun Chan
027     * @see LayoutSetBranchPersistenceImpl
028     * @see LayoutSetBranchUtil
029     * @generated
030     */
031    public interface LayoutSetBranchPersistence extends BasePersistence<LayoutSetBranch> {
032            /*
033             * NOTE FOR DEVELOPERS:
034             *
035             * Never modify or reference this interface directly. Always use {@link LayoutSetBranchUtil} to access the layout set branch persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
036             */
037    
038            /**
039            * Caches the layout set branch in the entity cache if it is enabled.
040            *
041            * @param layoutSetBranch the layout set branch
042            */
043            public void cacheResult(
044                    com.liferay.portal.model.LayoutSetBranch layoutSetBranch);
045    
046            /**
047            * Caches the layout set branchs in the entity cache if it is enabled.
048            *
049            * @param layoutSetBranchs the layout set branchs
050            */
051            public void cacheResult(
052                    java.util.List<com.liferay.portal.model.LayoutSetBranch> layoutSetBranchs);
053    
054            /**
055            * Creates a new layout set branch with the primary key. Does not add the layout set branch to the database.
056            *
057            * @param layoutSetBranchId the primary key for the new layout set branch
058            * @return the new layout set branch
059            */
060            public com.liferay.portal.model.LayoutSetBranch create(
061                    long layoutSetBranchId);
062    
063            /**
064            * Removes the layout set branch with the primary key from the database. Also notifies the appropriate model listeners.
065            *
066            * @param layoutSetBranchId the primary key of the layout set branch
067            * @return the layout set branch that was removed
068            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
069            * @throws SystemException if a system exception occurred
070            */
071            public com.liferay.portal.model.LayoutSetBranch remove(
072                    long layoutSetBranchId)
073                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
074                            com.liferay.portal.kernel.exception.SystemException;
075    
076            public com.liferay.portal.model.LayoutSetBranch updateImpl(
077                    com.liferay.portal.model.LayoutSetBranch layoutSetBranch, boolean merge)
078                    throws com.liferay.portal.kernel.exception.SystemException;
079    
080            /**
081            * Returns the layout set branch with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutSetBranchException} if it could not be found.
082            *
083            * @param layoutSetBranchId the primary key of the layout set branch
084            * @return the layout set branch
085            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
086            * @throws SystemException if a system exception occurred
087            */
088            public com.liferay.portal.model.LayoutSetBranch findByPrimaryKey(
089                    long layoutSetBranchId)
090                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
091                            com.liferay.portal.kernel.exception.SystemException;
092    
093            /**
094            * Returns the layout set branch with the primary key or returns <code>null</code> if it could not be found.
095            *
096            * @param layoutSetBranchId the primary key of the layout set branch
097            * @return the layout set branch, or <code>null</code> if a layout set branch with the primary key could not be found
098            * @throws SystemException if a system exception occurred
099            */
100            public com.liferay.portal.model.LayoutSetBranch fetchByPrimaryKey(
101                    long layoutSetBranchId)
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            /**
105            * Returns all the layout set branchs where groupId = &#63;.
106            *
107            * @param groupId the group ID
108            * @return the matching layout set branchs
109            * @throws SystemException if a system exception occurred
110            */
111            public java.util.List<com.liferay.portal.model.LayoutSetBranch> findByGroupId(
112                    long groupId)
113                    throws com.liferay.portal.kernel.exception.SystemException;
114    
115            /**
116            * Returns a range of all the layout set branchs where groupId = &#63;.
117            *
118            * <p>
119            * 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.
120            * </p>
121            *
122            * @param groupId the group ID
123            * @param start the lower bound of the range of layout set branchs
124            * @param end the upper bound of the range of layout set branchs (not inclusive)
125            * @return the range of matching layout set branchs
126            * @throws SystemException if a system exception occurred
127            */
128            public java.util.List<com.liferay.portal.model.LayoutSetBranch> findByGroupId(
129                    long groupId, int start, int end)
130                    throws com.liferay.portal.kernel.exception.SystemException;
131    
132            /**
133            * Returns an ordered range of all the layout set branchs where groupId = &#63;.
134            *
135            * <p>
136            * 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.
137            * </p>
138            *
139            * @param groupId the group ID
140            * @param start the lower bound of the range of layout set branchs
141            * @param end the upper bound of the range of layout set branchs (not inclusive)
142            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
143            * @return the ordered range of matching layout set branchs
144            * @throws SystemException if a system exception occurred
145            */
146            public java.util.List<com.liferay.portal.model.LayoutSetBranch> findByGroupId(
147                    long groupId, int start, int end,
148                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149                    throws com.liferay.portal.kernel.exception.SystemException;
150    
151            /**
152            * Returns the first layout set branch in the ordered set where groupId = &#63;.
153            *
154            * @param groupId the group ID
155            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
156            * @return the first matching layout set branch
157            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found
158            * @throws SystemException if a system exception occurred
159            */
160            public com.liferay.portal.model.LayoutSetBranch findByGroupId_First(
161                    long groupId,
162                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
164                            com.liferay.portal.kernel.exception.SystemException;
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, or <code>null</code> if a matching layout set branch could not be found
172            * @throws SystemException if a system exception occurred
173            */
174            public com.liferay.portal.model.LayoutSetBranch fetchByGroupId_First(
175                    long groupId,
176                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
177                    throws com.liferay.portal.kernel.exception.SystemException;
178    
179            /**
180            * Returns the last layout set branch in the ordered set where groupId = &#63;.
181            *
182            * @param groupId the group ID
183            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
184            * @return the last matching layout set branch
185            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found
186            * @throws SystemException if a system exception occurred
187            */
188            public com.liferay.portal.model.LayoutSetBranch findByGroupId_Last(
189                    long groupId,
190                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
191                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
192                            com.liferay.portal.kernel.exception.SystemException;
193    
194            /**
195            * Returns the last layout set branch in the ordered set where groupId = &#63;.
196            *
197            * @param groupId the group ID
198            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
199            * @return the last matching layout set branch, or <code>null</code> if a matching layout set branch could not be found
200            * @throws SystemException if a system exception occurred
201            */
202            public com.liferay.portal.model.LayoutSetBranch fetchByGroupId_Last(
203                    long groupId,
204                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
205                    throws com.liferay.portal.kernel.exception.SystemException;
206    
207            /**
208            * Returns the layout set branchs before and after the current layout set branch in the ordered set where groupId = &#63;.
209            *
210            * @param layoutSetBranchId the primary key of the current layout set branch
211            * @param groupId the group ID
212            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
213            * @return the previous, current, and next layout set branch
214            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
215            * @throws SystemException if a system exception occurred
216            */
217            public com.liferay.portal.model.LayoutSetBranch[] findByGroupId_PrevAndNext(
218                    long layoutSetBranchId, long groupId,
219                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
220                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
221                            com.liferay.portal.kernel.exception.SystemException;
222    
223            /**
224            * Returns all the layout set branchs that the user has permission to view where groupId = &#63;.
225            *
226            * @param groupId the group ID
227            * @return the matching layout set branchs that the user has permission to view
228            * @throws SystemException if a system exception occurred
229            */
230            public java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByGroupId(
231                    long groupId)
232                    throws com.liferay.portal.kernel.exception.SystemException;
233    
234            /**
235            * Returns a range of all the layout set branchs that the user has permission to view where groupId = &#63;.
236            *
237            * <p>
238            * 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.
239            * </p>
240            *
241            * @param groupId the group ID
242            * @param start the lower bound of the range of layout set branchs
243            * @param end the upper bound of the range of layout set branchs (not inclusive)
244            * @return the range of matching layout set branchs that the user has permission to view
245            * @throws SystemException if a system exception occurred
246            */
247            public java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByGroupId(
248                    long groupId, int start, int end)
249                    throws com.liferay.portal.kernel.exception.SystemException;
250    
251            /**
252            * Returns an ordered range of all the layout set branchs that the user has permissions to view where groupId = &#63;.
253            *
254            * <p>
255            * 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.
256            * </p>
257            *
258            * @param groupId the group ID
259            * @param start the lower bound of the range of layout set branchs
260            * @param end the upper bound of the range of layout set branchs (not inclusive)
261            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
262            * @return the ordered range of matching layout set branchs that the user has permission to view
263            * @throws SystemException if a system exception occurred
264            */
265            public java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByGroupId(
266                    long groupId, int start, int end,
267                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
268                    throws com.liferay.portal.kernel.exception.SystemException;
269    
270            /**
271            * 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;.
272            *
273            * @param layoutSetBranchId the primary key of the current layout set branch
274            * @param groupId the group ID
275            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
276            * @return the previous, current, and next layout set branch
277            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
278            * @throws SystemException if a system exception occurred
279            */
280            public com.liferay.portal.model.LayoutSetBranch[] filterFindByGroupId_PrevAndNext(
281                    long layoutSetBranchId, long groupId,
282                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
283                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
284                            com.liferay.portal.kernel.exception.SystemException;
285    
286            /**
287            * Returns all the layout set branchs where groupId = &#63; and privateLayout = &#63;.
288            *
289            * @param groupId the group ID
290            * @param privateLayout the private layout
291            * @return the matching layout set branchs
292            * @throws SystemException if a system exception occurred
293            */
294            public java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P(
295                    long groupId, boolean privateLayout)
296                    throws com.liferay.portal.kernel.exception.SystemException;
297    
298            /**
299            * Returns a range of all the layout set branchs where groupId = &#63; and privateLayout = &#63;.
300            *
301            * <p>
302            * 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.
303            * </p>
304            *
305            * @param groupId the group ID
306            * @param privateLayout the private layout
307            * @param start the lower bound of the range of layout set branchs
308            * @param end the upper bound of the range of layout set branchs (not inclusive)
309            * @return the range of matching layout set branchs
310            * @throws SystemException if a system exception occurred
311            */
312            public java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P(
313                    long groupId, boolean privateLayout, int start, int end)
314                    throws com.liferay.portal.kernel.exception.SystemException;
315    
316            /**
317            * Returns an ordered range of all the layout set branchs where groupId = &#63; and privateLayout = &#63;.
318            *
319            * <p>
320            * 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.
321            * </p>
322            *
323            * @param groupId the group ID
324            * @param privateLayout the private layout
325            * @param start the lower bound of the range of layout set branchs
326            * @param end the upper bound of the range of layout set branchs (not inclusive)
327            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
328            * @return the ordered range of matching layout set branchs
329            * @throws SystemException if a system exception occurred
330            */
331            public java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P(
332                    long groupId, boolean privateLayout, int start, int end,
333                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
334                    throws com.liferay.portal.kernel.exception.SystemException;
335    
336            /**
337            * Returns the first layout set branch in the ordered set where groupId = &#63; and privateLayout = &#63;.
338            *
339            * @param groupId the group ID
340            * @param privateLayout the private layout
341            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
342            * @return the first matching layout set branch
343            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found
344            * @throws SystemException if a system exception occurred
345            */
346            public com.liferay.portal.model.LayoutSetBranch findByG_P_First(
347                    long groupId, boolean privateLayout,
348                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
349                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
350                            com.liferay.portal.kernel.exception.SystemException;
351    
352            /**
353            * Returns the first layout set branch in the ordered set where groupId = &#63; and privateLayout = &#63;.
354            *
355            * @param groupId the group ID
356            * @param privateLayout the private layout
357            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
358            * @return the first matching layout set branch, or <code>null</code> if a matching layout set branch could not be found
359            * @throws SystemException if a system exception occurred
360            */
361            public com.liferay.portal.model.LayoutSetBranch fetchByG_P_First(
362                    long groupId, boolean privateLayout,
363                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
364                    throws com.liferay.portal.kernel.exception.SystemException;
365    
366            /**
367            * Returns the last layout set branch in the ordered set where groupId = &#63; and privateLayout = &#63;.
368            *
369            * @param groupId the group ID
370            * @param privateLayout the private layout
371            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
372            * @return the last matching layout set branch
373            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found
374            * @throws SystemException if a system exception occurred
375            */
376            public com.liferay.portal.model.LayoutSetBranch findByG_P_Last(
377                    long groupId, boolean privateLayout,
378                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
379                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
380                            com.liferay.portal.kernel.exception.SystemException;
381    
382            /**
383            * Returns the last layout set branch in the ordered set where groupId = &#63; and privateLayout = &#63;.
384            *
385            * @param groupId the group ID
386            * @param privateLayout the private layout
387            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
388            * @return the last matching layout set branch, or <code>null</code> if a matching layout set branch could not be found
389            * @throws SystemException if a system exception occurred
390            */
391            public com.liferay.portal.model.LayoutSetBranch fetchByG_P_Last(
392                    long groupId, boolean privateLayout,
393                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
394                    throws com.liferay.portal.kernel.exception.SystemException;
395    
396            /**
397            * Returns the layout set branchs before and after the current layout set branch in the ordered set where groupId = &#63; and privateLayout = &#63;.
398            *
399            * @param layoutSetBranchId the primary key of the current layout set branch
400            * @param groupId the group ID
401            * @param privateLayout the private layout
402            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
403            * @return the previous, current, and next layout set branch
404            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
405            * @throws SystemException if a system exception occurred
406            */
407            public com.liferay.portal.model.LayoutSetBranch[] findByG_P_PrevAndNext(
408                    long layoutSetBranchId, long groupId, boolean privateLayout,
409                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
410                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
411                            com.liferay.portal.kernel.exception.SystemException;
412    
413            /**
414            * Returns all the layout set branchs that the user has permission to view where groupId = &#63; and privateLayout = &#63;.
415            *
416            * @param groupId the group ID
417            * @param privateLayout the private layout
418            * @return the matching layout set branchs that the user has permission to view
419            * @throws SystemException if a system exception occurred
420            */
421            public java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P(
422                    long groupId, boolean privateLayout)
423                    throws com.liferay.portal.kernel.exception.SystemException;
424    
425            /**
426            * Returns a range of all the layout set branchs that the user has permission to view where groupId = &#63; and privateLayout = &#63;.
427            *
428            * <p>
429            * 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.
430            * </p>
431            *
432            * @param groupId the group ID
433            * @param privateLayout the private layout
434            * @param start the lower bound of the range of layout set branchs
435            * @param end the upper bound of the range of layout set branchs (not inclusive)
436            * @return the range of matching layout set branchs that the user has permission to view
437            * @throws SystemException if a system exception occurred
438            */
439            public java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P(
440                    long groupId, boolean privateLayout, int start, int end)
441                    throws com.liferay.portal.kernel.exception.SystemException;
442    
443            /**
444            * Returns an ordered range of all the layout set branchs that the user has permissions to view where groupId = &#63; and privateLayout = &#63;.
445            *
446            * <p>
447            * 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.
448            * </p>
449            *
450            * @param groupId the group ID
451            * @param privateLayout the private layout
452            * @param start the lower bound of the range of layout set branchs
453            * @param end the upper bound of the range of layout set branchs (not inclusive)
454            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
455            * @return the ordered range of matching layout set branchs that the user has permission to view
456            * @throws SystemException if a system exception occurred
457            */
458            public java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P(
459                    long groupId, boolean privateLayout, int start, int end,
460                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
461                    throws com.liferay.portal.kernel.exception.SystemException;
462    
463            /**
464            * 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;.
465            *
466            * @param layoutSetBranchId the primary key of the current layout set branch
467            * @param groupId the group ID
468            * @param privateLayout the private layout
469            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
470            * @return the previous, current, and next layout set branch
471            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
472            * @throws SystemException if a system exception occurred
473            */
474            public com.liferay.portal.model.LayoutSetBranch[] filterFindByG_P_PrevAndNext(
475                    long layoutSetBranchId, long groupId, boolean privateLayout,
476                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
477                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
478                            com.liferay.portal.kernel.exception.SystemException;
479    
480            /**
481            * 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.
482            *
483            * @param groupId the group ID
484            * @param privateLayout the private layout
485            * @param name the name
486            * @return the matching layout set branch
487            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found
488            * @throws SystemException if a system exception occurred
489            */
490            public com.liferay.portal.model.LayoutSetBranch findByG_P_N(long groupId,
491                    boolean privateLayout, java.lang.String name)
492                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
493                            com.liferay.portal.kernel.exception.SystemException;
494    
495            /**
496            * 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.
497            *
498            * @param groupId the group ID
499            * @param privateLayout the private layout
500            * @param name the name
501            * @return the matching layout set branch, or <code>null</code> if a matching layout set branch could not be found
502            * @throws SystemException if a system exception occurred
503            */
504            public com.liferay.portal.model.LayoutSetBranch fetchByG_P_N(long groupId,
505                    boolean privateLayout, java.lang.String name)
506                    throws com.liferay.portal.kernel.exception.SystemException;
507    
508            /**
509            * 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.
510            *
511            * @param groupId the group ID
512            * @param privateLayout the private layout
513            * @param name the name
514            * @param retrieveFromCache whether to use the finder cache
515            * @return the matching layout set branch, or <code>null</code> if a matching layout set branch could not be found
516            * @throws SystemException if a system exception occurred
517            */
518            public com.liferay.portal.model.LayoutSetBranch fetchByG_P_N(long groupId,
519                    boolean privateLayout, java.lang.String name, boolean retrieveFromCache)
520                    throws com.liferay.portal.kernel.exception.SystemException;
521    
522            /**
523            * Returns all the layout set branchs where groupId = &#63; and privateLayout = &#63; and master = &#63;.
524            *
525            * @param groupId the group ID
526            * @param privateLayout the private layout
527            * @param master the master
528            * @return the matching layout set branchs
529            * @throws SystemException if a system exception occurred
530            */
531            public java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P_M(
532                    long groupId, boolean privateLayout, boolean master)
533                    throws com.liferay.portal.kernel.exception.SystemException;
534    
535            /**
536            * Returns a range of all the layout set branchs where groupId = &#63; and privateLayout = &#63; and master = &#63;.
537            *
538            * <p>
539            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
540            * </p>
541            *
542            * @param groupId the group ID
543            * @param privateLayout the private layout
544            * @param master the master
545            * @param start the lower bound of the range of layout set branchs
546            * @param end the upper bound of the range of layout set branchs (not inclusive)
547            * @return the range of matching layout set branchs
548            * @throws SystemException if a system exception occurred
549            */
550            public java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P_M(
551                    long groupId, boolean privateLayout, boolean master, int start, int end)
552                    throws com.liferay.portal.kernel.exception.SystemException;
553    
554            /**
555            * Returns an ordered range of all the layout set branchs where groupId = &#63; and privateLayout = &#63; and master = &#63;.
556            *
557            * <p>
558            * 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.
559            * </p>
560            *
561            * @param groupId the group ID
562            * @param privateLayout the private layout
563            * @param master the master
564            * @param start the lower bound of the range of layout set branchs
565            * @param end the upper bound of the range of layout set branchs (not inclusive)
566            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
567            * @return the ordered range of matching layout set branchs
568            * @throws SystemException if a system exception occurred
569            */
570            public java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P_M(
571                    long groupId, boolean privateLayout, boolean master, int start,
572                    int end,
573                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
574                    throws com.liferay.portal.kernel.exception.SystemException;
575    
576            /**
577            * Returns the first layout set branch in the ordered set where groupId = &#63; and privateLayout = &#63; and master = &#63;.
578            *
579            * @param groupId the group ID
580            * @param privateLayout the private layout
581            * @param master the master
582            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
583            * @return the first matching layout set branch
584            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found
585            * @throws SystemException if a system exception occurred
586            */
587            public com.liferay.portal.model.LayoutSetBranch findByG_P_M_First(
588                    long groupId, boolean privateLayout, boolean master,
589                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
590                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
591                            com.liferay.portal.kernel.exception.SystemException;
592    
593            /**
594            * Returns the first layout set branch in the ordered set where groupId = &#63; and privateLayout = &#63; and master = &#63;.
595            *
596            * @param groupId the group ID
597            * @param privateLayout the private layout
598            * @param master the master
599            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
600            * @return the first matching layout set branch, or <code>null</code> if a matching layout set branch could not be found
601            * @throws SystemException if a system exception occurred
602            */
603            public com.liferay.portal.model.LayoutSetBranch fetchByG_P_M_First(
604                    long groupId, boolean privateLayout, boolean master,
605                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
606                    throws com.liferay.portal.kernel.exception.SystemException;
607    
608            /**
609            * Returns the last layout set branch in the ordered set where groupId = &#63; and privateLayout = &#63; and master = &#63;.
610            *
611            * @param groupId the group ID
612            * @param privateLayout the private layout
613            * @param master the master
614            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
615            * @return the last matching layout set branch
616            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found
617            * @throws SystemException if a system exception occurred
618            */
619            public com.liferay.portal.model.LayoutSetBranch findByG_P_M_Last(
620                    long groupId, boolean privateLayout, boolean master,
621                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
622                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
623                            com.liferay.portal.kernel.exception.SystemException;
624    
625            /**
626            * Returns the last layout set branch in the ordered set where groupId = &#63; and privateLayout = &#63; and master = &#63;.
627            *
628            * @param groupId the group ID
629            * @param privateLayout the private layout
630            * @param master the master
631            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
632            * @return the last matching layout set branch, or <code>null</code> if a matching layout set branch could not be found
633            * @throws SystemException if a system exception occurred
634            */
635            public com.liferay.portal.model.LayoutSetBranch fetchByG_P_M_Last(
636                    long groupId, boolean privateLayout, boolean master,
637                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
638                    throws com.liferay.portal.kernel.exception.SystemException;
639    
640            /**
641            * 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;.
642            *
643            * @param layoutSetBranchId the primary key of the current layout set branch
644            * @param groupId the group ID
645            * @param privateLayout the private layout
646            * @param master the master
647            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
648            * @return the previous, current, and next layout set branch
649            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
650            * @throws SystemException if a system exception occurred
651            */
652            public com.liferay.portal.model.LayoutSetBranch[] findByG_P_M_PrevAndNext(
653                    long layoutSetBranchId, long groupId, boolean privateLayout,
654                    boolean master,
655                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
656                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
657                            com.liferay.portal.kernel.exception.SystemException;
658    
659            /**
660            * Returns all the layout set branchs that the user has permission to view where groupId = &#63; and privateLayout = &#63; and master = &#63;.
661            *
662            * @param groupId the group ID
663            * @param privateLayout the private layout
664            * @param master the master
665            * @return the matching layout set branchs that the user has permission to view
666            * @throws SystemException if a system exception occurred
667            */
668            public java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P_M(
669                    long groupId, boolean privateLayout, boolean master)
670                    throws com.liferay.portal.kernel.exception.SystemException;
671    
672            /**
673            * 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;.
674            *
675            * <p>
676            * 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.
677            * </p>
678            *
679            * @param groupId the group ID
680            * @param privateLayout the private layout
681            * @param master the master
682            * @param start the lower bound of the range of layout set branchs
683            * @param end the upper bound of the range of layout set branchs (not inclusive)
684            * @return the range of matching layout set branchs that the user has permission to view
685            * @throws SystemException if a system exception occurred
686            */
687            public java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P_M(
688                    long groupId, boolean privateLayout, boolean master, int start, int end)
689                    throws com.liferay.portal.kernel.exception.SystemException;
690    
691            /**
692            * 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;.
693            *
694            * <p>
695            * 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.
696            * </p>
697            *
698            * @param groupId the group ID
699            * @param privateLayout the private layout
700            * @param master the master
701            * @param start the lower bound of the range of layout set branchs
702            * @param end the upper bound of the range of layout set branchs (not inclusive)
703            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
704            * @return the ordered range of matching layout set branchs that the user has permission to view
705            * @throws SystemException if a system exception occurred
706            */
707            public java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P_M(
708                    long groupId, boolean privateLayout, boolean master, int start,
709                    int end,
710                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
711                    throws com.liferay.portal.kernel.exception.SystemException;
712    
713            /**
714            * 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;.
715            *
716            * @param layoutSetBranchId the primary key of the current layout set branch
717            * @param groupId the group ID
718            * @param privateLayout the private layout
719            * @param master the master
720            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
721            * @return the previous, current, and next layout set branch
722            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
723            * @throws SystemException if a system exception occurred
724            */
725            public com.liferay.portal.model.LayoutSetBranch[] filterFindByG_P_M_PrevAndNext(
726                    long layoutSetBranchId, long groupId, boolean privateLayout,
727                    boolean master,
728                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
729                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
730                            com.liferay.portal.kernel.exception.SystemException;
731    
732            /**
733            * Returns all the layout set branchs.
734            *
735            * @return the layout set branchs
736            * @throws SystemException if a system exception occurred
737            */
738            public java.util.List<com.liferay.portal.model.LayoutSetBranch> findAll()
739                    throws com.liferay.portal.kernel.exception.SystemException;
740    
741            /**
742            * Returns a range of all the layout set branchs.
743            *
744            * <p>
745            * 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.
746            * </p>
747            *
748            * @param start the lower bound of the range of layout set branchs
749            * @param end the upper bound of the range of layout set branchs (not inclusive)
750            * @return the range of layout set branchs
751            * @throws SystemException if a system exception occurred
752            */
753            public java.util.List<com.liferay.portal.model.LayoutSetBranch> findAll(
754                    int start, int end)
755                    throws com.liferay.portal.kernel.exception.SystemException;
756    
757            /**
758            * Returns an ordered range of all the layout set branchs.
759            *
760            * <p>
761            * 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.
762            * </p>
763            *
764            * @param start the lower bound of the range of layout set branchs
765            * @param end the upper bound of the range of layout set branchs (not inclusive)
766            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
767            * @return the ordered range of layout set branchs
768            * @throws SystemException if a system exception occurred
769            */
770            public java.util.List<com.liferay.portal.model.LayoutSetBranch> findAll(
771                    int start, int end,
772                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
773                    throws com.liferay.portal.kernel.exception.SystemException;
774    
775            /**
776            * Removes all the layout set branchs where groupId = &#63; from the database.
777            *
778            * @param groupId the group ID
779            * @throws SystemException if a system exception occurred
780            */
781            public void removeByGroupId(long groupId)
782                    throws com.liferay.portal.kernel.exception.SystemException;
783    
784            /**
785            * Removes all the layout set branchs where groupId = &#63; and privateLayout = &#63; from the database.
786            *
787            * @param groupId the group ID
788            * @param privateLayout the private layout
789            * @throws SystemException if a system exception occurred
790            */
791            public void removeByG_P(long groupId, boolean privateLayout)
792                    throws com.liferay.portal.kernel.exception.SystemException;
793    
794            /**
795            * Removes the layout set branch where groupId = &#63; and privateLayout = &#63; and name = &#63; from the database.
796            *
797            * @param groupId the group ID
798            * @param privateLayout the private layout
799            * @param name the name
800            * @return the layout set branch that was removed
801            * @throws SystemException if a system exception occurred
802            */
803            public com.liferay.portal.model.LayoutSetBranch removeByG_P_N(
804                    long groupId, boolean privateLayout, java.lang.String name)
805                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
806                            com.liferay.portal.kernel.exception.SystemException;
807    
808            /**
809            * Removes all the layout set branchs where groupId = &#63; and privateLayout = &#63; and master = &#63; from the database.
810            *
811            * @param groupId the group ID
812            * @param privateLayout the private layout
813            * @param master the master
814            * @throws SystemException if a system exception occurred
815            */
816            public void removeByG_P_M(long groupId, boolean privateLayout,
817                    boolean master)
818                    throws com.liferay.portal.kernel.exception.SystemException;
819    
820            /**
821            * Removes all the layout set branchs from the database.
822            *
823            * @throws SystemException if a system exception occurred
824            */
825            public void removeAll()
826                    throws com.liferay.portal.kernel.exception.SystemException;
827    
828            /**
829            * Returns the number of layout set branchs where groupId = &#63;.
830            *
831            * @param groupId the group ID
832            * @return the number of matching layout set branchs
833            * @throws SystemException if a system exception occurred
834            */
835            public int countByGroupId(long groupId)
836                    throws com.liferay.portal.kernel.exception.SystemException;
837    
838            /**
839            * Returns the number of layout set branchs that the user has permission to view where groupId = &#63;.
840            *
841            * @param groupId the group ID
842            * @return the number of matching layout set branchs that the user has permission to view
843            * @throws SystemException if a system exception occurred
844            */
845            public int filterCountByGroupId(long groupId)
846                    throws com.liferay.portal.kernel.exception.SystemException;
847    
848            /**
849            * Returns the number of layout set branchs where groupId = &#63; and privateLayout = &#63;.
850            *
851            * @param groupId the group ID
852            * @param privateLayout the private layout
853            * @return the number of matching layout set branchs
854            * @throws SystemException if a system exception occurred
855            */
856            public int countByG_P(long groupId, boolean privateLayout)
857                    throws com.liferay.portal.kernel.exception.SystemException;
858    
859            /**
860            * Returns the number of layout set branchs that the user has permission to view where groupId = &#63; and privateLayout = &#63;.
861            *
862            * @param groupId the group ID
863            * @param privateLayout the private layout
864            * @return the number of matching layout set branchs that the user has permission to view
865            * @throws SystemException if a system exception occurred
866            */
867            public int filterCountByG_P(long groupId, boolean privateLayout)
868                    throws com.liferay.portal.kernel.exception.SystemException;
869    
870            /**
871            * Returns the number of layout set branchs where groupId = &#63; and privateLayout = &#63; and name = &#63;.
872            *
873            * @param groupId the group ID
874            * @param privateLayout the private layout
875            * @param name the name
876            * @return the number of matching layout set branchs
877            * @throws SystemException if a system exception occurred
878            */
879            public int countByG_P_N(long groupId, boolean privateLayout,
880                    java.lang.String name)
881                    throws com.liferay.portal.kernel.exception.SystemException;
882    
883            /**
884            * Returns the number of layout set branchs where groupId = &#63; and privateLayout = &#63; and master = &#63;.
885            *
886            * @param groupId the group ID
887            * @param privateLayout the private layout
888            * @param master the master
889            * @return the number of matching layout set branchs
890            * @throws SystemException if a system exception occurred
891            */
892            public int countByG_P_M(long groupId, boolean privateLayout, boolean master)
893                    throws com.liferay.portal.kernel.exception.SystemException;
894    
895            /**
896            * Returns the number of layout set branchs that the user has permission to view where groupId = &#63; and privateLayout = &#63; and master = &#63;.
897            *
898            * @param groupId the group ID
899            * @param privateLayout the private layout
900            * @param master the master
901            * @return the number of matching layout set branchs that the user has permission to view
902            * @throws SystemException if a system exception occurred
903            */
904            public int filterCountByG_P_M(long groupId, boolean privateLayout,
905                    boolean master)
906                    throws com.liferay.portal.kernel.exception.SystemException;
907    
908            /**
909            * Returns the number of layout set branchs.
910            *
911            * @return the number of layout set branchs
912            * @throws SystemException if a system exception occurred
913            */
914            public int countAll()
915                    throws com.liferay.portal.kernel.exception.SystemException;
916    }