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