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