001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.model.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            * <p>
155            * 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.
156            * </p>
157            *
158            * @param groupId the group ID
159            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
160            * @return the first matching layout set branch
161            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found
162            * @throws SystemException if a system exception occurred
163            */
164            public com.liferay.portal.model.LayoutSetBranch findByGroupId_First(
165                    long groupId,
166                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
168                            com.liferay.portal.kernel.exception.SystemException;
169    
170            /**
171            * Returns the last layout set branch in the ordered set where groupId = &#63;.
172            *
173            * <p>
174            * 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.
175            * </p>
176            *
177            * @param groupId the group ID
178            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
179            * @return the last matching layout set branch
180            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found
181            * @throws SystemException if a system exception occurred
182            */
183            public com.liferay.portal.model.LayoutSetBranch findByGroupId_Last(
184                    long groupId,
185                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
186                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
187                            com.liferay.portal.kernel.exception.SystemException;
188    
189            /**
190            * Returns the layout set branchs before and after the current layout set branch in the ordered set where groupId = &#63;.
191            *
192            * <p>
193            * 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.
194            * </p>
195            *
196            * @param layoutSetBranchId the primary key of the current layout set branch
197            * @param groupId the group ID
198            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
199            * @return the previous, current, and next layout set branch
200            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
201            * @throws SystemException if a system exception occurred
202            */
203            public com.liferay.portal.model.LayoutSetBranch[] findByGroupId_PrevAndNext(
204                    long layoutSetBranchId, long groupId,
205                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
206                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
207                            com.liferay.portal.kernel.exception.SystemException;
208    
209            /**
210            * Returns all the layout set branchs that the user has permission to view where groupId = &#63;.
211            *
212            * @param groupId the group ID
213            * @return the matching layout set branchs that the user has permission to view
214            * @throws SystemException if a system exception occurred
215            */
216            public java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByGroupId(
217                    long groupId)
218                    throws com.liferay.portal.kernel.exception.SystemException;
219    
220            /**
221            * Returns a range of all the layout set branchs that the user has permission to view where groupId = &#63;.
222            *
223            * <p>
224            * 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.
225            * </p>
226            *
227            * @param groupId the group ID
228            * @param start the lower bound of the range of layout set branchs
229            * @param end the upper bound of the range of layout set branchs (not inclusive)
230            * @return the range of matching layout set branchs that the user has permission to view
231            * @throws SystemException if a system exception occurred
232            */
233            public java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByGroupId(
234                    long groupId, int start, int end)
235                    throws com.liferay.portal.kernel.exception.SystemException;
236    
237            /**
238            * Returns an ordered range of all the layout set branchs that the user has permissions to view where groupId = &#63;.
239            *
240            * <p>
241            * 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.
242            * </p>
243            *
244            * @param groupId the group ID
245            * @param start the lower bound of the range of layout set branchs
246            * @param end the upper bound of the range of layout set branchs (not inclusive)
247            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
248            * @return the ordered range of matching layout set branchs that the user has permission to view
249            * @throws SystemException if a system exception occurred
250            */
251            public java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByGroupId(
252                    long groupId, int start, int end,
253                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
254                    throws com.liferay.portal.kernel.exception.SystemException;
255    
256            /**
257            * 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;.
258            *
259            * @param layoutSetBranchId the primary key of the current layout set branch
260            * @param groupId the group ID
261            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
262            * @return the previous, current, and next layout set branch
263            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
264            * @throws SystemException if a system exception occurred
265            */
266            public com.liferay.portal.model.LayoutSetBranch[] filterFindByGroupId_PrevAndNext(
267                    long layoutSetBranchId, long groupId,
268                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
269                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
270                            com.liferay.portal.kernel.exception.SystemException;
271    
272            /**
273            * Returns all the layout set branchs where groupId = &#63; and privateLayout = &#63;.
274            *
275            * @param groupId the group ID
276            * @param privateLayout the private layout
277            * @return the matching layout set branchs
278            * @throws SystemException if a system exception occurred
279            */
280            public java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P(
281                    long groupId, boolean privateLayout)
282                    throws com.liferay.portal.kernel.exception.SystemException;
283    
284            /**
285            * Returns a range of all the layout set branchs where groupId = &#63; and privateLayout = &#63;.
286            *
287            * <p>
288            * 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.
289            * </p>
290            *
291            * @param groupId the group ID
292            * @param privateLayout the private layout
293            * @param start the lower bound of the range of layout set branchs
294            * @param end the upper bound of the range of layout set branchs (not inclusive)
295            * @return the range of matching layout set branchs
296            * @throws SystemException if a system exception occurred
297            */
298            public java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P(
299                    long groupId, boolean privateLayout, int start, int end)
300                    throws com.liferay.portal.kernel.exception.SystemException;
301    
302            /**
303            * Returns an ordered range of all the layout set branchs where groupId = &#63; and privateLayout = &#63;.
304            *
305            * <p>
306            * 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.
307            * </p>
308            *
309            * @param groupId the group ID
310            * @param privateLayout the private layout
311            * @param start the lower bound of the range of layout set branchs
312            * @param end the upper bound of the range of layout set branchs (not inclusive)
313            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
314            * @return the ordered range of matching layout set branchs
315            * @throws SystemException if a system exception occurred
316            */
317            public java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P(
318                    long groupId, boolean privateLayout, int start, int end,
319                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
320                    throws com.liferay.portal.kernel.exception.SystemException;
321    
322            /**
323            * Returns the first layout set branch in the ordered set where groupId = &#63; and privateLayout = &#63;.
324            *
325            * <p>
326            * 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.
327            * </p>
328            *
329            * @param groupId the group ID
330            * @param privateLayout the private layout
331            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
332            * @return the first matching layout set branch
333            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found
334            * @throws SystemException if a system exception occurred
335            */
336            public com.liferay.portal.model.LayoutSetBranch findByG_P_First(
337                    long groupId, boolean privateLayout,
338                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
339                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
340                            com.liferay.portal.kernel.exception.SystemException;
341    
342            /**
343            * Returns the last layout set branch in the ordered set where groupId = &#63; and privateLayout = &#63;.
344            *
345            * <p>
346            * 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.
347            * </p>
348            *
349            * @param groupId the group ID
350            * @param privateLayout the private layout
351            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
352            * @return the last matching layout set branch
353            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found
354            * @throws SystemException if a system exception occurred
355            */
356            public com.liferay.portal.model.LayoutSetBranch findByG_P_Last(
357                    long groupId, boolean privateLayout,
358                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
359                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
360                            com.liferay.portal.kernel.exception.SystemException;
361    
362            /**
363            * Returns the layout set branchs before and after the current layout set branch in the ordered set where groupId = &#63; and privateLayout = &#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 layoutSetBranchId the primary key of the current layout set branch
370            * @param groupId the group ID
371            * @param privateLayout the private layout
372            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
373            * @return the previous, current, and next layout set branch
374            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
375            * @throws SystemException if a system exception occurred
376            */
377            public com.liferay.portal.model.LayoutSetBranch[] findByG_P_PrevAndNext(
378                    long layoutSetBranchId, long groupId, boolean privateLayout,
379                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
380                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
381                            com.liferay.portal.kernel.exception.SystemException;
382    
383            /**
384            * Returns all the layout set branchs that the user has permission to view where groupId = &#63; and privateLayout = &#63;.
385            *
386            * @param groupId the group ID
387            * @param privateLayout the private layout
388            * @return the matching layout set branchs that the user has permission to view
389            * @throws SystemException if a system exception occurred
390            */
391            public java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P(
392                    long groupId, boolean privateLayout)
393                    throws com.liferay.portal.kernel.exception.SystemException;
394    
395            /**
396            * Returns a range of all the layout set branchs that the user has permission to view where groupId = &#63; and privateLayout = &#63;.
397            *
398            * <p>
399            * 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.
400            * </p>
401            *
402            * @param groupId the group ID
403            * @param privateLayout the private layout
404            * @param start the lower bound of the range of layout set branchs
405            * @param end the upper bound of the range of layout set branchs (not inclusive)
406            * @return the range of matching layout set branchs that the user has permission to view
407            * @throws SystemException if a system exception occurred
408            */
409            public java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P(
410                    long groupId, boolean privateLayout, int start, int end)
411                    throws com.liferay.portal.kernel.exception.SystemException;
412    
413            /**
414            * Returns an ordered range of all the layout set branchs that the user has permissions to view where groupId = &#63; and privateLayout = &#63;.
415            *
416            * <p>
417            * 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.
418            * </p>
419            *
420            * @param groupId the group ID
421            * @param privateLayout the private layout
422            * @param start the lower bound of the range of layout set branchs
423            * @param end the upper bound of the range of layout set branchs (not inclusive)
424            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
425            * @return the ordered range of matching layout set branchs that the user has permission to view
426            * @throws SystemException if a system exception occurred
427            */
428            public java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P(
429                    long groupId, boolean privateLayout, int start, int end,
430                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
431                    throws com.liferay.portal.kernel.exception.SystemException;
432    
433            /**
434            * 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;.
435            *
436            * @param layoutSetBranchId the primary key of the current layout set branch
437            * @param groupId the group ID
438            * @param privateLayout the private layout
439            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
440            * @return the previous, current, and next layout set branch
441            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
442            * @throws SystemException if a system exception occurred
443            */
444            public com.liferay.portal.model.LayoutSetBranch[] filterFindByG_P_PrevAndNext(
445                    long layoutSetBranchId, long groupId, boolean privateLayout,
446                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
447                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
448                            com.liferay.portal.kernel.exception.SystemException;
449    
450            /**
451            * 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.
452            *
453            * @param groupId the group ID
454            * @param privateLayout the private layout
455            * @param name the name
456            * @return the matching layout set branch
457            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found
458            * @throws SystemException if a system exception occurred
459            */
460            public com.liferay.portal.model.LayoutSetBranch findByG_P_N(long groupId,
461                    boolean privateLayout, java.lang.String name)
462                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
463                            com.liferay.portal.kernel.exception.SystemException;
464    
465            /**
466            * 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.
467            *
468            * @param groupId the group ID
469            * @param privateLayout the private layout
470            * @param name the name
471            * @return the matching layout set branch, or <code>null</code> if a matching layout set branch could not be found
472            * @throws SystemException if a system exception occurred
473            */
474            public com.liferay.portal.model.LayoutSetBranch fetchByG_P_N(long groupId,
475                    boolean privateLayout, java.lang.String name)
476                    throws com.liferay.portal.kernel.exception.SystemException;
477    
478            /**
479            * 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.
480            *
481            * @param groupId the group ID
482            * @param privateLayout the private layout
483            * @param name the name
484            * @param retrieveFromCache whether to use the finder cache
485            * @return the matching layout set branch, or <code>null</code> if a matching layout set branch could not be found
486            * @throws SystemException if a system exception occurred
487            */
488            public com.liferay.portal.model.LayoutSetBranch fetchByG_P_N(long groupId,
489                    boolean privateLayout, java.lang.String name, boolean retrieveFromCache)
490                    throws com.liferay.portal.kernel.exception.SystemException;
491    
492            /**
493            * Returns all the layout set branchs.
494            *
495            * @return the layout set branchs
496            * @throws SystemException if a system exception occurred
497            */
498            public java.util.List<com.liferay.portal.model.LayoutSetBranch> findAll()
499                    throws com.liferay.portal.kernel.exception.SystemException;
500    
501            /**
502            * Returns a range of all the layout set branchs.
503            *
504            * <p>
505            * 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.
506            * </p>
507            *
508            * @param start the lower bound of the range of layout set branchs
509            * @param end the upper bound of the range of layout set branchs (not inclusive)
510            * @return the range of layout set branchs
511            * @throws SystemException if a system exception occurred
512            */
513            public java.util.List<com.liferay.portal.model.LayoutSetBranch> findAll(
514                    int start, int end)
515                    throws com.liferay.portal.kernel.exception.SystemException;
516    
517            /**
518            * Returns an ordered range of all the layout set branchs.
519            *
520            * <p>
521            * 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.
522            * </p>
523            *
524            * @param start the lower bound of the range of layout set branchs
525            * @param end the upper bound of the range of layout set branchs (not inclusive)
526            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
527            * @return the ordered range of layout set branchs
528            * @throws SystemException if a system exception occurred
529            */
530            public java.util.List<com.liferay.portal.model.LayoutSetBranch> findAll(
531                    int start, int end,
532                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
533                    throws com.liferay.portal.kernel.exception.SystemException;
534    
535            /**
536            * Removes all the layout set branchs where groupId = &#63; from the database.
537            *
538            * @param groupId the group ID
539            * @throws SystemException if a system exception occurred
540            */
541            public void removeByGroupId(long groupId)
542                    throws com.liferay.portal.kernel.exception.SystemException;
543    
544            /**
545            * Removes all the layout set branchs where groupId = &#63; and privateLayout = &#63; from the database.
546            *
547            * @param groupId the group ID
548            * @param privateLayout the private layout
549            * @throws SystemException if a system exception occurred
550            */
551            public void removeByG_P(long groupId, boolean privateLayout)
552                    throws com.liferay.portal.kernel.exception.SystemException;
553    
554            /**
555            * Removes the layout set branch where groupId = &#63; and privateLayout = &#63; and name = &#63; from the database.
556            *
557            * @param groupId the group ID
558            * @param privateLayout the private layout
559            * @param name the name
560            * @throws SystemException if a system exception occurred
561            */
562            public void removeByG_P_N(long groupId, boolean privateLayout,
563                    java.lang.String name)
564                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
565                            com.liferay.portal.kernel.exception.SystemException;
566    
567            /**
568            * Removes all the layout set branchs from the database.
569            *
570            * @throws SystemException if a system exception occurred
571            */
572            public void removeAll()
573                    throws com.liferay.portal.kernel.exception.SystemException;
574    
575            /**
576            * Returns the number of layout set branchs where groupId = &#63;.
577            *
578            * @param groupId the group ID
579            * @return the number of matching layout set branchs
580            * @throws SystemException if a system exception occurred
581            */
582            public int countByGroupId(long groupId)
583                    throws com.liferay.portal.kernel.exception.SystemException;
584    
585            /**
586            * Returns the number of layout set branchs that the user has permission to view where groupId = &#63;.
587            *
588            * @param groupId the group ID
589            * @return the number of matching layout set branchs that the user has permission to view
590            * @throws SystemException if a system exception occurred
591            */
592            public int filterCountByGroupId(long groupId)
593                    throws com.liferay.portal.kernel.exception.SystemException;
594    
595            /**
596            * Returns the number of layout set branchs where groupId = &#63; and privateLayout = &#63;.
597            *
598            * @param groupId the group ID
599            * @param privateLayout the private layout
600            * @return the number of matching layout set branchs
601            * @throws SystemException if a system exception occurred
602            */
603            public int countByG_P(long groupId, boolean privateLayout)
604                    throws com.liferay.portal.kernel.exception.SystemException;
605    
606            /**
607            * Returns the number of layout set branchs that the user has permission to view where groupId = &#63; and privateLayout = &#63;.
608            *
609            * @param groupId the group ID
610            * @param privateLayout the private layout
611            * @return the number of matching layout set branchs that the user has permission to view
612            * @throws SystemException if a system exception occurred
613            */
614            public int filterCountByG_P(long groupId, boolean privateLayout)
615                    throws com.liferay.portal.kernel.exception.SystemException;
616    
617            /**
618            * Returns the number of layout set branchs where groupId = &#63; and privateLayout = &#63; and name = &#63;.
619            *
620            * @param groupId the group ID
621            * @param privateLayout the private layout
622            * @param name the name
623            * @return the number of matching layout set branchs
624            * @throws SystemException if a system exception occurred
625            */
626            public int countByG_P_N(long groupId, boolean privateLayout,
627                    java.lang.String name)
628                    throws com.liferay.portal.kernel.exception.SystemException;
629    
630            /**
631            * Returns the number of layout set branchs.
632            *
633            * @return the number of layout set branchs
634            * @throws SystemException if a system exception occurred
635            */
636            public int countAll()
637                    throws com.liferay.portal.kernel.exception.SystemException;
638    }