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