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