001    /**
002     * Copyright (c) 2000-2012 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            * Returns all the layout prototypes where uuid = &#63;.
040            *
041            * @param uuid the uuid
042            * @return the matching layout prototypes
043            * @throws SystemException if a system exception occurred
044            */
045            public java.util.List<com.liferay.portal.model.LayoutPrototype> findByUuid(
046                    java.lang.String uuid)
047                    throws com.liferay.portal.kernel.exception.SystemException;
048    
049            /**
050            * Returns a range of all the layout prototypes where uuid = &#63;.
051            *
052            * <p>
053            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutPrototypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
054            * </p>
055            *
056            * @param uuid the uuid
057            * @param start the lower bound of the range of layout prototypes
058            * @param end the upper bound of the range of layout prototypes (not inclusive)
059            * @return the range of matching layout prototypes
060            * @throws SystemException if a system exception occurred
061            */
062            public java.util.List<com.liferay.portal.model.LayoutPrototype> findByUuid(
063                    java.lang.String uuid, int start, int end)
064                    throws com.liferay.portal.kernel.exception.SystemException;
065    
066            /**
067            * Returns an ordered range of all the layout prototypes where uuid = &#63;.
068            *
069            * <p>
070            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutPrototypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
071            * </p>
072            *
073            * @param uuid the uuid
074            * @param start the lower bound of the range of layout prototypes
075            * @param end the upper bound of the range of layout prototypes (not inclusive)
076            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
077            * @return the ordered range of matching layout prototypes
078            * @throws SystemException if a system exception occurred
079            */
080            public java.util.List<com.liferay.portal.model.LayoutPrototype> findByUuid(
081                    java.lang.String uuid, int start, int end,
082                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
083                    throws com.liferay.portal.kernel.exception.SystemException;
084    
085            /**
086            * Returns the first layout prototype in the ordered set where uuid = &#63;.
087            *
088            * @param uuid the uuid
089            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
090            * @return the first matching layout prototype
091            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a matching layout prototype could not be found
092            * @throws SystemException if a system exception occurred
093            */
094            public com.liferay.portal.model.LayoutPrototype findByUuid_First(
095                    java.lang.String uuid,
096                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
097                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
098                            com.liferay.portal.kernel.exception.SystemException;
099    
100            /**
101            * Returns the first layout prototype in the ordered set where uuid = &#63;.
102            *
103            * @param uuid the uuid
104            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
105            * @return the first matching layout prototype, or <code>null</code> if a matching layout prototype could not be found
106            * @throws SystemException if a system exception occurred
107            */
108            public com.liferay.portal.model.LayoutPrototype fetchByUuid_First(
109                    java.lang.String uuid,
110                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
111                    throws com.liferay.portal.kernel.exception.SystemException;
112    
113            /**
114            * Returns the last layout prototype in the ordered set where uuid = &#63;.
115            *
116            * @param uuid the uuid
117            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
118            * @return the last matching layout prototype
119            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a matching layout prototype could not be found
120            * @throws SystemException if a system exception occurred
121            */
122            public com.liferay.portal.model.LayoutPrototype findByUuid_Last(
123                    java.lang.String uuid,
124                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
125                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
126                            com.liferay.portal.kernel.exception.SystemException;
127    
128            /**
129            * Returns the last layout prototype in the ordered set where uuid = &#63;.
130            *
131            * @param uuid the uuid
132            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
133            * @return the last matching layout prototype, or <code>null</code> if a matching layout prototype could not be found
134            * @throws SystemException if a system exception occurred
135            */
136            public com.liferay.portal.model.LayoutPrototype fetchByUuid_Last(
137                    java.lang.String uuid,
138                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139                    throws com.liferay.portal.kernel.exception.SystemException;
140    
141            /**
142            * Returns the layout prototypes before and after the current layout prototype in the ordered set where uuid = &#63;.
143            *
144            * @param layoutPrototypeId the primary key of the current layout prototype
145            * @param uuid the uuid
146            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
147            * @return the previous, current, and next layout prototype
148            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found
149            * @throws SystemException if a system exception occurred
150            */
151            public com.liferay.portal.model.LayoutPrototype[] findByUuid_PrevAndNext(
152                    long layoutPrototypeId, java.lang.String uuid,
153                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
155                            com.liferay.portal.kernel.exception.SystemException;
156    
157            /**
158            * Returns all the layout prototypes that the user has permission to view where uuid = &#63;.
159            *
160            * @param uuid the uuid
161            * @return the matching layout prototypes that the user has permission to view
162            * @throws SystemException if a system exception occurred
163            */
164            public java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByUuid(
165                    java.lang.String uuid)
166                    throws com.liferay.portal.kernel.exception.SystemException;
167    
168            /**
169            * Returns a range of all the layout prototypes that the user has permission to view where uuid = &#63;.
170            *
171            * <p>
172            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutPrototypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
173            * </p>
174            *
175            * @param uuid the uuid
176            * @param start the lower bound of the range of layout prototypes
177            * @param end the upper bound of the range of layout prototypes (not inclusive)
178            * @return the range of matching layout prototypes that the user has permission to view
179            * @throws SystemException if a system exception occurred
180            */
181            public java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByUuid(
182                    java.lang.String uuid, int start, int end)
183                    throws com.liferay.portal.kernel.exception.SystemException;
184    
185            /**
186            * Returns an ordered range of all the layout prototypes that the user has permissions to view where uuid = &#63;.
187            *
188            * <p>
189            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutPrototypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
190            * </p>
191            *
192            * @param uuid the uuid
193            * @param start the lower bound of the range of layout prototypes
194            * @param end the upper bound of the range of layout prototypes (not inclusive)
195            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
196            * @return the ordered range of matching layout prototypes that the user has permission to view
197            * @throws SystemException if a system exception occurred
198            */
199            public java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByUuid(
200                    java.lang.String uuid, int start, int end,
201                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
202                    throws com.liferay.portal.kernel.exception.SystemException;
203    
204            /**
205            * 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;.
206            *
207            * @param layoutPrototypeId the primary key of the current layout prototype
208            * @param uuid the uuid
209            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
210            * @return the previous, current, and next layout prototype
211            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found
212            * @throws SystemException if a system exception occurred
213            */
214            public com.liferay.portal.model.LayoutPrototype[] filterFindByUuid_PrevAndNext(
215                    long layoutPrototypeId, java.lang.String uuid,
216                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
217                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
218                            com.liferay.portal.kernel.exception.SystemException;
219    
220            /**
221            * Removes all the layout prototypes where uuid = &#63; from the database.
222            *
223            * @param uuid the uuid
224            * @throws SystemException if a system exception occurred
225            */
226            public void removeByUuid(java.lang.String uuid)
227                    throws com.liferay.portal.kernel.exception.SystemException;
228    
229            /**
230            * Returns the number of layout prototypes where uuid = &#63;.
231            *
232            * @param uuid the uuid
233            * @return the number of matching layout prototypes
234            * @throws SystemException if a system exception occurred
235            */
236            public int countByUuid(java.lang.String uuid)
237                    throws com.liferay.portal.kernel.exception.SystemException;
238    
239            /**
240            * Returns the number of layout prototypes that the user has permission to view where uuid = &#63;.
241            *
242            * @param uuid the uuid
243            * @return the number of matching layout prototypes that the user has permission to view
244            * @throws SystemException if a system exception occurred
245            */
246            public int filterCountByUuid(java.lang.String uuid)
247                    throws com.liferay.portal.kernel.exception.SystemException;
248    
249            /**
250            * Returns all the layout prototypes where uuid = &#63; and companyId = &#63;.
251            *
252            * @param uuid the uuid
253            * @param companyId the company ID
254            * @return the matching layout prototypes
255            * @throws SystemException if a system exception occurred
256            */
257            public java.util.List<com.liferay.portal.model.LayoutPrototype> findByUuid_C(
258                    java.lang.String uuid, long companyId)
259                    throws com.liferay.portal.kernel.exception.SystemException;
260    
261            /**
262            * Returns a range of all the layout prototypes where uuid = &#63; and companyId = &#63;.
263            *
264            * <p>
265            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutPrototypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
266            * </p>
267            *
268            * @param uuid the uuid
269            * @param companyId the company ID
270            * @param start the lower bound of the range of layout prototypes
271            * @param end the upper bound of the range of layout prototypes (not inclusive)
272            * @return the range of matching layout prototypes
273            * @throws SystemException if a system exception occurred
274            */
275            public java.util.List<com.liferay.portal.model.LayoutPrototype> findByUuid_C(
276                    java.lang.String uuid, long companyId, int start, int end)
277                    throws com.liferay.portal.kernel.exception.SystemException;
278    
279            /**
280            * Returns an ordered range of all the layout prototypes where uuid = &#63; and companyId = &#63;.
281            *
282            * <p>
283            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutPrototypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
284            * </p>
285            *
286            * @param uuid the uuid
287            * @param companyId the company ID
288            * @param start the lower bound of the range of layout prototypes
289            * @param end the upper bound of the range of layout prototypes (not inclusive)
290            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
291            * @return the ordered range of matching layout prototypes
292            * @throws SystemException if a system exception occurred
293            */
294            public java.util.List<com.liferay.portal.model.LayoutPrototype> findByUuid_C(
295                    java.lang.String uuid, long companyId, int start, int end,
296                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
297                    throws com.liferay.portal.kernel.exception.SystemException;
298    
299            /**
300            * Returns the first layout prototype in the ordered set where uuid = &#63; and companyId = &#63;.
301            *
302            * @param uuid the uuid
303            * @param companyId the company ID
304            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
305            * @return the first matching layout prototype
306            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a matching layout prototype could not be found
307            * @throws SystemException if a system exception occurred
308            */
309            public com.liferay.portal.model.LayoutPrototype findByUuid_C_First(
310                    java.lang.String uuid, long companyId,
311                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
312                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
313                            com.liferay.portal.kernel.exception.SystemException;
314    
315            /**
316            * Returns the first layout prototype in the ordered set where uuid = &#63; and companyId = &#63;.
317            *
318            * @param uuid the uuid
319            * @param companyId the company ID
320            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
321            * @return the first matching layout prototype, or <code>null</code> if a matching layout prototype could not be found
322            * @throws SystemException if a system exception occurred
323            */
324            public com.liferay.portal.model.LayoutPrototype fetchByUuid_C_First(
325                    java.lang.String uuid, long companyId,
326                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
327                    throws com.liferay.portal.kernel.exception.SystemException;
328    
329            /**
330            * Returns the last layout prototype in the ordered set where uuid = &#63; and companyId = &#63;.
331            *
332            * @param uuid the uuid
333            * @param companyId the company ID
334            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
335            * @return the last matching layout prototype
336            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a matching layout prototype could not be found
337            * @throws SystemException if a system exception occurred
338            */
339            public com.liferay.portal.model.LayoutPrototype findByUuid_C_Last(
340                    java.lang.String uuid, long companyId,
341                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
342                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
343                            com.liferay.portal.kernel.exception.SystemException;
344    
345            /**
346            * Returns the last layout prototype in the ordered set where uuid = &#63; and companyId = &#63;.
347            *
348            * @param uuid the uuid
349            * @param companyId the company ID
350            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
351            * @return the last matching layout prototype, or <code>null</code> if a matching layout prototype could not be found
352            * @throws SystemException if a system exception occurred
353            */
354            public com.liferay.portal.model.LayoutPrototype fetchByUuid_C_Last(
355                    java.lang.String uuid, long companyId,
356                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
357                    throws com.liferay.portal.kernel.exception.SystemException;
358    
359            /**
360            * Returns the layout prototypes before and after the current layout prototype in the ordered set where uuid = &#63; and companyId = &#63;.
361            *
362            * @param layoutPrototypeId the primary key of the current layout prototype
363            * @param uuid the uuid
364            * @param companyId the company ID
365            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
366            * @return the previous, current, and next layout prototype
367            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found
368            * @throws SystemException if a system exception occurred
369            */
370            public com.liferay.portal.model.LayoutPrototype[] findByUuid_C_PrevAndNext(
371                    long layoutPrototypeId, java.lang.String uuid, 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 all the layout prototypes that the user has permission to view where uuid = &#63; and companyId = &#63;.
378            *
379            * @param uuid the uuid
380            * @param companyId the company ID
381            * @return the matching layout prototypes that the user has permission to view
382            * @throws SystemException if a system exception occurred
383            */
384            public java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByUuid_C(
385                    java.lang.String uuid, long companyId)
386                    throws com.liferay.portal.kernel.exception.SystemException;
387    
388            /**
389            * Returns a range of all the layout prototypes that the user has permission to view where uuid = &#63; and companyId = &#63;.
390            *
391            * <p>
392            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutPrototypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
393            * </p>
394            *
395            * @param uuid the uuid
396            * @param companyId the company ID
397            * @param start the lower bound of the range of layout prototypes
398            * @param end the upper bound of the range of layout prototypes (not inclusive)
399            * @return the range of matching layout prototypes that the user has permission to view
400            * @throws SystemException if a system exception occurred
401            */
402            public java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByUuid_C(
403                    java.lang.String uuid, long companyId, int start, int end)
404                    throws com.liferay.portal.kernel.exception.SystemException;
405    
406            /**
407            * Returns an ordered range of all the layout prototypes that the user has permissions to view where uuid = &#63; and companyId = &#63;.
408            *
409            * <p>
410            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutPrototypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
411            * </p>
412            *
413            * @param uuid the uuid
414            * @param companyId the company ID
415            * @param start the lower bound of the range of layout prototypes
416            * @param end the upper bound of the range of layout prototypes (not inclusive)
417            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
418            * @return the ordered range of matching layout prototypes that the user has permission to view
419            * @throws SystemException if a system exception occurred
420            */
421            public java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByUuid_C(
422                    java.lang.String uuid, long companyId, int start, int end,
423                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
424                    throws com.liferay.portal.kernel.exception.SystemException;
425    
426            /**
427            * 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; and companyId = &#63;.
428            *
429            * @param layoutPrototypeId the primary key of the current layout prototype
430            * @param uuid the uuid
431            * @param companyId the company ID
432            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
433            * @return the previous, current, and next layout prototype
434            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found
435            * @throws SystemException if a system exception occurred
436            */
437            public com.liferay.portal.model.LayoutPrototype[] filterFindByUuid_C_PrevAndNext(
438                    long layoutPrototypeId, java.lang.String uuid, long companyId,
439                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
440                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
441                            com.liferay.portal.kernel.exception.SystemException;
442    
443            /**
444            * Removes all the layout prototypes where uuid = &#63; and companyId = &#63; from the database.
445            *
446            * @param uuid the uuid
447            * @param companyId the company ID
448            * @throws SystemException if a system exception occurred
449            */
450            public void removeByUuid_C(java.lang.String uuid, long companyId)
451                    throws com.liferay.portal.kernel.exception.SystemException;
452    
453            /**
454            * Returns the number of layout prototypes where uuid = &#63; and companyId = &#63;.
455            *
456            * @param uuid the uuid
457            * @param companyId the company ID
458            * @return the number of matching layout prototypes
459            * @throws SystemException if a system exception occurred
460            */
461            public int countByUuid_C(java.lang.String uuid, long companyId)
462                    throws com.liferay.portal.kernel.exception.SystemException;
463    
464            /**
465            * Returns the number of layout prototypes that the user has permission to view where uuid = &#63; and companyId = &#63;.
466            *
467            * @param uuid the uuid
468            * @param companyId the company ID
469            * @return the number of matching layout prototypes that the user has permission to view
470            * @throws SystemException if a system exception occurred
471            */
472            public int filterCountByUuid_C(java.lang.String uuid, long companyId)
473                    throws com.liferay.portal.kernel.exception.SystemException;
474    
475            /**
476            * Returns all the layout prototypes where companyId = &#63;.
477            *
478            * @param companyId the company ID
479            * @return the matching layout prototypes
480            * @throws SystemException if a system exception occurred
481            */
482            public java.util.List<com.liferay.portal.model.LayoutPrototype> findByCompanyId(
483                    long companyId)
484                    throws com.liferay.portal.kernel.exception.SystemException;
485    
486            /**
487            * Returns a range of all the layout prototypes where companyId = &#63;.
488            *
489            * <p>
490            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutPrototypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
491            * </p>
492            *
493            * @param companyId the company ID
494            * @param start the lower bound of the range of layout prototypes
495            * @param end the upper bound of the range of layout prototypes (not inclusive)
496            * @return the range of matching layout prototypes
497            * @throws SystemException if a system exception occurred
498            */
499            public java.util.List<com.liferay.portal.model.LayoutPrototype> findByCompanyId(
500                    long companyId, int start, int end)
501                    throws com.liferay.portal.kernel.exception.SystemException;
502    
503            /**
504            * Returns an ordered range of all the layout prototypes where companyId = &#63;.
505            *
506            * <p>
507            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutPrototypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
508            * </p>
509            *
510            * @param companyId the company ID
511            * @param start the lower bound of the range of layout prototypes
512            * @param end the upper bound of the range of layout prototypes (not inclusive)
513            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
514            * @return the ordered range of matching layout prototypes
515            * @throws SystemException if a system exception occurred
516            */
517            public java.util.List<com.liferay.portal.model.LayoutPrototype> findByCompanyId(
518                    long companyId, int start, int end,
519                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
520                    throws com.liferay.portal.kernel.exception.SystemException;
521    
522            /**
523            * Returns the first layout prototype in the ordered set where companyId = &#63;.
524            *
525            * @param companyId the company ID
526            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
527            * @return the first matching layout prototype
528            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a matching layout prototype could not be found
529            * @throws SystemException if a system exception occurred
530            */
531            public com.liferay.portal.model.LayoutPrototype findByCompanyId_First(
532                    long companyId,
533                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
534                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
535                            com.liferay.portal.kernel.exception.SystemException;
536    
537            /**
538            * Returns the first layout prototype in the ordered set where companyId = &#63;.
539            *
540            * @param companyId the company ID
541            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
542            * @return the first matching layout prototype, or <code>null</code> if a matching layout prototype could not be found
543            * @throws SystemException if a system exception occurred
544            */
545            public com.liferay.portal.model.LayoutPrototype fetchByCompanyId_First(
546                    long companyId,
547                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
548                    throws com.liferay.portal.kernel.exception.SystemException;
549    
550            /**
551            * Returns the last layout prototype in the ordered set where companyId = &#63;.
552            *
553            * @param companyId the company ID
554            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
555            * @return the last matching layout prototype
556            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a matching layout prototype could not be found
557            * @throws SystemException if a system exception occurred
558            */
559            public com.liferay.portal.model.LayoutPrototype findByCompanyId_Last(
560                    long companyId,
561                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
562                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
563                            com.liferay.portal.kernel.exception.SystemException;
564    
565            /**
566            * Returns the last layout prototype in the ordered set where companyId = &#63;.
567            *
568            * @param companyId the company ID
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 fetchByCompanyId_Last(
574                    long companyId,
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;.
580            *
581            * @param layoutPrototypeId the primary key of the current layout prototype
582            * @param companyId the company ID
583            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
584            * @return the previous, current, and next layout prototype
585            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found
586            * @throws SystemException if a system exception occurred
587            */
588            public com.liferay.portal.model.LayoutPrototype[] findByCompanyId_PrevAndNext(
589                    long layoutPrototypeId, long companyId,
590                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
591                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
592                            com.liferay.portal.kernel.exception.SystemException;
593    
594            /**
595            * Returns all the layout prototypes that the user has permission to view where companyId = &#63;.
596            *
597            * @param companyId the company ID
598            * @return the matching layout prototypes that the user has permission to view
599            * @throws SystemException if a system exception occurred
600            */
601            public java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByCompanyId(
602                    long companyId)
603                    throws com.liferay.portal.kernel.exception.SystemException;
604    
605            /**
606            * Returns a range of all the layout prototypes that the user has permission to view where companyId = &#63;.
607            *
608            * <p>
609            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutPrototypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
610            * </p>
611            *
612            * @param companyId the company ID
613            * @param start the lower bound of the range of layout prototypes
614            * @param end the upper bound of the range of layout prototypes (not inclusive)
615            * @return the range of matching layout prototypes that the user has permission to view
616            * @throws SystemException if a system exception occurred
617            */
618            public java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByCompanyId(
619                    long companyId, int start, int end)
620                    throws com.liferay.portal.kernel.exception.SystemException;
621    
622            /**
623            * Returns an ordered range of all the layout prototypes that the user has permissions to view where companyId = &#63;.
624            *
625            * <p>
626            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutPrototypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
627            * </p>
628            *
629            * @param companyId the company ID
630            * @param start the lower bound of the range of layout prototypes
631            * @param end the upper bound of the range of layout prototypes (not inclusive)
632            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
633            * @return the ordered range of matching layout prototypes that the user has permission to view
634            * @throws SystemException if a system exception occurred
635            */
636            public java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByCompanyId(
637                    long companyId, int start, int end,
638                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
639                    throws com.liferay.portal.kernel.exception.SystemException;
640    
641            /**
642            * 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;.
643            *
644            * @param layoutPrototypeId the primary key of the current layout prototype
645            * @param companyId the company ID
646            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
647            * @return the previous, current, and next layout prototype
648            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found
649            * @throws SystemException if a system exception occurred
650            */
651            public com.liferay.portal.model.LayoutPrototype[] filterFindByCompanyId_PrevAndNext(
652                    long layoutPrototypeId, long companyId,
653                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
654                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
655                            com.liferay.portal.kernel.exception.SystemException;
656    
657            /**
658            * Removes all the layout prototypes where companyId = &#63; from the database.
659            *
660            * @param companyId the company ID
661            * @throws SystemException if a system exception occurred
662            */
663            public void removeByCompanyId(long companyId)
664                    throws com.liferay.portal.kernel.exception.SystemException;
665    
666            /**
667            * Returns the number of layout prototypes where companyId = &#63;.
668            *
669            * @param companyId the company ID
670            * @return the number of matching layout prototypes
671            * @throws SystemException if a system exception occurred
672            */
673            public int countByCompanyId(long companyId)
674                    throws com.liferay.portal.kernel.exception.SystemException;
675    
676            /**
677            * Returns the number of layout prototypes that the user has permission to view where companyId = &#63;.
678            *
679            * @param companyId the company ID
680            * @return the number of matching layout prototypes that the user has permission to view
681            * @throws SystemException if a system exception occurred
682            */
683            public int filterCountByCompanyId(long companyId)
684                    throws com.liferay.portal.kernel.exception.SystemException;
685    
686            /**
687            * Returns all the layout prototypes where companyId = &#63; and active = &#63;.
688            *
689            * @param companyId the company ID
690            * @param active the active
691            * @return the matching layout prototypes
692            * @throws SystemException if a system exception occurred
693            */
694            public java.util.List<com.liferay.portal.model.LayoutPrototype> findByC_A(
695                    long companyId, boolean active)
696                    throws com.liferay.portal.kernel.exception.SystemException;
697    
698            /**
699            * Returns a range of all the layout prototypes where companyId = &#63; and active = &#63;.
700            *
701            * <p>
702            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutPrototypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
703            * </p>
704            *
705            * @param companyId the company ID
706            * @param active the active
707            * @param start the lower bound of the range of layout prototypes
708            * @param end the upper bound of the range of layout prototypes (not inclusive)
709            * @return the range of matching layout prototypes
710            * @throws SystemException if a system exception occurred
711            */
712            public java.util.List<com.liferay.portal.model.LayoutPrototype> findByC_A(
713                    long companyId, boolean active, int start, int end)
714                    throws com.liferay.portal.kernel.exception.SystemException;
715    
716            /**
717            * Returns an ordered range of all the layout prototypes where companyId = &#63; and active = &#63;.
718            *
719            * <p>
720            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutPrototypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
721            * </p>
722            *
723            * @param companyId the company ID
724            * @param active the active
725            * @param start the lower bound of the range of layout prototypes
726            * @param end the upper bound of the range of layout prototypes (not inclusive)
727            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
728            * @return the ordered range of matching layout prototypes
729            * @throws SystemException if a system exception occurred
730            */
731            public java.util.List<com.liferay.portal.model.LayoutPrototype> findByC_A(
732                    long companyId, boolean active, int start, int end,
733                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
734                    throws com.liferay.portal.kernel.exception.SystemException;
735    
736            /**
737            * Returns the first layout prototype in the ordered set where companyId = &#63; and active = &#63;.
738            *
739            * @param companyId the company ID
740            * @param active the active
741            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
742            * @return the first matching layout prototype
743            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a matching layout prototype could not be found
744            * @throws SystemException if a system exception occurred
745            */
746            public com.liferay.portal.model.LayoutPrototype findByC_A_First(
747                    long companyId, boolean active,
748                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
749                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
750                            com.liferay.portal.kernel.exception.SystemException;
751    
752            /**
753            * Returns the first layout prototype in the ordered set where companyId = &#63; and active = &#63;.
754            *
755            * @param companyId the company ID
756            * @param active the active
757            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
758            * @return the first matching layout prototype, or <code>null</code> if a matching layout prototype could not be found
759            * @throws SystemException if a system exception occurred
760            */
761            public com.liferay.portal.model.LayoutPrototype fetchByC_A_First(
762                    long companyId, boolean active,
763                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
764                    throws com.liferay.portal.kernel.exception.SystemException;
765    
766            /**
767            * Returns the last layout prototype in the ordered set where companyId = &#63; and active = &#63;.
768            *
769            * @param companyId the company ID
770            * @param active the active
771            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
772            * @return the last matching layout prototype
773            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a matching layout prototype could not be found
774            * @throws SystemException if a system exception occurred
775            */
776            public com.liferay.portal.model.LayoutPrototype findByC_A_Last(
777                    long companyId, boolean active,
778                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
779                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
780                            com.liferay.portal.kernel.exception.SystemException;
781    
782            /**
783            * Returns the last layout prototype in the ordered set where companyId = &#63; and active = &#63;.
784            *
785            * @param companyId the company ID
786            * @param active the active
787            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
788            * @return the last matching layout prototype, or <code>null</code> if a matching layout prototype could not be found
789            * @throws SystemException if a system exception occurred
790            */
791            public com.liferay.portal.model.LayoutPrototype fetchByC_A_Last(
792                    long companyId, boolean active,
793                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
794                    throws com.liferay.portal.kernel.exception.SystemException;
795    
796            /**
797            * Returns the layout prototypes before and after the current layout prototype in the ordered set where companyId = &#63; and active = &#63;.
798            *
799            * @param layoutPrototypeId the primary key of the current layout prototype
800            * @param companyId the company ID
801            * @param active the active
802            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
803            * @return the previous, current, and next layout prototype
804            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found
805            * @throws SystemException if a system exception occurred
806            */
807            public com.liferay.portal.model.LayoutPrototype[] findByC_A_PrevAndNext(
808                    long layoutPrototypeId, long companyId, boolean active,
809                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
810                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
811                            com.liferay.portal.kernel.exception.SystemException;
812    
813            /**
814            * Returns all the layout prototypes that the user has permission to view where companyId = &#63; and active = &#63;.
815            *
816            * @param companyId the company ID
817            * @param active the active
818            * @return the matching layout prototypes that the user has permission to view
819            * @throws SystemException if a system exception occurred
820            */
821            public java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByC_A(
822                    long companyId, boolean active)
823                    throws com.liferay.portal.kernel.exception.SystemException;
824    
825            /**
826            * Returns a range of all the layout prototypes that the user has permission to view where companyId = &#63; and active = &#63;.
827            *
828            * <p>
829            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutPrototypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
830            * </p>
831            *
832            * @param companyId the company ID
833            * @param active the active
834            * @param start the lower bound of the range of layout prototypes
835            * @param end the upper bound of the range of layout prototypes (not inclusive)
836            * @return the range of matching layout prototypes that the user has permission to view
837            * @throws SystemException if a system exception occurred
838            */
839            public java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByC_A(
840                    long companyId, boolean active, int start, int end)
841                    throws com.liferay.portal.kernel.exception.SystemException;
842    
843            /**
844            * Returns an ordered range of all the layout prototypes that the user has permissions to view where companyId = &#63; and active = &#63;.
845            *
846            * <p>
847            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutPrototypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
848            * </p>
849            *
850            * @param companyId the company ID
851            * @param active the active
852            * @param start the lower bound of the range of layout prototypes
853            * @param end the upper bound of the range of layout prototypes (not inclusive)
854            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
855            * @return the ordered range of matching layout prototypes that the user has permission to view
856            * @throws SystemException if a system exception occurred
857            */
858            public java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByC_A(
859                    long companyId, boolean active, int start, int end,
860                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
861                    throws com.liferay.portal.kernel.exception.SystemException;
862    
863            /**
864            * 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;.
865            *
866            * @param layoutPrototypeId the primary key of the current layout prototype
867            * @param companyId the company ID
868            * @param active the active
869            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
870            * @return the previous, current, and next layout prototype
871            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found
872            * @throws SystemException if a system exception occurred
873            */
874            public com.liferay.portal.model.LayoutPrototype[] filterFindByC_A_PrevAndNext(
875                    long layoutPrototypeId, long companyId, boolean active,
876                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
877                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
878                            com.liferay.portal.kernel.exception.SystemException;
879    
880            /**
881            * Removes all the layout prototypes where companyId = &#63; and active = &#63; from the database.
882            *
883            * @param companyId the company ID
884            * @param active the active
885            * @throws SystemException if a system exception occurred
886            */
887            public void removeByC_A(long companyId, boolean active)
888                    throws com.liferay.portal.kernel.exception.SystemException;
889    
890            /**
891            * Returns the number of layout prototypes where companyId = &#63; and active = &#63;.
892            *
893            * @param companyId the company ID
894            * @param active the active
895            * @return the number of matching layout prototypes
896            * @throws SystemException if a system exception occurred
897            */
898            public int countByC_A(long companyId, boolean active)
899                    throws com.liferay.portal.kernel.exception.SystemException;
900    
901            /**
902            * Returns the number of layout prototypes that the user has permission to view where companyId = &#63; and active = &#63;.
903            *
904            * @param companyId the company ID
905            * @param active the active
906            * @return the number of matching layout prototypes that the user has permission to view
907            * @throws SystemException if a system exception occurred
908            */
909            public int filterCountByC_A(long companyId, boolean active)
910                    throws com.liferay.portal.kernel.exception.SystemException;
911    
912            /**
913            * Caches the layout prototype in the entity cache if it is enabled.
914            *
915            * @param layoutPrototype the layout prototype
916            */
917            public void cacheResult(
918                    com.liferay.portal.model.LayoutPrototype layoutPrototype);
919    
920            /**
921            * Caches the layout prototypes in the entity cache if it is enabled.
922            *
923            * @param layoutPrototypes the layout prototypes
924            */
925            public void cacheResult(
926                    java.util.List<com.liferay.portal.model.LayoutPrototype> layoutPrototypes);
927    
928            /**
929            * Creates a new layout prototype with the primary key. Does not add the layout prototype to the database.
930            *
931            * @param layoutPrototypeId the primary key for the new layout prototype
932            * @return the new layout prototype
933            */
934            public com.liferay.portal.model.LayoutPrototype create(
935                    long layoutPrototypeId);
936    
937            /**
938            * Removes the layout prototype with the primary key from the database. Also notifies the appropriate model listeners.
939            *
940            * @param layoutPrototypeId the primary key of the layout prototype
941            * @return the layout prototype that was removed
942            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found
943            * @throws SystemException if a system exception occurred
944            */
945            public com.liferay.portal.model.LayoutPrototype remove(
946                    long layoutPrototypeId)
947                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
948                            com.liferay.portal.kernel.exception.SystemException;
949    
950            public com.liferay.portal.model.LayoutPrototype updateImpl(
951                    com.liferay.portal.model.LayoutPrototype layoutPrototype)
952                    throws com.liferay.portal.kernel.exception.SystemException;
953    
954            /**
955            * Returns the layout prototype with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutPrototypeException} if it could not be found.
956            *
957            * @param layoutPrototypeId the primary key of the layout prototype
958            * @return the layout prototype
959            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found
960            * @throws SystemException if a system exception occurred
961            */
962            public com.liferay.portal.model.LayoutPrototype findByPrimaryKey(
963                    long layoutPrototypeId)
964                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
965                            com.liferay.portal.kernel.exception.SystemException;
966    
967            /**
968            * Returns the layout prototype with the primary key or returns <code>null</code> if it could not be found.
969            *
970            * @param layoutPrototypeId the primary key of the layout prototype
971            * @return the layout prototype, or <code>null</code> if a layout prototype with the primary key could not be found
972            * @throws SystemException if a system exception occurred
973            */
974            public com.liferay.portal.model.LayoutPrototype fetchByPrimaryKey(
975                    long layoutPrototypeId)
976                    throws com.liferay.portal.kernel.exception.SystemException;
977    
978            /**
979            * Returns all the layout prototypes.
980            *
981            * @return the layout prototypes
982            * @throws SystemException if a system exception occurred
983            */
984            public java.util.List<com.liferay.portal.model.LayoutPrototype> findAll()
985                    throws com.liferay.portal.kernel.exception.SystemException;
986    
987            /**
988            * Returns a range of all the layout prototypes.
989            *
990            * <p>
991            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutPrototypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
992            * </p>
993            *
994            * @param start the lower bound of the range of layout prototypes
995            * @param end the upper bound of the range of layout prototypes (not inclusive)
996            * @return the range of layout prototypes
997            * @throws SystemException if a system exception occurred
998            */
999            public java.util.List<com.liferay.portal.model.LayoutPrototype> findAll(
1000                    int start, int end)
1001                    throws com.liferay.portal.kernel.exception.SystemException;
1002    
1003            /**
1004            * Returns an ordered range of all the layout prototypes.
1005            *
1006            * <p>
1007            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutPrototypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1008            * </p>
1009            *
1010            * @param start the lower bound of the range of layout prototypes
1011            * @param end the upper bound of the range of layout prototypes (not inclusive)
1012            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1013            * @return the ordered range of layout prototypes
1014            * @throws SystemException if a system exception occurred
1015            */
1016            public java.util.List<com.liferay.portal.model.LayoutPrototype> findAll(
1017                    int start, int end,
1018                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1019                    throws com.liferay.portal.kernel.exception.SystemException;
1020    
1021            /**
1022            * Removes all the layout prototypes from the database.
1023            *
1024            * @throws SystemException if a system exception occurred
1025            */
1026            public void removeAll()
1027                    throws com.liferay.portal.kernel.exception.SystemException;
1028    
1029            /**
1030            * Returns the number of layout prototypes.
1031            *
1032            * @return the number of layout prototypes
1033            * @throws SystemException if a system exception occurred
1034            */
1035            public int countAll()
1036                    throws com.liferay.portal.kernel.exception.SystemException;
1037    }