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.kernel.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.exception.NoSuchRecentLayoutBranchException;
020    import com.liferay.portal.kernel.model.RecentLayoutBranch;
021    
022    /**
023     * The persistence interface for the recent layout branch service.
024     *
025     * <p>
026     * Caching information and settings can be found in <code>portal.properties</code>
027     * </p>
028     *
029     * @author Brian Wing Shun Chan
030     * @see com.liferay.portal.service.persistence.impl.RecentLayoutBranchPersistenceImpl
031     * @see RecentLayoutBranchUtil
032     * @generated
033     */
034    @ProviderType
035    public interface RecentLayoutBranchPersistence extends BasePersistence<RecentLayoutBranch> {
036            /*
037             * NOTE FOR DEVELOPERS:
038             *
039             * Never modify or reference this interface directly. Always use {@link RecentLayoutBranchUtil} to access the recent layout branch persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
040             */
041    
042            /**
043            * Returns all the recent layout branchs where groupId = &#63;.
044            *
045            * @param groupId the group ID
046            * @return the matching recent layout branchs
047            */
048            public java.util.List<RecentLayoutBranch> findByGroupId(long groupId);
049    
050            /**
051            * Returns a range of all the recent layout 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 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 RecentLayoutBranchModelImpl}. 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 recent layout branchs
059            * @param end the upper bound of the range of recent layout branchs (not inclusive)
060            * @return the range of matching recent layout branchs
061            */
062            public java.util.List<RecentLayoutBranch> findByGroupId(long groupId,
063                    int start, int end);
064    
065            /**
066            * Returns an ordered range of all the recent layout 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 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 RecentLayoutBranchModelImpl}. 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 recent layout branchs
074            * @param end the upper bound of the range of recent layout branchs (not inclusive)
075            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
076            * @return the ordered range of matching recent layout branchs
077            */
078            public java.util.List<RecentLayoutBranch> findByGroupId(long groupId,
079                    int start, int end,
080                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutBranch> orderByComparator);
081    
082            /**
083            * Returns an ordered range of all the recent layout branchs where groupId = &#63;.
084            *
085            * <p>
086            * 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 RecentLayoutBranchModelImpl}. 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.
087            * </p>
088            *
089            * @param groupId the group ID
090            * @param start the lower bound of the range of recent layout branchs
091            * @param end the upper bound of the range of recent layout branchs (not inclusive)
092            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
093            * @param retrieveFromCache whether to retrieve from the finder cache
094            * @return the ordered range of matching recent layout branchs
095            */
096            public java.util.List<RecentLayoutBranch> findByGroupId(long groupId,
097                    int start, int end,
098                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutBranch> orderByComparator,
099                    boolean retrieveFromCache);
100    
101            /**
102            * Returns the first recent layout branch in the ordered set where groupId = &#63;.
103            *
104            * @param groupId the group ID
105            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
106            * @return the first matching recent layout branch
107            * @throws NoSuchRecentLayoutBranchException if a matching recent layout branch could not be found
108            */
109            public RecentLayoutBranch findByGroupId_First(long groupId,
110                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutBranch> orderByComparator)
111                    throws NoSuchRecentLayoutBranchException;
112    
113            /**
114            * Returns the first recent layout branch in the ordered set where groupId = &#63;.
115            *
116            * @param groupId the group ID
117            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
118            * @return the first matching recent layout branch, or <code>null</code> if a matching recent layout branch could not be found
119            */
120            public RecentLayoutBranch fetchByGroupId_First(long groupId,
121                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutBranch> orderByComparator);
122    
123            /**
124            * Returns the last recent layout branch in the ordered set where groupId = &#63;.
125            *
126            * @param groupId the group ID
127            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
128            * @return the last matching recent layout branch
129            * @throws NoSuchRecentLayoutBranchException if a matching recent layout branch could not be found
130            */
131            public RecentLayoutBranch findByGroupId_Last(long groupId,
132                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutBranch> orderByComparator)
133                    throws NoSuchRecentLayoutBranchException;
134    
135            /**
136            * Returns the last recent layout branch in the ordered set where groupId = &#63;.
137            *
138            * @param groupId the group ID
139            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
140            * @return the last matching recent layout branch, or <code>null</code> if a matching recent layout branch could not be found
141            */
142            public RecentLayoutBranch fetchByGroupId_Last(long groupId,
143                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutBranch> orderByComparator);
144    
145            /**
146            * Returns the recent layout branchs before and after the current recent layout branch in the ordered set where groupId = &#63;.
147            *
148            * @param recentLayoutBranchId the primary key of the current recent layout branch
149            * @param groupId the group ID
150            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
151            * @return the previous, current, and next recent layout branch
152            * @throws NoSuchRecentLayoutBranchException if a recent layout branch with the primary key could not be found
153            */
154            public RecentLayoutBranch[] findByGroupId_PrevAndNext(
155                    long recentLayoutBranchId, long groupId,
156                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutBranch> orderByComparator)
157                    throws NoSuchRecentLayoutBranchException;
158    
159            /**
160            * Removes all the recent layout branchs where groupId = &#63; from the database.
161            *
162            * @param groupId the group ID
163            */
164            public void removeByGroupId(long groupId);
165    
166            /**
167            * Returns the number of recent layout branchs where groupId = &#63;.
168            *
169            * @param groupId the group ID
170            * @return the number of matching recent layout branchs
171            */
172            public int countByGroupId(long groupId);
173    
174            /**
175            * Returns all the recent layout branchs where userId = &#63;.
176            *
177            * @param userId the user ID
178            * @return the matching recent layout branchs
179            */
180            public java.util.List<RecentLayoutBranch> findByUserId(long userId);
181    
182            /**
183            * Returns a range of all the recent layout branchs where userId = &#63;.
184            *
185            * <p>
186            * 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 RecentLayoutBranchModelImpl}. 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.
187            * </p>
188            *
189            * @param userId the user ID
190            * @param start the lower bound of the range of recent layout branchs
191            * @param end the upper bound of the range of recent layout branchs (not inclusive)
192            * @return the range of matching recent layout branchs
193            */
194            public java.util.List<RecentLayoutBranch> findByUserId(long userId,
195                    int start, int end);
196    
197            /**
198            * Returns an ordered range of all the recent layout branchs where userId = &#63;.
199            *
200            * <p>
201            * 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 RecentLayoutBranchModelImpl}. 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.
202            * </p>
203            *
204            * @param userId the user ID
205            * @param start the lower bound of the range of recent layout branchs
206            * @param end the upper bound of the range of recent layout branchs (not inclusive)
207            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
208            * @return the ordered range of matching recent layout branchs
209            */
210            public java.util.List<RecentLayoutBranch> findByUserId(long userId,
211                    int start, int end,
212                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutBranch> orderByComparator);
213    
214            /**
215            * Returns an ordered range of all the recent layout branchs where userId = &#63;.
216            *
217            * <p>
218            * 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 RecentLayoutBranchModelImpl}. 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.
219            * </p>
220            *
221            * @param userId the user ID
222            * @param start the lower bound of the range of recent layout branchs
223            * @param end the upper bound of the range of recent layout branchs (not inclusive)
224            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
225            * @param retrieveFromCache whether to retrieve from the finder cache
226            * @return the ordered range of matching recent layout branchs
227            */
228            public java.util.List<RecentLayoutBranch> findByUserId(long userId,
229                    int start, int end,
230                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutBranch> orderByComparator,
231                    boolean retrieveFromCache);
232    
233            /**
234            * Returns the first recent layout branch in the ordered set where userId = &#63;.
235            *
236            * @param userId the user ID
237            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
238            * @return the first matching recent layout branch
239            * @throws NoSuchRecentLayoutBranchException if a matching recent layout branch could not be found
240            */
241            public RecentLayoutBranch findByUserId_First(long userId,
242                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutBranch> orderByComparator)
243                    throws NoSuchRecentLayoutBranchException;
244    
245            /**
246            * Returns the first recent layout branch in the ordered set where userId = &#63;.
247            *
248            * @param userId the user ID
249            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
250            * @return the first matching recent layout branch, or <code>null</code> if a matching recent layout branch could not be found
251            */
252            public RecentLayoutBranch fetchByUserId_First(long userId,
253                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutBranch> orderByComparator);
254    
255            /**
256            * Returns the last recent layout branch in the ordered set where userId = &#63;.
257            *
258            * @param userId the user ID
259            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
260            * @return the last matching recent layout branch
261            * @throws NoSuchRecentLayoutBranchException if a matching recent layout branch could not be found
262            */
263            public RecentLayoutBranch findByUserId_Last(long userId,
264                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutBranch> orderByComparator)
265                    throws NoSuchRecentLayoutBranchException;
266    
267            /**
268            * Returns the last recent layout branch in the ordered set where userId = &#63;.
269            *
270            * @param userId the user ID
271            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
272            * @return the last matching recent layout branch, or <code>null</code> if a matching recent layout branch could not be found
273            */
274            public RecentLayoutBranch fetchByUserId_Last(long userId,
275                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutBranch> orderByComparator);
276    
277            /**
278            * Returns the recent layout branchs before and after the current recent layout branch in the ordered set where userId = &#63;.
279            *
280            * @param recentLayoutBranchId the primary key of the current recent layout branch
281            * @param userId the user ID
282            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
283            * @return the previous, current, and next recent layout branch
284            * @throws NoSuchRecentLayoutBranchException if a recent layout branch with the primary key could not be found
285            */
286            public RecentLayoutBranch[] findByUserId_PrevAndNext(
287                    long recentLayoutBranchId, long userId,
288                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutBranch> orderByComparator)
289                    throws NoSuchRecentLayoutBranchException;
290    
291            /**
292            * Removes all the recent layout branchs where userId = &#63; from the database.
293            *
294            * @param userId the user ID
295            */
296            public void removeByUserId(long userId);
297    
298            /**
299            * Returns the number of recent layout branchs where userId = &#63;.
300            *
301            * @param userId the user ID
302            * @return the number of matching recent layout branchs
303            */
304            public int countByUserId(long userId);
305    
306            /**
307            * Returns all the recent layout branchs where layoutBranchId = &#63;.
308            *
309            * @param layoutBranchId the layout branch ID
310            * @return the matching recent layout branchs
311            */
312            public java.util.List<RecentLayoutBranch> findByLayoutBranchId(
313                    long layoutBranchId);
314    
315            /**
316            * Returns a range of all the recent layout branchs where layoutBranchId = &#63;.
317            *
318            * <p>
319            * 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 RecentLayoutBranchModelImpl}. 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.
320            * </p>
321            *
322            * @param layoutBranchId the layout branch ID
323            * @param start the lower bound of the range of recent layout branchs
324            * @param end the upper bound of the range of recent layout branchs (not inclusive)
325            * @return the range of matching recent layout branchs
326            */
327            public java.util.List<RecentLayoutBranch> findByLayoutBranchId(
328                    long layoutBranchId, int start, int end);
329    
330            /**
331            * Returns an ordered range of all the recent layout branchs where layoutBranchId = &#63;.
332            *
333            * <p>
334            * 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 RecentLayoutBranchModelImpl}. 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.
335            * </p>
336            *
337            * @param layoutBranchId the layout branch ID
338            * @param start the lower bound of the range of recent layout branchs
339            * @param end the upper bound of the range of recent layout branchs (not inclusive)
340            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
341            * @return the ordered range of matching recent layout branchs
342            */
343            public java.util.List<RecentLayoutBranch> findByLayoutBranchId(
344                    long layoutBranchId, int start, int end,
345                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutBranch> orderByComparator);
346    
347            /**
348            * Returns an ordered range of all the recent layout branchs where layoutBranchId = &#63;.
349            *
350            * <p>
351            * 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 RecentLayoutBranchModelImpl}. 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.
352            * </p>
353            *
354            * @param layoutBranchId the layout branch ID
355            * @param start the lower bound of the range of recent layout branchs
356            * @param end the upper bound of the range of recent layout branchs (not inclusive)
357            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
358            * @param retrieveFromCache whether to retrieve from the finder cache
359            * @return the ordered range of matching recent layout branchs
360            */
361            public java.util.List<RecentLayoutBranch> findByLayoutBranchId(
362                    long layoutBranchId, int start, int end,
363                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutBranch> orderByComparator,
364                    boolean retrieveFromCache);
365    
366            /**
367            * Returns the first recent layout branch in the ordered set where layoutBranchId = &#63;.
368            *
369            * @param layoutBranchId the layout branch ID
370            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
371            * @return the first matching recent layout branch
372            * @throws NoSuchRecentLayoutBranchException if a matching recent layout branch could not be found
373            */
374            public RecentLayoutBranch findByLayoutBranchId_First(long layoutBranchId,
375                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutBranch> orderByComparator)
376                    throws NoSuchRecentLayoutBranchException;
377    
378            /**
379            * Returns the first recent layout branch in the ordered set where layoutBranchId = &#63;.
380            *
381            * @param layoutBranchId the layout branch ID
382            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
383            * @return the first matching recent layout branch, or <code>null</code> if a matching recent layout branch could not be found
384            */
385            public RecentLayoutBranch fetchByLayoutBranchId_First(long layoutBranchId,
386                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutBranch> orderByComparator);
387    
388            /**
389            * Returns the last recent layout branch in the ordered set where layoutBranchId = &#63;.
390            *
391            * @param layoutBranchId the layout branch ID
392            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
393            * @return the last matching recent layout branch
394            * @throws NoSuchRecentLayoutBranchException if a matching recent layout branch could not be found
395            */
396            public RecentLayoutBranch findByLayoutBranchId_Last(long layoutBranchId,
397                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutBranch> orderByComparator)
398                    throws NoSuchRecentLayoutBranchException;
399    
400            /**
401            * Returns the last recent layout branch in the ordered set where layoutBranchId = &#63;.
402            *
403            * @param layoutBranchId the layout branch ID
404            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
405            * @return the last matching recent layout branch, or <code>null</code> if a matching recent layout branch could not be found
406            */
407            public RecentLayoutBranch fetchByLayoutBranchId_Last(long layoutBranchId,
408                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutBranch> orderByComparator);
409    
410            /**
411            * Returns the recent layout branchs before and after the current recent layout branch in the ordered set where layoutBranchId = &#63;.
412            *
413            * @param recentLayoutBranchId the primary key of the current recent layout branch
414            * @param layoutBranchId the layout branch ID
415            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
416            * @return the previous, current, and next recent layout branch
417            * @throws NoSuchRecentLayoutBranchException if a recent layout branch with the primary key could not be found
418            */
419            public RecentLayoutBranch[] findByLayoutBranchId_PrevAndNext(
420                    long recentLayoutBranchId, long layoutBranchId,
421                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutBranch> orderByComparator)
422                    throws NoSuchRecentLayoutBranchException;
423    
424            /**
425            * Removes all the recent layout branchs where layoutBranchId = &#63; from the database.
426            *
427            * @param layoutBranchId the layout branch ID
428            */
429            public void removeByLayoutBranchId(long layoutBranchId);
430    
431            /**
432            * Returns the number of recent layout branchs where layoutBranchId = &#63;.
433            *
434            * @param layoutBranchId the layout branch ID
435            * @return the number of matching recent layout branchs
436            */
437            public int countByLayoutBranchId(long layoutBranchId);
438    
439            /**
440            * Returns the recent layout branch where userId = &#63; and layoutSetBranchId = &#63; and plid = &#63; or throws a {@link NoSuchRecentLayoutBranchException} if it could not be found.
441            *
442            * @param userId the user ID
443            * @param layoutSetBranchId the layout set branch ID
444            * @param plid the plid
445            * @return the matching recent layout branch
446            * @throws NoSuchRecentLayoutBranchException if a matching recent layout branch could not be found
447            */
448            public RecentLayoutBranch findByU_L_P(long userId, long layoutSetBranchId,
449                    long plid) throws NoSuchRecentLayoutBranchException;
450    
451            /**
452            * Returns the recent layout branch where userId = &#63; and layoutSetBranchId = &#63; and plid = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
453            *
454            * @param userId the user ID
455            * @param layoutSetBranchId the layout set branch ID
456            * @param plid the plid
457            * @return the matching recent layout branch, or <code>null</code> if a matching recent layout branch could not be found
458            */
459            public RecentLayoutBranch fetchByU_L_P(long userId, long layoutSetBranchId,
460                    long plid);
461    
462            /**
463            * Returns the recent layout branch where userId = &#63; and layoutSetBranchId = &#63; and plid = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
464            *
465            * @param userId the user ID
466            * @param layoutSetBranchId the layout set branch ID
467            * @param plid the plid
468            * @param retrieveFromCache whether to retrieve from the finder cache
469            * @return the matching recent layout branch, or <code>null</code> if a matching recent layout branch could not be found
470            */
471            public RecentLayoutBranch fetchByU_L_P(long userId, long layoutSetBranchId,
472                    long plid, boolean retrieveFromCache);
473    
474            /**
475            * Removes the recent layout branch where userId = &#63; and layoutSetBranchId = &#63; and plid = &#63; from the database.
476            *
477            * @param userId the user ID
478            * @param layoutSetBranchId the layout set branch ID
479            * @param plid the plid
480            * @return the recent layout branch that was removed
481            */
482            public RecentLayoutBranch removeByU_L_P(long userId,
483                    long layoutSetBranchId, long plid)
484                    throws NoSuchRecentLayoutBranchException;
485    
486            /**
487            * Returns the number of recent layout branchs where userId = &#63; and layoutSetBranchId = &#63; and plid = &#63;.
488            *
489            * @param userId the user ID
490            * @param layoutSetBranchId the layout set branch ID
491            * @param plid the plid
492            * @return the number of matching recent layout branchs
493            */
494            public int countByU_L_P(long userId, long layoutSetBranchId, long plid);
495    
496            /**
497            * Caches the recent layout branch in the entity cache if it is enabled.
498            *
499            * @param recentLayoutBranch the recent layout branch
500            */
501            public void cacheResult(RecentLayoutBranch recentLayoutBranch);
502    
503            /**
504            * Caches the recent layout branchs in the entity cache if it is enabled.
505            *
506            * @param recentLayoutBranchs the recent layout branchs
507            */
508            public void cacheResult(
509                    java.util.List<RecentLayoutBranch> recentLayoutBranchs);
510    
511            /**
512            * Creates a new recent layout branch with the primary key. Does not add the recent layout branch to the database.
513            *
514            * @param recentLayoutBranchId the primary key for the new recent layout branch
515            * @return the new recent layout branch
516            */
517            public RecentLayoutBranch create(long recentLayoutBranchId);
518    
519            /**
520            * Removes the recent layout branch with the primary key from the database. Also notifies the appropriate model listeners.
521            *
522            * @param recentLayoutBranchId the primary key of the recent layout branch
523            * @return the recent layout branch that was removed
524            * @throws NoSuchRecentLayoutBranchException if a recent layout branch with the primary key could not be found
525            */
526            public RecentLayoutBranch remove(long recentLayoutBranchId)
527                    throws NoSuchRecentLayoutBranchException;
528    
529            public RecentLayoutBranch updateImpl(RecentLayoutBranch recentLayoutBranch);
530    
531            /**
532            * Returns the recent layout branch with the primary key or throws a {@link NoSuchRecentLayoutBranchException} if it could not be found.
533            *
534            * @param recentLayoutBranchId the primary key of the recent layout branch
535            * @return the recent layout branch
536            * @throws NoSuchRecentLayoutBranchException if a recent layout branch with the primary key could not be found
537            */
538            public RecentLayoutBranch findByPrimaryKey(long recentLayoutBranchId)
539                    throws NoSuchRecentLayoutBranchException;
540    
541            /**
542            * Returns the recent layout branch with the primary key or returns <code>null</code> if it could not be found.
543            *
544            * @param recentLayoutBranchId the primary key of the recent layout branch
545            * @return the recent layout branch, or <code>null</code> if a recent layout branch with the primary key could not be found
546            */
547            public RecentLayoutBranch fetchByPrimaryKey(long recentLayoutBranchId);
548    
549            @Override
550            public java.util.Map<java.io.Serializable, RecentLayoutBranch> fetchByPrimaryKeys(
551                    java.util.Set<java.io.Serializable> primaryKeys);
552    
553            /**
554            * Returns all the recent layout branchs.
555            *
556            * @return the recent layout branchs
557            */
558            public java.util.List<RecentLayoutBranch> findAll();
559    
560            /**
561            * Returns a range of all the recent layout branchs.
562            *
563            * <p>
564            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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 RecentLayoutBranchModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
565            * </p>
566            *
567            * @param start the lower bound of the range of recent layout branchs
568            * @param end the upper bound of the range of recent layout branchs (not inclusive)
569            * @return the range of recent layout branchs
570            */
571            public java.util.List<RecentLayoutBranch> findAll(int start, int end);
572    
573            /**
574            * Returns an ordered range of all the recent layout branchs.
575            *
576            * <p>
577            * 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 RecentLayoutBranchModelImpl}. 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.
578            * </p>
579            *
580            * @param start the lower bound of the range of recent layout branchs
581            * @param end the upper bound of the range of recent layout branchs (not inclusive)
582            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
583            * @return the ordered range of recent layout branchs
584            */
585            public java.util.List<RecentLayoutBranch> findAll(int start, int end,
586                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutBranch> orderByComparator);
587    
588            /**
589            * Returns an ordered range of all the recent layout branchs.
590            *
591            * <p>
592            * 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 RecentLayoutBranchModelImpl}. 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.
593            * </p>
594            *
595            * @param start the lower bound of the range of recent layout branchs
596            * @param end the upper bound of the range of recent layout branchs (not inclusive)
597            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
598            * @param retrieveFromCache whether to retrieve from the finder cache
599            * @return the ordered range of recent layout branchs
600            */
601            public java.util.List<RecentLayoutBranch> findAll(int start, int end,
602                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutBranch> orderByComparator,
603                    boolean retrieveFromCache);
604    
605            /**
606            * Removes all the recent layout branchs from the database.
607            */
608            public void removeAll();
609    
610            /**
611            * Returns the number of recent layout branchs.
612            *
613            * @return the number of recent layout branchs
614            */
615            public int countAll();
616    }