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