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.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.kernel.util.ReferenceRegistry;
022    import com.liferay.portal.model.LayoutPrototype;
023    import com.liferay.portal.service.ServiceContext;
024    
025    import java.util.List;
026    
027    /**
028     * The persistence utility for the layout prototype service. This utility wraps {@link LayoutPrototypePersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
029     *
030     * <p>
031     * Caching information and settings can be found in <code>portal.properties</code>
032     * </p>
033     *
034     * @author Brian Wing Shun Chan
035     * @see LayoutPrototypePersistence
036     * @see LayoutPrototypePersistenceImpl
037     * @generated
038     */
039    public class LayoutPrototypeUtil {
040            /*
041             * NOTE FOR DEVELOPERS:
042             *
043             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
044             */
045    
046            /**
047             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
048             */
049            public static void clearCache() {
050                    getPersistence().clearCache();
051            }
052    
053            /**
054             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
055             */
056            public static void clearCache(LayoutPrototype layoutPrototype) {
057                    getPersistence().clearCache(layoutPrototype);
058            }
059    
060            /**
061             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
062             */
063            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
064                    throws SystemException {
065                    return getPersistence().countWithDynamicQuery(dynamicQuery);
066            }
067    
068            /**
069             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
070             */
071            public static List<LayoutPrototype> findWithDynamicQuery(
072                    DynamicQuery dynamicQuery) throws SystemException {
073                    return getPersistence().findWithDynamicQuery(dynamicQuery);
074            }
075    
076            /**
077             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
078             */
079            public static List<LayoutPrototype> findWithDynamicQuery(
080                    DynamicQuery dynamicQuery, int start, int end)
081                    throws SystemException {
082                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
083            }
084    
085            /**
086             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
087             */
088            public static List<LayoutPrototype> findWithDynamicQuery(
089                    DynamicQuery dynamicQuery, int start, int end,
090                    OrderByComparator orderByComparator) throws SystemException {
091                    return getPersistence()
092                                       .findWithDynamicQuery(dynamicQuery, start, end,
093                            orderByComparator);
094            }
095    
096            /**
097             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
098             */
099            public static LayoutPrototype update(LayoutPrototype layoutPrototype)
100                    throws SystemException {
101                    return getPersistence().update(layoutPrototype);
102            }
103    
104            /**
105             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
106             */
107            public static LayoutPrototype update(LayoutPrototype layoutPrototype,
108                    ServiceContext serviceContext) throws SystemException {
109                    return getPersistence().update(layoutPrototype, serviceContext);
110            }
111    
112            /**
113            * Caches the layout prototype in the entity cache if it is enabled.
114            *
115            * @param layoutPrototype the layout prototype
116            */
117            public static void cacheResult(
118                    com.liferay.portal.model.LayoutPrototype layoutPrototype) {
119                    getPersistence().cacheResult(layoutPrototype);
120            }
121    
122            /**
123            * Caches the layout prototypes in the entity cache if it is enabled.
124            *
125            * @param layoutPrototypes the layout prototypes
126            */
127            public static void cacheResult(
128                    java.util.List<com.liferay.portal.model.LayoutPrototype> layoutPrototypes) {
129                    getPersistence().cacheResult(layoutPrototypes);
130            }
131    
132            /**
133            * Creates a new layout prototype with the primary key. Does not add the layout prototype to the database.
134            *
135            * @param layoutPrototypeId the primary key for the new layout prototype
136            * @return the new layout prototype
137            */
138            public static com.liferay.portal.model.LayoutPrototype create(
139                    long layoutPrototypeId) {
140                    return getPersistence().create(layoutPrototypeId);
141            }
142    
143            /**
144            * Removes the layout prototype with the primary key from the database. Also notifies the appropriate model listeners.
145            *
146            * @param layoutPrototypeId the primary key of the layout prototype
147            * @return the layout prototype that was removed
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 static com.liferay.portal.model.LayoutPrototype remove(
152                    long layoutPrototypeId)
153                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
154                            com.liferay.portal.kernel.exception.SystemException {
155                    return getPersistence().remove(layoutPrototypeId);
156            }
157    
158            public static com.liferay.portal.model.LayoutPrototype updateImpl(
159                    com.liferay.portal.model.LayoutPrototype layoutPrototype)
160                    throws com.liferay.portal.kernel.exception.SystemException {
161                    return getPersistence().updateImpl(layoutPrototype);
162            }
163    
164            /**
165            * Returns the layout prototype with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutPrototypeException} if it could not be found.
166            *
167            * @param layoutPrototypeId the primary key of the layout prototype
168            * @return the layout prototype
169            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found
170            * @throws SystemException if a system exception occurred
171            */
172            public static com.liferay.portal.model.LayoutPrototype findByPrimaryKey(
173                    long layoutPrototypeId)
174                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
175                            com.liferay.portal.kernel.exception.SystemException {
176                    return getPersistence().findByPrimaryKey(layoutPrototypeId);
177            }
178    
179            /**
180            * Returns the layout prototype with the primary key or returns <code>null</code> if it could not be found.
181            *
182            * @param layoutPrototypeId the primary key of the layout prototype
183            * @return the layout prototype, or <code>null</code> if a layout prototype with the primary key could not be found
184            * @throws SystemException if a system exception occurred
185            */
186            public static com.liferay.portal.model.LayoutPrototype fetchByPrimaryKey(
187                    long layoutPrototypeId)
188                    throws com.liferay.portal.kernel.exception.SystemException {
189                    return getPersistence().fetchByPrimaryKey(layoutPrototypeId);
190            }
191    
192            /**
193            * Returns all the layout prototypes where uuid = &#63;.
194            *
195            * @param uuid the uuid
196            * @return the matching layout prototypes
197            * @throws SystemException if a system exception occurred
198            */
199            public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByUuid(
200                    java.lang.String uuid)
201                    throws com.liferay.portal.kernel.exception.SystemException {
202                    return getPersistence().findByUuid(uuid);
203            }
204    
205            /**
206            * Returns a range of all the layout prototypes where uuid = &#63;.
207            *
208            * <p>
209            * 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.
210            * </p>
211            *
212            * @param uuid the uuid
213            * @param start the lower bound of the range of layout prototypes
214            * @param end the upper bound of the range of layout prototypes (not inclusive)
215            * @return the range of matching layout prototypes
216            * @throws SystemException if a system exception occurred
217            */
218            public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByUuid(
219                    java.lang.String uuid, int start, int end)
220                    throws com.liferay.portal.kernel.exception.SystemException {
221                    return getPersistence().findByUuid(uuid, start, end);
222            }
223    
224            /**
225            * Returns an ordered range of all the layout prototypes where uuid = &#63;.
226            *
227            * <p>
228            * 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.
229            * </p>
230            *
231            * @param uuid the uuid
232            * @param start the lower bound of the range of layout prototypes
233            * @param end the upper bound of the range of layout prototypes (not inclusive)
234            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
235            * @return the ordered range of matching layout prototypes
236            * @throws SystemException if a system exception occurred
237            */
238            public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByUuid(
239                    java.lang.String uuid, int start, int end,
240                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
241                    throws com.liferay.portal.kernel.exception.SystemException {
242                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
243            }
244    
245            /**
246            * Returns the first layout prototype in the ordered set where uuid = &#63;.
247            *
248            * @param uuid the uuid
249            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
250            * @return the first matching layout prototype
251            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a matching layout prototype could not be found
252            * @throws SystemException if a system exception occurred
253            */
254            public static com.liferay.portal.model.LayoutPrototype findByUuid_First(
255                    java.lang.String uuid,
256                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
257                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
258                            com.liferay.portal.kernel.exception.SystemException {
259                    return getPersistence().findByUuid_First(uuid, orderByComparator);
260            }
261    
262            /**
263            * Returns the first layout prototype in the ordered set where uuid = &#63;.
264            *
265            * @param uuid the uuid
266            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
267            * @return the first matching layout prototype, or <code>null</code> if a matching layout prototype could not be found
268            * @throws SystemException if a system exception occurred
269            */
270            public static com.liferay.portal.model.LayoutPrototype fetchByUuid_First(
271                    java.lang.String uuid,
272                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
273                    throws com.liferay.portal.kernel.exception.SystemException {
274                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
275            }
276    
277            /**
278            * Returns the last layout prototype in the ordered set where uuid = &#63;.
279            *
280            * @param uuid the uuid
281            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
282            * @return the last matching layout prototype
283            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a matching layout prototype could not be found
284            * @throws SystemException if a system exception occurred
285            */
286            public static com.liferay.portal.model.LayoutPrototype findByUuid_Last(
287                    java.lang.String uuid,
288                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
289                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
290                            com.liferay.portal.kernel.exception.SystemException {
291                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
292            }
293    
294            /**
295            * Returns the last layout prototype in the ordered set where uuid = &#63;.
296            *
297            * @param uuid the uuid
298            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
299            * @return the last matching layout prototype, or <code>null</code> if a matching layout prototype could not be found
300            * @throws SystemException if a system exception occurred
301            */
302            public static com.liferay.portal.model.LayoutPrototype fetchByUuid_Last(
303                    java.lang.String uuid,
304                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
305                    throws com.liferay.portal.kernel.exception.SystemException {
306                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
307            }
308    
309            /**
310            * Returns the layout prototypes before and after the current layout prototype in the ordered set where uuid = &#63;.
311            *
312            * @param layoutPrototypeId the primary key of the current layout prototype
313            * @param uuid the uuid
314            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
315            * @return the previous, current, and next layout prototype
316            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found
317            * @throws SystemException if a system exception occurred
318            */
319            public static com.liferay.portal.model.LayoutPrototype[] findByUuid_PrevAndNext(
320                    long layoutPrototypeId, java.lang.String uuid,
321                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
322                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
323                            com.liferay.portal.kernel.exception.SystemException {
324                    return getPersistence()
325                                       .findByUuid_PrevAndNext(layoutPrototypeId, uuid,
326                            orderByComparator);
327            }
328    
329            /**
330            * Returns all the layout prototypes that the user has permission to view where uuid = &#63;.
331            *
332            * @param uuid the uuid
333            * @return the matching layout prototypes that the user has permission to view
334            * @throws SystemException if a system exception occurred
335            */
336            public static java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByUuid(
337                    java.lang.String uuid)
338                    throws com.liferay.portal.kernel.exception.SystemException {
339                    return getPersistence().filterFindByUuid(uuid);
340            }
341    
342            /**
343            * Returns a range of all the layout prototypes that the user has permission to view where uuid = &#63;.
344            *
345            * <p>
346            * 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.
347            * </p>
348            *
349            * @param uuid the uuid
350            * @param start the lower bound of the range of layout prototypes
351            * @param end the upper bound of the range of layout prototypes (not inclusive)
352            * @return the range of matching layout prototypes that the user has permission to view
353            * @throws SystemException if a system exception occurred
354            */
355            public static java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByUuid(
356                    java.lang.String uuid, int start, int end)
357                    throws com.liferay.portal.kernel.exception.SystemException {
358                    return getPersistence().filterFindByUuid(uuid, start, end);
359            }
360    
361            /**
362            * Returns an ordered range of all the layout prototypes that the user has permissions to view where uuid = &#63;.
363            *
364            * <p>
365            * 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.
366            * </p>
367            *
368            * @param uuid the uuid
369            * @param start the lower bound of the range of layout prototypes
370            * @param end the upper bound of the range of layout prototypes (not inclusive)
371            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
372            * @return the ordered range of matching layout prototypes that the user has permission to view
373            * @throws SystemException if a system exception occurred
374            */
375            public static java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByUuid(
376                    java.lang.String uuid, int start, int end,
377                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
378                    throws com.liferay.portal.kernel.exception.SystemException {
379                    return getPersistence()
380                                       .filterFindByUuid(uuid, start, end, orderByComparator);
381            }
382    
383            /**
384            * 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;.
385            *
386            * @param layoutPrototypeId the primary key of the current layout prototype
387            * @param uuid the uuid
388            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
389            * @return the previous, current, and next layout prototype
390            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found
391            * @throws SystemException if a system exception occurred
392            */
393            public static com.liferay.portal.model.LayoutPrototype[] filterFindByUuid_PrevAndNext(
394                    long layoutPrototypeId, java.lang.String uuid,
395                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
396                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
397                            com.liferay.portal.kernel.exception.SystemException {
398                    return getPersistence()
399                                       .filterFindByUuid_PrevAndNext(layoutPrototypeId, uuid,
400                            orderByComparator);
401            }
402    
403            /**
404            * Returns all the layout prototypes where uuid = &#63; and companyId = &#63;.
405            *
406            * @param uuid the uuid
407            * @param companyId the company ID
408            * @return the matching layout prototypes
409            * @throws SystemException if a system exception occurred
410            */
411            public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByUuid_C(
412                    java.lang.String uuid, long companyId)
413                    throws com.liferay.portal.kernel.exception.SystemException {
414                    return getPersistence().findByUuid_C(uuid, companyId);
415            }
416    
417            /**
418            * Returns a range of all the layout prototypes where uuid = &#63; and companyId = &#63;.
419            *
420            * <p>
421            * 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.
422            * </p>
423            *
424            * @param uuid the uuid
425            * @param companyId the company ID
426            * @param start the lower bound of the range of layout prototypes
427            * @param end the upper bound of the range of layout prototypes (not inclusive)
428            * @return the range of matching layout prototypes
429            * @throws SystemException if a system exception occurred
430            */
431            public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByUuid_C(
432                    java.lang.String uuid, long companyId, int start, int end)
433                    throws com.liferay.portal.kernel.exception.SystemException {
434                    return getPersistence().findByUuid_C(uuid, companyId, start, end);
435            }
436    
437            /**
438            * Returns an ordered range of all the layout prototypes where uuid = &#63; and companyId = &#63;.
439            *
440            * <p>
441            * 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.
442            * </p>
443            *
444            * @param uuid the uuid
445            * @param companyId the company ID
446            * @param start the lower bound of the range of layout prototypes
447            * @param end the upper bound of the range of layout prototypes (not inclusive)
448            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
449            * @return the ordered range of matching layout prototypes
450            * @throws SystemException if a system exception occurred
451            */
452            public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByUuid_C(
453                    java.lang.String uuid, long companyId, int start, int end,
454                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
455                    throws com.liferay.portal.kernel.exception.SystemException {
456                    return getPersistence()
457                                       .findByUuid_C(uuid, companyId, start, end, orderByComparator);
458            }
459    
460            /**
461            * Returns the first layout prototype in the ordered set where uuid = &#63; and companyId = &#63;.
462            *
463            * @param uuid the uuid
464            * @param companyId the company ID
465            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
466            * @return the first matching layout prototype
467            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a matching layout prototype could not be found
468            * @throws SystemException if a system exception occurred
469            */
470            public static com.liferay.portal.model.LayoutPrototype findByUuid_C_First(
471                    java.lang.String uuid, long companyId,
472                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
473                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
474                            com.liferay.portal.kernel.exception.SystemException {
475                    return getPersistence()
476                                       .findByUuid_C_First(uuid, companyId, orderByComparator);
477            }
478    
479            /**
480            * Returns the first layout prototype in the ordered set where uuid = &#63; and companyId = &#63;.
481            *
482            * @param uuid the uuid
483            * @param companyId the company ID
484            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
485            * @return the first matching layout prototype, or <code>null</code> if a matching layout prototype could not be found
486            * @throws SystemException if a system exception occurred
487            */
488            public static com.liferay.portal.model.LayoutPrototype fetchByUuid_C_First(
489                    java.lang.String uuid, long companyId,
490                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
491                    throws com.liferay.portal.kernel.exception.SystemException {
492                    return getPersistence()
493                                       .fetchByUuid_C_First(uuid, companyId, orderByComparator);
494            }
495    
496            /**
497            * Returns the last layout prototype in the ordered set where uuid = &#63; and companyId = &#63;.
498            *
499            * @param uuid the uuid
500            * @param companyId the company ID
501            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
502            * @return the last matching layout prototype
503            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a matching layout prototype could not be found
504            * @throws SystemException if a system exception occurred
505            */
506            public static com.liferay.portal.model.LayoutPrototype findByUuid_C_Last(
507                    java.lang.String uuid, long companyId,
508                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
509                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
510                            com.liferay.portal.kernel.exception.SystemException {
511                    return getPersistence()
512                                       .findByUuid_C_Last(uuid, companyId, orderByComparator);
513            }
514    
515            /**
516            * Returns the last layout prototype in the ordered set where uuid = &#63; and companyId = &#63;.
517            *
518            * @param uuid the uuid
519            * @param companyId the company ID
520            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
521            * @return the last matching layout prototype, or <code>null</code> if a matching layout prototype could not be found
522            * @throws SystemException if a system exception occurred
523            */
524            public static com.liferay.portal.model.LayoutPrototype fetchByUuid_C_Last(
525                    java.lang.String uuid, long companyId,
526                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
527                    throws com.liferay.portal.kernel.exception.SystemException {
528                    return getPersistence()
529                                       .fetchByUuid_C_Last(uuid, companyId, orderByComparator);
530            }
531    
532            /**
533            * Returns the layout prototypes before and after the current layout prototype in the ordered set where uuid = &#63; and companyId = &#63;.
534            *
535            * @param layoutPrototypeId the primary key of the current layout prototype
536            * @param uuid the uuid
537            * @param companyId the company ID
538            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
539            * @return the previous, current, and next layout prototype
540            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found
541            * @throws SystemException if a system exception occurred
542            */
543            public static com.liferay.portal.model.LayoutPrototype[] findByUuid_C_PrevAndNext(
544                    long layoutPrototypeId, java.lang.String uuid, long companyId,
545                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
546                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
547                            com.liferay.portal.kernel.exception.SystemException {
548                    return getPersistence()
549                                       .findByUuid_C_PrevAndNext(layoutPrototypeId, uuid,
550                            companyId, orderByComparator);
551            }
552    
553            /**
554            * Returns all the layout prototypes that the user has permission to view where uuid = &#63; and companyId = &#63;.
555            *
556            * @param uuid the uuid
557            * @param companyId the company ID
558            * @return the matching layout prototypes that the user has permission to view
559            * @throws SystemException if a system exception occurred
560            */
561            public static java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByUuid_C(
562                    java.lang.String uuid, long companyId)
563                    throws com.liferay.portal.kernel.exception.SystemException {
564                    return getPersistence().filterFindByUuid_C(uuid, companyId);
565            }
566    
567            /**
568            * Returns a range of all the layout prototypes that the user has permission to view where uuid = &#63; and companyId = &#63;.
569            *
570            * <p>
571            * 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.
572            * </p>
573            *
574            * @param uuid the uuid
575            * @param companyId the company ID
576            * @param start the lower bound of the range of layout prototypes
577            * @param end the upper bound of the range of layout prototypes (not inclusive)
578            * @return the range of matching layout prototypes that the user has permission to view
579            * @throws SystemException if a system exception occurred
580            */
581            public static java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByUuid_C(
582                    java.lang.String uuid, long companyId, int start, int end)
583                    throws com.liferay.portal.kernel.exception.SystemException {
584                    return getPersistence().filterFindByUuid_C(uuid, companyId, start, end);
585            }
586    
587            /**
588            * Returns an ordered range of all the layout prototypes that the user has permissions to view where uuid = &#63; and companyId = &#63;.
589            *
590            * <p>
591            * 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.
592            * </p>
593            *
594            * @param uuid the uuid
595            * @param companyId the company ID
596            * @param start the lower bound of the range of layout prototypes
597            * @param end the upper bound of the range of layout prototypes (not inclusive)
598            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
599            * @return the ordered range of matching layout prototypes that the user has permission to view
600            * @throws SystemException if a system exception occurred
601            */
602            public static java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByUuid_C(
603                    java.lang.String uuid, long companyId, int start, int end,
604                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
605                    throws com.liferay.portal.kernel.exception.SystemException {
606                    return getPersistence()
607                                       .filterFindByUuid_C(uuid, companyId, start, end,
608                            orderByComparator);
609            }
610    
611            /**
612            * 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;.
613            *
614            * @param layoutPrototypeId the primary key of the current layout prototype
615            * @param uuid the uuid
616            * @param companyId the company ID
617            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
618            * @return the previous, current, and next layout prototype
619            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found
620            * @throws SystemException if a system exception occurred
621            */
622            public static com.liferay.portal.model.LayoutPrototype[] filterFindByUuid_C_PrevAndNext(
623                    long layoutPrototypeId, java.lang.String uuid, long companyId,
624                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
625                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
626                            com.liferay.portal.kernel.exception.SystemException {
627                    return getPersistence()
628                                       .filterFindByUuid_C_PrevAndNext(layoutPrototypeId, uuid,
629                            companyId, orderByComparator);
630            }
631    
632            /**
633            * Returns all the layout prototypes where companyId = &#63;.
634            *
635            * @param companyId the company ID
636            * @return the matching layout prototypes
637            * @throws SystemException if a system exception occurred
638            */
639            public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByCompanyId(
640                    long companyId)
641                    throws com.liferay.portal.kernel.exception.SystemException {
642                    return getPersistence().findByCompanyId(companyId);
643            }
644    
645            /**
646            * Returns a range of all the layout prototypes where companyId = &#63;.
647            *
648            * <p>
649            * 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.
650            * </p>
651            *
652            * @param companyId the company ID
653            * @param start the lower bound of the range of layout prototypes
654            * @param end the upper bound of the range of layout prototypes (not inclusive)
655            * @return the range of matching layout prototypes
656            * @throws SystemException if a system exception occurred
657            */
658            public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByCompanyId(
659                    long companyId, int start, int end)
660                    throws com.liferay.portal.kernel.exception.SystemException {
661                    return getPersistence().findByCompanyId(companyId, start, end);
662            }
663    
664            /**
665            * Returns an ordered range of all the layout prototypes where companyId = &#63;.
666            *
667            * <p>
668            * 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.
669            * </p>
670            *
671            * @param companyId the company ID
672            * @param start the lower bound of the range of layout prototypes
673            * @param end the upper bound of the range of layout prototypes (not inclusive)
674            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
675            * @return the ordered range of matching layout prototypes
676            * @throws SystemException if a system exception occurred
677            */
678            public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByCompanyId(
679                    long companyId, int start, int end,
680                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
681                    throws com.liferay.portal.kernel.exception.SystemException {
682                    return getPersistence()
683                                       .findByCompanyId(companyId, start, end, orderByComparator);
684            }
685    
686            /**
687            * Returns the first layout prototype in the ordered set where companyId = &#63;.
688            *
689            * @param companyId the company ID
690            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
691            * @return the first matching layout prototype
692            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a matching layout prototype could not be found
693            * @throws SystemException if a system exception occurred
694            */
695            public static com.liferay.portal.model.LayoutPrototype findByCompanyId_First(
696                    long companyId,
697                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
698                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
699                            com.liferay.portal.kernel.exception.SystemException {
700                    return getPersistence()
701                                       .findByCompanyId_First(companyId, orderByComparator);
702            }
703    
704            /**
705            * Returns the first layout prototype in the ordered set where companyId = &#63;.
706            *
707            * @param companyId the company ID
708            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
709            * @return the first matching layout prototype, or <code>null</code> if a matching layout prototype could not be found
710            * @throws SystemException if a system exception occurred
711            */
712            public static com.liferay.portal.model.LayoutPrototype fetchByCompanyId_First(
713                    long companyId,
714                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
715                    throws com.liferay.portal.kernel.exception.SystemException {
716                    return getPersistence()
717                                       .fetchByCompanyId_First(companyId, orderByComparator);
718            }
719    
720            /**
721            * Returns the last layout prototype in the ordered set where companyId = &#63;.
722            *
723            * @param companyId the company ID
724            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
725            * @return the last matching layout prototype
726            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a matching layout prototype could not be found
727            * @throws SystemException if a system exception occurred
728            */
729            public static com.liferay.portal.model.LayoutPrototype findByCompanyId_Last(
730                    long companyId,
731                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
732                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
733                            com.liferay.portal.kernel.exception.SystemException {
734                    return getPersistence()
735                                       .findByCompanyId_Last(companyId, orderByComparator);
736            }
737    
738            /**
739            * Returns the last layout prototype in the ordered set where companyId = &#63;.
740            *
741            * @param companyId the company ID
742            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
743            * @return the last matching layout prototype, or <code>null</code> if a matching layout prototype could not be found
744            * @throws SystemException if a system exception occurred
745            */
746            public static com.liferay.portal.model.LayoutPrototype fetchByCompanyId_Last(
747                    long companyId,
748                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
749                    throws com.liferay.portal.kernel.exception.SystemException {
750                    return getPersistence()
751                                       .fetchByCompanyId_Last(companyId, orderByComparator);
752            }
753    
754            /**
755            * Returns the layout prototypes before and after the current layout prototype in the ordered set where companyId = &#63;.
756            *
757            * @param layoutPrototypeId the primary key of the current layout prototype
758            * @param companyId the company ID
759            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
760            * @return the previous, current, and next layout prototype
761            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found
762            * @throws SystemException if a system exception occurred
763            */
764            public static com.liferay.portal.model.LayoutPrototype[] findByCompanyId_PrevAndNext(
765                    long layoutPrototypeId, long companyId,
766                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
767                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
768                            com.liferay.portal.kernel.exception.SystemException {
769                    return getPersistence()
770                                       .findByCompanyId_PrevAndNext(layoutPrototypeId, companyId,
771                            orderByComparator);
772            }
773    
774            /**
775            * Returns all the layout prototypes that the user has permission to view where companyId = &#63;.
776            *
777            * @param companyId the company ID
778            * @return the matching layout prototypes that the user has permission to view
779            * @throws SystemException if a system exception occurred
780            */
781            public static java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByCompanyId(
782                    long companyId)
783                    throws com.liferay.portal.kernel.exception.SystemException {
784                    return getPersistence().filterFindByCompanyId(companyId);
785            }
786    
787            /**
788            * Returns a range of all the layout prototypes that the user has permission to view where companyId = &#63;.
789            *
790            * <p>
791            * 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.
792            * </p>
793            *
794            * @param companyId the company ID
795            * @param start the lower bound of the range of layout prototypes
796            * @param end the upper bound of the range of layout prototypes (not inclusive)
797            * @return the range of matching layout prototypes that the user has permission to view
798            * @throws SystemException if a system exception occurred
799            */
800            public static java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByCompanyId(
801                    long companyId, int start, int end)
802                    throws com.liferay.portal.kernel.exception.SystemException {
803                    return getPersistence().filterFindByCompanyId(companyId, start, end);
804            }
805    
806            /**
807            * Returns an ordered range of all the layout prototypes that the user has permissions to view where companyId = &#63;.
808            *
809            * <p>
810            * 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.
811            * </p>
812            *
813            * @param companyId the company ID
814            * @param start the lower bound of the range of layout prototypes
815            * @param end the upper bound of the range of layout prototypes (not inclusive)
816            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
817            * @return the ordered range of matching layout prototypes that the user has permission to view
818            * @throws SystemException if a system exception occurred
819            */
820            public static java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByCompanyId(
821                    long companyId, int start, int end,
822                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
823                    throws com.liferay.portal.kernel.exception.SystemException {
824                    return getPersistence()
825                                       .filterFindByCompanyId(companyId, start, end,
826                            orderByComparator);
827            }
828    
829            /**
830            * 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;.
831            *
832            * @param layoutPrototypeId the primary key of the current layout prototype
833            * @param companyId the company ID
834            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
835            * @return the previous, current, and next layout prototype
836            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found
837            * @throws SystemException if a system exception occurred
838            */
839            public static com.liferay.portal.model.LayoutPrototype[] filterFindByCompanyId_PrevAndNext(
840                    long layoutPrototypeId, long companyId,
841                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
842                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
843                            com.liferay.portal.kernel.exception.SystemException {
844                    return getPersistence()
845                                       .filterFindByCompanyId_PrevAndNext(layoutPrototypeId,
846                            companyId, orderByComparator);
847            }
848    
849            /**
850            * Returns all the layout prototypes where companyId = &#63; and active = &#63;.
851            *
852            * @param companyId the company ID
853            * @param active the active
854            * @return the matching layout prototypes
855            * @throws SystemException if a system exception occurred
856            */
857            public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByC_A(
858                    long companyId, boolean active)
859                    throws com.liferay.portal.kernel.exception.SystemException {
860                    return getPersistence().findByC_A(companyId, active);
861            }
862    
863            /**
864            * Returns a range of all the layout prototypes where companyId = &#63; and active = &#63;.
865            *
866            * <p>
867            * 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.
868            * </p>
869            *
870            * @param companyId the company ID
871            * @param active the active
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 matching layout prototypes
875            * @throws SystemException if a system exception occurred
876            */
877            public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByC_A(
878                    long companyId, boolean active, int start, int end)
879                    throws com.liferay.portal.kernel.exception.SystemException {
880                    return getPersistence().findByC_A(companyId, active, start, end);
881            }
882    
883            /**
884            * Returns an ordered range of all the layout prototypes where companyId = &#63; and active = &#63;.
885            *
886            * <p>
887            * 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.
888            * </p>
889            *
890            * @param companyId the company ID
891            * @param active the active
892            * @param start the lower bound of the range of layout prototypes
893            * @param end the upper bound of the range of layout prototypes (not inclusive)
894            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
895            * @return the ordered range of matching layout prototypes
896            * @throws SystemException if a system exception occurred
897            */
898            public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByC_A(
899                    long companyId, boolean active, int start, int end,
900                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
901                    throws com.liferay.portal.kernel.exception.SystemException {
902                    return getPersistence()
903                                       .findByC_A(companyId, active, start, end, orderByComparator);
904            }
905    
906            /**
907            * Returns the first layout prototype in the ordered set where companyId = &#63; and active = &#63;.
908            *
909            * @param companyId the company ID
910            * @param active the active
911            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
912            * @return the first matching layout prototype
913            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a matching layout prototype could not be found
914            * @throws SystemException if a system exception occurred
915            */
916            public static com.liferay.portal.model.LayoutPrototype findByC_A_First(
917                    long companyId, boolean active,
918                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
919                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
920                            com.liferay.portal.kernel.exception.SystemException {
921                    return getPersistence()
922                                       .findByC_A_First(companyId, active, orderByComparator);
923            }
924    
925            /**
926            * Returns the first layout prototype in the ordered set where companyId = &#63; and active = &#63;.
927            *
928            * @param companyId the company ID
929            * @param active the active
930            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
931            * @return the first matching layout prototype, or <code>null</code> if a matching layout prototype could not be found
932            * @throws SystemException if a system exception occurred
933            */
934            public static com.liferay.portal.model.LayoutPrototype fetchByC_A_First(
935                    long companyId, boolean active,
936                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
937                    throws com.liferay.portal.kernel.exception.SystemException {
938                    return getPersistence()
939                                       .fetchByC_A_First(companyId, active, orderByComparator);
940            }
941    
942            /**
943            * Returns the last layout prototype in the ordered set where companyId = &#63; and active = &#63;.
944            *
945            * @param companyId the company ID
946            * @param active the active
947            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
948            * @return the last matching layout prototype
949            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a matching layout prototype could not be found
950            * @throws SystemException if a system exception occurred
951            */
952            public static com.liferay.portal.model.LayoutPrototype findByC_A_Last(
953                    long companyId, boolean active,
954                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
955                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
956                            com.liferay.portal.kernel.exception.SystemException {
957                    return getPersistence()
958                                       .findByC_A_Last(companyId, active, orderByComparator);
959            }
960    
961            /**
962            * Returns the last layout prototype in the ordered set where companyId = &#63; and active = &#63;.
963            *
964            * @param companyId the company ID
965            * @param active the active
966            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
967            * @return the last matching layout prototype, or <code>null</code> if a matching layout prototype could not be found
968            * @throws SystemException if a system exception occurred
969            */
970            public static com.liferay.portal.model.LayoutPrototype fetchByC_A_Last(
971                    long companyId, boolean active,
972                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
973                    throws com.liferay.portal.kernel.exception.SystemException {
974                    return getPersistence()
975                                       .fetchByC_A_Last(companyId, active, orderByComparator);
976            }
977    
978            /**
979            * Returns the layout prototypes before and after the current layout prototype in the ordered set where companyId = &#63; and active = &#63;.
980            *
981            * @param layoutPrototypeId the primary key of the current layout prototype
982            * @param companyId the company ID
983            * @param active the active
984            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
985            * @return the previous, current, and next layout prototype
986            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found
987            * @throws SystemException if a system exception occurred
988            */
989            public static com.liferay.portal.model.LayoutPrototype[] findByC_A_PrevAndNext(
990                    long layoutPrototypeId, long companyId, boolean active,
991                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
992                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
993                            com.liferay.portal.kernel.exception.SystemException {
994                    return getPersistence()
995                                       .findByC_A_PrevAndNext(layoutPrototypeId, companyId, active,
996                            orderByComparator);
997            }
998    
999            /**
1000            * Returns all the layout prototypes that the user has permission to view where companyId = &#63; and active = &#63;.
1001            *
1002            * @param companyId the company ID
1003            * @param active the active
1004            * @return the matching layout prototypes that the user has permission to view
1005            * @throws SystemException if a system exception occurred
1006            */
1007            public static java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByC_A(
1008                    long companyId, boolean active)
1009                    throws com.liferay.portal.kernel.exception.SystemException {
1010                    return getPersistence().filterFindByC_A(companyId, active);
1011            }
1012    
1013            /**
1014            * Returns a range of all the layout prototypes that the user has permission to view where companyId = &#63; and active = &#63;.
1015            *
1016            * <p>
1017            * 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.
1018            * </p>
1019            *
1020            * @param companyId the company ID
1021            * @param active the active
1022            * @param start the lower bound of the range of layout prototypes
1023            * @param end the upper bound of the range of layout prototypes (not inclusive)
1024            * @return the range of matching layout prototypes that the user has permission to view
1025            * @throws SystemException if a system exception occurred
1026            */
1027            public static java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByC_A(
1028                    long companyId, boolean active, int start, int end)
1029                    throws com.liferay.portal.kernel.exception.SystemException {
1030                    return getPersistence().filterFindByC_A(companyId, active, start, end);
1031            }
1032    
1033            /**
1034            * Returns an ordered range of all the layout prototypes that the user has permissions to view where companyId = &#63; and active = &#63;.
1035            *
1036            * <p>
1037            * 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.
1038            * </p>
1039            *
1040            * @param companyId the company ID
1041            * @param active the active
1042            * @param start the lower bound of the range of layout prototypes
1043            * @param end the upper bound of the range of layout prototypes (not inclusive)
1044            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1045            * @return the ordered range of matching layout prototypes that the user has permission to view
1046            * @throws SystemException if a system exception occurred
1047            */
1048            public static java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByC_A(
1049                    long companyId, boolean active, int start, int end,
1050                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1051                    throws com.liferay.portal.kernel.exception.SystemException {
1052                    return getPersistence()
1053                                       .filterFindByC_A(companyId, active, start, end,
1054                            orderByComparator);
1055            }
1056    
1057            /**
1058            * 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;.
1059            *
1060            * @param layoutPrototypeId the primary key of the current layout prototype
1061            * @param companyId the company ID
1062            * @param active the active
1063            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1064            * @return the previous, current, and next layout prototype
1065            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found
1066            * @throws SystemException if a system exception occurred
1067            */
1068            public static com.liferay.portal.model.LayoutPrototype[] filterFindByC_A_PrevAndNext(
1069                    long layoutPrototypeId, long companyId, boolean active,
1070                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1071                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
1072                            com.liferay.portal.kernel.exception.SystemException {
1073                    return getPersistence()
1074                                       .filterFindByC_A_PrevAndNext(layoutPrototypeId, companyId,
1075                            active, orderByComparator);
1076            }
1077    
1078            /**
1079            * Returns all the layout prototypes.
1080            *
1081            * @return the layout prototypes
1082            * @throws SystemException if a system exception occurred
1083            */
1084            public static java.util.List<com.liferay.portal.model.LayoutPrototype> findAll()
1085                    throws com.liferay.portal.kernel.exception.SystemException {
1086                    return getPersistence().findAll();
1087            }
1088    
1089            /**
1090            * Returns a range of all the layout prototypes.
1091            *
1092            * <p>
1093            * 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.
1094            * </p>
1095            *
1096            * @param start the lower bound of the range of layout prototypes
1097            * @param end the upper bound of the range of layout prototypes (not inclusive)
1098            * @return the range of layout prototypes
1099            * @throws SystemException if a system exception occurred
1100            */
1101            public static java.util.List<com.liferay.portal.model.LayoutPrototype> findAll(
1102                    int start, int end)
1103                    throws com.liferay.portal.kernel.exception.SystemException {
1104                    return getPersistence().findAll(start, end);
1105            }
1106    
1107            /**
1108            * Returns an ordered range of all the layout prototypes.
1109            *
1110            * <p>
1111            * 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.
1112            * </p>
1113            *
1114            * @param start the lower bound of the range of layout prototypes
1115            * @param end the upper bound of the range of layout prototypes (not inclusive)
1116            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1117            * @return the ordered range of layout prototypes
1118            * @throws SystemException if a system exception occurred
1119            */
1120            public static java.util.List<com.liferay.portal.model.LayoutPrototype> findAll(
1121                    int start, int end,
1122                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1123                    throws com.liferay.portal.kernel.exception.SystemException {
1124                    return getPersistence().findAll(start, end, orderByComparator);
1125            }
1126    
1127            /**
1128            * Removes all the layout prototypes where uuid = &#63; from the database.
1129            *
1130            * @param uuid the uuid
1131            * @throws SystemException if a system exception occurred
1132            */
1133            public static void removeByUuid(java.lang.String uuid)
1134                    throws com.liferay.portal.kernel.exception.SystemException {
1135                    getPersistence().removeByUuid(uuid);
1136            }
1137    
1138            /**
1139            * Removes all the layout prototypes where uuid = &#63; and companyId = &#63; from the database.
1140            *
1141            * @param uuid the uuid
1142            * @param companyId the company ID
1143            * @throws SystemException if a system exception occurred
1144            */
1145            public static void removeByUuid_C(java.lang.String uuid, long companyId)
1146                    throws com.liferay.portal.kernel.exception.SystemException {
1147                    getPersistence().removeByUuid_C(uuid, companyId);
1148            }
1149    
1150            /**
1151            * Removes all the layout prototypes where companyId = &#63; from the database.
1152            *
1153            * @param companyId the company ID
1154            * @throws SystemException if a system exception occurred
1155            */
1156            public static void removeByCompanyId(long companyId)
1157                    throws com.liferay.portal.kernel.exception.SystemException {
1158                    getPersistence().removeByCompanyId(companyId);
1159            }
1160    
1161            /**
1162            * Removes all the layout prototypes where companyId = &#63; and active = &#63; from the database.
1163            *
1164            * @param companyId the company ID
1165            * @param active the active
1166            * @throws SystemException if a system exception occurred
1167            */
1168            public static void removeByC_A(long companyId, boolean active)
1169                    throws com.liferay.portal.kernel.exception.SystemException {
1170                    getPersistence().removeByC_A(companyId, active);
1171            }
1172    
1173            /**
1174            * Removes all the layout prototypes from the database.
1175            *
1176            * @throws SystemException if a system exception occurred
1177            */
1178            public static void removeAll()
1179                    throws com.liferay.portal.kernel.exception.SystemException {
1180                    getPersistence().removeAll();
1181            }
1182    
1183            /**
1184            * Returns the number of layout prototypes where uuid = &#63;.
1185            *
1186            * @param uuid the uuid
1187            * @return the number of matching layout prototypes
1188            * @throws SystemException if a system exception occurred
1189            */
1190            public static int countByUuid(java.lang.String uuid)
1191                    throws com.liferay.portal.kernel.exception.SystemException {
1192                    return getPersistence().countByUuid(uuid);
1193            }
1194    
1195            /**
1196            * Returns the number of layout prototypes that the user has permission to view where uuid = &#63;.
1197            *
1198            * @param uuid the uuid
1199            * @return the number of matching layout prototypes that the user has permission to view
1200            * @throws SystemException if a system exception occurred
1201            */
1202            public static int filterCountByUuid(java.lang.String uuid)
1203                    throws com.liferay.portal.kernel.exception.SystemException {
1204                    return getPersistence().filterCountByUuid(uuid);
1205            }
1206    
1207            /**
1208            * Returns the number of layout prototypes where uuid = &#63; and companyId = &#63;.
1209            *
1210            * @param uuid the uuid
1211            * @param companyId the company ID
1212            * @return the number of matching layout prototypes
1213            * @throws SystemException if a system exception occurred
1214            */
1215            public static int countByUuid_C(java.lang.String uuid, long companyId)
1216                    throws com.liferay.portal.kernel.exception.SystemException {
1217                    return getPersistence().countByUuid_C(uuid, companyId);
1218            }
1219    
1220            /**
1221            * Returns the number of layout prototypes that the user has permission to view where uuid = &#63; and companyId = &#63;.
1222            *
1223            * @param uuid the uuid
1224            * @param companyId the company ID
1225            * @return the number of matching layout prototypes that the user has permission to view
1226            * @throws SystemException if a system exception occurred
1227            */
1228            public static int filterCountByUuid_C(java.lang.String uuid, long companyId)
1229                    throws com.liferay.portal.kernel.exception.SystemException {
1230                    return getPersistence().filterCountByUuid_C(uuid, companyId);
1231            }
1232    
1233            /**
1234            * Returns the number of layout prototypes where companyId = &#63;.
1235            *
1236            * @param companyId the company ID
1237            * @return the number of matching layout prototypes
1238            * @throws SystemException if a system exception occurred
1239            */
1240            public static int countByCompanyId(long companyId)
1241                    throws com.liferay.portal.kernel.exception.SystemException {
1242                    return getPersistence().countByCompanyId(companyId);
1243            }
1244    
1245            /**
1246            * Returns the number of layout prototypes that the user has permission to view where companyId = &#63;.
1247            *
1248            * @param companyId the company ID
1249            * @return the number of matching layout prototypes that the user has permission to view
1250            * @throws SystemException if a system exception occurred
1251            */
1252            public static int filterCountByCompanyId(long companyId)
1253                    throws com.liferay.portal.kernel.exception.SystemException {
1254                    return getPersistence().filterCountByCompanyId(companyId);
1255            }
1256    
1257            /**
1258            * Returns the number of layout prototypes where companyId = &#63; and active = &#63;.
1259            *
1260            * @param companyId the company ID
1261            * @param active the active
1262            * @return the number of matching layout prototypes
1263            * @throws SystemException if a system exception occurred
1264            */
1265            public static int countByC_A(long companyId, boolean active)
1266                    throws com.liferay.portal.kernel.exception.SystemException {
1267                    return getPersistence().countByC_A(companyId, active);
1268            }
1269    
1270            /**
1271            * Returns the number of layout prototypes that the user has permission to view where companyId = &#63; and active = &#63;.
1272            *
1273            * @param companyId the company ID
1274            * @param active the active
1275            * @return the number of matching layout prototypes that the user has permission to view
1276            * @throws SystemException if a system exception occurred
1277            */
1278            public static int filterCountByC_A(long companyId, boolean active)
1279                    throws com.liferay.portal.kernel.exception.SystemException {
1280                    return getPersistence().filterCountByC_A(companyId, active);
1281            }
1282    
1283            /**
1284            * Returns the number of layout prototypes.
1285            *
1286            * @return the number of layout prototypes
1287            * @throws SystemException if a system exception occurred
1288            */
1289            public static int countAll()
1290                    throws com.liferay.portal.kernel.exception.SystemException {
1291                    return getPersistence().countAll();
1292            }
1293    
1294            public static LayoutPrototypePersistence getPersistence() {
1295                    if (_persistence == null) {
1296                            _persistence = (LayoutPrototypePersistence)PortalBeanLocatorUtil.locate(LayoutPrototypePersistence.class.getName());
1297    
1298                            ReferenceRegistry.registerReference(LayoutPrototypeUtil.class,
1299                                    "_persistence");
1300                    }
1301    
1302                    return _persistence;
1303            }
1304    
1305            /**
1306             * @deprecated
1307             */
1308            public void setPersistence(LayoutPrototypePersistence persistence) {
1309            }
1310    
1311            private static LayoutPrototypePersistence _persistence;
1312    }