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.RecentLayoutRevision;
020    
021    /**
022     * The persistence interface for the recent layout revision 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.RecentLayoutRevisionPersistenceImpl
030     * @see RecentLayoutRevisionUtil
031     * @generated
032     */
033    @ProviderType
034    public interface RecentLayoutRevisionPersistence extends BasePersistence<RecentLayoutRevision> {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify or reference this interface directly. Always use {@link RecentLayoutRevisionUtil} to access the recent layout revision persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
039             */
040    
041            /**
042            * Returns all the recent layout revisions where groupId = &#63;.
043            *
044            * @param groupId the group ID
045            * @return the matching recent layout revisions
046            */
047            public java.util.List<RecentLayoutRevision> findByGroupId(long groupId);
048    
049            /**
050            * Returns a range of all the recent layout revisions 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 RecentLayoutRevisionModelImpl}. 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 revisions
058            * @param end the upper bound of the range of recent layout revisions (not inclusive)
059            * @return the range of matching recent layout revisions
060            */
061            public java.util.List<RecentLayoutRevision> findByGroupId(long groupId,
062                    int start, int end);
063    
064            /**
065            * Returns an ordered range of all the recent layout revisions 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 RecentLayoutRevisionModelImpl}. 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 revisions
073            * @param end the upper bound of the range of recent layout revisions (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 revisions
076            */
077            public java.util.List<RecentLayoutRevision> findByGroupId(long groupId,
078                    int start, int end,
079                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator);
080    
081            /**
082            * Returns an ordered range of all the recent layout revisions 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 RecentLayoutRevisionModelImpl}. 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 revisions
090            * @param end the upper bound of the range of recent layout revisions (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 revisions
094            */
095            public java.util.List<RecentLayoutRevision> findByGroupId(long groupId,
096                    int start, int end,
097                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator,
098                    boolean retrieveFromCache);
099    
100            /**
101            * Returns the first recent layout revision 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 revision
106            * @throws NoSuchRecentLayoutRevisionException if a matching recent layout revision could not be found
107            */
108            public RecentLayoutRevision findByGroupId_First(long groupId,
109                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator)
110                    throws com.liferay.portal.exception.NoSuchRecentLayoutRevisionException;
111    
112            /**
113            * Returns the first recent layout revision 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 revision, or <code>null</code> if a matching recent layout revision could not be found
118            */
119            public RecentLayoutRevision fetchByGroupId_First(long groupId,
120                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator);
121    
122            /**
123            * Returns the last recent layout revision 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 revision
128            * @throws NoSuchRecentLayoutRevisionException if a matching recent layout revision could not be found
129            */
130            public RecentLayoutRevision findByGroupId_Last(long groupId,
131                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator)
132                    throws com.liferay.portal.exception.NoSuchRecentLayoutRevisionException;
133    
134            /**
135            * Returns the last recent layout revision 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 revision, or <code>null</code> if a matching recent layout revision could not be found
140            */
141            public RecentLayoutRevision fetchByGroupId_Last(long groupId,
142                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator);
143    
144            /**
145            * Returns the recent layout revisions before and after the current recent layout revision in the ordered set where groupId = &#63;.
146            *
147            * @param recentLayoutRevisionId the primary key of the current recent layout revision
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 revision
151            * @throws NoSuchRecentLayoutRevisionException if a recent layout revision with the primary key could not be found
152            */
153            public RecentLayoutRevision[] findByGroupId_PrevAndNext(
154                    long recentLayoutRevisionId, long groupId,
155                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator)
156                    throws com.liferay.portal.exception.NoSuchRecentLayoutRevisionException;
157    
158            /**
159            * Removes all the recent layout revisions 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 revisions where groupId = &#63;.
167            *
168            * @param groupId the group ID
169            * @return the number of matching recent layout revisions
170            */
171            public int countByGroupId(long groupId);
172    
173            /**
174            * Returns all the recent layout revisions where userId = &#63;.
175            *
176            * @param userId the user ID
177            * @return the matching recent layout revisions
178            */
179            public java.util.List<RecentLayoutRevision> findByUserId(long userId);
180    
181            /**
182            * Returns a range of all the recent layout revisions 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 RecentLayoutRevisionModelImpl}. 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 revisions
190            * @param end the upper bound of the range of recent layout revisions (not inclusive)
191            * @return the range of matching recent layout revisions
192            */
193            public java.util.List<RecentLayoutRevision> findByUserId(long userId,
194                    int start, int end);
195    
196            /**
197            * Returns an ordered range of all the recent layout revisions 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 RecentLayoutRevisionModelImpl}. 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 revisions
205            * @param end the upper bound of the range of recent layout revisions (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 revisions
208            */
209            public java.util.List<RecentLayoutRevision> findByUserId(long userId,
210                    int start, int end,
211                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator);
212    
213            /**
214            * Returns an ordered range of all the recent layout revisions 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 RecentLayoutRevisionModelImpl}. 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 revisions
222            * @param end the upper bound of the range of recent layout revisions (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 revisions
226            */
227            public java.util.List<RecentLayoutRevision> findByUserId(long userId,
228                    int start, int end,
229                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator,
230                    boolean retrieveFromCache);
231    
232            /**
233            * Returns the first recent layout revision 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 revision
238            * @throws NoSuchRecentLayoutRevisionException if a matching recent layout revision could not be found
239            */
240            public RecentLayoutRevision findByUserId_First(long userId,
241                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator)
242                    throws com.liferay.portal.exception.NoSuchRecentLayoutRevisionException;
243    
244            /**
245            * Returns the first recent layout revision 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 revision, or <code>null</code> if a matching recent layout revision could not be found
250            */
251            public RecentLayoutRevision fetchByUserId_First(long userId,
252                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator);
253    
254            /**
255            * Returns the last recent layout revision 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 revision
260            * @throws NoSuchRecentLayoutRevisionException if a matching recent layout revision could not be found
261            */
262            public RecentLayoutRevision findByUserId_Last(long userId,
263                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator)
264                    throws com.liferay.portal.exception.NoSuchRecentLayoutRevisionException;
265    
266            /**
267            * Returns the last recent layout revision 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 revision, or <code>null</code> if a matching recent layout revision could not be found
272            */
273            public RecentLayoutRevision fetchByUserId_Last(long userId,
274                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator);
275    
276            /**
277            * Returns the recent layout revisions before and after the current recent layout revision in the ordered set where userId = &#63;.
278            *
279            * @param recentLayoutRevisionId the primary key of the current recent layout revision
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 revision
283            * @throws NoSuchRecentLayoutRevisionException if a recent layout revision with the primary key could not be found
284            */
285            public RecentLayoutRevision[] findByUserId_PrevAndNext(
286                    long recentLayoutRevisionId, long userId,
287                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator)
288                    throws com.liferay.portal.exception.NoSuchRecentLayoutRevisionException;
289    
290            /**
291            * Removes all the recent layout revisions 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 revisions where userId = &#63;.
299            *
300            * @param userId the user ID
301            * @return the number of matching recent layout revisions
302            */
303            public int countByUserId(long userId);
304    
305            /**
306            * Returns all the recent layout revisions where layoutRevisionId = &#63;.
307            *
308            * @param layoutRevisionId the layout revision ID
309            * @return the matching recent layout revisions
310            */
311            public java.util.List<RecentLayoutRevision> findByLayoutRevisionId(
312                    long layoutRevisionId);
313    
314            /**
315            * Returns a range of all the recent layout revisions where layoutRevisionId = &#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 RecentLayoutRevisionModelImpl}. 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 layoutRevisionId the layout revision ID
322            * @param start the lower bound of the range of recent layout revisions
323            * @param end the upper bound of the range of recent layout revisions (not inclusive)
324            * @return the range of matching recent layout revisions
325            */
326            public java.util.List<RecentLayoutRevision> findByLayoutRevisionId(
327                    long layoutRevisionId, int start, int end);
328    
329            /**
330            * Returns an ordered range of all the recent layout revisions where layoutRevisionId = &#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 RecentLayoutRevisionModelImpl}. 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 layoutRevisionId the layout revision ID
337            * @param start the lower bound of the range of recent layout revisions
338            * @param end the upper bound of the range of recent layout revisions (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 revisions
341            */
342            public java.util.List<RecentLayoutRevision> findByLayoutRevisionId(
343                    long layoutRevisionId, int start, int end,
344                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator);
345    
346            /**
347            * Returns an ordered range of all the recent layout revisions where layoutRevisionId = &#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 RecentLayoutRevisionModelImpl}. 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 layoutRevisionId the layout revision ID
354            * @param start the lower bound of the range of recent layout revisions
355            * @param end the upper bound of the range of recent layout revisions (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 revisions
359            */
360            public java.util.List<RecentLayoutRevision> findByLayoutRevisionId(
361                    long layoutRevisionId, int start, int end,
362                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator,
363                    boolean retrieveFromCache);
364    
365            /**
366            * Returns the first recent layout revision in the ordered set where layoutRevisionId = &#63;.
367            *
368            * @param layoutRevisionId the layout revision ID
369            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
370            * @return the first matching recent layout revision
371            * @throws NoSuchRecentLayoutRevisionException if a matching recent layout revision could not be found
372            */
373            public RecentLayoutRevision findByLayoutRevisionId_First(
374                    long layoutRevisionId,
375                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator)
376                    throws com.liferay.portal.exception.NoSuchRecentLayoutRevisionException;
377    
378            /**
379            * Returns the first recent layout revision in the ordered set where layoutRevisionId = &#63;.
380            *
381            * @param layoutRevisionId the layout revision ID
382            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
383            * @return the first matching recent layout revision, or <code>null</code> if a matching recent layout revision could not be found
384            */
385            public RecentLayoutRevision fetchByLayoutRevisionId_First(
386                    long layoutRevisionId,
387                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator);
388    
389            /**
390            * Returns the last recent layout revision in the ordered set where layoutRevisionId = &#63;.
391            *
392            * @param layoutRevisionId the layout revision ID
393            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
394            * @return the last matching recent layout revision
395            * @throws NoSuchRecentLayoutRevisionException if a matching recent layout revision could not be found
396            */
397            public RecentLayoutRevision findByLayoutRevisionId_Last(
398                    long layoutRevisionId,
399                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator)
400                    throws com.liferay.portal.exception.NoSuchRecentLayoutRevisionException;
401    
402            /**
403            * Returns the last recent layout revision in the ordered set where layoutRevisionId = &#63;.
404            *
405            * @param layoutRevisionId the layout revision ID
406            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
407            * @return the last matching recent layout revision, or <code>null</code> if a matching recent layout revision could not be found
408            */
409            public RecentLayoutRevision fetchByLayoutRevisionId_Last(
410                    long layoutRevisionId,
411                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator);
412    
413            /**
414            * Returns the recent layout revisions before and after the current recent layout revision in the ordered set where layoutRevisionId = &#63;.
415            *
416            * @param recentLayoutRevisionId the primary key of the current recent layout revision
417            * @param layoutRevisionId the layout revision ID
418            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
419            * @return the previous, current, and next recent layout revision
420            * @throws NoSuchRecentLayoutRevisionException if a recent layout revision with the primary key could not be found
421            */
422            public RecentLayoutRevision[] findByLayoutRevisionId_PrevAndNext(
423                    long recentLayoutRevisionId, long layoutRevisionId,
424                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator)
425                    throws com.liferay.portal.exception.NoSuchRecentLayoutRevisionException;
426    
427            /**
428            * Removes all the recent layout revisions where layoutRevisionId = &#63; from the database.
429            *
430            * @param layoutRevisionId the layout revision ID
431            */
432            public void removeByLayoutRevisionId(long layoutRevisionId);
433    
434            /**
435            * Returns the number of recent layout revisions where layoutRevisionId = &#63;.
436            *
437            * @param layoutRevisionId the layout revision ID
438            * @return the number of matching recent layout revisions
439            */
440            public int countByLayoutRevisionId(long layoutRevisionId);
441    
442            /**
443            * Returns the recent layout revision where userId = &#63; and layoutSetBranchId = &#63; and plid = &#63; or throws a {@link NoSuchRecentLayoutRevisionException} if it could not be found.
444            *
445            * @param userId the user ID
446            * @param layoutSetBranchId the layout set branch ID
447            * @param plid the plid
448            * @return the matching recent layout revision
449            * @throws NoSuchRecentLayoutRevisionException if a matching recent layout revision could not be found
450            */
451            public RecentLayoutRevision findByU_L_P(long userId,
452                    long layoutSetBranchId, long plid)
453                    throws com.liferay.portal.exception.NoSuchRecentLayoutRevisionException;
454    
455            /**
456            * Returns the recent layout revision where userId = &#63; and layoutSetBranchId = &#63; and plid = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
457            *
458            * @param userId the user ID
459            * @param layoutSetBranchId the layout set branch ID
460            * @param plid the plid
461            * @return the matching recent layout revision, or <code>null</code> if a matching recent layout revision could not be found
462            */
463            public RecentLayoutRevision fetchByU_L_P(long userId,
464                    long layoutSetBranchId, long plid);
465    
466            /**
467            * Returns the recent layout revision 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.
468            *
469            * @param userId the user ID
470            * @param layoutSetBranchId the layout set branch ID
471            * @param plid the plid
472            * @param retrieveFromCache whether to retrieve from the finder cache
473            * @return the matching recent layout revision, or <code>null</code> if a matching recent layout revision could not be found
474            */
475            public RecentLayoutRevision fetchByU_L_P(long userId,
476                    long layoutSetBranchId, long plid, boolean retrieveFromCache);
477    
478            /**
479            * Removes the recent layout revision where userId = &#63; and layoutSetBranchId = &#63; and plid = &#63; from the database.
480            *
481            * @param userId the user ID
482            * @param layoutSetBranchId the layout set branch ID
483            * @param plid the plid
484            * @return the recent layout revision that was removed
485            */
486            public RecentLayoutRevision removeByU_L_P(long userId,
487                    long layoutSetBranchId, long plid)
488                    throws com.liferay.portal.exception.NoSuchRecentLayoutRevisionException;
489    
490            /**
491            * Returns the number of recent layout revisions where userId = &#63; and layoutSetBranchId = &#63; and plid = &#63;.
492            *
493            * @param userId the user ID
494            * @param layoutSetBranchId the layout set branch ID
495            * @param plid the plid
496            * @return the number of matching recent layout revisions
497            */
498            public int countByU_L_P(long userId, long layoutSetBranchId, long plid);
499    
500            /**
501            * Caches the recent layout revision in the entity cache if it is enabled.
502            *
503            * @param recentLayoutRevision the recent layout revision
504            */
505            public void cacheResult(RecentLayoutRevision recentLayoutRevision);
506    
507            /**
508            * Caches the recent layout revisions in the entity cache if it is enabled.
509            *
510            * @param recentLayoutRevisions the recent layout revisions
511            */
512            public void cacheResult(
513                    java.util.List<RecentLayoutRevision> recentLayoutRevisions);
514    
515            /**
516            * Creates a new recent layout revision with the primary key. Does not add the recent layout revision to the database.
517            *
518            * @param recentLayoutRevisionId the primary key for the new recent layout revision
519            * @return the new recent layout revision
520            */
521            public RecentLayoutRevision create(long recentLayoutRevisionId);
522    
523            /**
524            * Removes the recent layout revision with the primary key from the database. Also notifies the appropriate model listeners.
525            *
526            * @param recentLayoutRevisionId the primary key of the recent layout revision
527            * @return the recent layout revision that was removed
528            * @throws NoSuchRecentLayoutRevisionException if a recent layout revision with the primary key could not be found
529            */
530            public RecentLayoutRevision remove(long recentLayoutRevisionId)
531                    throws com.liferay.portal.exception.NoSuchRecentLayoutRevisionException;
532    
533            public RecentLayoutRevision updateImpl(
534                    RecentLayoutRevision recentLayoutRevision);
535    
536            /**
537            * Returns the recent layout revision with the primary key or throws a {@link NoSuchRecentLayoutRevisionException} if it could not be found.
538            *
539            * @param recentLayoutRevisionId the primary key of the recent layout revision
540            * @return the recent layout revision
541            * @throws NoSuchRecentLayoutRevisionException if a recent layout revision with the primary key could not be found
542            */
543            public RecentLayoutRevision findByPrimaryKey(long recentLayoutRevisionId)
544                    throws com.liferay.portal.exception.NoSuchRecentLayoutRevisionException;
545    
546            /**
547            * Returns the recent layout revision with the primary key or returns <code>null</code> if it could not be found.
548            *
549            * @param recentLayoutRevisionId the primary key of the recent layout revision
550            * @return the recent layout revision, or <code>null</code> if a recent layout revision with the primary key could not be found
551            */
552            public RecentLayoutRevision fetchByPrimaryKey(long recentLayoutRevisionId);
553    
554            @Override
555            public java.util.Map<java.io.Serializable, RecentLayoutRevision> fetchByPrimaryKeys(
556                    java.util.Set<java.io.Serializable> primaryKeys);
557    
558            /**
559            * Returns all the recent layout revisions.
560            *
561            * @return the recent layout revisions
562            */
563            public java.util.List<RecentLayoutRevision> findAll();
564    
565            /**
566            * Returns a range of all the recent layout revisions.
567            *
568            * <p>
569            * 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 RecentLayoutRevisionModelImpl}. 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.
570            * </p>
571            *
572            * @param start the lower bound of the range of recent layout revisions
573            * @param end the upper bound of the range of recent layout revisions (not inclusive)
574            * @return the range of recent layout revisions
575            */
576            public java.util.List<RecentLayoutRevision> findAll(int start, int end);
577    
578            /**
579            * Returns an ordered range of all the recent layout revisions.
580            *
581            * <p>
582            * 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 RecentLayoutRevisionModelImpl}. 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.
583            * </p>
584            *
585            * @param start the lower bound of the range of recent layout revisions
586            * @param end the upper bound of the range of recent layout revisions (not inclusive)
587            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
588            * @return the ordered range of recent layout revisions
589            */
590            public java.util.List<RecentLayoutRevision> findAll(int start, int end,
591                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator);
592    
593            /**
594            * Returns an ordered range of all the recent layout revisions.
595            *
596            * <p>
597            * 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 RecentLayoutRevisionModelImpl}. 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.
598            * </p>
599            *
600            * @param start the lower bound of the range of recent layout revisions
601            * @param end the upper bound of the range of recent layout revisions (not inclusive)
602            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
603            * @param retrieveFromCache whether to retrieve from the finder cache
604            * @return the ordered range of recent layout revisions
605            */
606            public java.util.List<RecentLayoutRevision> findAll(int start, int end,
607                    com.liferay.portal.kernel.util.OrderByComparator<RecentLayoutRevision> orderByComparator,
608                    boolean retrieveFromCache);
609    
610            /**
611            * Removes all the recent layout revisions from the database.
612            */
613            public void removeAll();
614    
615            /**
616            * Returns the number of recent layout revisions.
617            *
618            * @return the number of recent layout revisions
619            */
620            public int countAll();
621    }