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