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