001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.kernel.util.ReferenceRegistry;
022    import com.liferay.portal.model.LayoutPrototype;
023    import com.liferay.portal.service.ServiceContext;
024    
025    import java.util.List;
026    
027    /**
028     * The persistence utility for the layout prototype service. This utility wraps {@link LayoutPrototypePersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
029     *
030     * <p>
031     * Caching information and settings can be found in <code>portal.properties</code>
032     * </p>
033     *
034     * @author Brian Wing Shun Chan
035     * @see LayoutPrototypePersistence
036     * @see LayoutPrototypePersistenceImpl
037     * @generated
038     */
039    public class LayoutPrototypeUtil {
040            /*
041             * NOTE FOR DEVELOPERS:
042             *
043             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
044             */
045    
046            /**
047             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
048             */
049            public static void clearCache() {
050                    getPersistence().clearCache();
051            }
052    
053            /**
054             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
055             */
056            public static void clearCache(LayoutPrototype layoutPrototype) {
057                    getPersistence().clearCache(layoutPrototype);
058            }
059    
060            /**
061             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
062             */
063            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
064                    throws SystemException {
065                    return getPersistence().countWithDynamicQuery(dynamicQuery);
066            }
067    
068            /**
069             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
070             */
071            public static List<LayoutPrototype> findWithDynamicQuery(
072                    DynamicQuery dynamicQuery) throws SystemException {
073                    return getPersistence().findWithDynamicQuery(dynamicQuery);
074            }
075    
076            /**
077             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
078             */
079            public static List<LayoutPrototype> findWithDynamicQuery(
080                    DynamicQuery dynamicQuery, int start, int end)
081                    throws SystemException {
082                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
083            }
084    
085            /**
086             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
087             */
088            public static List<LayoutPrototype> findWithDynamicQuery(
089                    DynamicQuery dynamicQuery, int start, int end,
090                    OrderByComparator orderByComparator) throws SystemException {
091                    return getPersistence()
092                                       .findWithDynamicQuery(dynamicQuery, start, end,
093                            orderByComparator);
094            }
095    
096            /**
097             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
098             */
099            public static LayoutPrototype update(LayoutPrototype layoutPrototype,
100                    boolean merge) throws SystemException {
101                    return getPersistence().update(layoutPrototype, merge);
102            }
103    
104            /**
105             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
106             */
107            public static LayoutPrototype update(LayoutPrototype layoutPrototype,
108                    boolean merge, ServiceContext serviceContext) throws SystemException {
109                    return getPersistence().update(layoutPrototype, merge, serviceContext);
110            }
111    
112            /**
113            * Caches the layout prototype in the entity cache if it is enabled.
114            *
115            * @param layoutPrototype the layout prototype
116            */
117            public static void cacheResult(
118                    com.liferay.portal.model.LayoutPrototype layoutPrototype) {
119                    getPersistence().cacheResult(layoutPrototype);
120            }
121    
122            /**
123            * Caches the layout prototypes in the entity cache if it is enabled.
124            *
125            * @param layoutPrototypes the layout prototypes
126            */
127            public static void cacheResult(
128                    java.util.List<com.liferay.portal.model.LayoutPrototype> layoutPrototypes) {
129                    getPersistence().cacheResult(layoutPrototypes);
130            }
131    
132            /**
133            * Creates a new layout prototype with the primary key. Does not add the layout prototype to the database.
134            *
135            * @param layoutPrototypeId the primary key for the new layout prototype
136            * @return the new layout prototype
137            */
138            public static com.liferay.portal.model.LayoutPrototype create(
139                    long layoutPrototypeId) {
140                    return getPersistence().create(layoutPrototypeId);
141            }
142    
143            /**
144            * Removes the layout prototype with the primary key from the database. Also notifies the appropriate model listeners.
145            *
146            * @param layoutPrototypeId the primary key of the layout prototype
147            * @return the layout prototype that was removed
148            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found
149            * @throws SystemException if a system exception occurred
150            */
151            public static com.liferay.portal.model.LayoutPrototype remove(
152                    long layoutPrototypeId)
153                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
154                            com.liferay.portal.kernel.exception.SystemException {
155                    return getPersistence().remove(layoutPrototypeId);
156            }
157    
158            public static com.liferay.portal.model.LayoutPrototype updateImpl(
159                    com.liferay.portal.model.LayoutPrototype layoutPrototype, boolean merge)
160                    throws com.liferay.portal.kernel.exception.SystemException {
161                    return getPersistence().updateImpl(layoutPrototype, merge);
162            }
163    
164            /**
165            * Returns the layout prototype with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutPrototypeException} if it could not be found.
166            *
167            * @param layoutPrototypeId the primary key of the layout prototype
168            * @return the layout prototype
169            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found
170            * @throws SystemException if a system exception occurred
171            */
172            public static com.liferay.portal.model.LayoutPrototype findByPrimaryKey(
173                    long layoutPrototypeId)
174                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
175                            com.liferay.portal.kernel.exception.SystemException {
176                    return getPersistence().findByPrimaryKey(layoutPrototypeId);
177            }
178    
179            /**
180            * Returns the layout prototype with the primary key or returns <code>null</code> if it could not be found.
181            *
182            * @param layoutPrototypeId the primary key of the layout prototype
183            * @return the layout prototype, or <code>null</code> if a layout prototype with the primary key could not be found
184            * @throws SystemException if a system exception occurred
185            */
186            public static com.liferay.portal.model.LayoutPrototype fetchByPrimaryKey(
187                    long layoutPrototypeId)
188                    throws com.liferay.portal.kernel.exception.SystemException {
189                    return getPersistence().fetchByPrimaryKey(layoutPrototypeId);
190            }
191    
192            /**
193            * Returns all the layout prototypes where uuid = &#63;.
194            *
195            * @param uuid the uuid
196            * @return the matching layout prototypes
197            * @throws SystemException if a system exception occurred
198            */
199            public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByUuid(
200                    java.lang.String uuid)
201                    throws com.liferay.portal.kernel.exception.SystemException {
202                    return getPersistence().findByUuid(uuid);
203            }
204    
205            /**
206            * Returns a range of all the layout prototypes where uuid = &#63;.
207            *
208            * <p>
209            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
210            * </p>
211            *
212            * @param uuid the uuid
213            * @param start the lower bound of the range of layout prototypes
214            * @param end the upper bound of the range of layout prototypes (not inclusive)
215            * @return the range of matching layout prototypes
216            * @throws SystemException if a system exception occurred
217            */
218            public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByUuid(
219                    java.lang.String uuid, int start, int end)
220                    throws com.liferay.portal.kernel.exception.SystemException {
221                    return getPersistence().findByUuid(uuid, start, end);
222            }
223    
224            /**
225            * Returns an ordered range of all the layout prototypes where uuid = &#63;.
226            *
227            * <p>
228            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
229            * </p>
230            *
231            * @param uuid the uuid
232            * @param start the lower bound of the range of layout prototypes
233            * @param end the upper bound of the range of layout prototypes (not inclusive)
234            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
235            * @return the ordered range of matching layout prototypes
236            * @throws SystemException if a system exception occurred
237            */
238            public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByUuid(
239                    java.lang.String uuid, int start, int end,
240                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
241                    throws com.liferay.portal.kernel.exception.SystemException {
242                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
243            }
244    
245            /**
246            * Returns the first layout prototype in the ordered set where uuid = &#63;.
247            *
248            * @param uuid the uuid
249            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
250            * @return the first matching layout prototype
251            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a matching layout prototype could not be found
252            * @throws SystemException if a system exception occurred
253            */
254            public static com.liferay.portal.model.LayoutPrototype findByUuid_First(
255                    java.lang.String uuid,
256                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
257                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
258                            com.liferay.portal.kernel.exception.SystemException {
259                    return getPersistence().findByUuid_First(uuid, orderByComparator);
260            }
261    
262            /**
263            * Returns the first layout prototype in the ordered set where uuid = &#63;.
264            *
265            * @param uuid the uuid
266            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
267            * @return the first matching layout prototype, or <code>null</code> if a matching layout prototype could not be found
268            * @throws SystemException if a system exception occurred
269            */
270            public static com.liferay.portal.model.LayoutPrototype fetchByUuid_First(
271                    java.lang.String uuid,
272                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
273                    throws com.liferay.portal.kernel.exception.SystemException {
274                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
275            }
276    
277            /**
278            * Returns the last layout prototype in the ordered set where uuid = &#63;.
279            *
280            * @param uuid the uuid
281            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
282            * @return the last matching layout prototype
283            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a matching layout prototype could not be found
284            * @throws SystemException if a system exception occurred
285            */
286            public static com.liferay.portal.model.LayoutPrototype findByUuid_Last(
287                    java.lang.String uuid,
288                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
289                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
290                            com.liferay.portal.kernel.exception.SystemException {
291                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
292            }
293    
294            /**
295            * Returns the last layout prototype in the ordered set where uuid = &#63;.
296            *
297            * @param uuid the uuid
298            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
299            * @return the last matching layout prototype, or <code>null</code> if a matching layout prototype could not be found
300            * @throws SystemException if a system exception occurred
301            */
302            public static com.liferay.portal.model.LayoutPrototype fetchByUuid_Last(
303                    java.lang.String uuid,
304                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
305                    throws com.liferay.portal.kernel.exception.SystemException {
306                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
307            }
308    
309            /**
310            * Returns the layout prototypes before and after the current layout prototype in the ordered set where uuid = &#63;.
311            *
312            * @param layoutPrototypeId the primary key of the current layout prototype
313            * @param uuid the uuid
314            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
315            * @return the previous, current, and next layout prototype
316            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found
317            * @throws SystemException if a system exception occurred
318            */
319            public static com.liferay.portal.model.LayoutPrototype[] findByUuid_PrevAndNext(
320                    long layoutPrototypeId, java.lang.String uuid,
321                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
322                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
323                            com.liferay.portal.kernel.exception.SystemException {
324                    return getPersistence()
325                                       .findByUuid_PrevAndNext(layoutPrototypeId, uuid,
326                            orderByComparator);
327            }
328    
329            /**
330            * Returns all the layout prototypes that the user has permission to view where uuid = &#63;.
331            *
332            * @param uuid the uuid
333            * @return the matching layout prototypes that the user has permission to view
334            * @throws SystemException if a system exception occurred
335            */
336            public static java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByUuid(
337                    java.lang.String uuid)
338                    throws com.liferay.portal.kernel.exception.SystemException {
339                    return getPersistence().filterFindByUuid(uuid);
340            }
341    
342            /**
343            * Returns a range of all the layout prototypes that the user has permission to view where uuid = &#63;.
344            *
345            * <p>
346            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
347            * </p>
348            *
349            * @param uuid the uuid
350            * @param start the lower bound of the range of layout prototypes
351            * @param end the upper bound of the range of layout prototypes (not inclusive)
352            * @return the range of matching layout prototypes that the user has permission to view
353            * @throws SystemException if a system exception occurred
354            */
355            public static java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByUuid(
356                    java.lang.String uuid, int start, int end)
357                    throws com.liferay.portal.kernel.exception.SystemException {
358                    return getPersistence().filterFindByUuid(uuid, start, end);
359            }
360    
361            /**
362            * Returns an ordered range of all the layout prototypes that the user has permissions to view where uuid = &#63;.
363            *
364            * <p>
365            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
366            * </p>
367            *
368            * @param uuid the uuid
369            * @param start the lower bound of the range of layout prototypes
370            * @param end the upper bound of the range of layout prototypes (not inclusive)
371            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
372            * @return the ordered range of matching layout prototypes that the user has permission to view
373            * @throws SystemException if a system exception occurred
374            */
375            public static java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByUuid(
376                    java.lang.String uuid, int start, int end,
377                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
378                    throws com.liferay.portal.kernel.exception.SystemException {
379                    return getPersistence()
380                                       .filterFindByUuid(uuid, start, end, orderByComparator);
381            }
382    
383            /**
384            * Returns the layout prototypes before and after the current layout prototype in the ordered set of layout prototypes that the user has permission to view where uuid = &#63;.
385            *
386            * @param layoutPrototypeId the primary key of the current layout prototype
387            * @param uuid the uuid
388            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
389            * @return the previous, current, and next layout prototype
390            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found
391            * @throws SystemException if a system exception occurred
392            */
393            public static com.liferay.portal.model.LayoutPrototype[] filterFindByUuid_PrevAndNext(
394                    long layoutPrototypeId, java.lang.String uuid,
395                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
396                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
397                            com.liferay.portal.kernel.exception.SystemException {
398                    return getPersistence()
399                                       .filterFindByUuid_PrevAndNext(layoutPrototypeId, uuid,
400                            orderByComparator);
401            }
402    
403            /**
404            * Returns all the layout prototypes where companyId = &#63;.
405            *
406            * @param companyId the company ID
407            * @return the matching layout prototypes
408            * @throws SystemException if a system exception occurred
409            */
410            public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByCompanyId(
411                    long companyId)
412                    throws com.liferay.portal.kernel.exception.SystemException {
413                    return getPersistence().findByCompanyId(companyId);
414            }
415    
416            /**
417            * Returns a range of all the layout prototypes where companyId = &#63;.
418            *
419            * <p>
420            * 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.
421            * </p>
422            *
423            * @param companyId the company ID
424            * @param start the lower bound of the range of layout prototypes
425            * @param end the upper bound of the range of layout prototypes (not inclusive)
426            * @return the range of matching layout prototypes
427            * @throws SystemException if a system exception occurred
428            */
429            public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByCompanyId(
430                    long companyId, int start, int end)
431                    throws com.liferay.portal.kernel.exception.SystemException {
432                    return getPersistence().findByCompanyId(companyId, start, end);
433            }
434    
435            /**
436            * Returns an ordered range of all the layout prototypes where companyId = &#63;.
437            *
438            * <p>
439            * 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.
440            * </p>
441            *
442            * @param companyId the company ID
443            * @param start the lower bound of the range of layout prototypes
444            * @param end the upper bound of the range of layout prototypes (not inclusive)
445            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
446            * @return the ordered range of matching layout prototypes
447            * @throws SystemException if a system exception occurred
448            */
449            public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByCompanyId(
450                    long companyId, int start, int end,
451                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
452                    throws com.liferay.portal.kernel.exception.SystemException {
453                    return getPersistence()
454                                       .findByCompanyId(companyId, start, end, orderByComparator);
455            }
456    
457            /**
458            * Returns the first layout prototype in the ordered set where companyId = &#63;.
459            *
460            * @param companyId the company ID
461            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
462            * @return the first matching layout prototype
463            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a matching layout prototype could not be found
464            * @throws SystemException if a system exception occurred
465            */
466            public static com.liferay.portal.model.LayoutPrototype findByCompanyId_First(
467                    long companyId,
468                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
469                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
470                            com.liferay.portal.kernel.exception.SystemException {
471                    return getPersistence()
472                                       .findByCompanyId_First(companyId, orderByComparator);
473            }
474    
475            /**
476            * Returns the first layout prototype in the ordered set where companyId = &#63;.
477            *
478            * @param companyId the company ID
479            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
480            * @return the first matching layout prototype, or <code>null</code> if a matching layout prototype could not be found
481            * @throws SystemException if a system exception occurred
482            */
483            public static com.liferay.portal.model.LayoutPrototype fetchByCompanyId_First(
484                    long companyId,
485                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
486                    throws com.liferay.portal.kernel.exception.SystemException {
487                    return getPersistence()
488                                       .fetchByCompanyId_First(companyId, orderByComparator);
489            }
490    
491            /**
492            * Returns the last layout prototype in the ordered set where companyId = &#63;.
493            *
494            * @param companyId the company ID
495            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
496            * @return the last matching layout prototype
497            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a matching layout prototype could not be found
498            * @throws SystemException if a system exception occurred
499            */
500            public static com.liferay.portal.model.LayoutPrototype findByCompanyId_Last(
501                    long companyId,
502                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
503                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
504                            com.liferay.portal.kernel.exception.SystemException {
505                    return getPersistence()
506                                       .findByCompanyId_Last(companyId, orderByComparator);
507            }
508    
509            /**
510            * Returns the last layout prototype in the ordered set where companyId = &#63;.
511            *
512            * @param companyId the company ID
513            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
514            * @return the last matching layout prototype, or <code>null</code> if a matching layout prototype could not be found
515            * @throws SystemException if a system exception occurred
516            */
517            public static com.liferay.portal.model.LayoutPrototype fetchByCompanyId_Last(
518                    long companyId,
519                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
520                    throws com.liferay.portal.kernel.exception.SystemException {
521                    return getPersistence()
522                                       .fetchByCompanyId_Last(companyId, orderByComparator);
523            }
524    
525            /**
526            * Returns the layout prototypes before and after the current layout prototype in the ordered set where companyId = &#63;.
527            *
528            * @param layoutPrototypeId the primary key of the current layout prototype
529            * @param companyId the company ID
530            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
531            * @return the previous, current, and next layout prototype
532            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found
533            * @throws SystemException if a system exception occurred
534            */
535            public static com.liferay.portal.model.LayoutPrototype[] findByCompanyId_PrevAndNext(
536                    long layoutPrototypeId, long companyId,
537                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
538                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
539                            com.liferay.portal.kernel.exception.SystemException {
540                    return getPersistence()
541                                       .findByCompanyId_PrevAndNext(layoutPrototypeId, companyId,
542                            orderByComparator);
543            }
544    
545            /**
546            * Returns all the layout prototypes that the user has permission to view where companyId = &#63;.
547            *
548            * @param companyId the company ID
549            * @return the matching layout prototypes that the user has permission to view
550            * @throws SystemException if a system exception occurred
551            */
552            public static java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByCompanyId(
553                    long companyId)
554                    throws com.liferay.portal.kernel.exception.SystemException {
555                    return getPersistence().filterFindByCompanyId(companyId);
556            }
557    
558            /**
559            * Returns a range of all the layout prototypes that the user has permission to view where companyId = &#63;.
560            *
561            * <p>
562            * 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.
563            * </p>
564            *
565            * @param companyId the company ID
566            * @param start the lower bound of the range of layout prototypes
567            * @param end the upper bound of the range of layout prototypes (not inclusive)
568            * @return the range of matching layout prototypes that the user has permission to view
569            * @throws SystemException if a system exception occurred
570            */
571            public static java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByCompanyId(
572                    long companyId, int start, int end)
573                    throws com.liferay.portal.kernel.exception.SystemException {
574                    return getPersistence().filterFindByCompanyId(companyId, start, end);
575            }
576    
577            /**
578            * Returns an ordered range of all the layout prototypes that the user has permissions to view where companyId = &#63;.
579            *
580            * <p>
581            * 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.
582            * </p>
583            *
584            * @param companyId the company ID
585            * @param start the lower bound of the range of layout prototypes
586            * @param end the upper bound of the range of layout prototypes (not inclusive)
587            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
588            * @return the ordered range of matching layout prototypes that the user has permission to view
589            * @throws SystemException if a system exception occurred
590            */
591            public static java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByCompanyId(
592                    long companyId, int start, int end,
593                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
594                    throws com.liferay.portal.kernel.exception.SystemException {
595                    return getPersistence()
596                                       .filterFindByCompanyId(companyId, start, end,
597                            orderByComparator);
598            }
599    
600            /**
601            * Returns the layout prototypes before and after the current layout prototype in the ordered set of layout prototypes that the user has permission to view where companyId = &#63;.
602            *
603            * @param layoutPrototypeId the primary key of the current layout prototype
604            * @param companyId the company ID
605            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
606            * @return the previous, current, and next layout prototype
607            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found
608            * @throws SystemException if a system exception occurred
609            */
610            public static com.liferay.portal.model.LayoutPrototype[] filterFindByCompanyId_PrevAndNext(
611                    long layoutPrototypeId, long companyId,
612                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
613                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
614                            com.liferay.portal.kernel.exception.SystemException {
615                    return getPersistence()
616                                       .filterFindByCompanyId_PrevAndNext(layoutPrototypeId,
617                            companyId, orderByComparator);
618            }
619    
620            /**
621            * Returns all the layout prototypes where companyId = &#63; and active = &#63;.
622            *
623            * @param companyId the company ID
624            * @param active the active
625            * @return the matching layout prototypes
626            * @throws SystemException if a system exception occurred
627            */
628            public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByC_A(
629                    long companyId, boolean active)
630                    throws com.liferay.portal.kernel.exception.SystemException {
631                    return getPersistence().findByC_A(companyId, active);
632            }
633    
634            /**
635            * Returns a range of all the layout prototypes where companyId = &#63; and active = &#63;.
636            *
637            * <p>
638            * 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.
639            * </p>
640            *
641            * @param companyId the company ID
642            * @param active the active
643            * @param start the lower bound of the range of layout prototypes
644            * @param end the upper bound of the range of layout prototypes (not inclusive)
645            * @return the range of matching layout prototypes
646            * @throws SystemException if a system exception occurred
647            */
648            public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByC_A(
649                    long companyId, boolean active, int start, int end)
650                    throws com.liferay.portal.kernel.exception.SystemException {
651                    return getPersistence().findByC_A(companyId, active, start, end);
652            }
653    
654            /**
655            * Returns an ordered range of all the layout prototypes where companyId = &#63; and active = &#63;.
656            *
657            * <p>
658            * 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.
659            * </p>
660            *
661            * @param companyId the company ID
662            * @param active the active
663            * @param start the lower bound of the range of layout prototypes
664            * @param end the upper bound of the range of layout prototypes (not inclusive)
665            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
666            * @return the ordered range of matching layout prototypes
667            * @throws SystemException if a system exception occurred
668            */
669            public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByC_A(
670                    long companyId, boolean active, int start, int end,
671                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
672                    throws com.liferay.portal.kernel.exception.SystemException {
673                    return getPersistence()
674                                       .findByC_A(companyId, active, start, end, orderByComparator);
675            }
676    
677            /**
678            * Returns the first layout prototype in the ordered set where companyId = &#63; and active = &#63;.
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 first matching layout prototype
684            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a matching layout prototype could not be found
685            * @throws SystemException if a system exception occurred
686            */
687            public static com.liferay.portal.model.LayoutPrototype findByC_A_First(
688                    long companyId, boolean active,
689                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
690                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
691                            com.liferay.portal.kernel.exception.SystemException {
692                    return getPersistence()
693                                       .findByC_A_First(companyId, active, orderByComparator);
694            }
695    
696            /**
697            * Returns the first layout prototype in the ordered set where companyId = &#63; and active = &#63;.
698            *
699            * @param companyId the company ID
700            * @param active the active
701            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
702            * @return the first matching layout prototype, or <code>null</code> if a matching layout prototype could not be found
703            * @throws SystemException if a system exception occurred
704            */
705            public static com.liferay.portal.model.LayoutPrototype fetchByC_A_First(
706                    long companyId, boolean active,
707                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
708                    throws com.liferay.portal.kernel.exception.SystemException {
709                    return getPersistence()
710                                       .fetchByC_A_First(companyId, active, orderByComparator);
711            }
712    
713            /**
714            * Returns the last layout prototype in the ordered set where companyId = &#63; and active = &#63;.
715            *
716            * @param companyId the company ID
717            * @param active the active
718            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
719            * @return the last matching layout prototype
720            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a matching layout prototype could not be found
721            * @throws SystemException if a system exception occurred
722            */
723            public static com.liferay.portal.model.LayoutPrototype findByC_A_Last(
724                    long companyId, boolean active,
725                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
726                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
727                            com.liferay.portal.kernel.exception.SystemException {
728                    return getPersistence()
729                                       .findByC_A_Last(companyId, active, orderByComparator);
730            }
731    
732            /**
733            * Returns the last layout prototype in the ordered set where companyId = &#63; and active = &#63;.
734            *
735            * @param companyId the company ID
736            * @param active the active
737            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
738            * @return the last matching layout prototype, or <code>null</code> if a matching layout prototype could not be found
739            * @throws SystemException if a system exception occurred
740            */
741            public static com.liferay.portal.model.LayoutPrototype fetchByC_A_Last(
742                    long companyId, boolean active,
743                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
744                    throws com.liferay.portal.kernel.exception.SystemException {
745                    return getPersistence()
746                                       .fetchByC_A_Last(companyId, active, orderByComparator);
747            }
748    
749            /**
750            * Returns the layout prototypes before and after the current layout prototype in the ordered set where companyId = &#63; and active = &#63;.
751            *
752            * @param layoutPrototypeId the primary key of the current layout prototype
753            * @param companyId the company ID
754            * @param active the active
755            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
756            * @return the previous, current, and next layout prototype
757            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found
758            * @throws SystemException if a system exception occurred
759            */
760            public static com.liferay.portal.model.LayoutPrototype[] findByC_A_PrevAndNext(
761                    long layoutPrototypeId, long companyId, boolean active,
762                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
763                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
764                            com.liferay.portal.kernel.exception.SystemException {
765                    return getPersistence()
766                                       .findByC_A_PrevAndNext(layoutPrototypeId, companyId, active,
767                            orderByComparator);
768            }
769    
770            /**
771            * Returns all the layout prototypes that the user has permission to view where companyId = &#63; and active = &#63;.
772            *
773            * @param companyId the company ID
774            * @param active the active
775            * @return the matching layout prototypes that the user has permission to view
776            * @throws SystemException if a system exception occurred
777            */
778            public static java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByC_A(
779                    long companyId, boolean active)
780                    throws com.liferay.portal.kernel.exception.SystemException {
781                    return getPersistence().filterFindByC_A(companyId, active);
782            }
783    
784            /**
785            * Returns a range of all the layout prototypes that the user has permission to view where companyId = &#63; and active = &#63;.
786            *
787            * <p>
788            * 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.
789            * </p>
790            *
791            * @param companyId the company ID
792            * @param active the active
793            * @param start the lower bound of the range of layout prototypes
794            * @param end the upper bound of the range of layout prototypes (not inclusive)
795            * @return the range of matching layout prototypes that the user has permission to view
796            * @throws SystemException if a system exception occurred
797            */
798            public static java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByC_A(
799                    long companyId, boolean active, int start, int end)
800                    throws com.liferay.portal.kernel.exception.SystemException {
801                    return getPersistence().filterFindByC_A(companyId, active, start, end);
802            }
803    
804            /**
805            * Returns an ordered range of all the layout prototypes that the user has permissions to view where companyId = &#63; and active = &#63;.
806            *
807            * <p>
808            * 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.
809            * </p>
810            *
811            * @param companyId the company ID
812            * @param active the active
813            * @param start the lower bound of the range of layout prototypes
814            * @param end the upper bound of the range of layout prototypes (not inclusive)
815            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
816            * @return the ordered range of matching layout prototypes that the user has permission to view
817            * @throws SystemException if a system exception occurred
818            */
819            public static java.util.List<com.liferay.portal.model.LayoutPrototype> filterFindByC_A(
820                    long companyId, boolean active, int start, int end,
821                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
822                    throws com.liferay.portal.kernel.exception.SystemException {
823                    return getPersistence()
824                                       .filterFindByC_A(companyId, active, start, end,
825                            orderByComparator);
826            }
827    
828            /**
829            * Returns the layout prototypes before and after the current layout prototype in the ordered set of layout prototypes that the user has permission to view where companyId = &#63; and active = &#63;.
830            *
831            * @param layoutPrototypeId the primary key of the current layout prototype
832            * @param companyId the company ID
833            * @param active the active
834            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
835            * @return the previous, current, and next layout prototype
836            * @throws com.liferay.portal.NoSuchLayoutPrototypeException if a layout prototype with the primary key could not be found
837            * @throws SystemException if a system exception occurred
838            */
839            public static com.liferay.portal.model.LayoutPrototype[] filterFindByC_A_PrevAndNext(
840                    long layoutPrototypeId, long companyId, boolean active,
841                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
842                    throws com.liferay.portal.NoSuchLayoutPrototypeException,
843                            com.liferay.portal.kernel.exception.SystemException {
844                    return getPersistence()
845                                       .filterFindByC_A_PrevAndNext(layoutPrototypeId, companyId,
846                            active, orderByComparator);
847            }
848    
849            /**
850            * Returns all the layout prototypes.
851            *
852            * @return the layout prototypes
853            * @throws SystemException if a system exception occurred
854            */
855            public static java.util.List<com.liferay.portal.model.LayoutPrototype> findAll()
856                    throws com.liferay.portal.kernel.exception.SystemException {
857                    return getPersistence().findAll();
858            }
859    
860            /**
861            * Returns a range of all the layout prototypes.
862            *
863            * <p>
864            * 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.
865            * </p>
866            *
867            * @param start the lower bound of the range of layout prototypes
868            * @param end the upper bound of the range of layout prototypes (not inclusive)
869            * @return the range of layout prototypes
870            * @throws SystemException if a system exception occurred
871            */
872            public static java.util.List<com.liferay.portal.model.LayoutPrototype> findAll(
873                    int start, int end)
874                    throws com.liferay.portal.kernel.exception.SystemException {
875                    return getPersistence().findAll(start, end);
876            }
877    
878            /**
879            * Returns an ordered range of all the layout prototypes.
880            *
881            * <p>
882            * 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.
883            * </p>
884            *
885            * @param start the lower bound of the range of layout prototypes
886            * @param end the upper bound of the range of layout prototypes (not inclusive)
887            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
888            * @return the ordered range of layout prototypes
889            * @throws SystemException if a system exception occurred
890            */
891            public static java.util.List<com.liferay.portal.model.LayoutPrototype> findAll(
892                    int start, int end,
893                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
894                    throws com.liferay.portal.kernel.exception.SystemException {
895                    return getPersistence().findAll(start, end, orderByComparator);
896            }
897    
898            /**
899            * Removes all the layout prototypes where uuid = &#63; from the database.
900            *
901            * @param uuid the uuid
902            * @throws SystemException if a system exception occurred
903            */
904            public static void removeByUuid(java.lang.String uuid)
905                    throws com.liferay.portal.kernel.exception.SystemException {
906                    getPersistence().removeByUuid(uuid);
907            }
908    
909            /**
910            * Removes all the layout prototypes where companyId = &#63; from the database.
911            *
912            * @param companyId the company ID
913            * @throws SystemException if a system exception occurred
914            */
915            public static void removeByCompanyId(long companyId)
916                    throws com.liferay.portal.kernel.exception.SystemException {
917                    getPersistence().removeByCompanyId(companyId);
918            }
919    
920            /**
921            * Removes all the layout prototypes where companyId = &#63; and active = &#63; from the database.
922            *
923            * @param companyId the company ID
924            * @param active the active
925            * @throws SystemException if a system exception occurred
926            */
927            public static void removeByC_A(long companyId, boolean active)
928                    throws com.liferay.portal.kernel.exception.SystemException {
929                    getPersistence().removeByC_A(companyId, active);
930            }
931    
932            /**
933            * Removes all the layout prototypes from the database.
934            *
935            * @throws SystemException if a system exception occurred
936            */
937            public static void removeAll()
938                    throws com.liferay.portal.kernel.exception.SystemException {
939                    getPersistence().removeAll();
940            }
941    
942            /**
943            * Returns the number of layout prototypes where uuid = &#63;.
944            *
945            * @param uuid the uuid
946            * @return the number of matching layout prototypes
947            * @throws SystemException if a system exception occurred
948            */
949            public static int countByUuid(java.lang.String uuid)
950                    throws com.liferay.portal.kernel.exception.SystemException {
951                    return getPersistence().countByUuid(uuid);
952            }
953    
954            /**
955            * Returns the number of layout prototypes that the user has permission to view where uuid = &#63;.
956            *
957            * @param uuid the uuid
958            * @return the number of matching layout prototypes that the user has permission to view
959            * @throws SystemException if a system exception occurred
960            */
961            public static int filterCountByUuid(java.lang.String uuid)
962                    throws com.liferay.portal.kernel.exception.SystemException {
963                    return getPersistence().filterCountByUuid(uuid);
964            }
965    
966            /**
967            * Returns the number of layout prototypes where companyId = &#63;.
968            *
969            * @param companyId the company ID
970            * @return the number of matching layout prototypes
971            * @throws SystemException if a system exception occurred
972            */
973            public static int countByCompanyId(long companyId)
974                    throws com.liferay.portal.kernel.exception.SystemException {
975                    return getPersistence().countByCompanyId(companyId);
976            }
977    
978            /**
979            * Returns the number of layout prototypes that the user has permission to view where companyId = &#63;.
980            *
981            * @param companyId the company ID
982            * @return the number of matching layout prototypes that the user has permission to view
983            * @throws SystemException if a system exception occurred
984            */
985            public static int filterCountByCompanyId(long companyId)
986                    throws com.liferay.portal.kernel.exception.SystemException {
987                    return getPersistence().filterCountByCompanyId(companyId);
988            }
989    
990            /**
991            * Returns the number of layout prototypes where companyId = &#63; and active = &#63;.
992            *
993            * @param companyId the company ID
994            * @param active the active
995            * @return the number of matching layout prototypes
996            * @throws SystemException if a system exception occurred
997            */
998            public static int countByC_A(long companyId, boolean active)
999                    throws com.liferay.portal.kernel.exception.SystemException {
1000                    return getPersistence().countByC_A(companyId, active);
1001            }
1002    
1003            /**
1004            * Returns the number of layout prototypes that the user has permission to view where companyId = &#63; and active = &#63;.
1005            *
1006            * @param companyId the company ID
1007            * @param active the active
1008            * @return the number of matching layout prototypes that the user has permission to view
1009            * @throws SystemException if a system exception occurred
1010            */
1011            public static int filterCountByC_A(long companyId, boolean active)
1012                    throws com.liferay.portal.kernel.exception.SystemException {
1013                    return getPersistence().filterCountByC_A(companyId, active);
1014            }
1015    
1016            /**
1017            * Returns the number of layout prototypes.
1018            *
1019            * @return the number of layout prototypes
1020            * @throws SystemException if a system exception occurred
1021            */
1022            public static int countAll()
1023                    throws com.liferay.portal.kernel.exception.SystemException {
1024                    return getPersistence().countAll();
1025            }
1026    
1027            public static LayoutPrototypePersistence getPersistence() {
1028                    if (_persistence == null) {
1029                            _persistence = (LayoutPrototypePersistence)PortalBeanLocatorUtil.locate(LayoutPrototypePersistence.class.getName());
1030    
1031                            ReferenceRegistry.registerReference(LayoutPrototypeUtil.class,
1032                                    "_persistence");
1033                    }
1034    
1035                    return _persistence;
1036            }
1037    
1038            /**
1039             * @deprecated
1040             */
1041            public void setPersistence(LayoutPrototypePersistence persistence) {
1042            }
1043    
1044            private static LayoutPrototypePersistence _persistence;
1045    }