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