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 com.liferay.portal.kernel.bean.BeanReference;
018    import com.liferay.portal.kernel.dao.db.DB;
019    import com.liferay.portal.kernel.dao.db.DBManagerUtil;
020    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
022    import com.liferay.portal.kernel.exception.SystemException;
023    import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
024    import com.liferay.portal.model.LayoutSetBranch;
025    import com.liferay.portal.service.BaseServiceImpl;
026    import com.liferay.portal.service.LayoutSetBranchService;
027    import com.liferay.portal.service.persistence.ImagePersistence;
028    import com.liferay.portal.service.persistence.LayoutBranchPersistence;
029    import com.liferay.portal.service.persistence.LayoutFinder;
030    import com.liferay.portal.service.persistence.LayoutPersistence;
031    import com.liferay.portal.service.persistence.LayoutRevisionPersistence;
032    import com.liferay.portal.service.persistence.LayoutSetBranchPersistence;
033    import com.liferay.portal.service.persistence.LayoutSetPersistence;
034    import com.liferay.portal.service.persistence.RecentLayoutSetBranchPersistence;
035    import com.liferay.portal.service.persistence.UserFinder;
036    import com.liferay.portal.service.persistence.UserPersistence;
037    import com.liferay.portal.util.PortalUtil;
038    
039    import javax.sql.DataSource;
040    
041    /**
042     * Provides the base implementation for the layout set branch remote service.
043     *
044     * <p>
045     * 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.LayoutSetBranchServiceImpl}.
046     * </p>
047     *
048     * @author Brian Wing Shun Chan
049     * @see com.liferay.portal.service.impl.LayoutSetBranchServiceImpl
050     * @see com.liferay.portal.service.LayoutSetBranchServiceUtil
051     * @generated
052     */
053    public abstract class LayoutSetBranchServiceBaseImpl extends BaseServiceImpl
054            implements LayoutSetBranchService, IdentifiableOSGiService {
055            /*
056             * NOTE FOR DEVELOPERS:
057             *
058             * Never modify or reference this class directly. Always use {@link com.liferay.portal.service.LayoutSetBranchServiceUtil} to access the layout set branch remote service.
059             */
060    
061            /**
062             * Returns the layout set branch local service.
063             *
064             * @return the layout set branch local service
065             */
066            public com.liferay.portal.service.LayoutSetBranchLocalService getLayoutSetBranchLocalService() {
067                    return layoutSetBranchLocalService;
068            }
069    
070            /**
071             * Sets the layout set branch local service.
072             *
073             * @param layoutSetBranchLocalService the layout set branch local service
074             */
075            public void setLayoutSetBranchLocalService(
076                    com.liferay.portal.service.LayoutSetBranchLocalService layoutSetBranchLocalService) {
077                    this.layoutSetBranchLocalService = layoutSetBranchLocalService;
078            }
079    
080            /**
081             * Returns the layout set branch remote service.
082             *
083             * @return the layout set branch remote service
084             */
085            public LayoutSetBranchService getLayoutSetBranchService() {
086                    return layoutSetBranchService;
087            }
088    
089            /**
090             * Sets the layout set branch remote service.
091             *
092             * @param layoutSetBranchService the layout set branch remote service
093             */
094            public void setLayoutSetBranchService(
095                    LayoutSetBranchService layoutSetBranchService) {
096                    this.layoutSetBranchService = layoutSetBranchService;
097            }
098    
099            /**
100             * Returns the layout set branch persistence.
101             *
102             * @return the layout set branch persistence
103             */
104            public LayoutSetBranchPersistence getLayoutSetBranchPersistence() {
105                    return layoutSetBranchPersistence;
106            }
107    
108            /**
109             * Sets the layout set branch persistence.
110             *
111             * @param layoutSetBranchPersistence the layout set branch persistence
112             */
113            public void setLayoutSetBranchPersistence(
114                    LayoutSetBranchPersistence layoutSetBranchPersistence) {
115                    this.layoutSetBranchPersistence = layoutSetBranchPersistence;
116            }
117    
118            /**
119             * Returns the counter local service.
120             *
121             * @return the counter local service
122             */
123            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
124                    return counterLocalService;
125            }
126    
127            /**
128             * Sets the counter local service.
129             *
130             * @param counterLocalService the counter local service
131             */
132            public void setCounterLocalService(
133                    com.liferay.counter.service.CounterLocalService counterLocalService) {
134                    this.counterLocalService = counterLocalService;
135            }
136    
137            /**
138             * Returns the image local service.
139             *
140             * @return the image local service
141             */
142            public com.liferay.portal.service.ImageLocalService getImageLocalService() {
143                    return imageLocalService;
144            }
145    
146            /**
147             * Sets the image local service.
148             *
149             * @param imageLocalService the image local service
150             */
151            public void setImageLocalService(
152                    com.liferay.portal.service.ImageLocalService imageLocalService) {
153                    this.imageLocalService = imageLocalService;
154            }
155    
156            /**
157             * Returns the image remote service.
158             *
159             * @return the image remote service
160             */
161            public com.liferay.portal.service.ImageService getImageService() {
162                    return imageService;
163            }
164    
165            /**
166             * Sets the image remote service.
167             *
168             * @param imageService the image remote service
169             */
170            public void setImageService(
171                    com.liferay.portal.service.ImageService imageService) {
172                    this.imageService = imageService;
173            }
174    
175            /**
176             * Returns the image persistence.
177             *
178             * @return the image persistence
179             */
180            public ImagePersistence getImagePersistence() {
181                    return imagePersistence;
182            }
183    
184            /**
185             * Sets the image persistence.
186             *
187             * @param imagePersistence the image persistence
188             */
189            public void setImagePersistence(ImagePersistence imagePersistence) {
190                    this.imagePersistence = imagePersistence;
191            }
192    
193            /**
194             * Returns the layout local service.
195             *
196             * @return the layout local service
197             */
198            public com.liferay.portal.service.LayoutLocalService getLayoutLocalService() {
199                    return layoutLocalService;
200            }
201    
202            /**
203             * Sets the layout local service.
204             *
205             * @param layoutLocalService the layout local service
206             */
207            public void setLayoutLocalService(
208                    com.liferay.portal.service.LayoutLocalService layoutLocalService) {
209                    this.layoutLocalService = layoutLocalService;
210            }
211    
212            /**
213             * Returns the layout remote service.
214             *
215             * @return the layout remote service
216             */
217            public com.liferay.portal.service.LayoutService getLayoutService() {
218                    return layoutService;
219            }
220    
221            /**
222             * Sets the layout remote service.
223             *
224             * @param layoutService the layout remote service
225             */
226            public void setLayoutService(
227                    com.liferay.portal.service.LayoutService layoutService) {
228                    this.layoutService = layoutService;
229            }
230    
231            /**
232             * Returns the layout persistence.
233             *
234             * @return the layout persistence
235             */
236            public LayoutPersistence getLayoutPersistence() {
237                    return layoutPersistence;
238            }
239    
240            /**
241             * Sets the layout persistence.
242             *
243             * @param layoutPersistence the layout persistence
244             */
245            public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
246                    this.layoutPersistence = layoutPersistence;
247            }
248    
249            /**
250             * Returns the layout finder.
251             *
252             * @return the layout finder
253             */
254            public LayoutFinder getLayoutFinder() {
255                    return layoutFinder;
256            }
257    
258            /**
259             * Sets the layout finder.
260             *
261             * @param layoutFinder the layout finder
262             */
263            public void setLayoutFinder(LayoutFinder layoutFinder) {
264                    this.layoutFinder = layoutFinder;
265            }
266    
267            /**
268             * Returns the layout branch local service.
269             *
270             * @return the layout branch local service
271             */
272            public com.liferay.portal.service.LayoutBranchLocalService getLayoutBranchLocalService() {
273                    return layoutBranchLocalService;
274            }
275    
276            /**
277             * Sets the layout branch local service.
278             *
279             * @param layoutBranchLocalService the layout branch local service
280             */
281            public void setLayoutBranchLocalService(
282                    com.liferay.portal.service.LayoutBranchLocalService layoutBranchLocalService) {
283                    this.layoutBranchLocalService = layoutBranchLocalService;
284            }
285    
286            /**
287             * Returns the layout branch remote service.
288             *
289             * @return the layout branch remote service
290             */
291            public com.liferay.portal.service.LayoutBranchService getLayoutBranchService() {
292                    return layoutBranchService;
293            }
294    
295            /**
296             * Sets the layout branch remote service.
297             *
298             * @param layoutBranchService the layout branch remote service
299             */
300            public void setLayoutBranchService(
301                    com.liferay.portal.service.LayoutBranchService layoutBranchService) {
302                    this.layoutBranchService = layoutBranchService;
303            }
304    
305            /**
306             * Returns the layout branch persistence.
307             *
308             * @return the layout branch persistence
309             */
310            public LayoutBranchPersistence getLayoutBranchPersistence() {
311                    return layoutBranchPersistence;
312            }
313    
314            /**
315             * Sets the layout branch persistence.
316             *
317             * @param layoutBranchPersistence the layout branch persistence
318             */
319            public void setLayoutBranchPersistence(
320                    LayoutBranchPersistence layoutBranchPersistence) {
321                    this.layoutBranchPersistence = layoutBranchPersistence;
322            }
323    
324            /**
325             * Returns the layout revision local service.
326             *
327             * @return the layout revision local service
328             */
329            public com.liferay.portal.service.LayoutRevisionLocalService getLayoutRevisionLocalService() {
330                    return layoutRevisionLocalService;
331            }
332    
333            /**
334             * Sets the layout revision local service.
335             *
336             * @param layoutRevisionLocalService the layout revision local service
337             */
338            public void setLayoutRevisionLocalService(
339                    com.liferay.portal.service.LayoutRevisionLocalService layoutRevisionLocalService) {
340                    this.layoutRevisionLocalService = layoutRevisionLocalService;
341            }
342    
343            /**
344             * Returns the layout revision remote service.
345             *
346             * @return the layout revision remote service
347             */
348            public com.liferay.portal.service.LayoutRevisionService getLayoutRevisionService() {
349                    return layoutRevisionService;
350            }
351    
352            /**
353             * Sets the layout revision remote service.
354             *
355             * @param layoutRevisionService the layout revision remote service
356             */
357            public void setLayoutRevisionService(
358                    com.liferay.portal.service.LayoutRevisionService layoutRevisionService) {
359                    this.layoutRevisionService = layoutRevisionService;
360            }
361    
362            /**
363             * Returns the layout revision persistence.
364             *
365             * @return the layout revision persistence
366             */
367            public LayoutRevisionPersistence getLayoutRevisionPersistence() {
368                    return layoutRevisionPersistence;
369            }
370    
371            /**
372             * Sets the layout revision persistence.
373             *
374             * @param layoutRevisionPersistence the layout revision persistence
375             */
376            public void setLayoutRevisionPersistence(
377                    LayoutRevisionPersistence layoutRevisionPersistence) {
378                    this.layoutRevisionPersistence = layoutRevisionPersistence;
379            }
380    
381            /**
382             * Returns the layout set local service.
383             *
384             * @return the layout set local service
385             */
386            public com.liferay.portal.service.LayoutSetLocalService getLayoutSetLocalService() {
387                    return layoutSetLocalService;
388            }
389    
390            /**
391             * Sets the layout set local service.
392             *
393             * @param layoutSetLocalService the layout set local service
394             */
395            public void setLayoutSetLocalService(
396                    com.liferay.portal.service.LayoutSetLocalService layoutSetLocalService) {
397                    this.layoutSetLocalService = layoutSetLocalService;
398            }
399    
400            /**
401             * Returns the layout set remote service.
402             *
403             * @return the layout set remote service
404             */
405            public com.liferay.portal.service.LayoutSetService getLayoutSetService() {
406                    return layoutSetService;
407            }
408    
409            /**
410             * Sets the layout set remote service.
411             *
412             * @param layoutSetService the layout set remote service
413             */
414            public void setLayoutSetService(
415                    com.liferay.portal.service.LayoutSetService layoutSetService) {
416                    this.layoutSetService = layoutSetService;
417            }
418    
419            /**
420             * Returns the layout set persistence.
421             *
422             * @return the layout set persistence
423             */
424            public LayoutSetPersistence getLayoutSetPersistence() {
425                    return layoutSetPersistence;
426            }
427    
428            /**
429             * Sets the layout set persistence.
430             *
431             * @param layoutSetPersistence the layout set persistence
432             */
433            public void setLayoutSetPersistence(
434                    LayoutSetPersistence layoutSetPersistence) {
435                    this.layoutSetPersistence = layoutSetPersistence;
436            }
437    
438            /**
439             * Returns the recent layout set branch local service.
440             *
441             * @return the recent layout set branch local service
442             */
443            public com.liferay.portal.service.RecentLayoutSetBranchLocalService getRecentLayoutSetBranchLocalService() {
444                    return recentLayoutSetBranchLocalService;
445            }
446    
447            /**
448             * Sets the recent layout set branch local service.
449             *
450             * @param recentLayoutSetBranchLocalService the recent layout set branch local service
451             */
452            public void setRecentLayoutSetBranchLocalService(
453                    com.liferay.portal.service.RecentLayoutSetBranchLocalService recentLayoutSetBranchLocalService) {
454                    this.recentLayoutSetBranchLocalService = recentLayoutSetBranchLocalService;
455            }
456    
457            /**
458             * Returns the recent layout set branch persistence.
459             *
460             * @return the recent layout set branch persistence
461             */
462            public RecentLayoutSetBranchPersistence getRecentLayoutSetBranchPersistence() {
463                    return recentLayoutSetBranchPersistence;
464            }
465    
466            /**
467             * Sets the recent layout set branch persistence.
468             *
469             * @param recentLayoutSetBranchPersistence the recent layout set branch persistence
470             */
471            public void setRecentLayoutSetBranchPersistence(
472                    RecentLayoutSetBranchPersistence recentLayoutSetBranchPersistence) {
473                    this.recentLayoutSetBranchPersistence = recentLayoutSetBranchPersistence;
474            }
475    
476            /**
477             * Returns the resource local service.
478             *
479             * @return the resource local service
480             */
481            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
482                    return resourceLocalService;
483            }
484    
485            /**
486             * Sets the resource local service.
487             *
488             * @param resourceLocalService the resource local service
489             */
490            public void setResourceLocalService(
491                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
492                    this.resourceLocalService = resourceLocalService;
493            }
494    
495            /**
496             * Returns the user local service.
497             *
498             * @return the user local service
499             */
500            public com.liferay.portal.service.UserLocalService getUserLocalService() {
501                    return userLocalService;
502            }
503    
504            /**
505             * Sets the user local service.
506             *
507             * @param userLocalService the user local service
508             */
509            public void setUserLocalService(
510                    com.liferay.portal.service.UserLocalService userLocalService) {
511                    this.userLocalService = userLocalService;
512            }
513    
514            /**
515             * Returns the user remote service.
516             *
517             * @return the user remote service
518             */
519            public com.liferay.portal.service.UserService getUserService() {
520                    return userService;
521            }
522    
523            /**
524             * Sets the user remote service.
525             *
526             * @param userService the user remote service
527             */
528            public void setUserService(
529                    com.liferay.portal.service.UserService userService) {
530                    this.userService = userService;
531            }
532    
533            /**
534             * Returns the user persistence.
535             *
536             * @return the user persistence
537             */
538            public UserPersistence getUserPersistence() {
539                    return userPersistence;
540            }
541    
542            /**
543             * Sets the user persistence.
544             *
545             * @param userPersistence the user persistence
546             */
547            public void setUserPersistence(UserPersistence userPersistence) {
548                    this.userPersistence = userPersistence;
549            }
550    
551            /**
552             * Returns the user finder.
553             *
554             * @return the user finder
555             */
556            public UserFinder getUserFinder() {
557                    return userFinder;
558            }
559    
560            /**
561             * Sets the user finder.
562             *
563             * @param userFinder the user finder
564             */
565            public void setUserFinder(UserFinder userFinder) {
566                    this.userFinder = userFinder;
567            }
568    
569            public void afterPropertiesSet() {
570            }
571    
572            public void destroy() {
573            }
574    
575            /**
576             * Returns the OSGi service identifier.
577             *
578             * @return the OSGi service identifier
579             */
580            @Override
581            public String getOSGiServiceIdentifier() {
582                    return LayoutSetBranchService.class.getName();
583            }
584    
585            protected Class<?> getModelClass() {
586                    return LayoutSetBranch.class;
587            }
588    
589            protected String getModelClassName() {
590                    return LayoutSetBranch.class.getName();
591            }
592    
593            /**
594             * Performs a SQL query.
595             *
596             * @param sql the sql query
597             */
598            protected void runSQL(String sql) {
599                    try {
600                            DataSource dataSource = layoutSetBranchPersistence.getDataSource();
601    
602                            DB db = DBManagerUtil.getDB();
603    
604                            sql = db.buildSQL(sql);
605                            sql = PortalUtil.transformSQL(sql);
606    
607                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
608                                            sql, new int[0]);
609    
610                            sqlUpdate.update();
611                    }
612                    catch (Exception e) {
613                            throw new SystemException(e);
614                    }
615            }
616    
617            @BeanReference(type = com.liferay.portal.service.LayoutSetBranchLocalService.class)
618            protected com.liferay.portal.service.LayoutSetBranchLocalService layoutSetBranchLocalService;
619            @BeanReference(type = com.liferay.portal.service.LayoutSetBranchService.class)
620            protected LayoutSetBranchService layoutSetBranchService;
621            @BeanReference(type = LayoutSetBranchPersistence.class)
622            protected LayoutSetBranchPersistence layoutSetBranchPersistence;
623            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
624            protected com.liferay.counter.service.CounterLocalService counterLocalService;
625            @BeanReference(type = com.liferay.portal.service.ImageLocalService.class)
626            protected com.liferay.portal.service.ImageLocalService imageLocalService;
627            @BeanReference(type = com.liferay.portal.service.ImageService.class)
628            protected com.liferay.portal.service.ImageService imageService;
629            @BeanReference(type = ImagePersistence.class)
630            protected ImagePersistence imagePersistence;
631            @BeanReference(type = com.liferay.portal.service.LayoutLocalService.class)
632            protected com.liferay.portal.service.LayoutLocalService layoutLocalService;
633            @BeanReference(type = com.liferay.portal.service.LayoutService.class)
634            protected com.liferay.portal.service.LayoutService layoutService;
635            @BeanReference(type = LayoutPersistence.class)
636            protected LayoutPersistence layoutPersistence;
637            @BeanReference(type = LayoutFinder.class)
638            protected LayoutFinder layoutFinder;
639            @BeanReference(type = com.liferay.portal.service.LayoutBranchLocalService.class)
640            protected com.liferay.portal.service.LayoutBranchLocalService layoutBranchLocalService;
641            @BeanReference(type = com.liferay.portal.service.LayoutBranchService.class)
642            protected com.liferay.portal.service.LayoutBranchService layoutBranchService;
643            @BeanReference(type = LayoutBranchPersistence.class)
644            protected LayoutBranchPersistence layoutBranchPersistence;
645            @BeanReference(type = com.liferay.portal.service.LayoutRevisionLocalService.class)
646            protected com.liferay.portal.service.LayoutRevisionLocalService layoutRevisionLocalService;
647            @BeanReference(type = com.liferay.portal.service.LayoutRevisionService.class)
648            protected com.liferay.portal.service.LayoutRevisionService layoutRevisionService;
649            @BeanReference(type = LayoutRevisionPersistence.class)
650            protected LayoutRevisionPersistence layoutRevisionPersistence;
651            @BeanReference(type = com.liferay.portal.service.LayoutSetLocalService.class)
652            protected com.liferay.portal.service.LayoutSetLocalService layoutSetLocalService;
653            @BeanReference(type = com.liferay.portal.service.LayoutSetService.class)
654            protected com.liferay.portal.service.LayoutSetService layoutSetService;
655            @BeanReference(type = LayoutSetPersistence.class)
656            protected LayoutSetPersistence layoutSetPersistence;
657            @BeanReference(type = com.liferay.portal.service.RecentLayoutSetBranchLocalService.class)
658            protected com.liferay.portal.service.RecentLayoutSetBranchLocalService recentLayoutSetBranchLocalService;
659            @BeanReference(type = RecentLayoutSetBranchPersistence.class)
660            protected RecentLayoutSetBranchPersistence recentLayoutSetBranchPersistence;
661            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
662            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
663            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
664            protected com.liferay.portal.service.UserLocalService userLocalService;
665            @BeanReference(type = com.liferay.portal.service.UserService.class)
666            protected com.liferay.portal.service.UserService userService;
667            @BeanReference(type = UserPersistence.class)
668            protected UserPersistence userPersistence;
669            @BeanReference(type = UserFinder.class)
670            protected UserFinder userFinder;
671    }