001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.kernel.exception.SystemException;
018    import com.liferay.portal.model.LayoutSetPrototype;
019    
020    /**
021     * The persistence interface for the layout set prototype service.
022     *
023     * <p>
024     * Caching information and settings can be found in <code>portal.properties</code>
025     * </p>
026     *
027     * @author Brian Wing Shun Chan
028     * @see LayoutSetPrototypePersistenceImpl
029     * @see LayoutSetPrototypeUtil
030     * @generated
031     */
032    public interface LayoutSetPrototypePersistence extends BasePersistence<LayoutSetPrototype> {
033            /*
034             * NOTE FOR DEVELOPERS:
035             *
036             * Never modify or reference this interface directly. Always use {@link LayoutSetPrototypeUtil} to access the layout set prototype persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
037             */
038    
039            /**
040            * Caches the layout set prototype in the entity cache if it is enabled.
041            *
042            * @param layoutSetPrototype the layout set prototype
043            */
044            public void cacheResult(
045                    com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype);
046    
047            /**
048            * Caches the layout set prototypes in the entity cache if it is enabled.
049            *
050            * @param layoutSetPrototypes the layout set prototypes
051            */
052            public void cacheResult(
053                    java.util.List<com.liferay.portal.model.LayoutSetPrototype> layoutSetPrototypes);
054    
055            /**
056            * Creates a new layout set prototype with the primary key. Does not add the layout set prototype to the database.
057            *
058            * @param layoutSetPrototypeId the primary key for the new layout set prototype
059            * @return the new layout set prototype
060            */
061            public com.liferay.portal.model.LayoutSetPrototype create(
062                    long layoutSetPrototypeId);
063    
064            /**
065            * Removes the layout set prototype with the primary key from the database. Also notifies the appropriate model listeners.
066            *
067            * @param layoutSetPrototypeId the primary key of the layout set prototype
068            * @return the layout set prototype that was removed
069            * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found
070            * @throws SystemException if a system exception occurred
071            */
072            public com.liferay.portal.model.LayoutSetPrototype remove(
073                    long layoutSetPrototypeId)
074                    throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
075                            com.liferay.portal.kernel.exception.SystemException;
076    
077            public com.liferay.portal.model.LayoutSetPrototype updateImpl(
078                    com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype,
079                    boolean merge)
080                    throws com.liferay.portal.kernel.exception.SystemException;
081    
082            /**
083            * Returns the layout set prototype with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutSetPrototypeException} if it could not be found.
084            *
085            * @param layoutSetPrototypeId the primary key of the layout set prototype
086            * @return the layout set prototype
087            * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found
088            * @throws SystemException if a system exception occurred
089            */
090            public com.liferay.portal.model.LayoutSetPrototype findByPrimaryKey(
091                    long layoutSetPrototypeId)
092                    throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
093                            com.liferay.portal.kernel.exception.SystemException;
094    
095            /**
096            * Returns the layout set prototype with the primary key or returns <code>null</code> if it could not be found.
097            *
098            * @param layoutSetPrototypeId the primary key of the layout set prototype
099            * @return the layout set prototype, or <code>null</code> if a layout set prototype with the primary key could not be found
100            * @throws SystemException if a system exception occurred
101            */
102            public com.liferay.portal.model.LayoutSetPrototype fetchByPrimaryKey(
103                    long layoutSetPrototypeId)
104                    throws com.liferay.portal.kernel.exception.SystemException;
105    
106            /**
107            * Returns all the layout set prototypes where uuid = &#63;.
108            *
109            * @param uuid the uuid
110            * @return the matching layout set prototypes
111            * @throws SystemException if a system exception occurred
112            */
113            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByUuid(
114                    java.lang.String uuid)
115                    throws com.liferay.portal.kernel.exception.SystemException;
116    
117            /**
118            * Returns a range of all the layout set prototypes where uuid = &#63;.
119            *
120            * <p>
121            * 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.
122            * </p>
123            *
124            * @param uuid the uuid
125            * @param start the lower bound of the range of layout set prototypes
126            * @param end the upper bound of the range of layout set prototypes (not inclusive)
127            * @return the range of matching layout set prototypes
128            * @throws SystemException if a system exception occurred
129            */
130            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByUuid(
131                    java.lang.String uuid, int start, int end)
132                    throws com.liferay.portal.kernel.exception.SystemException;
133    
134            /**
135            * Returns an ordered range of all the layout set prototypes where uuid = &#63;.
136            *
137            * <p>
138            * 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.
139            * </p>
140            *
141            * @param uuid the uuid
142            * @param start the lower bound of the range of layout set prototypes
143            * @param end the upper bound of the range of layout set prototypes (not inclusive)
144            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
145            * @return the ordered range of matching layout set prototypes
146            * @throws SystemException if a system exception occurred
147            */
148            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByUuid(
149                    java.lang.String uuid, int start, int end,
150                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151                    throws com.liferay.portal.kernel.exception.SystemException;
152    
153            /**
154            * Returns the first layout set prototype in the ordered set where uuid = &#63;.
155            *
156            * <p>
157            * 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.
158            * </p>
159            *
160            * @param uuid the uuid
161            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
162            * @return the first matching layout set prototype
163            * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found
164            * @throws SystemException if a system exception occurred
165            */
166            public com.liferay.portal.model.LayoutSetPrototype findByUuid_First(
167                    java.lang.String uuid,
168                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
169                    throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
170                            com.liferay.portal.kernel.exception.SystemException;
171    
172            /**
173            * Returns the last layout set prototype in the ordered set where uuid = &#63;.
174            *
175            * <p>
176            * 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.
177            * </p>
178            *
179            * @param uuid the uuid
180            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
181            * @return the last matching layout set prototype
182            * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found
183            * @throws SystemException if a system exception occurred
184            */
185            public com.liferay.portal.model.LayoutSetPrototype findByUuid_Last(
186                    java.lang.String uuid,
187                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
188                    throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
189                            com.liferay.portal.kernel.exception.SystemException;
190    
191            /**
192            * Returns the layout set prototypes before and after the current layout set prototype in the ordered set where uuid = &#63;.
193            *
194            * <p>
195            * 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.
196            * </p>
197            *
198            * @param layoutSetPrototypeId the primary key of the current layout set prototype
199            * @param uuid the uuid
200            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
201            * @return the previous, current, and next layout set prototype
202            * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found
203            * @throws SystemException if a system exception occurred
204            */
205            public com.liferay.portal.model.LayoutSetPrototype[] findByUuid_PrevAndNext(
206                    long layoutSetPrototypeId, java.lang.String uuid,
207                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
208                    throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
209                            com.liferay.portal.kernel.exception.SystemException;
210    
211            /**
212            * Returns all the layout set prototypes that the user has permission to view where uuid = &#63;.
213            *
214            * @param uuid the uuid
215            * @return the matching layout set prototypes that the user has permission to view
216            * @throws SystemException if a system exception occurred
217            */
218            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByUuid(
219                    java.lang.String uuid)
220                    throws com.liferay.portal.kernel.exception.SystemException;
221    
222            /**
223            * Returns a range of all the layout set prototypes that the user has permission to view where uuid = &#63;.
224            *
225            * <p>
226            * 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.
227            * </p>
228            *
229            * @param uuid the uuid
230            * @param start the lower bound of the range of layout set prototypes
231            * @param end the upper bound of the range of layout set prototypes (not inclusive)
232            * @return the range of matching layout set prototypes that the user has permission to view
233            * @throws SystemException if a system exception occurred
234            */
235            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByUuid(
236                    java.lang.String uuid, int start, int end)
237                    throws com.liferay.portal.kernel.exception.SystemException;
238    
239            /**
240            * Returns an ordered range of all the layout set prototypes that the user has permissions to view where uuid = &#63;.
241            *
242            * <p>
243            * 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.
244            * </p>
245            *
246            * @param uuid the uuid
247            * @param start the lower bound of the range of layout set prototypes
248            * @param end the upper bound of the range of layout set prototypes (not inclusive)
249            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
250            * @return the ordered range of matching layout set prototypes that the user has permission to view
251            * @throws SystemException if a system exception occurred
252            */
253            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByUuid(
254                    java.lang.String uuid, int start, int end,
255                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
256                    throws com.liferay.portal.kernel.exception.SystemException;
257    
258            /**
259            * Returns the layout set prototypes before and after the current layout set prototype in the ordered set of layout set prototypes that the user has permission to view where uuid = &#63;.
260            *
261            * @param layoutSetPrototypeId the primary key of the current layout set prototype
262            * @param uuid the uuid
263            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
264            * @return the previous, current, and next layout set prototype
265            * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found
266            * @throws SystemException if a system exception occurred
267            */
268            public com.liferay.portal.model.LayoutSetPrototype[] filterFindByUuid_PrevAndNext(
269                    long layoutSetPrototypeId, java.lang.String uuid,
270                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
271                    throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
272                            com.liferay.portal.kernel.exception.SystemException;
273    
274            /**
275            * Returns all the layout set prototypes where companyId = &#63;.
276            *
277            * @param companyId the company ID
278            * @return the matching layout set prototypes
279            * @throws SystemException if a system exception occurred
280            */
281            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId(
282                    long companyId)
283                    throws com.liferay.portal.kernel.exception.SystemException;
284    
285            /**
286            * Returns a range of all the layout set prototypes where companyId = &#63;.
287            *
288            * <p>
289            * 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.
290            * </p>
291            *
292            * @param companyId the company ID
293            * @param start the lower bound of the range of layout set prototypes
294            * @param end the upper bound of the range of layout set prototypes (not inclusive)
295            * @return the range of matching layout set prototypes
296            * @throws SystemException if a system exception occurred
297            */
298            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId(
299                    long companyId, int start, int end)
300                    throws com.liferay.portal.kernel.exception.SystemException;
301    
302            /**
303            * Returns an ordered range of all the layout set prototypes where companyId = &#63;.
304            *
305            * <p>
306            * 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.
307            * </p>
308            *
309            * @param companyId the company ID
310            * @param start the lower bound of the range of layout set prototypes
311            * @param end the upper bound of the range of layout set prototypes (not inclusive)
312            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
313            * @return the ordered range of matching layout set prototypes
314            * @throws SystemException if a system exception occurred
315            */
316            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId(
317                    long companyId, int start, int end,
318                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
319                    throws com.liferay.portal.kernel.exception.SystemException;
320    
321            /**
322            * Returns the first layout set prototype in the ordered set where companyId = &#63;.
323            *
324            * <p>
325            * 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.
326            * </p>
327            *
328            * @param companyId the company ID
329            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
330            * @return the first matching layout set prototype
331            * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found
332            * @throws SystemException if a system exception occurred
333            */
334            public com.liferay.portal.model.LayoutSetPrototype findByCompanyId_First(
335                    long companyId,
336                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
337                    throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
338                            com.liferay.portal.kernel.exception.SystemException;
339    
340            /**
341            * Returns the last layout set prototype in the ordered set where companyId = &#63;.
342            *
343            * <p>
344            * 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.
345            * </p>
346            *
347            * @param companyId the company ID
348            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
349            * @return the last matching layout set prototype
350            * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found
351            * @throws SystemException if a system exception occurred
352            */
353            public com.liferay.portal.model.LayoutSetPrototype findByCompanyId_Last(
354                    long companyId,
355                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
356                    throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
357                            com.liferay.portal.kernel.exception.SystemException;
358    
359            /**
360            * Returns the layout set prototypes before and after the current layout set prototype in the ordered set where companyId = &#63;.
361            *
362            * <p>
363            * 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.
364            * </p>
365            *
366            * @param layoutSetPrototypeId the primary key of the current layout set prototype
367            * @param companyId the company ID
368            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
369            * @return the previous, current, and next layout set prototype
370            * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found
371            * @throws SystemException if a system exception occurred
372            */
373            public com.liferay.portal.model.LayoutSetPrototype[] findByCompanyId_PrevAndNext(
374                    long layoutSetPrototypeId, long companyId,
375                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
376                    throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
377                            com.liferay.portal.kernel.exception.SystemException;
378    
379            /**
380            * Returns all the layout set prototypes that the user has permission to view where companyId = &#63;.
381            *
382            * @param companyId the company ID
383            * @return the matching layout set prototypes that the user has permission to view
384            * @throws SystemException if a system exception occurred
385            */
386            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByCompanyId(
387                    long companyId)
388                    throws com.liferay.portal.kernel.exception.SystemException;
389    
390            /**
391            * Returns a range of all the layout set prototypes that the user has permission to view where companyId = &#63;.
392            *
393            * <p>
394            * 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.
395            * </p>
396            *
397            * @param companyId the company ID
398            * @param start the lower bound of the range of layout set prototypes
399            * @param end the upper bound of the range of layout set prototypes (not inclusive)
400            * @return the range of matching layout set prototypes that the user has permission to view
401            * @throws SystemException if a system exception occurred
402            */
403            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByCompanyId(
404                    long companyId, int start, int end)
405                    throws com.liferay.portal.kernel.exception.SystemException;
406    
407            /**
408            * Returns an ordered range of all the layout set prototypes that the user has permissions to view where companyId = &#63;.
409            *
410            * <p>
411            * 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.
412            * </p>
413            *
414            * @param companyId the company ID
415            * @param start the lower bound of the range of layout set prototypes
416            * @param end the upper bound of the range of layout set prototypes (not inclusive)
417            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
418            * @return the ordered range of matching layout set prototypes that the user has permission to view
419            * @throws SystemException if a system exception occurred
420            */
421            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByCompanyId(
422                    long companyId, int start, int end,
423                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
424                    throws com.liferay.portal.kernel.exception.SystemException;
425    
426            /**
427            * Returns the layout set prototypes before and after the current layout set prototype in the ordered set of layout set prototypes that the user has permission to view where companyId = &#63;.
428            *
429            * @param layoutSetPrototypeId the primary key of the current layout set prototype
430            * @param companyId the company ID
431            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
432            * @return the previous, current, and next layout set prototype
433            * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found
434            * @throws SystemException if a system exception occurred
435            */
436            public com.liferay.portal.model.LayoutSetPrototype[] filterFindByCompanyId_PrevAndNext(
437                    long layoutSetPrototypeId, long companyId,
438                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
439                    throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
440                            com.liferay.portal.kernel.exception.SystemException;
441    
442            /**
443            * Returns all the layout set prototypes where companyId = &#63; and active = &#63;.
444            *
445            * @param companyId the company ID
446            * @param active the active
447            * @return the matching layout set prototypes
448            * @throws SystemException if a system exception occurred
449            */
450            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A(
451                    long companyId, boolean active)
452                    throws com.liferay.portal.kernel.exception.SystemException;
453    
454            /**
455            * Returns a range of all the layout set prototypes where companyId = &#63; and active = &#63;.
456            *
457            * <p>
458            * 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.
459            * </p>
460            *
461            * @param companyId the company ID
462            * @param active the active
463            * @param start the lower bound of the range of layout set prototypes
464            * @param end the upper bound of the range of layout set prototypes (not inclusive)
465            * @return the range of matching layout set prototypes
466            * @throws SystemException if a system exception occurred
467            */
468            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A(
469                    long companyId, boolean active, int start, int end)
470                    throws com.liferay.portal.kernel.exception.SystemException;
471    
472            /**
473            * Returns an ordered range of all the layout set prototypes where companyId = &#63; and active = &#63;.
474            *
475            * <p>
476            * 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.
477            * </p>
478            *
479            * @param companyId the company ID
480            * @param active the active
481            * @param start the lower bound of the range of layout set prototypes
482            * @param end the upper bound of the range of layout set prototypes (not inclusive)
483            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
484            * @return the ordered range of matching layout set prototypes
485            * @throws SystemException if a system exception occurred
486            */
487            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A(
488                    long companyId, boolean active, int start, int end,
489                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
490                    throws com.liferay.portal.kernel.exception.SystemException;
491    
492            /**
493            * Returns the first layout set prototype in the ordered set where companyId = &#63; and active = &#63;.
494            *
495            * <p>
496            * 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.
497            * </p>
498            *
499            * @param companyId the company ID
500            * @param active the active
501            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
502            * @return the first matching layout set prototype
503            * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found
504            * @throws SystemException if a system exception occurred
505            */
506            public com.liferay.portal.model.LayoutSetPrototype findByC_A_First(
507                    long companyId, boolean active,
508                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
509                    throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
510                            com.liferay.portal.kernel.exception.SystemException;
511    
512            /**
513            * Returns the last layout set prototype in the ordered set where companyId = &#63; and active = &#63;.
514            *
515            * <p>
516            * 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.
517            * </p>
518            *
519            * @param companyId the company ID
520            * @param active the active
521            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
522            * @return the last matching layout set prototype
523            * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found
524            * @throws SystemException if a system exception occurred
525            */
526            public com.liferay.portal.model.LayoutSetPrototype findByC_A_Last(
527                    long companyId, boolean active,
528                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
529                    throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
530                            com.liferay.portal.kernel.exception.SystemException;
531    
532            /**
533            * Returns the layout set prototypes before and after the current layout set prototype in the ordered set where companyId = &#63; and active = &#63;.
534            *
535            * <p>
536            * 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.
537            * </p>
538            *
539            * @param layoutSetPrototypeId the primary key of the current layout set prototype
540            * @param companyId the company ID
541            * @param active the active
542            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
543            * @return the previous, current, and next layout set prototype
544            * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found
545            * @throws SystemException if a system exception occurred
546            */
547            public com.liferay.portal.model.LayoutSetPrototype[] findByC_A_PrevAndNext(
548                    long layoutSetPrototypeId, long companyId, boolean active,
549                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
550                    throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
551                            com.liferay.portal.kernel.exception.SystemException;
552    
553            /**
554            * Returns all the layout set prototypes that the user has permission to view where companyId = &#63; and active = &#63;.
555            *
556            * @param companyId the company ID
557            * @param active the active
558            * @return the matching layout set prototypes that the user has permission to view
559            * @throws SystemException if a system exception occurred
560            */
561            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByC_A(
562                    long companyId, boolean active)
563                    throws com.liferay.portal.kernel.exception.SystemException;
564    
565            /**
566            * Returns a range of all the layout set prototypes that the user has permission to view where companyId = &#63; and active = &#63;.
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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
570            * </p>
571            *
572            * @param companyId the company ID
573            * @param active the active
574            * @param start the lower bound of the range of layout set prototypes
575            * @param end the upper bound of the range of layout set prototypes (not inclusive)
576            * @return the range of matching layout set prototypes that the user has permission to view
577            * @throws SystemException if a system exception occurred
578            */
579            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByC_A(
580                    long companyId, boolean active, int start, int end)
581                    throws com.liferay.portal.kernel.exception.SystemException;
582    
583            /**
584            * Returns an ordered range of all the layout set prototypes that the user has permissions to view where companyId = &#63; and active = &#63;.
585            *
586            * <p>
587            * 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.
588            * </p>
589            *
590            * @param companyId the company ID
591            * @param active the active
592            * @param start the lower bound of the range of layout set prototypes
593            * @param end the upper bound of the range of layout set prototypes (not inclusive)
594            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
595            * @return the ordered range of matching layout set prototypes that the user has permission to view
596            * @throws SystemException if a system exception occurred
597            */
598            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByC_A(
599                    long companyId, boolean active, int start, int end,
600                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
601                    throws com.liferay.portal.kernel.exception.SystemException;
602    
603            /**
604            * Returns the layout set prototypes before and after the current layout set prototype in the ordered set of layout set prototypes that the user has permission to view where companyId = &#63; and active = &#63;.
605            *
606            * @param layoutSetPrototypeId the primary key of the current layout set prototype
607            * @param companyId the company ID
608            * @param active the active
609            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
610            * @return the previous, current, and next layout set prototype
611            * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found
612            * @throws SystemException if a system exception occurred
613            */
614            public com.liferay.portal.model.LayoutSetPrototype[] filterFindByC_A_PrevAndNext(
615                    long layoutSetPrototypeId, long companyId, boolean active,
616                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
617                    throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
618                            com.liferay.portal.kernel.exception.SystemException;
619    
620            /**
621            * Returns all the layout set prototypes.
622            *
623            * @return the layout set prototypes
624            * @throws SystemException if a system exception occurred
625            */
626            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll()
627                    throws com.liferay.portal.kernel.exception.SystemException;
628    
629            /**
630            * Returns a range of all the layout set prototypes.
631            *
632            * <p>
633            * 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.
634            * </p>
635            *
636            * @param start the lower bound of the range of layout set prototypes
637            * @param end the upper bound of the range of layout set prototypes (not inclusive)
638            * @return the range of layout set prototypes
639            * @throws SystemException if a system exception occurred
640            */
641            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll(
642                    int start, int end)
643                    throws com.liferay.portal.kernel.exception.SystemException;
644    
645            /**
646            * Returns an ordered range of all the layout set prototypes.
647            *
648            * <p>
649            * 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.
650            * </p>
651            *
652            * @param start the lower bound of the range of layout set prototypes
653            * @param end the upper bound of the range of layout set prototypes (not inclusive)
654            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
655            * @return the ordered range of layout set prototypes
656            * @throws SystemException if a system exception occurred
657            */
658            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll(
659                    int start, int end,
660                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
661                    throws com.liferay.portal.kernel.exception.SystemException;
662    
663            /**
664            * Removes all the layout set prototypes where uuid = &#63; from the database.
665            *
666            * @param uuid the uuid
667            * @throws SystemException if a system exception occurred
668            */
669            public void removeByUuid(java.lang.String uuid)
670                    throws com.liferay.portal.kernel.exception.SystemException;
671    
672            /**
673            * Removes all the layout set prototypes where companyId = &#63; from the database.
674            *
675            * @param companyId the company ID
676            * @throws SystemException if a system exception occurred
677            */
678            public void removeByCompanyId(long companyId)
679                    throws com.liferay.portal.kernel.exception.SystemException;
680    
681            /**
682            * Removes all the layout set prototypes where companyId = &#63; and active = &#63; from the database.
683            *
684            * @param companyId the company ID
685            * @param active the active
686            * @throws SystemException if a system exception occurred
687            */
688            public void removeByC_A(long companyId, boolean active)
689                    throws com.liferay.portal.kernel.exception.SystemException;
690    
691            /**
692            * Removes all the layout set prototypes from the database.
693            *
694            * @throws SystemException if a system exception occurred
695            */
696            public void removeAll()
697                    throws com.liferay.portal.kernel.exception.SystemException;
698    
699            /**
700            * Returns the number of layout set prototypes where uuid = &#63;.
701            *
702            * @param uuid the uuid
703            * @return the number of matching layout set prototypes
704            * @throws SystemException if a system exception occurred
705            */
706            public int countByUuid(java.lang.String uuid)
707                    throws com.liferay.portal.kernel.exception.SystemException;
708    
709            /**
710            * Returns the number of layout set prototypes that the user has permission to view where uuid = &#63;.
711            *
712            * @param uuid the uuid
713            * @return the number of matching layout set prototypes that the user has permission to view
714            * @throws SystemException if a system exception occurred
715            */
716            public int filterCountByUuid(java.lang.String uuid)
717                    throws com.liferay.portal.kernel.exception.SystemException;
718    
719            /**
720            * Returns the number of layout set prototypes where companyId = &#63;.
721            *
722            * @param companyId the company ID
723            * @return the number of matching layout set prototypes
724            * @throws SystemException if a system exception occurred
725            */
726            public int countByCompanyId(long companyId)
727                    throws com.liferay.portal.kernel.exception.SystemException;
728    
729            /**
730            * Returns the number of layout set prototypes that the user has permission to view where companyId = &#63;.
731            *
732            * @param companyId the company ID
733            * @return the number of matching layout set prototypes that the user has permission to view
734            * @throws SystemException if a system exception occurred
735            */
736            public int filterCountByCompanyId(long companyId)
737                    throws com.liferay.portal.kernel.exception.SystemException;
738    
739            /**
740            * Returns the number of layout set prototypes where companyId = &#63; and active = &#63;.
741            *
742            * @param companyId the company ID
743            * @param active the active
744            * @return the number of matching layout set prototypes
745            * @throws SystemException if a system exception occurred
746            */
747            public int countByC_A(long companyId, boolean active)
748                    throws com.liferay.portal.kernel.exception.SystemException;
749    
750            /**
751            * Returns the number of layout set prototypes that the user has permission to view where companyId = &#63; and active = &#63;.
752            *
753            * @param companyId the company ID
754            * @param active the active
755            * @return the number of matching layout set prototypes that the user has permission to view
756            * @throws SystemException if a system exception occurred
757            */
758            public int filterCountByC_A(long companyId, boolean active)
759                    throws com.liferay.portal.kernel.exception.SystemException;
760    
761            /**
762            * Returns the number of layout set prototypes.
763            *
764            * @return the number of layout set prototypes
765            * @throws SystemException if a system exception occurred
766            */
767            public int countAll()
768                    throws com.liferay.portal.kernel.exception.SystemException;
769    
770            public LayoutSetPrototype remove(LayoutSetPrototype layoutSetPrototype)
771                    throws SystemException;
772    }