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