001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.kernel.exception.SystemException;
018    import com.liferay.portal.model.LayoutSetBranch;
019    
020    /**
021     * The persistence interface for the layout set branch service.
022     *
023     * <p>
024     * Caching information and settings can be found in <code>portal.properties</code>
025     * </p>
026     *
027     * @author Brian Wing Shun Chan
028     * @see LayoutSetBranchPersistenceImpl
029     * @see LayoutSetBranchUtil
030     * @generated
031     */
032    public interface LayoutSetBranchPersistence extends BasePersistence<LayoutSetBranch> {
033            /*
034             * NOTE FOR DEVELOPERS:
035             *
036             * 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.
037             */
038    
039            /**
040            * Caches the layout set branch in the entity cache if it is enabled.
041            *
042            * @param layoutSetBranch the layout set branch
043            */
044            public void cacheResult(
045                    com.liferay.portal.model.LayoutSetBranch layoutSetBranch);
046    
047            /**
048            * Caches the layout set branchs in the entity cache if it is enabled.
049            *
050            * @param layoutSetBranchs the layout set branchs
051            */
052            public void cacheResult(
053                    java.util.List<com.liferay.portal.model.LayoutSetBranch> layoutSetBranchs);
054    
055            /**
056            * Creates a new layout set branch with the primary key. Does not add the layout set branch to the database.
057            *
058            * @param layoutSetBranchId the primary key for the new layout set branch
059            * @return the new layout set branch
060            */
061            public com.liferay.portal.model.LayoutSetBranch create(
062                    long layoutSetBranchId);
063    
064            /**
065            * Removes the layout set branch with the primary key from the database. Also notifies the appropriate model listeners.
066            *
067            * @param layoutSetBranchId the primary key of the layout set branch
068            * @return the layout set branch that was removed
069            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
070            * @throws SystemException if a system exception occurred
071            */
072            public com.liferay.portal.model.LayoutSetBranch remove(
073                    long layoutSetBranchId)
074                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
075                            com.liferay.portal.kernel.exception.SystemException;
076    
077            public com.liferay.portal.model.LayoutSetBranch updateImpl(
078                    com.liferay.portal.model.LayoutSetBranch layoutSetBranch, boolean merge)
079                    throws com.liferay.portal.kernel.exception.SystemException;
080    
081            /**
082            * Returns the layout set branch with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutSetBranchException} if it could not be found.
083            *
084            * @param layoutSetBranchId the primary key of the layout set branch
085            * @return the layout set branch
086            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
087            * @throws SystemException if a system exception occurred
088            */
089            public com.liferay.portal.model.LayoutSetBranch findByPrimaryKey(
090                    long layoutSetBranchId)
091                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
092                            com.liferay.portal.kernel.exception.SystemException;
093    
094            /**
095            * Returns the layout set branch with the primary key or returns <code>null</code> if it could not be found.
096            *
097            * @param layoutSetBranchId the primary key of the layout set branch
098            * @return the layout set branch, or <code>null</code> if a layout set branch with the primary key could not be found
099            * @throws SystemException if a system exception occurred
100            */
101            public com.liferay.portal.model.LayoutSetBranch fetchByPrimaryKey(
102                    long layoutSetBranchId)
103                    throws com.liferay.portal.kernel.exception.SystemException;
104    
105            /**
106            * Returns all the layout set branchs where groupId = &#63;.
107            *
108            * @param groupId the group ID
109            * @return the matching layout set branchs
110            * @throws SystemException if a system exception occurred
111            */
112            public java.util.List<com.liferay.portal.model.LayoutSetBranch> findByGroupId(
113                    long groupId)
114                    throws com.liferay.portal.kernel.exception.SystemException;
115    
116            /**
117            * Returns a range of all the layout set branchs where groupId = &#63;.
118            *
119            * <p>
120            * 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.
121            * </p>
122            *
123            * @param groupId the group ID
124            * @param start the lower bound of the range of layout set branchs
125            * @param end the upper bound of the range of layout set branchs (not inclusive)
126            * @return the range of matching layout set branchs
127            * @throws SystemException if a system exception occurred
128            */
129            public java.util.List<com.liferay.portal.model.LayoutSetBranch> findByGroupId(
130                    long groupId, int start, int end)
131                    throws com.liferay.portal.kernel.exception.SystemException;
132    
133            /**
134            * Returns an ordered range of all the layout set branchs where groupId = &#63;.
135            *
136            * <p>
137            * 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.
138            * </p>
139            *
140            * @param groupId the group ID
141            * @param start the lower bound of the range of layout set branchs
142            * @param end the upper bound of the range of layout set branchs (not inclusive)
143            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
144            * @return the ordered range of matching layout set branchs
145            * @throws SystemException if a system exception occurred
146            */
147            public java.util.List<com.liferay.portal.model.LayoutSetBranch> findByGroupId(
148                    long groupId, int start, int end,
149                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150                    throws com.liferay.portal.kernel.exception.SystemException;
151    
152            /**
153            * Returns the first layout set branch in the ordered set where groupId = &#63;.
154            *
155            * <p>
156            * 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.
157            * </p>
158            *
159            * @param groupId the group ID
160            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
161            * @return the first matching layout set branch
162            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found
163            * @throws SystemException if a system exception occurred
164            */
165            public com.liferay.portal.model.LayoutSetBranch findByGroupId_First(
166                    long groupId,
167                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
169                            com.liferay.portal.kernel.exception.SystemException;
170    
171            /**
172            * Returns the last layout set branch in the ordered set where groupId = &#63;.
173            *
174            * <p>
175            * 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.
176            * </p>
177            *
178            * @param groupId the group ID
179            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
180            * @return the last matching layout set branch
181            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found
182            * @throws SystemException if a system exception occurred
183            */
184            public com.liferay.portal.model.LayoutSetBranch findByGroupId_Last(
185                    long groupId,
186                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
188                            com.liferay.portal.kernel.exception.SystemException;
189    
190            /**
191            * Returns the layout set branchs before and after the current layout set branch in the ordered set where groupId = &#63;.
192            *
193            * <p>
194            * 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.
195            * </p>
196            *
197            * @param layoutSetBranchId the primary key of the current layout set branch
198            * @param groupId the group ID
199            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
200            * @return the previous, current, and next layout set branch
201            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
202            * @throws SystemException if a system exception occurred
203            */
204            public com.liferay.portal.model.LayoutSetBranch[] findByGroupId_PrevAndNext(
205                    long layoutSetBranchId, long groupId,
206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
208                            com.liferay.portal.kernel.exception.SystemException;
209    
210            /**
211            * Returns all the layout set branchs that the user has permission to view where groupId = &#63;.
212            *
213            * @param groupId the group ID
214            * @return the matching layout set branchs that the user has permission to view
215            * @throws SystemException if a system exception occurred
216            */
217            public java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByGroupId(
218                    long groupId)
219                    throws com.liferay.portal.kernel.exception.SystemException;
220    
221            /**
222            * Returns a range of all the layout set branchs that the user has permission to view where groupId = &#63;.
223            *
224            * <p>
225            * 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.
226            * </p>
227            *
228            * @param groupId the group ID
229            * @param start the lower bound of the range of layout set branchs
230            * @param end the upper bound of the range of layout set branchs (not inclusive)
231            * @return the range of matching layout set branchs that the user has permission to view
232            * @throws SystemException if a system exception occurred
233            */
234            public java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByGroupId(
235                    long groupId, int start, int end)
236                    throws com.liferay.portal.kernel.exception.SystemException;
237    
238            /**
239            * Returns an ordered range of all the layout set branchs that the user has permissions to view where groupId = &#63;.
240            *
241            * <p>
242            * 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.
243            * </p>
244            *
245            * @param groupId the group ID
246            * @param start the lower bound of the range of layout set branchs
247            * @param end the upper bound of the range of layout set branchs (not inclusive)
248            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
249            * @return the ordered range of matching layout set branchs that the user has permission to view
250            * @throws SystemException if a system exception occurred
251            */
252            public java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByGroupId(
253                    long groupId, int start, int end,
254                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
255                    throws com.liferay.portal.kernel.exception.SystemException;
256    
257            /**
258            * 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;.
259            *
260            * @param layoutSetBranchId the primary key of the current layout set branch
261            * @param groupId the group ID
262            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
263            * @return the previous, current, and next layout set branch
264            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
265            * @throws SystemException if a system exception occurred
266            */
267            public com.liferay.portal.model.LayoutSetBranch[] filterFindByGroupId_PrevAndNext(
268                    long layoutSetBranchId, long groupId,
269                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
270                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
271                            com.liferay.portal.kernel.exception.SystemException;
272    
273            /**
274            * Returns all the layout set branchs where groupId = &#63; and privateLayout = &#63;.
275            *
276            * @param groupId the group ID
277            * @param privateLayout the private layout
278            * @return the matching layout set branchs
279            * @throws SystemException if a system exception occurred
280            */
281            public java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P(
282                    long groupId, boolean privateLayout)
283                    throws com.liferay.portal.kernel.exception.SystemException;
284    
285            /**
286            * Returns a range of all the layout set branchs where groupId = &#63; and privateLayout = &#63;.
287            *
288            * <p>
289            * 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.
290            * </p>
291            *
292            * @param groupId the group ID
293            * @param privateLayout the private layout
294            * @param start the lower bound of the range of layout set branchs
295            * @param end the upper bound of the range of layout set branchs (not inclusive)
296            * @return the range of matching layout set branchs
297            * @throws SystemException if a system exception occurred
298            */
299            public java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P(
300                    long groupId, boolean privateLayout, int start, int end)
301                    throws com.liferay.portal.kernel.exception.SystemException;
302    
303            /**
304            * Returns an ordered range of all the layout set branchs where groupId = &#63; and privateLayout = &#63;.
305            *
306            * <p>
307            * 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.
308            * </p>
309            *
310            * @param groupId the group ID
311            * @param privateLayout the private layout
312            * @param start the lower bound of the range of layout set branchs
313            * @param end the upper bound of the range of layout set branchs (not inclusive)
314            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
315            * @return the ordered range of matching layout set branchs
316            * @throws SystemException if a system exception occurred
317            */
318            public java.util.List<com.liferay.portal.model.LayoutSetBranch> findByG_P(
319                    long groupId, boolean privateLayout, int start, int end,
320                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
321                    throws com.liferay.portal.kernel.exception.SystemException;
322    
323            /**
324            * Returns the first layout set branch in the ordered set where groupId = &#63; and privateLayout = &#63;.
325            *
326            * <p>
327            * 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.
328            * </p>
329            *
330            * @param groupId the group ID
331            * @param privateLayout the private layout
332            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
333            * @return the first matching layout set branch
334            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found
335            * @throws SystemException if a system exception occurred
336            */
337            public com.liferay.portal.model.LayoutSetBranch findByG_P_First(
338                    long groupId, boolean privateLayout,
339                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
340                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
341                            com.liferay.portal.kernel.exception.SystemException;
342    
343            /**
344            * Returns the last layout set branch in the ordered set where groupId = &#63; and privateLayout = &#63;.
345            *
346            * <p>
347            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
348            * </p>
349            *
350            * @param groupId the group ID
351            * @param privateLayout the private layout
352            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
353            * @return the last matching layout set branch
354            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found
355            * @throws SystemException if a system exception occurred
356            */
357            public com.liferay.portal.model.LayoutSetBranch findByG_P_Last(
358                    long groupId, boolean privateLayout,
359                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
360                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
361                            com.liferay.portal.kernel.exception.SystemException;
362    
363            /**
364            * Returns the layout set branchs before and after the current layout set branch in the ordered set where groupId = &#63; and privateLayout = &#63;.
365            *
366            * <p>
367            * 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.
368            * </p>
369            *
370            * @param layoutSetBranchId the primary key of the current layout set branch
371            * @param groupId the group ID
372            * @param privateLayout the private layout
373            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
374            * @return the previous, current, and next layout set branch
375            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
376            * @throws SystemException if a system exception occurred
377            */
378            public com.liferay.portal.model.LayoutSetBranch[] findByG_P_PrevAndNext(
379                    long layoutSetBranchId, long groupId, boolean privateLayout,
380                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
381                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
382                            com.liferay.portal.kernel.exception.SystemException;
383    
384            /**
385            * Returns all the layout set branchs that the user has permission to view where groupId = &#63; and privateLayout = &#63;.
386            *
387            * @param groupId the group ID
388            * @param privateLayout the private layout
389            * @return the matching layout set branchs that the user has permission to view
390            * @throws SystemException if a system exception occurred
391            */
392            public java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P(
393                    long groupId, boolean privateLayout)
394                    throws com.liferay.portal.kernel.exception.SystemException;
395    
396            /**
397            * Returns a range of all the layout set branchs that the user has permission to view where groupId = &#63; and privateLayout = &#63;.
398            *
399            * <p>
400            * 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.
401            * </p>
402            *
403            * @param groupId the group ID
404            * @param privateLayout the private layout
405            * @param start the lower bound of the range of layout set branchs
406            * @param end the upper bound of the range of layout set branchs (not inclusive)
407            * @return the range of matching layout set branchs that the user has permission to view
408            * @throws SystemException if a system exception occurred
409            */
410            public java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P(
411                    long groupId, boolean privateLayout, int start, int end)
412                    throws com.liferay.portal.kernel.exception.SystemException;
413    
414            /**
415            * Returns an ordered range of all the layout set branchs that the user has permissions to view where groupId = &#63; and privateLayout = &#63;.
416            *
417            * <p>
418            * 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.
419            * </p>
420            *
421            * @param groupId the group ID
422            * @param privateLayout the private layout
423            * @param start the lower bound of the range of layout set branchs
424            * @param end the upper bound of the range of layout set branchs (not inclusive)
425            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
426            * @return the ordered range of matching layout set branchs that the user has permission to view
427            * @throws SystemException if a system exception occurred
428            */
429            public java.util.List<com.liferay.portal.model.LayoutSetBranch> filterFindByG_P(
430                    long groupId, boolean privateLayout, int start, int end,
431                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
432                    throws com.liferay.portal.kernel.exception.SystemException;
433    
434            /**
435            * 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;.
436            *
437            * @param layoutSetBranchId the primary key of the current layout set branch
438            * @param groupId the group ID
439            * @param privateLayout the private layout
440            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
441            * @return the previous, current, and next layout set branch
442            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a layout set branch with the primary key could not be found
443            * @throws SystemException if a system exception occurred
444            */
445            public com.liferay.portal.model.LayoutSetBranch[] filterFindByG_P_PrevAndNext(
446                    long layoutSetBranchId, long groupId, boolean privateLayout,
447                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
448                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
449                            com.liferay.portal.kernel.exception.SystemException;
450    
451            /**
452            * 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.
453            *
454            * @param groupId the group ID
455            * @param privateLayout the private layout
456            * @param name the name
457            * @return the matching layout set branch
458            * @throws com.liferay.portal.NoSuchLayoutSetBranchException if a matching layout set branch could not be found
459            * @throws SystemException if a system exception occurred
460            */
461            public com.liferay.portal.model.LayoutSetBranch findByG_P_N(long groupId,
462                    boolean privateLayout, java.lang.String name)
463                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
464                            com.liferay.portal.kernel.exception.SystemException;
465    
466            /**
467            * 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.
468            *
469            * @param groupId the group ID
470            * @param privateLayout the private layout
471            * @param name the name
472            * @return the matching layout set branch, or <code>null</code> if a matching layout set branch could not be found
473            * @throws SystemException if a system exception occurred
474            */
475            public com.liferay.portal.model.LayoutSetBranch fetchByG_P_N(long groupId,
476                    boolean privateLayout, java.lang.String name)
477                    throws com.liferay.portal.kernel.exception.SystemException;
478    
479            /**
480            * 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.
481            *
482            * @param groupId the group ID
483            * @param privateLayout the private layout
484            * @param name the name
485            * @param retrieveFromCache whether to use the finder cache
486            * @return the matching layout set branch, or <code>null</code> if a matching layout set branch could not be found
487            * @throws SystemException if a system exception occurred
488            */
489            public com.liferay.portal.model.LayoutSetBranch fetchByG_P_N(long groupId,
490                    boolean privateLayout, java.lang.String name, boolean retrieveFromCache)
491                    throws com.liferay.portal.kernel.exception.SystemException;
492    
493            /**
494            * Returns all the layout set branchs.
495            *
496            * @return the layout set branchs
497            * @throws SystemException if a system exception occurred
498            */
499            public java.util.List<com.liferay.portal.model.LayoutSetBranch> findAll()
500                    throws com.liferay.portal.kernel.exception.SystemException;
501    
502            /**
503            * Returns a range of all the layout set branchs.
504            *
505            * <p>
506            * 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.
507            * </p>
508            *
509            * @param start the lower bound of the range of layout set branchs
510            * @param end the upper bound of the range of layout set branchs (not inclusive)
511            * @return the range of layout set branchs
512            * @throws SystemException if a system exception occurred
513            */
514            public java.util.List<com.liferay.portal.model.LayoutSetBranch> findAll(
515                    int start, int end)
516                    throws com.liferay.portal.kernel.exception.SystemException;
517    
518            /**
519            * Returns an ordered range of all the layout set branchs.
520            *
521            * <p>
522            * 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.
523            * </p>
524            *
525            * @param start the lower bound of the range of layout set branchs
526            * @param end the upper bound of the range of layout set branchs (not inclusive)
527            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
528            * @return the ordered range of layout set branchs
529            * @throws SystemException if a system exception occurred
530            */
531            public java.util.List<com.liferay.portal.model.LayoutSetBranch> findAll(
532                    int start, int end,
533                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
534                    throws com.liferay.portal.kernel.exception.SystemException;
535    
536            /**
537            * Removes all the layout set branchs where groupId = &#63; from the database.
538            *
539            * @param groupId the group ID
540            * @throws SystemException if a system exception occurred
541            */
542            public void removeByGroupId(long groupId)
543                    throws com.liferay.portal.kernel.exception.SystemException;
544    
545            /**
546            * Removes all the layout set branchs where groupId = &#63; and privateLayout = &#63; from the database.
547            *
548            * @param groupId the group ID
549            * @param privateLayout the private layout
550            * @throws SystemException if a system exception occurred
551            */
552            public void removeByG_P(long groupId, boolean privateLayout)
553                    throws com.liferay.portal.kernel.exception.SystemException;
554    
555            /**
556            * Removes the layout set branch where groupId = &#63; and privateLayout = &#63; and name = &#63; from the database.
557            *
558            * @param groupId the group ID
559            * @param privateLayout the private layout
560            * @param name the name
561            * @throws SystemException if a system exception occurred
562            */
563            public void removeByG_P_N(long groupId, boolean privateLayout,
564                    java.lang.String name)
565                    throws com.liferay.portal.NoSuchLayoutSetBranchException,
566                            com.liferay.portal.kernel.exception.SystemException;
567    
568            /**
569            * Removes all the layout set branchs from the database.
570            *
571            * @throws SystemException if a system exception occurred
572            */
573            public void removeAll()
574                    throws com.liferay.portal.kernel.exception.SystemException;
575    
576            /**
577            * Returns the number of layout set branchs where groupId = &#63;.
578            *
579            * @param groupId the group ID
580            * @return the number of matching layout set branchs
581            * @throws SystemException if a system exception occurred
582            */
583            public int countByGroupId(long groupId)
584                    throws com.liferay.portal.kernel.exception.SystemException;
585    
586            /**
587            * Returns the number of layout set branchs that the user has permission to view where groupId = &#63;.
588            *
589            * @param groupId the group ID
590            * @return the number of matching layout set branchs that the user has permission to view
591            * @throws SystemException if a system exception occurred
592            */
593            public int filterCountByGroupId(long groupId)
594                    throws com.liferay.portal.kernel.exception.SystemException;
595    
596            /**
597            * Returns the number of layout set branchs where groupId = &#63; and privateLayout = &#63;.
598            *
599            * @param groupId the group ID
600            * @param privateLayout the private layout
601            * @return the number of matching layout set branchs
602            * @throws SystemException if a system exception occurred
603            */
604            public int countByG_P(long groupId, boolean privateLayout)
605                    throws com.liferay.portal.kernel.exception.SystemException;
606    
607            /**
608            * Returns the number of layout set branchs that the user has permission to view where groupId = &#63; and privateLayout = &#63;.
609            *
610            * @param groupId the group ID
611            * @param privateLayout the private layout
612            * @return the number of matching layout set branchs that the user has permission to view
613            * @throws SystemException if a system exception occurred
614            */
615            public int filterCountByG_P(long groupId, boolean privateLayout)
616                    throws com.liferay.portal.kernel.exception.SystemException;
617    
618            /**
619            * Returns the number of layout set branchs where groupId = &#63; and privateLayout = &#63; and name = &#63;.
620            *
621            * @param groupId the group ID
622            * @param privateLayout the private layout
623            * @param name the name
624            * @return the number of matching layout set branchs
625            * @throws SystemException if a system exception occurred
626            */
627            public int countByG_P_N(long groupId, boolean privateLayout,
628                    java.lang.String name)
629                    throws com.liferay.portal.kernel.exception.SystemException;
630    
631            /**
632            * Returns the number of layout set branchs.
633            *
634            * @return the number of layout set branchs
635            * @throws SystemException if a system exception occurred
636            */
637            public int countAll()
638                    throws com.liferay.portal.kernel.exception.SystemException;
639    
640            public LayoutSetBranch remove(LayoutSetBranch layoutSetBranch)
641                    throws SystemException;
642    }