001    /**
002     * Copyright (c) 2000-present 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.base;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.dao.db.DB;
021    import com.liferay.portal.kernel.dao.db.DBManagerUtil;
022    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
023    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
024    import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;
025    import com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery;
026    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
027    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
028    import com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery;
029    import com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery;
030    import com.liferay.portal.kernel.dao.orm.Projection;
031    import com.liferay.portal.kernel.exception.PortalException;
032    import com.liferay.portal.kernel.exception.SystemException;
033    import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
034    import com.liferay.portal.kernel.search.Indexable;
035    import com.liferay.portal.kernel.search.IndexableType;
036    import com.liferay.portal.kernel.util.OrderByComparator;
037    import com.liferay.portal.model.Layout;
038    import com.liferay.portal.model.PersistedModel;
039    import com.liferay.portal.service.BaseLocalServiceImpl;
040    import com.liferay.portal.service.LayoutLocalService;
041    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
042    import com.liferay.portal.service.persistence.ClassNamePersistence;
043    import com.liferay.portal.service.persistence.GroupFinder;
044    import com.liferay.portal.service.persistence.GroupPersistence;
045    import com.liferay.portal.service.persistence.ImagePersistence;
046    import com.liferay.portal.service.persistence.LayoutFinder;
047    import com.liferay.portal.service.persistence.LayoutFriendlyURLPersistence;
048    import com.liferay.portal.service.persistence.LayoutPersistence;
049    import com.liferay.portal.service.persistence.LayoutPrototypePersistence;
050    import com.liferay.portal.service.persistence.LayoutSetPersistence;
051    import com.liferay.portal.service.persistence.LayoutSetPrototypePersistence;
052    import com.liferay.portal.service.persistence.PluginSettingPersistence;
053    import com.liferay.portal.service.persistence.PortletPreferencesFinder;
054    import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
055    import com.liferay.portal.service.persistence.ResourcePermissionFinder;
056    import com.liferay.portal.service.persistence.ResourcePermissionPersistence;
057    import com.liferay.portal.service.persistence.SubscriptionPersistence;
058    import com.liferay.portal.service.persistence.UserFinder;
059    import com.liferay.portal.service.persistence.UserPersistence;
060    import com.liferay.portal.util.PortalUtil;
061    
062    import com.liferay.portlet.asset.service.persistence.AssetCategoryFinder;
063    import com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence;
064    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
065    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
066    import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
067    import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
068    import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
069    import com.liferay.portlet.exportimport.lar.ExportImportHelperUtil;
070    import com.liferay.portlet.exportimport.lar.ManifestSummary;
071    import com.liferay.portlet.exportimport.lar.PortletDataContext;
072    import com.liferay.portlet.exportimport.lar.StagedModelDataHandlerUtil;
073    import com.liferay.portlet.exportimport.lar.StagedModelType;
074    import com.liferay.portlet.exportimport.service.persistence.ExportImportConfigurationPersistence;
075    import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
076    import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
077    
078    import java.io.Serializable;
079    
080    import java.util.List;
081    
082    import javax.sql.DataSource;
083    
084    /**
085     * Provides the base implementation for the layout local service.
086     *
087     * <p>
088     * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link com.liferay.portal.service.impl.LayoutLocalServiceImpl}.
089     * </p>
090     *
091     * @author Brian Wing Shun Chan
092     * @see com.liferay.portal.service.impl.LayoutLocalServiceImpl
093     * @see com.liferay.portal.service.LayoutLocalServiceUtil
094     * @generated
095     */
096    @ProviderType
097    public abstract class LayoutLocalServiceBaseImpl extends BaseLocalServiceImpl
098            implements LayoutLocalService, IdentifiableOSGiService {
099            /*
100             * NOTE FOR DEVELOPERS:
101             *
102             * Never modify or reference this class directly. Always use {@link com.liferay.portal.service.LayoutLocalServiceUtil} to access the layout local service.
103             */
104    
105            /**
106             * Adds the layout to the database. Also notifies the appropriate model listeners.
107             *
108             * @param layout the layout
109             * @return the layout that was added
110             */
111            @Indexable(type = IndexableType.REINDEX)
112            @Override
113            public Layout addLayout(Layout layout) {
114                    layout.setNew(true);
115    
116                    return layoutPersistence.update(layout);
117            }
118    
119            /**
120             * Creates a new layout with the primary key. Does not add the layout to the database.
121             *
122             * @param plid the primary key for the new layout
123             * @return the new layout
124             */
125            @Override
126            public Layout createLayout(long plid) {
127                    return layoutPersistence.create(plid);
128            }
129    
130            /**
131             * Deletes the layout with the primary key from the database. Also notifies the appropriate model listeners.
132             *
133             * @param plid the primary key of the layout
134             * @return the layout that was removed
135             * @throws PortalException if a layout with the primary key could not be found
136             */
137            @Indexable(type = IndexableType.DELETE)
138            @Override
139            public Layout deleteLayout(long plid) throws PortalException {
140                    return layoutPersistence.remove(plid);
141            }
142    
143            /**
144             * Deletes the layout from the database. Also notifies the appropriate model listeners.
145             *
146             * @param layout the layout
147             * @return the layout that was removed
148             */
149            @Indexable(type = IndexableType.DELETE)
150            @Override
151            public Layout deleteLayout(Layout layout) {
152                    return layoutPersistence.remove(layout);
153            }
154    
155            @Override
156            public DynamicQuery dynamicQuery() {
157                    Class<?> clazz = getClass();
158    
159                    return DynamicQueryFactoryUtil.forClass(Layout.class,
160                            clazz.getClassLoader());
161            }
162    
163            /**
164             * Performs a dynamic query on the database and returns the matching rows.
165             *
166             * @param dynamicQuery the dynamic query
167             * @return the matching rows
168             */
169            @Override
170            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
171                    return layoutPersistence.findWithDynamicQuery(dynamicQuery);
172            }
173    
174            /**
175             * Performs a dynamic query on the database and returns a range of the matching rows.
176             *
177             * <p>
178             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
179             * </p>
180             *
181             * @param dynamicQuery the dynamic query
182             * @param start the lower bound of the range of model instances
183             * @param end the upper bound of the range of model instances (not inclusive)
184             * @return the range of matching rows
185             */
186            @Override
187            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
188                    int end) {
189                    return layoutPersistence.findWithDynamicQuery(dynamicQuery, start, end);
190            }
191    
192            /**
193             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
194             *
195             * <p>
196             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
197             * </p>
198             *
199             * @param dynamicQuery the dynamic query
200             * @param start the lower bound of the range of model instances
201             * @param end the upper bound of the range of model instances (not inclusive)
202             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
203             * @return the ordered range of matching rows
204             */
205            @Override
206            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
207                    int end, OrderByComparator<T> orderByComparator) {
208                    return layoutPersistence.findWithDynamicQuery(dynamicQuery, start, end,
209                            orderByComparator);
210            }
211    
212            /**
213             * Returns the number of rows matching the dynamic query.
214             *
215             * @param dynamicQuery the dynamic query
216             * @return the number of rows matching the dynamic query
217             */
218            @Override
219            public long dynamicQueryCount(DynamicQuery dynamicQuery) {
220                    return layoutPersistence.countWithDynamicQuery(dynamicQuery);
221            }
222    
223            /**
224             * Returns the number of rows matching the dynamic query.
225             *
226             * @param dynamicQuery the dynamic query
227             * @param projection the projection to apply to the query
228             * @return the number of rows matching the dynamic query
229             */
230            @Override
231            public long dynamicQueryCount(DynamicQuery dynamicQuery,
232                    Projection projection) {
233                    return layoutPersistence.countWithDynamicQuery(dynamicQuery, projection);
234            }
235    
236            @Override
237            public Layout fetchLayout(long plid) {
238                    return layoutPersistence.fetchByPrimaryKey(plid);
239            }
240    
241            /**
242             * Returns the layout matching the UUID, group, and privacy.
243             *
244             * @param uuid the layout's UUID
245             * @param groupId the primary key of the group
246             * @param privateLayout whether the layout is private to the group
247             * @return the matching layout, or <code>null</code> if a matching layout could not be found
248             */
249            @Override
250            public Layout fetchLayoutByUuidAndGroupId(String uuid, long groupId,
251                    boolean privateLayout) {
252                    return layoutPersistence.fetchByUUID_G_P(uuid, groupId, privateLayout);
253            }
254    
255            /**
256             * Returns the layout with the primary key.
257             *
258             * @param plid the primary key of the layout
259             * @return the layout
260             * @throws PortalException if a layout with the primary key could not be found
261             */
262            @Override
263            public Layout getLayout(long plid) throws PortalException {
264                    return layoutPersistence.findByPrimaryKey(plid);
265            }
266    
267            @Override
268            public ActionableDynamicQuery getActionableDynamicQuery() {
269                    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
270    
271                    actionableDynamicQuery.setBaseLocalService(com.liferay.portal.service.LayoutLocalServiceUtil.getService());
272                    actionableDynamicQuery.setClassLoader(getClassLoader());
273                    actionableDynamicQuery.setModelClass(Layout.class);
274    
275                    actionableDynamicQuery.setPrimaryKeyPropertyName("plid");
276    
277                    return actionableDynamicQuery;
278            }
279    
280            @Override
281            public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
282                    IndexableActionableDynamicQuery indexableActionableDynamicQuery = new IndexableActionableDynamicQuery();
283    
284                    indexableActionableDynamicQuery.setBaseLocalService(com.liferay.portal.service.LayoutLocalServiceUtil.getService());
285                    indexableActionableDynamicQuery.setClassLoader(getClassLoader());
286                    indexableActionableDynamicQuery.setModelClass(Layout.class);
287    
288                    indexableActionableDynamicQuery.setPrimaryKeyPropertyName("plid");
289    
290                    return indexableActionableDynamicQuery;
291            }
292    
293            protected void initActionableDynamicQuery(
294                    ActionableDynamicQuery actionableDynamicQuery) {
295                    actionableDynamicQuery.setBaseLocalService(com.liferay.portal.service.LayoutLocalServiceUtil.getService());
296                    actionableDynamicQuery.setClassLoader(getClassLoader());
297                    actionableDynamicQuery.setModelClass(Layout.class);
298    
299                    actionableDynamicQuery.setPrimaryKeyPropertyName("plid");
300            }
301    
302            @Override
303            public ExportActionableDynamicQuery getExportActionableDynamicQuery(
304                    final PortletDataContext portletDataContext) {
305                    final ExportActionableDynamicQuery exportActionableDynamicQuery = new ExportActionableDynamicQuery() {
306                                    @Override
307                                    public long performCount() throws PortalException {
308                                            ManifestSummary manifestSummary = portletDataContext.getManifestSummary();
309    
310                                            StagedModelType stagedModelType = getStagedModelType();
311    
312                                            long modelAdditionCount = super.performCount();
313    
314                                            manifestSummary.addModelAdditionCount(stagedModelType,
315                                                    modelAdditionCount);
316    
317                                            long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(portletDataContext,
318                                                            stagedModelType);
319    
320                                            manifestSummary.addModelDeletionCount(stagedModelType,
321                                                    modelDeletionCount);
322    
323                                            return modelAdditionCount;
324                                    }
325                            };
326    
327                    initActionableDynamicQuery(exportActionableDynamicQuery);
328    
329                    exportActionableDynamicQuery.setAddCriteriaMethod(new ActionableDynamicQuery.AddCriteriaMethod() {
330                                    @Override
331                                    public void addCriteria(DynamicQuery dynamicQuery) {
332                                            portletDataContext.addDateRangeCriteria(dynamicQuery,
333                                                    "modifiedDate");
334                                    }
335                            });
336    
337                    exportActionableDynamicQuery.setCompanyId(portletDataContext.getCompanyId());
338    
339                    exportActionableDynamicQuery.setGroupId(portletDataContext.getScopeGroupId());
340    
341                    exportActionableDynamicQuery.setPerformActionMethod(new ActionableDynamicQuery.PerformActionMethod<Layout>() {
342                                    @Override
343                                    public void performAction(Layout layout)
344                                            throws PortalException {
345                                            StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
346                                                    layout);
347                                    }
348                            });
349                    exportActionableDynamicQuery.setStagedModelType(new StagedModelType(
350                                    PortalUtil.getClassNameId(Layout.class.getName())));
351    
352                    return exportActionableDynamicQuery;
353            }
354    
355            /**
356             * @throws PortalException
357             */
358            @Override
359            public PersistedModel deletePersistedModel(PersistedModel persistedModel)
360                    throws PortalException {
361                    return layoutLocalService.deleteLayout((Layout)persistedModel);
362            }
363    
364            @Override
365            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
366                    throws PortalException {
367                    return layoutPersistence.findByPrimaryKey(primaryKeyObj);
368            }
369    
370            /**
371             * Returns all the layouts matching the UUID and company.
372             *
373             * @param uuid the UUID of the layouts
374             * @param companyId the primary key of the company
375             * @return the matching layouts, or an empty list if no matches were found
376             */
377            @Override
378            public List<Layout> getLayoutsByUuidAndCompanyId(String uuid, long companyId) {
379                    return layoutPersistence.findByUuid_C(uuid, companyId);
380            }
381    
382            /**
383             * Returns a range of layouts matching the UUID and company.
384             *
385             * @param uuid the UUID of the layouts
386             * @param companyId the primary key of the company
387             * @param start the lower bound of the range of layouts
388             * @param end the upper bound of the range of layouts (not inclusive)
389             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
390             * @return the range of matching layouts, or an empty list if no matches were found
391             */
392            @Override
393            public List<Layout> getLayoutsByUuidAndCompanyId(String uuid,
394                    long companyId, int start, int end,
395                    OrderByComparator<Layout> orderByComparator) {
396                    return layoutPersistence.findByUuid_C(uuid, companyId, start, end,
397                            orderByComparator);
398            }
399    
400            /**
401             * Returns the layout matching the UUID, group, and privacy.
402             *
403             * @param uuid the layout's UUID
404             * @param groupId the primary key of the group
405             * @param privateLayout whether the layout is private to the group
406             * @return the matching layout
407             * @throws PortalException if a matching layout could not be found
408             */
409            @Override
410            public Layout getLayoutByUuidAndGroupId(String uuid, long groupId,
411                    boolean privateLayout) throws PortalException {
412                    return layoutPersistence.findByUUID_G_P(uuid, groupId, privateLayout);
413            }
414    
415            /**
416             * Returns a range of all the layouts.
417             *
418             * <p>
419             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
420             * </p>
421             *
422             * @param start the lower bound of the range of layouts
423             * @param end the upper bound of the range of layouts (not inclusive)
424             * @return the range of layouts
425             */
426            @Override
427            public List<Layout> getLayouts(int start, int end) {
428                    return layoutPersistence.findAll(start, end);
429            }
430    
431            /**
432             * Returns the number of layouts.
433             *
434             * @return the number of layouts
435             */
436            @Override
437            public int getLayoutsCount() {
438                    return layoutPersistence.countAll();
439            }
440    
441            /**
442             * Updates the layout in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
443             *
444             * @param layout the layout
445             * @return the layout that was updated
446             */
447            @Indexable(type = IndexableType.REINDEX)
448            @Override
449            public Layout updateLayout(Layout layout) {
450                    return layoutPersistence.update(layout);
451            }
452    
453            /**
454             * Returns the layout local service.
455             *
456             * @return the layout local service
457             */
458            public LayoutLocalService getLayoutLocalService() {
459                    return layoutLocalService;
460            }
461    
462            /**
463             * Sets the layout local service.
464             *
465             * @param layoutLocalService the layout local service
466             */
467            public void setLayoutLocalService(LayoutLocalService layoutLocalService) {
468                    this.layoutLocalService = layoutLocalService;
469            }
470    
471            /**
472             * Returns the layout persistence.
473             *
474             * @return the layout persistence
475             */
476            public LayoutPersistence getLayoutPersistence() {
477                    return layoutPersistence;
478            }
479    
480            /**
481             * Sets the layout persistence.
482             *
483             * @param layoutPersistence the layout persistence
484             */
485            public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
486                    this.layoutPersistence = layoutPersistence;
487            }
488    
489            /**
490             * Returns the layout finder.
491             *
492             * @return the layout finder
493             */
494            public LayoutFinder getLayoutFinder() {
495                    return layoutFinder;
496            }
497    
498            /**
499             * Sets the layout finder.
500             *
501             * @param layoutFinder the layout finder
502             */
503            public void setLayoutFinder(LayoutFinder layoutFinder) {
504                    this.layoutFinder = layoutFinder;
505            }
506    
507            /**
508             * Returns the counter local service.
509             *
510             * @return the counter local service
511             */
512            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
513                    return counterLocalService;
514            }
515    
516            /**
517             * Sets the counter local service.
518             *
519             * @param counterLocalService the counter local service
520             */
521            public void setCounterLocalService(
522                    com.liferay.counter.service.CounterLocalService counterLocalService) {
523                    this.counterLocalService = counterLocalService;
524            }
525    
526            /**
527             * Returns the class name local service.
528             *
529             * @return the class name local service
530             */
531            public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
532                    return classNameLocalService;
533            }
534    
535            /**
536             * Sets the class name local service.
537             *
538             * @param classNameLocalService the class name local service
539             */
540            public void setClassNameLocalService(
541                    com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
542                    this.classNameLocalService = classNameLocalService;
543            }
544    
545            /**
546             * Returns the class name persistence.
547             *
548             * @return the class name persistence
549             */
550            public ClassNamePersistence getClassNamePersistence() {
551                    return classNamePersistence;
552            }
553    
554            /**
555             * Sets the class name persistence.
556             *
557             * @param classNamePersistence the class name persistence
558             */
559            public void setClassNamePersistence(
560                    ClassNamePersistence classNamePersistence) {
561                    this.classNamePersistence = classNamePersistence;
562            }
563    
564            /**
565             * Returns the group local service.
566             *
567             * @return the group local service
568             */
569            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
570                    return groupLocalService;
571            }
572    
573            /**
574             * Sets the group local service.
575             *
576             * @param groupLocalService the group local service
577             */
578            public void setGroupLocalService(
579                    com.liferay.portal.service.GroupLocalService groupLocalService) {
580                    this.groupLocalService = groupLocalService;
581            }
582    
583            /**
584             * Returns the group persistence.
585             *
586             * @return the group persistence
587             */
588            public GroupPersistence getGroupPersistence() {
589                    return groupPersistence;
590            }
591    
592            /**
593             * Sets the group persistence.
594             *
595             * @param groupPersistence the group persistence
596             */
597            public void setGroupPersistence(GroupPersistence groupPersistence) {
598                    this.groupPersistence = groupPersistence;
599            }
600    
601            /**
602             * Returns the group finder.
603             *
604             * @return the group finder
605             */
606            public GroupFinder getGroupFinder() {
607                    return groupFinder;
608            }
609    
610            /**
611             * Sets the group finder.
612             *
613             * @param groupFinder the group finder
614             */
615            public void setGroupFinder(GroupFinder groupFinder) {
616                    this.groupFinder = groupFinder;
617            }
618    
619            /**
620             * Returns the image local service.
621             *
622             * @return the image local service
623             */
624            public com.liferay.portal.service.ImageLocalService getImageLocalService() {
625                    return imageLocalService;
626            }
627    
628            /**
629             * Sets the image local service.
630             *
631             * @param imageLocalService the image local service
632             */
633            public void setImageLocalService(
634                    com.liferay.portal.service.ImageLocalService imageLocalService) {
635                    this.imageLocalService = imageLocalService;
636            }
637    
638            /**
639             * Returns the image persistence.
640             *
641             * @return the image persistence
642             */
643            public ImagePersistence getImagePersistence() {
644                    return imagePersistence;
645            }
646    
647            /**
648             * Sets the image persistence.
649             *
650             * @param imagePersistence the image persistence
651             */
652            public void setImagePersistence(ImagePersistence imagePersistence) {
653                    this.imagePersistence = imagePersistence;
654            }
655    
656            /**
657             * Returns the asset category local service.
658             *
659             * @return the asset category local service
660             */
661            public com.liferay.portlet.asset.service.AssetCategoryLocalService getAssetCategoryLocalService() {
662                    return assetCategoryLocalService;
663            }
664    
665            /**
666             * Sets the asset category local service.
667             *
668             * @param assetCategoryLocalService the asset category local service
669             */
670            public void setAssetCategoryLocalService(
671                    com.liferay.portlet.asset.service.AssetCategoryLocalService assetCategoryLocalService) {
672                    this.assetCategoryLocalService = assetCategoryLocalService;
673            }
674    
675            /**
676             * Returns the asset category persistence.
677             *
678             * @return the asset category persistence
679             */
680            public AssetCategoryPersistence getAssetCategoryPersistence() {
681                    return assetCategoryPersistence;
682            }
683    
684            /**
685             * Sets the asset category persistence.
686             *
687             * @param assetCategoryPersistence the asset category persistence
688             */
689            public void setAssetCategoryPersistence(
690                    AssetCategoryPersistence assetCategoryPersistence) {
691                    this.assetCategoryPersistence = assetCategoryPersistence;
692            }
693    
694            /**
695             * Returns the asset category finder.
696             *
697             * @return the asset category finder
698             */
699            public AssetCategoryFinder getAssetCategoryFinder() {
700                    return assetCategoryFinder;
701            }
702    
703            /**
704             * Sets the asset category finder.
705             *
706             * @param assetCategoryFinder the asset category finder
707             */
708            public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
709                    this.assetCategoryFinder = assetCategoryFinder;
710            }
711    
712            /**
713             * Returns the asset entry local service.
714             *
715             * @return the asset entry local service
716             */
717            public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
718                    return assetEntryLocalService;
719            }
720    
721            /**
722             * Sets the asset entry local service.
723             *
724             * @param assetEntryLocalService the asset entry local service
725             */
726            public void setAssetEntryLocalService(
727                    com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
728                    this.assetEntryLocalService = assetEntryLocalService;
729            }
730    
731            /**
732             * Returns the asset entry persistence.
733             *
734             * @return the asset entry persistence
735             */
736            public AssetEntryPersistence getAssetEntryPersistence() {
737                    return assetEntryPersistence;
738            }
739    
740            /**
741             * Sets the asset entry persistence.
742             *
743             * @param assetEntryPersistence the asset entry persistence
744             */
745            public void setAssetEntryPersistence(
746                    AssetEntryPersistence assetEntryPersistence) {
747                    this.assetEntryPersistence = assetEntryPersistence;
748            }
749    
750            /**
751             * Returns the asset entry finder.
752             *
753             * @return the asset entry finder
754             */
755            public AssetEntryFinder getAssetEntryFinder() {
756                    return assetEntryFinder;
757            }
758    
759            /**
760             * Sets the asset entry finder.
761             *
762             * @param assetEntryFinder the asset entry finder
763             */
764            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
765                    this.assetEntryFinder = assetEntryFinder;
766            }
767    
768            /**
769             * Returns the asset tag local service.
770             *
771             * @return the asset tag local service
772             */
773            public com.liferay.portlet.asset.service.AssetTagLocalService getAssetTagLocalService() {
774                    return assetTagLocalService;
775            }
776    
777            /**
778             * Sets the asset tag local service.
779             *
780             * @param assetTagLocalService the asset tag local service
781             */
782            public void setAssetTagLocalService(
783                    com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService) {
784                    this.assetTagLocalService = assetTagLocalService;
785            }
786    
787            /**
788             * Returns the asset tag persistence.
789             *
790             * @return the asset tag persistence
791             */
792            public AssetTagPersistence getAssetTagPersistence() {
793                    return assetTagPersistence;
794            }
795    
796            /**
797             * Sets the asset tag persistence.
798             *
799             * @param assetTagPersistence the asset tag persistence
800             */
801            public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
802                    this.assetTagPersistence = assetTagPersistence;
803            }
804    
805            /**
806             * Returns the asset tag finder.
807             *
808             * @return the asset tag finder
809             */
810            public AssetTagFinder getAssetTagFinder() {
811                    return assetTagFinder;
812            }
813    
814            /**
815             * Sets the asset tag finder.
816             *
817             * @param assetTagFinder the asset tag finder
818             */
819            public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
820                    this.assetTagFinder = assetTagFinder;
821            }
822    
823            /**
824             * Returns the expando row local service.
825             *
826             * @return the expando row local service
827             */
828            public com.liferay.portlet.expando.service.ExpandoRowLocalService getExpandoRowLocalService() {
829                    return expandoRowLocalService;
830            }
831    
832            /**
833             * Sets the expando row local service.
834             *
835             * @param expandoRowLocalService the expando row local service
836             */
837            public void setExpandoRowLocalService(
838                    com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService) {
839                    this.expandoRowLocalService = expandoRowLocalService;
840            }
841    
842            /**
843             * Returns the expando row persistence.
844             *
845             * @return the expando row persistence
846             */
847            public ExpandoRowPersistence getExpandoRowPersistence() {
848                    return expandoRowPersistence;
849            }
850    
851            /**
852             * Sets the expando row persistence.
853             *
854             * @param expandoRowPersistence the expando row persistence
855             */
856            public void setExpandoRowPersistence(
857                    ExpandoRowPersistence expandoRowPersistence) {
858                    this.expandoRowPersistence = expandoRowPersistence;
859            }
860    
861            /**
862             * Returns the export import configuration local service.
863             *
864             * @return the export import configuration local service
865             */
866            public com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService getExportImportConfigurationLocalService() {
867                    return exportImportConfigurationLocalService;
868            }
869    
870            /**
871             * Sets the export import configuration local service.
872             *
873             * @param exportImportConfigurationLocalService the export import configuration local service
874             */
875            public void setExportImportConfigurationLocalService(
876                    com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService) {
877                    this.exportImportConfigurationLocalService = exportImportConfigurationLocalService;
878            }
879    
880            /**
881             * Returns the export import configuration persistence.
882             *
883             * @return the export import configuration persistence
884             */
885            public ExportImportConfigurationPersistence getExportImportConfigurationPersistence() {
886                    return exportImportConfigurationPersistence;
887            }
888    
889            /**
890             * Sets the export import configuration persistence.
891             *
892             * @param exportImportConfigurationPersistence the export import configuration persistence
893             */
894            public void setExportImportConfigurationPersistence(
895                    ExportImportConfigurationPersistence exportImportConfigurationPersistence) {
896                    this.exportImportConfigurationPersistence = exportImportConfigurationPersistence;
897            }
898    
899            /**
900             * Returns the ratings stats local service.
901             *
902             * @return the ratings stats local service
903             */
904            public com.liferay.portlet.ratings.service.RatingsStatsLocalService getRatingsStatsLocalService() {
905                    return ratingsStatsLocalService;
906            }
907    
908            /**
909             * Sets the ratings stats local service.
910             *
911             * @param ratingsStatsLocalService the ratings stats local service
912             */
913            public void setRatingsStatsLocalService(
914                    com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService) {
915                    this.ratingsStatsLocalService = ratingsStatsLocalService;
916            }
917    
918            /**
919             * Returns the ratings stats persistence.
920             *
921             * @return the ratings stats persistence
922             */
923            public RatingsStatsPersistence getRatingsStatsPersistence() {
924                    return ratingsStatsPersistence;
925            }
926    
927            /**
928             * Sets the ratings stats persistence.
929             *
930             * @param ratingsStatsPersistence the ratings stats persistence
931             */
932            public void setRatingsStatsPersistence(
933                    RatingsStatsPersistence ratingsStatsPersistence) {
934                    this.ratingsStatsPersistence = ratingsStatsPersistence;
935            }
936    
937            /**
938             * Returns the ratings stats finder.
939             *
940             * @return the ratings stats finder
941             */
942            public RatingsStatsFinder getRatingsStatsFinder() {
943                    return ratingsStatsFinder;
944            }
945    
946            /**
947             * Sets the ratings stats finder.
948             *
949             * @param ratingsStatsFinder the ratings stats finder
950             */
951            public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
952                    this.ratingsStatsFinder = ratingsStatsFinder;
953            }
954    
955            /**
956             * Returns the layout friendly u r l local service.
957             *
958             * @return the layout friendly u r l local service
959             */
960            public com.liferay.portal.service.LayoutFriendlyURLLocalService getLayoutFriendlyURLLocalService() {
961                    return layoutFriendlyURLLocalService;
962            }
963    
964            /**
965             * Sets the layout friendly u r l local service.
966             *
967             * @param layoutFriendlyURLLocalService the layout friendly u r l local service
968             */
969            public void setLayoutFriendlyURLLocalService(
970                    com.liferay.portal.service.LayoutFriendlyURLLocalService layoutFriendlyURLLocalService) {
971                    this.layoutFriendlyURLLocalService = layoutFriendlyURLLocalService;
972            }
973    
974            /**
975             * Returns the layout friendly u r l persistence.
976             *
977             * @return the layout friendly u r l persistence
978             */
979            public LayoutFriendlyURLPersistence getLayoutFriendlyURLPersistence() {
980                    return layoutFriendlyURLPersistence;
981            }
982    
983            /**
984             * Sets the layout friendly u r l persistence.
985             *
986             * @param layoutFriendlyURLPersistence the layout friendly u r l persistence
987             */
988            public void setLayoutFriendlyURLPersistence(
989                    LayoutFriendlyURLPersistence layoutFriendlyURLPersistence) {
990                    this.layoutFriendlyURLPersistence = layoutFriendlyURLPersistence;
991            }
992    
993            /**
994             * Returns the layout prototype local service.
995             *
996             * @return the layout prototype local service
997             */
998            public com.liferay.portal.service.LayoutPrototypeLocalService getLayoutPrototypeLocalService() {
999                    return layoutPrototypeLocalService;
1000            }
1001    
1002            /**
1003             * Sets the layout prototype local service.
1004             *
1005             * @param layoutPrototypeLocalService the layout prototype local service
1006             */
1007            public void setLayoutPrototypeLocalService(
1008                    com.liferay.portal.service.LayoutPrototypeLocalService layoutPrototypeLocalService) {
1009                    this.layoutPrototypeLocalService = layoutPrototypeLocalService;
1010            }
1011    
1012            /**
1013             * Returns the layout prototype persistence.
1014             *
1015             * @return the layout prototype persistence
1016             */
1017            public LayoutPrototypePersistence getLayoutPrototypePersistence() {
1018                    return layoutPrototypePersistence;
1019            }
1020    
1021            /**
1022             * Sets the layout prototype persistence.
1023             *
1024             * @param layoutPrototypePersistence the layout prototype persistence
1025             */
1026            public void setLayoutPrototypePersistence(
1027                    LayoutPrototypePersistence layoutPrototypePersistence) {
1028                    this.layoutPrototypePersistence = layoutPrototypePersistence;
1029            }
1030    
1031            /**
1032             * Returns the layout set local service.
1033             *
1034             * @return the layout set local service
1035             */
1036            public com.liferay.portal.service.LayoutSetLocalService getLayoutSetLocalService() {
1037                    return layoutSetLocalService;
1038            }
1039    
1040            /**
1041             * Sets the layout set local service.
1042             *
1043             * @param layoutSetLocalService the layout set local service
1044             */
1045            public void setLayoutSetLocalService(
1046                    com.liferay.portal.service.LayoutSetLocalService layoutSetLocalService) {
1047                    this.layoutSetLocalService = layoutSetLocalService;
1048            }
1049    
1050            /**
1051             * Returns the layout set persistence.
1052             *
1053             * @return the layout set persistence
1054             */
1055            public LayoutSetPersistence getLayoutSetPersistence() {
1056                    return layoutSetPersistence;
1057            }
1058    
1059            /**
1060             * Sets the layout set persistence.
1061             *
1062             * @param layoutSetPersistence the layout set persistence
1063             */
1064            public void setLayoutSetPersistence(
1065                    LayoutSetPersistence layoutSetPersistence) {
1066                    this.layoutSetPersistence = layoutSetPersistence;
1067            }
1068    
1069            /**
1070             * Returns the layout set prototype local service.
1071             *
1072             * @return the layout set prototype local service
1073             */
1074            public com.liferay.portal.service.LayoutSetPrototypeLocalService getLayoutSetPrototypeLocalService() {
1075                    return layoutSetPrototypeLocalService;
1076            }
1077    
1078            /**
1079             * Sets the layout set prototype local service.
1080             *
1081             * @param layoutSetPrototypeLocalService the layout set prototype local service
1082             */
1083            public void setLayoutSetPrototypeLocalService(
1084                    com.liferay.portal.service.LayoutSetPrototypeLocalService layoutSetPrototypeLocalService) {
1085                    this.layoutSetPrototypeLocalService = layoutSetPrototypeLocalService;
1086            }
1087    
1088            /**
1089             * Returns the layout set prototype persistence.
1090             *
1091             * @return the layout set prototype persistence
1092             */
1093            public LayoutSetPrototypePersistence getLayoutSetPrototypePersistence() {
1094                    return layoutSetPrototypePersistence;
1095            }
1096    
1097            /**
1098             * Sets the layout set prototype persistence.
1099             *
1100             * @param layoutSetPrototypePersistence the layout set prototype persistence
1101             */
1102            public void setLayoutSetPrototypePersistence(
1103                    LayoutSetPrototypePersistence layoutSetPrototypePersistence) {
1104                    this.layoutSetPrototypePersistence = layoutSetPrototypePersistence;
1105            }
1106    
1107            /**
1108             * Returns the plugin setting local service.
1109             *
1110             * @return the plugin setting local service
1111             */
1112            public com.liferay.portal.service.PluginSettingLocalService getPluginSettingLocalService() {
1113                    return pluginSettingLocalService;
1114            }
1115    
1116            /**
1117             * Sets the plugin setting local service.
1118             *
1119             * @param pluginSettingLocalService the plugin setting local service
1120             */
1121            public void setPluginSettingLocalService(
1122                    com.liferay.portal.service.PluginSettingLocalService pluginSettingLocalService) {
1123                    this.pluginSettingLocalService = pluginSettingLocalService;
1124            }
1125    
1126            /**
1127             * Returns the plugin setting persistence.
1128             *
1129             * @return the plugin setting persistence
1130             */
1131            public PluginSettingPersistence getPluginSettingPersistence() {
1132                    return pluginSettingPersistence;
1133            }
1134    
1135            /**
1136             * Sets the plugin setting persistence.
1137             *
1138             * @param pluginSettingPersistence the plugin setting persistence
1139             */
1140            public void setPluginSettingPersistence(
1141                    PluginSettingPersistence pluginSettingPersistence) {
1142                    this.pluginSettingPersistence = pluginSettingPersistence;
1143            }
1144    
1145            /**
1146             * Returns the portlet preferences local service.
1147             *
1148             * @return the portlet preferences local service
1149             */
1150            public com.liferay.portal.service.PortletPreferencesLocalService getPortletPreferencesLocalService() {
1151                    return portletPreferencesLocalService;
1152            }
1153    
1154            /**
1155             * Sets the portlet preferences local service.
1156             *
1157             * @param portletPreferencesLocalService the portlet preferences local service
1158             */
1159            public void setPortletPreferencesLocalService(
1160                    com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService) {
1161                    this.portletPreferencesLocalService = portletPreferencesLocalService;
1162            }
1163    
1164            /**
1165             * Returns the portlet preferences persistence.
1166             *
1167             * @return the portlet preferences persistence
1168             */
1169            public PortletPreferencesPersistence getPortletPreferencesPersistence() {
1170                    return portletPreferencesPersistence;
1171            }
1172    
1173            /**
1174             * Sets the portlet preferences persistence.
1175             *
1176             * @param portletPreferencesPersistence the portlet preferences persistence
1177             */
1178            public void setPortletPreferencesPersistence(
1179                    PortletPreferencesPersistence portletPreferencesPersistence) {
1180                    this.portletPreferencesPersistence = portletPreferencesPersistence;
1181            }
1182    
1183            /**
1184             * Returns the portlet preferences finder.
1185             *
1186             * @return the portlet preferences finder
1187             */
1188            public PortletPreferencesFinder getPortletPreferencesFinder() {
1189                    return portletPreferencesFinder;
1190            }
1191    
1192            /**
1193             * Sets the portlet preferences finder.
1194             *
1195             * @param portletPreferencesFinder the portlet preferences finder
1196             */
1197            public void setPortletPreferencesFinder(
1198                    PortletPreferencesFinder portletPreferencesFinder) {
1199                    this.portletPreferencesFinder = portletPreferencesFinder;
1200            }
1201    
1202            /**
1203             * Returns the resource local service.
1204             *
1205             * @return the resource local service
1206             */
1207            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
1208                    return resourceLocalService;
1209            }
1210    
1211            /**
1212             * Sets the resource local service.
1213             *
1214             * @param resourceLocalService the resource local service
1215             */
1216            public void setResourceLocalService(
1217                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
1218                    this.resourceLocalService = resourceLocalService;
1219            }
1220    
1221            /**
1222             * Returns the resource permission local service.
1223             *
1224             * @return the resource permission local service
1225             */
1226            public com.liferay.portal.service.ResourcePermissionLocalService getResourcePermissionLocalService() {
1227                    return resourcePermissionLocalService;
1228            }
1229    
1230            /**
1231             * Sets the resource permission local service.
1232             *
1233             * @param resourcePermissionLocalService the resource permission local service
1234             */
1235            public void setResourcePermissionLocalService(
1236                    com.liferay.portal.service.ResourcePermissionLocalService resourcePermissionLocalService) {
1237                    this.resourcePermissionLocalService = resourcePermissionLocalService;
1238            }
1239    
1240            /**
1241             * Returns the resource permission persistence.
1242             *
1243             * @return the resource permission persistence
1244             */
1245            public ResourcePermissionPersistence getResourcePermissionPersistence() {
1246                    return resourcePermissionPersistence;
1247            }
1248    
1249            /**
1250             * Sets the resource permission persistence.
1251             *
1252             * @param resourcePermissionPersistence the resource permission persistence
1253             */
1254            public void setResourcePermissionPersistence(
1255                    ResourcePermissionPersistence resourcePermissionPersistence) {
1256                    this.resourcePermissionPersistence = resourcePermissionPersistence;
1257            }
1258    
1259            /**
1260             * Returns the resource permission finder.
1261             *
1262             * @return the resource permission finder
1263             */
1264            public ResourcePermissionFinder getResourcePermissionFinder() {
1265                    return resourcePermissionFinder;
1266            }
1267    
1268            /**
1269             * Sets the resource permission finder.
1270             *
1271             * @param resourcePermissionFinder the resource permission finder
1272             */
1273            public void setResourcePermissionFinder(
1274                    ResourcePermissionFinder resourcePermissionFinder) {
1275                    this.resourcePermissionFinder = resourcePermissionFinder;
1276            }
1277    
1278            /**
1279             * Returns the subscription local service.
1280             *
1281             * @return the subscription local service
1282             */
1283            public com.liferay.portal.service.SubscriptionLocalService getSubscriptionLocalService() {
1284                    return subscriptionLocalService;
1285            }
1286    
1287            /**
1288             * Sets the subscription local service.
1289             *
1290             * @param subscriptionLocalService the subscription local service
1291             */
1292            public void setSubscriptionLocalService(
1293                    com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService) {
1294                    this.subscriptionLocalService = subscriptionLocalService;
1295            }
1296    
1297            /**
1298             * Returns the subscription persistence.
1299             *
1300             * @return the subscription persistence
1301             */
1302            public SubscriptionPersistence getSubscriptionPersistence() {
1303                    return subscriptionPersistence;
1304            }
1305    
1306            /**
1307             * Sets the subscription persistence.
1308             *
1309             * @param subscriptionPersistence the subscription persistence
1310             */
1311            public void setSubscriptionPersistence(
1312                    SubscriptionPersistence subscriptionPersistence) {
1313                    this.subscriptionPersistence = subscriptionPersistence;
1314            }
1315    
1316            /**
1317             * Returns the user local service.
1318             *
1319             * @return the user local service
1320             */
1321            public com.liferay.portal.service.UserLocalService getUserLocalService() {
1322                    return userLocalService;
1323            }
1324    
1325            /**
1326             * Sets the user local service.
1327             *
1328             * @param userLocalService the user local service
1329             */
1330            public void setUserLocalService(
1331                    com.liferay.portal.service.UserLocalService userLocalService) {
1332                    this.userLocalService = userLocalService;
1333            }
1334    
1335            /**
1336             * Returns the user persistence.
1337             *
1338             * @return the user persistence
1339             */
1340            public UserPersistence getUserPersistence() {
1341                    return userPersistence;
1342            }
1343    
1344            /**
1345             * Sets the user persistence.
1346             *
1347             * @param userPersistence the user persistence
1348             */
1349            public void setUserPersistence(UserPersistence userPersistence) {
1350                    this.userPersistence = userPersistence;
1351            }
1352    
1353            /**
1354             * Returns the user finder.
1355             *
1356             * @return the user finder
1357             */
1358            public UserFinder getUserFinder() {
1359                    return userFinder;
1360            }
1361    
1362            /**
1363             * Sets the user finder.
1364             *
1365             * @param userFinder the user finder
1366             */
1367            public void setUserFinder(UserFinder userFinder) {
1368                    this.userFinder = userFinder;
1369            }
1370    
1371            public void afterPropertiesSet() {
1372                    persistedModelLocalServiceRegistry.register("com.liferay.portal.model.Layout",
1373                            layoutLocalService);
1374            }
1375    
1376            public void destroy() {
1377                    persistedModelLocalServiceRegistry.unregister(
1378                            "com.liferay.portal.model.Layout");
1379            }
1380    
1381            /**
1382             * Returns the OSGi service identifier.
1383             *
1384             * @return the OSGi service identifier
1385             */
1386            @Override
1387            public String getOSGiServiceIdentifier() {
1388                    return LayoutLocalService.class.getName();
1389            }
1390    
1391            protected Class<?> getModelClass() {
1392                    return Layout.class;
1393            }
1394    
1395            protected String getModelClassName() {
1396                    return Layout.class.getName();
1397            }
1398    
1399            /**
1400             * Performs a SQL query.
1401             *
1402             * @param sql the sql query
1403             */
1404            protected void runSQL(String sql) {
1405                    try {
1406                            DataSource dataSource = layoutPersistence.getDataSource();
1407    
1408                            DB db = DBManagerUtil.getDB();
1409    
1410                            sql = db.buildSQL(sql);
1411                            sql = PortalUtil.transformSQL(sql);
1412    
1413                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1414                                            sql, new int[0]);
1415    
1416                            sqlUpdate.update();
1417                    }
1418                    catch (Exception e) {
1419                            throw new SystemException(e);
1420                    }
1421            }
1422    
1423            @BeanReference(type = com.liferay.portal.service.LayoutLocalService.class)
1424            protected LayoutLocalService layoutLocalService;
1425            @BeanReference(type = LayoutPersistence.class)
1426            protected LayoutPersistence layoutPersistence;
1427            @BeanReference(type = LayoutFinder.class)
1428            protected LayoutFinder layoutFinder;
1429            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1430            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1431            @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
1432            protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
1433            @BeanReference(type = ClassNamePersistence.class)
1434            protected ClassNamePersistence classNamePersistence;
1435            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1436            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1437            @BeanReference(type = GroupPersistence.class)
1438            protected GroupPersistence groupPersistence;
1439            @BeanReference(type = GroupFinder.class)
1440            protected GroupFinder groupFinder;
1441            @BeanReference(type = com.liferay.portal.service.ImageLocalService.class)
1442            protected com.liferay.portal.service.ImageLocalService imageLocalService;
1443            @BeanReference(type = ImagePersistence.class)
1444            protected ImagePersistence imagePersistence;
1445            @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryLocalService.class)
1446            protected com.liferay.portlet.asset.service.AssetCategoryLocalService assetCategoryLocalService;
1447            @BeanReference(type = AssetCategoryPersistence.class)
1448            protected AssetCategoryPersistence assetCategoryPersistence;
1449            @BeanReference(type = AssetCategoryFinder.class)
1450            protected AssetCategoryFinder assetCategoryFinder;
1451            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1452            protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1453            @BeanReference(type = AssetEntryPersistence.class)
1454            protected AssetEntryPersistence assetEntryPersistence;
1455            @BeanReference(type = AssetEntryFinder.class)
1456            protected AssetEntryFinder assetEntryFinder;
1457            @BeanReference(type = com.liferay.portlet.asset.service.AssetTagLocalService.class)
1458            protected com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService;
1459            @BeanReference(type = AssetTagPersistence.class)
1460            protected AssetTagPersistence assetTagPersistence;
1461            @BeanReference(type = AssetTagFinder.class)
1462            protected AssetTagFinder assetTagFinder;
1463            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoRowLocalService.class)
1464            protected com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService;
1465            @BeanReference(type = ExpandoRowPersistence.class)
1466            protected ExpandoRowPersistence expandoRowPersistence;
1467            @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService.class)
1468            protected com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService;
1469            @BeanReference(type = ExportImportConfigurationPersistence.class)
1470            protected ExportImportConfigurationPersistence exportImportConfigurationPersistence;
1471            @BeanReference(type = com.liferay.portlet.ratings.service.RatingsStatsLocalService.class)
1472            protected com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService;
1473            @BeanReference(type = RatingsStatsPersistence.class)
1474            protected RatingsStatsPersistence ratingsStatsPersistence;
1475            @BeanReference(type = RatingsStatsFinder.class)
1476            protected RatingsStatsFinder ratingsStatsFinder;
1477            @BeanReference(type = com.liferay.portal.service.LayoutFriendlyURLLocalService.class)
1478            protected com.liferay.portal.service.LayoutFriendlyURLLocalService layoutFriendlyURLLocalService;
1479            @BeanReference(type = LayoutFriendlyURLPersistence.class)
1480            protected LayoutFriendlyURLPersistence layoutFriendlyURLPersistence;
1481            @BeanReference(type = com.liferay.portal.service.LayoutPrototypeLocalService.class)
1482            protected com.liferay.portal.service.LayoutPrototypeLocalService layoutPrototypeLocalService;
1483            @BeanReference(type = LayoutPrototypePersistence.class)
1484            protected LayoutPrototypePersistence layoutPrototypePersistence;
1485            @BeanReference(type = com.liferay.portal.service.LayoutSetLocalService.class)
1486            protected com.liferay.portal.service.LayoutSetLocalService layoutSetLocalService;
1487            @BeanReference(type = LayoutSetPersistence.class)
1488            protected LayoutSetPersistence layoutSetPersistence;
1489            @BeanReference(type = com.liferay.portal.service.LayoutSetPrototypeLocalService.class)
1490            protected com.liferay.portal.service.LayoutSetPrototypeLocalService layoutSetPrototypeLocalService;
1491            @BeanReference(type = LayoutSetPrototypePersistence.class)
1492            protected LayoutSetPrototypePersistence layoutSetPrototypePersistence;
1493            @BeanReference(type = com.liferay.portal.service.PluginSettingLocalService.class)
1494            protected com.liferay.portal.service.PluginSettingLocalService pluginSettingLocalService;
1495            @BeanReference(type = PluginSettingPersistence.class)
1496            protected PluginSettingPersistence pluginSettingPersistence;
1497            @BeanReference(type = com.liferay.portal.service.PortletPreferencesLocalService.class)
1498            protected com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService;
1499            @BeanReference(type = PortletPreferencesPersistence.class)
1500            protected PortletPreferencesPersistence portletPreferencesPersistence;
1501            @BeanReference(type = PortletPreferencesFinder.class)
1502            protected PortletPreferencesFinder portletPreferencesFinder;
1503            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1504            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1505            @BeanReference(type = com.liferay.portal.service.ResourcePermissionLocalService.class)
1506            protected com.liferay.portal.service.ResourcePermissionLocalService resourcePermissionLocalService;
1507            @BeanReference(type = ResourcePermissionPersistence.class)
1508            protected ResourcePermissionPersistence resourcePermissionPersistence;
1509            @BeanReference(type = ResourcePermissionFinder.class)
1510            protected ResourcePermissionFinder resourcePermissionFinder;
1511            @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
1512            protected com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService;
1513            @BeanReference(type = SubscriptionPersistence.class)
1514            protected SubscriptionPersistence subscriptionPersistence;
1515            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1516            protected com.liferay.portal.service.UserLocalService userLocalService;
1517            @BeanReference(type = UserPersistence.class)
1518            protected UserPersistence userPersistence;
1519            @BeanReference(type = UserFinder.class)
1520            protected UserFinder userFinder;
1521            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1522            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1523    }