001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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.model.LayoutSetPrototype;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import java.util.List;
025    
026    /**
027     * 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.
028     *
029     * <p>
030     * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
031     * </p>
032     *
033     * <p>
034     * Caching information and settings can be found in <code>portal.properties</code>
035     * </p>
036     *
037     * @author Brian Wing Shun Chan
038     * @see LayoutSetPrototypePersistence
039     * @see LayoutSetPrototypePersistenceImpl
040     * @generated
041     */
042    public class LayoutSetPrototypeUtil {
043            /**
044             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
045             */
046            public static void clearCache() {
047                    getPersistence().clearCache();
048            }
049    
050            /**
051             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
052             */
053            public static void clearCache(LayoutSetPrototype layoutSetPrototype) {
054                    getPersistence().clearCache(layoutSetPrototype);
055            }
056    
057            /**
058             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
059             */
060            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
061                    throws SystemException {
062                    return getPersistence().countWithDynamicQuery(dynamicQuery);
063            }
064    
065            /**
066             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
067             */
068            public static List<LayoutSetPrototype> findWithDynamicQuery(
069                    DynamicQuery dynamicQuery) throws SystemException {
070                    return getPersistence().findWithDynamicQuery(dynamicQuery);
071            }
072    
073            /**
074             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
075             */
076            public static List<LayoutSetPrototype> findWithDynamicQuery(
077                    DynamicQuery dynamicQuery, int start, int end)
078                    throws SystemException {
079                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
080            }
081    
082            /**
083             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
084             */
085            public static List<LayoutSetPrototype> findWithDynamicQuery(
086                    DynamicQuery dynamicQuery, int start, int end,
087                    OrderByComparator orderByComparator) throws SystemException {
088                    return getPersistence()
089                                       .findWithDynamicQuery(dynamicQuery, start, end,
090                            orderByComparator);
091            }
092    
093            /**
094             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
095             */
096            public static LayoutSetPrototype remove(
097                    LayoutSetPrototype layoutSetPrototype) throws SystemException {
098                    return getPersistence().remove(layoutSetPrototype);
099            }
100    
101            /**
102             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
103             */
104            public static LayoutSetPrototype update(
105                    LayoutSetPrototype layoutSetPrototype, boolean merge)
106                    throws SystemException {
107                    return getPersistence().update(layoutSetPrototype, merge);
108            }
109    
110            /**
111             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
112             */
113            public static LayoutSetPrototype update(
114                    LayoutSetPrototype layoutSetPrototype, boolean merge,
115                    ServiceContext serviceContext) throws SystemException {
116                    return getPersistence().update(layoutSetPrototype, merge, serviceContext);
117            }
118    
119            /**
120            * Caches the layout set prototype in the entity cache if it is enabled.
121            *
122            * @param layoutSetPrototype the layout set prototype to cache
123            */
124            public static void cacheResult(
125                    com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype) {
126                    getPersistence().cacheResult(layoutSetPrototype);
127            }
128    
129            /**
130            * Caches the layout set prototypes in the entity cache if it is enabled.
131            *
132            * @param layoutSetPrototypes the layout set prototypes to cache
133            */
134            public static void cacheResult(
135                    java.util.List<com.liferay.portal.model.LayoutSetPrototype> layoutSetPrototypes) {
136                    getPersistence().cacheResult(layoutSetPrototypes);
137            }
138    
139            /**
140            * Creates a new layout set prototype with the primary key. Does not add the layout set prototype to the database.
141            *
142            * @param layoutSetPrototypeId the primary key for the new layout set prototype
143            * @return the new layout set prototype
144            */
145            public static com.liferay.portal.model.LayoutSetPrototype create(
146                    long layoutSetPrototypeId) {
147                    return getPersistence().create(layoutSetPrototypeId);
148            }
149    
150            /**
151            * Removes the layout set prototype with the primary key from the database. Also notifies the appropriate model listeners.
152            *
153            * @param layoutSetPrototypeId the primary key of the layout set prototype to remove
154            * @return the layout set prototype that was removed
155            * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found
156            * @throws SystemException if a system exception occurred
157            */
158            public static com.liferay.portal.model.LayoutSetPrototype remove(
159                    long layoutSetPrototypeId)
160                    throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
161                            com.liferay.portal.kernel.exception.SystemException {
162                    return getPersistence().remove(layoutSetPrototypeId);
163            }
164    
165            public static com.liferay.portal.model.LayoutSetPrototype updateImpl(
166                    com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype,
167                    boolean merge)
168                    throws com.liferay.portal.kernel.exception.SystemException {
169                    return getPersistence().updateImpl(layoutSetPrototype, merge);
170            }
171    
172            /**
173            * Finds the layout set prototype with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutSetPrototypeException} if it could not be found.
174            *
175            * @param layoutSetPrototypeId the primary key of the layout set prototype to find
176            * @return the layout set prototype
177            * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found
178            * @throws SystemException if a system exception occurred
179            */
180            public static com.liferay.portal.model.LayoutSetPrototype findByPrimaryKey(
181                    long layoutSetPrototypeId)
182                    throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
183                            com.liferay.portal.kernel.exception.SystemException {
184                    return getPersistence().findByPrimaryKey(layoutSetPrototypeId);
185            }
186    
187            /**
188            * Finds the layout set prototype with the primary key or returns <code>null</code> if it could not be found.
189            *
190            * @param layoutSetPrototypeId the primary key of the layout set prototype to find
191            * @return the layout set prototype, or <code>null</code> if a layout set prototype with the primary key could not be found
192            * @throws SystemException if a system exception occurred
193            */
194            public static com.liferay.portal.model.LayoutSetPrototype fetchByPrimaryKey(
195                    long layoutSetPrototypeId)
196                    throws com.liferay.portal.kernel.exception.SystemException {
197                    return getPersistence().fetchByPrimaryKey(layoutSetPrototypeId);
198            }
199    
200            /**
201            * Finds all the layout set prototypes where companyId = &#63;.
202            *
203            * @param companyId the company id to search with
204            * @return the matching layout set prototypes
205            * @throws SystemException if a system exception occurred
206            */
207            public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId(
208                    long companyId)
209                    throws com.liferay.portal.kernel.exception.SystemException {
210                    return getPersistence().findByCompanyId(companyId);
211            }
212    
213            /**
214            * Finds a range of all the layout set prototypes where companyId = &#63;.
215            *
216            * <p>
217            * 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.
218            * </p>
219            *
220            * @param companyId the company id to search with
221            * @param start the lower bound of the range of layout set prototypes to return
222            * @param end the upper bound of the range of layout set prototypes to return (not inclusive)
223            * @return the range of matching layout set prototypes
224            * @throws SystemException if a system exception occurred
225            */
226            public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId(
227                    long companyId, int start, int end)
228                    throws com.liferay.portal.kernel.exception.SystemException {
229                    return getPersistence().findByCompanyId(companyId, start, end);
230            }
231    
232            /**
233            * Finds an ordered range of all the layout set prototypes where companyId = &#63;.
234            *
235            * <p>
236            * 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.
237            * </p>
238            *
239            * @param companyId the company id to search with
240            * @param start the lower bound of the range of layout set prototypes to return
241            * @param end the upper bound of the range of layout set prototypes to return (not inclusive)
242            * @param orderByComparator the comparator to order the results by
243            * @return the ordered range of matching layout set prototypes
244            * @throws SystemException if a system exception occurred
245            */
246            public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId(
247                    long companyId, int start, int end,
248                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
249                    throws com.liferay.portal.kernel.exception.SystemException {
250                    return getPersistence()
251                                       .findByCompanyId(companyId, start, end, orderByComparator);
252            }
253    
254            /**
255            * Finds the first layout set prototype in the ordered set where companyId = &#63;.
256            *
257            * <p>
258            * 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.
259            * </p>
260            *
261            * @param companyId the company id to search with
262            * @param orderByComparator the comparator to order the set by
263            * @return the first matching layout set prototype
264            * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found
265            * @throws SystemException if a system exception occurred
266            */
267            public static com.liferay.portal.model.LayoutSetPrototype findByCompanyId_First(
268                    long companyId,
269                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
270                    throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
271                            com.liferay.portal.kernel.exception.SystemException {
272                    return getPersistence()
273                                       .findByCompanyId_First(companyId, orderByComparator);
274            }
275    
276            /**
277            * Finds the last layout set prototype in the ordered set where companyId = &#63;.
278            *
279            * <p>
280            * 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.
281            * </p>
282            *
283            * @param companyId the company id to search with
284            * @param orderByComparator the comparator to order the set by
285            * @return the last matching layout set prototype
286            * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found
287            * @throws SystemException if a system exception occurred
288            */
289            public static com.liferay.portal.model.LayoutSetPrototype findByCompanyId_Last(
290                    long companyId,
291                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
292                    throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
293                            com.liferay.portal.kernel.exception.SystemException {
294                    return getPersistence()
295                                       .findByCompanyId_Last(companyId, orderByComparator);
296            }
297    
298            /**
299            * Finds the layout set prototypes before and after the current layout set prototype in the ordered set where companyId = &#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 companyId the company id to search with
307            * @param orderByComparator the comparator to order the set by
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[] findByCompanyId_PrevAndNext(
313                    long layoutSetPrototypeId, long companyId,
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                                       .findByCompanyId_PrevAndNext(layoutSetPrototypeId,
319                            companyId, orderByComparator);
320            }
321    
322            /**
323            * Finds all the layout set prototypes where companyId = &#63; and active = &#63;.
324            *
325            * @param companyId the company id to search with
326            * @param active the active to search with
327            * @return the matching layout set prototypes
328            * @throws SystemException if a system exception occurred
329            */
330            public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A(
331                    long companyId, boolean active)
332                    throws com.liferay.portal.kernel.exception.SystemException {
333                    return getPersistence().findByC_A(companyId, active);
334            }
335    
336            /**
337            * Finds a range of all the layout set prototypes where companyId = &#63; and active = &#63;.
338            *
339            * <p>
340            * 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.
341            * </p>
342            *
343            * @param companyId the company id to search with
344            * @param active the active to search with
345            * @param start the lower bound of the range of layout set prototypes to return
346            * @param end the upper bound of the range of layout set prototypes to return (not inclusive)
347            * @return the range of matching layout set prototypes
348            * @throws SystemException if a system exception occurred
349            */
350            public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A(
351                    long companyId, boolean active, int start, int end)
352                    throws com.liferay.portal.kernel.exception.SystemException {
353                    return getPersistence().findByC_A(companyId, active, start, end);
354            }
355    
356            /**
357            * Finds an ordered range of all the layout set prototypes where companyId = &#63; and active = &#63;.
358            *
359            * <p>
360            * 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.
361            * </p>
362            *
363            * @param companyId the company id to search with
364            * @param active the active to search with
365            * @param start the lower bound of the range of layout set prototypes to return
366            * @param end the upper bound of the range of layout set prototypes to return (not inclusive)
367            * @param orderByComparator the comparator to order the results by
368            * @return the ordered range of matching layout set prototypes
369            * @throws SystemException if a system exception occurred
370            */
371            public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A(
372                    long companyId, boolean active, int start, int end,
373                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
374                    throws com.liferay.portal.kernel.exception.SystemException {
375                    return getPersistence()
376                                       .findByC_A(companyId, active, start, end, orderByComparator);
377            }
378    
379            /**
380            * Finds the first layout set prototype in the ordered set where companyId = &#63; and active = &#63;.
381            *
382            * <p>
383            * 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.
384            * </p>
385            *
386            * @param companyId the company id to search with
387            * @param active the active to search with
388            * @param orderByComparator the comparator to order the set by
389            * @return the first matching layout set prototype
390            * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found
391            * @throws SystemException if a system exception occurred
392            */
393            public static com.liferay.portal.model.LayoutSetPrototype findByC_A_First(
394                    long companyId, boolean active,
395                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
396                    throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
397                            com.liferay.portal.kernel.exception.SystemException {
398                    return getPersistence()
399                                       .findByC_A_First(companyId, active, orderByComparator);
400            }
401    
402            /**
403            * Finds the last layout set prototype in the ordered set where companyId = &#63; and active = &#63;.
404            *
405            * <p>
406            * 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.
407            * </p>
408            *
409            * @param companyId the company id to search with
410            * @param active the active to search with
411            * @param orderByComparator the comparator to order the set by
412            * @return the last matching layout set prototype
413            * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found
414            * @throws SystemException if a system exception occurred
415            */
416            public static com.liferay.portal.model.LayoutSetPrototype findByC_A_Last(
417                    long companyId, boolean active,
418                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
419                    throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
420                            com.liferay.portal.kernel.exception.SystemException {
421                    return getPersistence()
422                                       .findByC_A_Last(companyId, active, orderByComparator);
423            }
424    
425            /**
426            * Finds the layout set prototypes before and after the current layout set prototype in the ordered set where companyId = &#63; and active = &#63;.
427            *
428            * <p>
429            * 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.
430            * </p>
431            *
432            * @param layoutSetPrototypeId the primary key of the current layout set prototype
433            * @param companyId the company id to search with
434            * @param active the active to search with
435            * @param orderByComparator the comparator to order the set by
436            * @return the previous, current, and next layout set prototype
437            * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found
438            * @throws SystemException if a system exception occurred
439            */
440            public static com.liferay.portal.model.LayoutSetPrototype[] findByC_A_PrevAndNext(
441                    long layoutSetPrototypeId, long companyId, boolean active,
442                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
443                    throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
444                            com.liferay.portal.kernel.exception.SystemException {
445                    return getPersistence()
446                                       .findByC_A_PrevAndNext(layoutSetPrototypeId, companyId,
447                            active, orderByComparator);
448            }
449    
450            /**
451            * Finds all the layout set prototypes.
452            *
453            * @return the layout set prototypes
454            * @throws SystemException if a system exception occurred
455            */
456            public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll()
457                    throws com.liferay.portal.kernel.exception.SystemException {
458                    return getPersistence().findAll();
459            }
460    
461            /**
462            * Finds a range of all the layout set prototypes.
463            *
464            * <p>
465            * 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.
466            * </p>
467            *
468            * @param start the lower bound of the range of layout set prototypes to return
469            * @param end the upper bound of the range of layout set prototypes to return (not inclusive)
470            * @return the range of layout set prototypes
471            * @throws SystemException if a system exception occurred
472            */
473            public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll(
474                    int start, int end)
475                    throws com.liferay.portal.kernel.exception.SystemException {
476                    return getPersistence().findAll(start, end);
477            }
478    
479            /**
480            * Finds an ordered range of all the layout set prototypes.
481            *
482            * <p>
483            * 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.
484            * </p>
485            *
486            * @param start the lower bound of the range of layout set prototypes to return
487            * @param end the upper bound of the range of layout set prototypes to return (not inclusive)
488            * @param orderByComparator the comparator to order the results by
489            * @return the ordered range of layout set prototypes
490            * @throws SystemException if a system exception occurred
491            */
492            public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll(
493                    int start, int end,
494                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
495                    throws com.liferay.portal.kernel.exception.SystemException {
496                    return getPersistence().findAll(start, end, orderByComparator);
497            }
498    
499            /**
500            * Removes all the layout set prototypes where companyId = &#63; from the database.
501            *
502            * @param companyId the company id to search with
503            * @throws SystemException if a system exception occurred
504            */
505            public static void removeByCompanyId(long companyId)
506                    throws com.liferay.portal.kernel.exception.SystemException {
507                    getPersistence().removeByCompanyId(companyId);
508            }
509    
510            /**
511            * Removes all the layout set prototypes where companyId = &#63; and active = &#63; from the database.
512            *
513            * @param companyId the company id to search with
514            * @param active the active to search with
515            * @throws SystemException if a system exception occurred
516            */
517            public static void removeByC_A(long companyId, boolean active)
518                    throws com.liferay.portal.kernel.exception.SystemException {
519                    getPersistence().removeByC_A(companyId, active);
520            }
521    
522            /**
523            * Removes all the layout set prototypes from the database.
524            *
525            * @throws SystemException if a system exception occurred
526            */
527            public static void removeAll()
528                    throws com.liferay.portal.kernel.exception.SystemException {
529                    getPersistence().removeAll();
530            }
531    
532            /**
533            * Counts all the layout set prototypes where companyId = &#63;.
534            *
535            * @param companyId the company id to search with
536            * @return the number of matching layout set prototypes
537            * @throws SystemException if a system exception occurred
538            */
539            public static int countByCompanyId(long companyId)
540                    throws com.liferay.portal.kernel.exception.SystemException {
541                    return getPersistence().countByCompanyId(companyId);
542            }
543    
544            /**
545            * Counts all the layout set prototypes where companyId = &#63; and active = &#63;.
546            *
547            * @param companyId the company id to search with
548            * @param active the active to search with
549            * @return the number of matching layout set prototypes
550            * @throws SystemException if a system exception occurred
551            */
552            public static int countByC_A(long companyId, boolean active)
553                    throws com.liferay.portal.kernel.exception.SystemException {
554                    return getPersistence().countByC_A(companyId, active);
555            }
556    
557            /**
558            * Counts all the layout set prototypes.
559            *
560            * @return the number of layout set prototypes
561            * @throws SystemException if a system exception occurred
562            */
563            public static int countAll()
564                    throws com.liferay.portal.kernel.exception.SystemException {
565                    return getPersistence().countAll();
566            }
567    
568            public static LayoutSetPrototypePersistence getPersistence() {
569                    if (_persistence == null) {
570                            _persistence = (LayoutSetPrototypePersistence)PortalBeanLocatorUtil.locate(LayoutSetPrototypePersistence.class.getName());
571                    }
572    
573                    return _persistence;
574            }
575    
576            public void setPersistence(LayoutSetPrototypePersistence persistence) {
577                    _persistence = persistence;
578            }
579    
580            private static LayoutSetPrototypePersistence _persistence;
581    }