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