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