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