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