001    /**
002     * Copyright (c) 2000-2013 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.LayoutSet;
020    
021    /**
022     * The persistence interface for the layout set 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 LayoutSetPersistenceImpl
030     * @see LayoutSetUtil
031     * @generated
032     */
033    @ProviderType
034    public interface LayoutSetPersistence extends BasePersistence<LayoutSet> {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify or reference this interface directly. Always use {@link LayoutSetUtil} to access the layout set persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
039             */
040    
041            /**
042            * Returns all the layout sets where groupId = &#63;.
043            *
044            * @param groupId the group ID
045            * @return the matching layout sets
046            * @throws SystemException if a system exception occurred
047            */
048            public java.util.List<com.liferay.portal.model.LayoutSet> findByGroupId(
049                    long groupId)
050                    throws com.liferay.portal.kernel.exception.SystemException;
051    
052            /**
053            * Returns a range of all the layout sets where groupId = &#63;.
054            *
055            * <p>
056            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutSetModelImpl}. 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.
057            * </p>
058            *
059            * @param groupId the group ID
060            * @param start the lower bound of the range of layout sets
061            * @param end the upper bound of the range of layout sets (not inclusive)
062            * @return the range of matching layout sets
063            * @throws SystemException if a system exception occurred
064            */
065            public java.util.List<com.liferay.portal.model.LayoutSet> findByGroupId(
066                    long groupId, int start, int end)
067                    throws com.liferay.portal.kernel.exception.SystemException;
068    
069            /**
070            * Returns an ordered range of all the layout sets where groupId = &#63;.
071            *
072            * <p>
073            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutSetModelImpl}. 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.
074            * </p>
075            *
076            * @param groupId the group ID
077            * @param start the lower bound of the range of layout sets
078            * @param end the upper bound of the range of layout sets (not inclusive)
079            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
080            * @return the ordered range of matching layout sets
081            * @throws SystemException if a system exception occurred
082            */
083            public java.util.List<com.liferay.portal.model.LayoutSet> findByGroupId(
084                    long groupId, int start, int end,
085                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
086                    throws com.liferay.portal.kernel.exception.SystemException;
087    
088            /**
089            * Returns the first layout set in the ordered set where groupId = &#63;.
090            *
091            * @param groupId the group ID
092            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
093            * @return the first matching layout set
094            * @throws com.liferay.portal.NoSuchLayoutSetException if a matching layout set could not be found
095            * @throws SystemException if a system exception occurred
096            */
097            public com.liferay.portal.model.LayoutSet findByGroupId_First(
098                    long groupId,
099                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
100                    throws com.liferay.portal.NoSuchLayoutSetException,
101                            com.liferay.portal.kernel.exception.SystemException;
102    
103            /**
104            * Returns the first layout set in the ordered set where groupId = &#63;.
105            *
106            * @param groupId the group ID
107            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
108            * @return the first matching layout set, or <code>null</code> if a matching layout set could not be found
109            * @throws SystemException if a system exception occurred
110            */
111            public com.liferay.portal.model.LayoutSet fetchByGroupId_First(
112                    long groupId,
113                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
114                    throws com.liferay.portal.kernel.exception.SystemException;
115    
116            /**
117            * Returns the last layout set in the ordered set where groupId = &#63;.
118            *
119            * @param groupId the group ID
120            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
121            * @return the last matching layout set
122            * @throws com.liferay.portal.NoSuchLayoutSetException if a matching layout set could not be found
123            * @throws SystemException if a system exception occurred
124            */
125            public com.liferay.portal.model.LayoutSet findByGroupId_Last(long groupId,
126                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
127                    throws com.liferay.portal.NoSuchLayoutSetException,
128                            com.liferay.portal.kernel.exception.SystemException;
129    
130            /**
131            * Returns the last layout set in the ordered set where groupId = &#63;.
132            *
133            * @param groupId the group ID
134            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
135            * @return the last matching layout set, or <code>null</code> if a matching layout set could not be found
136            * @throws SystemException if a system exception occurred
137            */
138            public com.liferay.portal.model.LayoutSet fetchByGroupId_Last(
139                    long groupId,
140                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141                    throws com.liferay.portal.kernel.exception.SystemException;
142    
143            /**
144            * Returns the layout sets before and after the current layout set in the ordered set where groupId = &#63;.
145            *
146            * @param layoutSetId the primary key of the current layout set
147            * @param groupId the group ID
148            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
149            * @return the previous, current, and next layout set
150            * @throws com.liferay.portal.NoSuchLayoutSetException if a layout set with the primary key could not be found
151            * @throws SystemException if a system exception occurred
152            */
153            public com.liferay.portal.model.LayoutSet[] findByGroupId_PrevAndNext(
154                    long layoutSetId, long groupId,
155                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156                    throws com.liferay.portal.NoSuchLayoutSetException,
157                            com.liferay.portal.kernel.exception.SystemException;
158    
159            /**
160            * Removes all the layout sets where groupId = &#63; from the database.
161            *
162            * @param groupId the group ID
163            * @throws SystemException if a system exception occurred
164            */
165            public void removeByGroupId(long groupId)
166                    throws com.liferay.portal.kernel.exception.SystemException;
167    
168            /**
169            * Returns the number of layout sets where groupId = &#63;.
170            *
171            * @param groupId the group ID
172            * @return the number of matching layout sets
173            * @throws SystemException if a system exception occurred
174            */
175            public int countByGroupId(long groupId)
176                    throws com.liferay.portal.kernel.exception.SystemException;
177    
178            /**
179            * Returns all the layout sets where layoutSetPrototypeUuid = &#63;.
180            *
181            * @param layoutSetPrototypeUuid the layout set prototype uuid
182            * @return the matching layout sets
183            * @throws SystemException if a system exception occurred
184            */
185            public java.util.List<com.liferay.portal.model.LayoutSet> findByLayoutSetPrototypeUuid(
186                    java.lang.String layoutSetPrototypeUuid)
187                    throws com.liferay.portal.kernel.exception.SystemException;
188    
189            /**
190            * Returns a range of all the layout sets where layoutSetPrototypeUuid = &#63;.
191            *
192            * <p>
193            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutSetModelImpl}. 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.
194            * </p>
195            *
196            * @param layoutSetPrototypeUuid the layout set prototype uuid
197            * @param start the lower bound of the range of layout sets
198            * @param end the upper bound of the range of layout sets (not inclusive)
199            * @return the range of matching layout sets
200            * @throws SystemException if a system exception occurred
201            */
202            public java.util.List<com.liferay.portal.model.LayoutSet> findByLayoutSetPrototypeUuid(
203                    java.lang.String layoutSetPrototypeUuid, int start, int end)
204                    throws com.liferay.portal.kernel.exception.SystemException;
205    
206            /**
207            * Returns an ordered range of all the layout sets where layoutSetPrototypeUuid = &#63;.
208            *
209            * <p>
210            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutSetModelImpl}. 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.
211            * </p>
212            *
213            * @param layoutSetPrototypeUuid the layout set prototype uuid
214            * @param start the lower bound of the range of layout sets
215            * @param end the upper bound of the range of layout sets (not inclusive)
216            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
217            * @return the ordered range of matching layout sets
218            * @throws SystemException if a system exception occurred
219            */
220            public java.util.List<com.liferay.portal.model.LayoutSet> findByLayoutSetPrototypeUuid(
221                    java.lang.String layoutSetPrototypeUuid, int start, int end,
222                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
223                    throws com.liferay.portal.kernel.exception.SystemException;
224    
225            /**
226            * Returns the first layout set in the ordered set where layoutSetPrototypeUuid = &#63;.
227            *
228            * @param layoutSetPrototypeUuid the layout set prototype uuid
229            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
230            * @return the first matching layout set
231            * @throws com.liferay.portal.NoSuchLayoutSetException if a matching layout set could not be found
232            * @throws SystemException if a system exception occurred
233            */
234            public com.liferay.portal.model.LayoutSet findByLayoutSetPrototypeUuid_First(
235                    java.lang.String layoutSetPrototypeUuid,
236                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
237                    throws com.liferay.portal.NoSuchLayoutSetException,
238                            com.liferay.portal.kernel.exception.SystemException;
239    
240            /**
241            * Returns the first layout set in the ordered set where layoutSetPrototypeUuid = &#63;.
242            *
243            * @param layoutSetPrototypeUuid the layout set prototype uuid
244            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
245            * @return the first matching layout set, or <code>null</code> if a matching layout set could not be found
246            * @throws SystemException if a system exception occurred
247            */
248            public com.liferay.portal.model.LayoutSet fetchByLayoutSetPrototypeUuid_First(
249                    java.lang.String layoutSetPrototypeUuid,
250                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
251                    throws com.liferay.portal.kernel.exception.SystemException;
252    
253            /**
254            * Returns the last layout set in the ordered set where layoutSetPrototypeUuid = &#63;.
255            *
256            * @param layoutSetPrototypeUuid the layout set prototype uuid
257            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
258            * @return the last matching layout set
259            * @throws com.liferay.portal.NoSuchLayoutSetException if a matching layout set could not be found
260            * @throws SystemException if a system exception occurred
261            */
262            public com.liferay.portal.model.LayoutSet findByLayoutSetPrototypeUuid_Last(
263                    java.lang.String layoutSetPrototypeUuid,
264                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
265                    throws com.liferay.portal.NoSuchLayoutSetException,
266                            com.liferay.portal.kernel.exception.SystemException;
267    
268            /**
269            * Returns the last layout set in the ordered set where layoutSetPrototypeUuid = &#63;.
270            *
271            * @param layoutSetPrototypeUuid the layout set prototype uuid
272            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
273            * @return the last matching layout set, or <code>null</code> if a matching layout set could not be found
274            * @throws SystemException if a system exception occurred
275            */
276            public com.liferay.portal.model.LayoutSet fetchByLayoutSetPrototypeUuid_Last(
277                    java.lang.String layoutSetPrototypeUuid,
278                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
279                    throws com.liferay.portal.kernel.exception.SystemException;
280    
281            /**
282            * Returns the layout sets before and after the current layout set in the ordered set where layoutSetPrototypeUuid = &#63;.
283            *
284            * @param layoutSetId the primary key of the current layout set
285            * @param layoutSetPrototypeUuid the layout set prototype uuid
286            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
287            * @return the previous, current, and next layout set
288            * @throws com.liferay.portal.NoSuchLayoutSetException if a layout set with the primary key could not be found
289            * @throws SystemException if a system exception occurred
290            */
291            public com.liferay.portal.model.LayoutSet[] findByLayoutSetPrototypeUuid_PrevAndNext(
292                    long layoutSetId, java.lang.String layoutSetPrototypeUuid,
293                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
294                    throws com.liferay.portal.NoSuchLayoutSetException,
295                            com.liferay.portal.kernel.exception.SystemException;
296    
297            /**
298            * Removes all the layout sets where layoutSetPrototypeUuid = &#63; from the database.
299            *
300            * @param layoutSetPrototypeUuid the layout set prototype uuid
301            * @throws SystemException if a system exception occurred
302            */
303            public void removeByLayoutSetPrototypeUuid(
304                    java.lang.String layoutSetPrototypeUuid)
305                    throws com.liferay.portal.kernel.exception.SystemException;
306    
307            /**
308            * Returns the number of layout sets where layoutSetPrototypeUuid = &#63;.
309            *
310            * @param layoutSetPrototypeUuid the layout set prototype uuid
311            * @return the number of matching layout sets
312            * @throws SystemException if a system exception occurred
313            */
314            public int countByLayoutSetPrototypeUuid(
315                    java.lang.String layoutSetPrototypeUuid)
316                    throws com.liferay.portal.kernel.exception.SystemException;
317    
318            /**
319            * Returns the layout set where groupId = &#63; and privateLayout = &#63; or throws a {@link com.liferay.portal.NoSuchLayoutSetException} if it could not be found.
320            *
321            * @param groupId the group ID
322            * @param privateLayout the private layout
323            * @return the matching layout set
324            * @throws com.liferay.portal.NoSuchLayoutSetException if a matching layout set could not be found
325            * @throws SystemException if a system exception occurred
326            */
327            public com.liferay.portal.model.LayoutSet findByG_P(long groupId,
328                    boolean privateLayout)
329                    throws com.liferay.portal.NoSuchLayoutSetException,
330                            com.liferay.portal.kernel.exception.SystemException;
331    
332            /**
333            * Returns the layout set where groupId = &#63; and privateLayout = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
334            *
335            * @param groupId the group ID
336            * @param privateLayout the private layout
337            * @return the matching layout set, or <code>null</code> if a matching layout set could not be found
338            * @throws SystemException if a system exception occurred
339            */
340            public com.liferay.portal.model.LayoutSet fetchByG_P(long groupId,
341                    boolean privateLayout)
342                    throws com.liferay.portal.kernel.exception.SystemException;
343    
344            /**
345            * Returns the layout set where groupId = &#63; and privateLayout = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
346            *
347            * @param groupId the group ID
348            * @param privateLayout the private layout
349            * @param retrieveFromCache whether to use the finder cache
350            * @return the matching layout set, or <code>null</code> if a matching layout set could not be found
351            * @throws SystemException if a system exception occurred
352            */
353            public com.liferay.portal.model.LayoutSet fetchByG_P(long groupId,
354                    boolean privateLayout, boolean retrieveFromCache)
355                    throws com.liferay.portal.kernel.exception.SystemException;
356    
357            /**
358            * Removes the layout set where groupId = &#63; and privateLayout = &#63; from the database.
359            *
360            * @param groupId the group ID
361            * @param privateLayout the private layout
362            * @return the layout set that was removed
363            * @throws SystemException if a system exception occurred
364            */
365            public com.liferay.portal.model.LayoutSet removeByG_P(long groupId,
366                    boolean privateLayout)
367                    throws com.liferay.portal.NoSuchLayoutSetException,
368                            com.liferay.portal.kernel.exception.SystemException;
369    
370            /**
371            * Returns the number of layout sets where groupId = &#63; and privateLayout = &#63;.
372            *
373            * @param groupId the group ID
374            * @param privateLayout the private layout
375            * @return the number of matching layout sets
376            * @throws SystemException if a system exception occurred
377            */
378            public int countByG_P(long groupId, boolean privateLayout)
379                    throws com.liferay.portal.kernel.exception.SystemException;
380    
381            /**
382            * Caches the layout set in the entity cache if it is enabled.
383            *
384            * @param layoutSet the layout set
385            */
386            public void cacheResult(com.liferay.portal.model.LayoutSet layoutSet);
387    
388            /**
389            * Caches the layout sets in the entity cache if it is enabled.
390            *
391            * @param layoutSets the layout sets
392            */
393            public void cacheResult(
394                    java.util.List<com.liferay.portal.model.LayoutSet> layoutSets);
395    
396            /**
397            * Creates a new layout set with the primary key. Does not add the layout set to the database.
398            *
399            * @param layoutSetId the primary key for the new layout set
400            * @return the new layout set
401            */
402            public com.liferay.portal.model.LayoutSet create(long layoutSetId);
403    
404            /**
405            * Removes the layout set with the primary key from the database. Also notifies the appropriate model listeners.
406            *
407            * @param layoutSetId the primary key of the layout set
408            * @return the layout set that was removed
409            * @throws com.liferay.portal.NoSuchLayoutSetException if a layout set with the primary key could not be found
410            * @throws SystemException if a system exception occurred
411            */
412            public com.liferay.portal.model.LayoutSet remove(long layoutSetId)
413                    throws com.liferay.portal.NoSuchLayoutSetException,
414                            com.liferay.portal.kernel.exception.SystemException;
415    
416            public com.liferay.portal.model.LayoutSet updateImpl(
417                    com.liferay.portal.model.LayoutSet layoutSet)
418                    throws com.liferay.portal.kernel.exception.SystemException;
419    
420            /**
421            * Returns the layout set with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutSetException} if it could not be found.
422            *
423            * @param layoutSetId the primary key of the layout set
424            * @return the layout set
425            * @throws com.liferay.portal.NoSuchLayoutSetException if a layout set with the primary key could not be found
426            * @throws SystemException if a system exception occurred
427            */
428            public com.liferay.portal.model.LayoutSet findByPrimaryKey(long layoutSetId)
429                    throws com.liferay.portal.NoSuchLayoutSetException,
430                            com.liferay.portal.kernel.exception.SystemException;
431    
432            /**
433            * Returns the layout set with the primary key or returns <code>null</code> if it could not be found.
434            *
435            * @param layoutSetId the primary key of the layout set
436            * @return the layout set, or <code>null</code> if a layout set with the primary key could not be found
437            * @throws SystemException if a system exception occurred
438            */
439            public com.liferay.portal.model.LayoutSet fetchByPrimaryKey(
440                    long layoutSetId)
441                    throws com.liferay.portal.kernel.exception.SystemException;
442    
443            /**
444            * Returns all the layout sets.
445            *
446            * @return the layout sets
447            * @throws SystemException if a system exception occurred
448            */
449            public java.util.List<com.liferay.portal.model.LayoutSet> findAll()
450                    throws com.liferay.portal.kernel.exception.SystemException;
451    
452            /**
453            * Returns a range of all the layout sets.
454            *
455            * <p>
456            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutSetModelImpl}. 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.
457            * </p>
458            *
459            * @param start the lower bound of the range of layout sets
460            * @param end the upper bound of the range of layout sets (not inclusive)
461            * @return the range of layout sets
462            * @throws SystemException if a system exception occurred
463            */
464            public java.util.List<com.liferay.portal.model.LayoutSet> findAll(
465                    int start, int end)
466                    throws com.liferay.portal.kernel.exception.SystemException;
467    
468            /**
469            * Returns an ordered range of all the layout sets.
470            *
471            * <p>
472            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutSetModelImpl}. 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.
473            * </p>
474            *
475            * @param start the lower bound of the range of layout sets
476            * @param end the upper bound of the range of layout sets (not inclusive)
477            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
478            * @return the ordered range of layout sets
479            * @throws SystemException if a system exception occurred
480            */
481            public java.util.List<com.liferay.portal.model.LayoutSet> findAll(
482                    int start, int end,
483                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
484                    throws com.liferay.portal.kernel.exception.SystemException;
485    
486            /**
487            * Removes all the layout sets from the database.
488            *
489            * @throws SystemException if a system exception occurred
490            */
491            public void removeAll()
492                    throws com.liferay.portal.kernel.exception.SystemException;
493    
494            /**
495            * Returns the number of layout sets.
496            *
497            * @return the number of layout sets
498            * @throws SystemException if a system exception occurred
499            */
500            public int countAll()
501                    throws com.liferay.portal.kernel.exception.SystemException;
502    }