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