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