001    /**
002     * Copyright (c) 2000-2012 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.portlet.shopping.service.base;
016    
017    import com.liferay.counter.service.CounterLocalService;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.bean.IdentifiableBean;
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.service.BaseServiceImpl;
025    import com.liferay.portal.service.ResourceLocalService;
026    import com.liferay.portal.service.UserLocalService;
027    import com.liferay.portal.service.UserService;
028    import com.liferay.portal.service.persistence.UserFinder;
029    import com.liferay.portal.service.persistence.UserPersistence;
030    
031    import com.liferay.portlet.shopping.model.ShoppingCoupon;
032    import com.liferay.portlet.shopping.service.ShoppingCartLocalService;
033    import com.liferay.portlet.shopping.service.ShoppingCategoryLocalService;
034    import com.liferay.portlet.shopping.service.ShoppingCategoryService;
035    import com.liferay.portlet.shopping.service.ShoppingCouponLocalService;
036    import com.liferay.portlet.shopping.service.ShoppingCouponService;
037    import com.liferay.portlet.shopping.service.ShoppingItemFieldLocalService;
038    import com.liferay.portlet.shopping.service.ShoppingItemLocalService;
039    import com.liferay.portlet.shopping.service.ShoppingItemPriceLocalService;
040    import com.liferay.portlet.shopping.service.ShoppingItemService;
041    import com.liferay.portlet.shopping.service.ShoppingOrderItemLocalService;
042    import com.liferay.portlet.shopping.service.ShoppingOrderLocalService;
043    import com.liferay.portlet.shopping.service.ShoppingOrderService;
044    import com.liferay.portlet.shopping.service.persistence.ShoppingCartPersistence;
045    import com.liferay.portlet.shopping.service.persistence.ShoppingCategoryPersistence;
046    import com.liferay.portlet.shopping.service.persistence.ShoppingCouponFinder;
047    import com.liferay.portlet.shopping.service.persistence.ShoppingCouponPersistence;
048    import com.liferay.portlet.shopping.service.persistence.ShoppingItemFieldPersistence;
049    import com.liferay.portlet.shopping.service.persistence.ShoppingItemFinder;
050    import com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence;
051    import com.liferay.portlet.shopping.service.persistence.ShoppingItemPricePersistence;
052    import com.liferay.portlet.shopping.service.persistence.ShoppingOrderFinder;
053    import com.liferay.portlet.shopping.service.persistence.ShoppingOrderItemPersistence;
054    import com.liferay.portlet.shopping.service.persistence.ShoppingOrderPersistence;
055    
056    import javax.sql.DataSource;
057    
058    /**
059     * The base implementation of the shopping coupon remote service.
060     *
061     * <p>
062     * 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.portlet.shopping.service.impl.ShoppingCouponServiceImpl}.
063     * </p>
064     *
065     * @author Brian Wing Shun Chan
066     * @see com.liferay.portlet.shopping.service.impl.ShoppingCouponServiceImpl
067     * @see com.liferay.portlet.shopping.service.ShoppingCouponServiceUtil
068     * @generated
069     */
070    public abstract class ShoppingCouponServiceBaseImpl extends BaseServiceImpl
071            implements ShoppingCouponService, IdentifiableBean {
072            /*
073             * NOTE FOR DEVELOPERS:
074             *
075             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.shopping.service.ShoppingCouponServiceUtil} to access the shopping coupon remote service.
076             */
077    
078            /**
079             * Returns the shopping cart local service.
080             *
081             * @return the shopping cart local service
082             */
083            public ShoppingCartLocalService getShoppingCartLocalService() {
084                    return shoppingCartLocalService;
085            }
086    
087            /**
088             * Sets the shopping cart local service.
089             *
090             * @param shoppingCartLocalService the shopping cart local service
091             */
092            public void setShoppingCartLocalService(
093                    ShoppingCartLocalService shoppingCartLocalService) {
094                    this.shoppingCartLocalService = shoppingCartLocalService;
095            }
096    
097            /**
098             * Returns the shopping cart persistence.
099             *
100             * @return the shopping cart persistence
101             */
102            public ShoppingCartPersistence getShoppingCartPersistence() {
103                    return shoppingCartPersistence;
104            }
105    
106            /**
107             * Sets the shopping cart persistence.
108             *
109             * @param shoppingCartPersistence the shopping cart persistence
110             */
111            public void setShoppingCartPersistence(
112                    ShoppingCartPersistence shoppingCartPersistence) {
113                    this.shoppingCartPersistence = shoppingCartPersistence;
114            }
115    
116            /**
117             * Returns the shopping category local service.
118             *
119             * @return the shopping category local service
120             */
121            public ShoppingCategoryLocalService getShoppingCategoryLocalService() {
122                    return shoppingCategoryLocalService;
123            }
124    
125            /**
126             * Sets the shopping category local service.
127             *
128             * @param shoppingCategoryLocalService the shopping category local service
129             */
130            public void setShoppingCategoryLocalService(
131                    ShoppingCategoryLocalService shoppingCategoryLocalService) {
132                    this.shoppingCategoryLocalService = shoppingCategoryLocalService;
133            }
134    
135            /**
136             * Returns the shopping category remote service.
137             *
138             * @return the shopping category remote service
139             */
140            public ShoppingCategoryService getShoppingCategoryService() {
141                    return shoppingCategoryService;
142            }
143    
144            /**
145             * Sets the shopping category remote service.
146             *
147             * @param shoppingCategoryService the shopping category remote service
148             */
149            public void setShoppingCategoryService(
150                    ShoppingCategoryService shoppingCategoryService) {
151                    this.shoppingCategoryService = shoppingCategoryService;
152            }
153    
154            /**
155             * Returns the shopping category persistence.
156             *
157             * @return the shopping category persistence
158             */
159            public ShoppingCategoryPersistence getShoppingCategoryPersistence() {
160                    return shoppingCategoryPersistence;
161            }
162    
163            /**
164             * Sets the shopping category persistence.
165             *
166             * @param shoppingCategoryPersistence the shopping category persistence
167             */
168            public void setShoppingCategoryPersistence(
169                    ShoppingCategoryPersistence shoppingCategoryPersistence) {
170                    this.shoppingCategoryPersistence = shoppingCategoryPersistence;
171            }
172    
173            /**
174             * Returns the shopping coupon local service.
175             *
176             * @return the shopping coupon local service
177             */
178            public ShoppingCouponLocalService getShoppingCouponLocalService() {
179                    return shoppingCouponLocalService;
180            }
181    
182            /**
183             * Sets the shopping coupon local service.
184             *
185             * @param shoppingCouponLocalService the shopping coupon local service
186             */
187            public void setShoppingCouponLocalService(
188                    ShoppingCouponLocalService shoppingCouponLocalService) {
189                    this.shoppingCouponLocalService = shoppingCouponLocalService;
190            }
191    
192            /**
193             * Returns the shopping coupon remote service.
194             *
195             * @return the shopping coupon remote service
196             */
197            public ShoppingCouponService getShoppingCouponService() {
198                    return shoppingCouponService;
199            }
200    
201            /**
202             * Sets the shopping coupon remote service.
203             *
204             * @param shoppingCouponService the shopping coupon remote service
205             */
206            public void setShoppingCouponService(
207                    ShoppingCouponService shoppingCouponService) {
208                    this.shoppingCouponService = shoppingCouponService;
209            }
210    
211            /**
212             * Returns the shopping coupon persistence.
213             *
214             * @return the shopping coupon persistence
215             */
216            public ShoppingCouponPersistence getShoppingCouponPersistence() {
217                    return shoppingCouponPersistence;
218            }
219    
220            /**
221             * Sets the shopping coupon persistence.
222             *
223             * @param shoppingCouponPersistence the shopping coupon persistence
224             */
225            public void setShoppingCouponPersistence(
226                    ShoppingCouponPersistence shoppingCouponPersistence) {
227                    this.shoppingCouponPersistence = shoppingCouponPersistence;
228            }
229    
230            /**
231             * Returns the shopping coupon finder.
232             *
233             * @return the shopping coupon finder
234             */
235            public ShoppingCouponFinder getShoppingCouponFinder() {
236                    return shoppingCouponFinder;
237            }
238    
239            /**
240             * Sets the shopping coupon finder.
241             *
242             * @param shoppingCouponFinder the shopping coupon finder
243             */
244            public void setShoppingCouponFinder(
245                    ShoppingCouponFinder shoppingCouponFinder) {
246                    this.shoppingCouponFinder = shoppingCouponFinder;
247            }
248    
249            /**
250             * Returns the shopping item local service.
251             *
252             * @return the shopping item local service
253             */
254            public ShoppingItemLocalService getShoppingItemLocalService() {
255                    return shoppingItemLocalService;
256            }
257    
258            /**
259             * Sets the shopping item local service.
260             *
261             * @param shoppingItemLocalService the shopping item local service
262             */
263            public void setShoppingItemLocalService(
264                    ShoppingItemLocalService shoppingItemLocalService) {
265                    this.shoppingItemLocalService = shoppingItemLocalService;
266            }
267    
268            /**
269             * Returns the shopping item remote service.
270             *
271             * @return the shopping item remote service
272             */
273            public ShoppingItemService getShoppingItemService() {
274                    return shoppingItemService;
275            }
276    
277            /**
278             * Sets the shopping item remote service.
279             *
280             * @param shoppingItemService the shopping item remote service
281             */
282            public void setShoppingItemService(ShoppingItemService shoppingItemService) {
283                    this.shoppingItemService = shoppingItemService;
284            }
285    
286            /**
287             * Returns the shopping item persistence.
288             *
289             * @return the shopping item persistence
290             */
291            public ShoppingItemPersistence getShoppingItemPersistence() {
292                    return shoppingItemPersistence;
293            }
294    
295            /**
296             * Sets the shopping item persistence.
297             *
298             * @param shoppingItemPersistence the shopping item persistence
299             */
300            public void setShoppingItemPersistence(
301                    ShoppingItemPersistence shoppingItemPersistence) {
302                    this.shoppingItemPersistence = shoppingItemPersistence;
303            }
304    
305            /**
306             * Returns the shopping item finder.
307             *
308             * @return the shopping item finder
309             */
310            public ShoppingItemFinder getShoppingItemFinder() {
311                    return shoppingItemFinder;
312            }
313    
314            /**
315             * Sets the shopping item finder.
316             *
317             * @param shoppingItemFinder the shopping item finder
318             */
319            public void setShoppingItemFinder(ShoppingItemFinder shoppingItemFinder) {
320                    this.shoppingItemFinder = shoppingItemFinder;
321            }
322    
323            /**
324             * Returns the shopping item field local service.
325             *
326             * @return the shopping item field local service
327             */
328            public ShoppingItemFieldLocalService getShoppingItemFieldLocalService() {
329                    return shoppingItemFieldLocalService;
330            }
331    
332            /**
333             * Sets the shopping item field local service.
334             *
335             * @param shoppingItemFieldLocalService the shopping item field local service
336             */
337            public void setShoppingItemFieldLocalService(
338                    ShoppingItemFieldLocalService shoppingItemFieldLocalService) {
339                    this.shoppingItemFieldLocalService = shoppingItemFieldLocalService;
340            }
341    
342            /**
343             * Returns the shopping item field persistence.
344             *
345             * @return the shopping item field persistence
346             */
347            public ShoppingItemFieldPersistence getShoppingItemFieldPersistence() {
348                    return shoppingItemFieldPersistence;
349            }
350    
351            /**
352             * Sets the shopping item field persistence.
353             *
354             * @param shoppingItemFieldPersistence the shopping item field persistence
355             */
356            public void setShoppingItemFieldPersistence(
357                    ShoppingItemFieldPersistence shoppingItemFieldPersistence) {
358                    this.shoppingItemFieldPersistence = shoppingItemFieldPersistence;
359            }
360    
361            /**
362             * Returns the shopping item price local service.
363             *
364             * @return the shopping item price local service
365             */
366            public ShoppingItemPriceLocalService getShoppingItemPriceLocalService() {
367                    return shoppingItemPriceLocalService;
368            }
369    
370            /**
371             * Sets the shopping item price local service.
372             *
373             * @param shoppingItemPriceLocalService the shopping item price local service
374             */
375            public void setShoppingItemPriceLocalService(
376                    ShoppingItemPriceLocalService shoppingItemPriceLocalService) {
377                    this.shoppingItemPriceLocalService = shoppingItemPriceLocalService;
378            }
379    
380            /**
381             * Returns the shopping item price persistence.
382             *
383             * @return the shopping item price persistence
384             */
385            public ShoppingItemPricePersistence getShoppingItemPricePersistence() {
386                    return shoppingItemPricePersistence;
387            }
388    
389            /**
390             * Sets the shopping item price persistence.
391             *
392             * @param shoppingItemPricePersistence the shopping item price persistence
393             */
394            public void setShoppingItemPricePersistence(
395                    ShoppingItemPricePersistence shoppingItemPricePersistence) {
396                    this.shoppingItemPricePersistence = shoppingItemPricePersistence;
397            }
398    
399            /**
400             * Returns the shopping order local service.
401             *
402             * @return the shopping order local service
403             */
404            public ShoppingOrderLocalService getShoppingOrderLocalService() {
405                    return shoppingOrderLocalService;
406            }
407    
408            /**
409             * Sets the shopping order local service.
410             *
411             * @param shoppingOrderLocalService the shopping order local service
412             */
413            public void setShoppingOrderLocalService(
414                    ShoppingOrderLocalService shoppingOrderLocalService) {
415                    this.shoppingOrderLocalService = shoppingOrderLocalService;
416            }
417    
418            /**
419             * Returns the shopping order remote service.
420             *
421             * @return the shopping order remote service
422             */
423            public ShoppingOrderService getShoppingOrderService() {
424                    return shoppingOrderService;
425            }
426    
427            /**
428             * Sets the shopping order remote service.
429             *
430             * @param shoppingOrderService the shopping order remote service
431             */
432            public void setShoppingOrderService(
433                    ShoppingOrderService shoppingOrderService) {
434                    this.shoppingOrderService = shoppingOrderService;
435            }
436    
437            /**
438             * Returns the shopping order persistence.
439             *
440             * @return the shopping order persistence
441             */
442            public ShoppingOrderPersistence getShoppingOrderPersistence() {
443                    return shoppingOrderPersistence;
444            }
445    
446            /**
447             * Sets the shopping order persistence.
448             *
449             * @param shoppingOrderPersistence the shopping order persistence
450             */
451            public void setShoppingOrderPersistence(
452                    ShoppingOrderPersistence shoppingOrderPersistence) {
453                    this.shoppingOrderPersistence = shoppingOrderPersistence;
454            }
455    
456            /**
457             * Returns the shopping order finder.
458             *
459             * @return the shopping order finder
460             */
461            public ShoppingOrderFinder getShoppingOrderFinder() {
462                    return shoppingOrderFinder;
463            }
464    
465            /**
466             * Sets the shopping order finder.
467             *
468             * @param shoppingOrderFinder the shopping order finder
469             */
470            public void setShoppingOrderFinder(ShoppingOrderFinder shoppingOrderFinder) {
471                    this.shoppingOrderFinder = shoppingOrderFinder;
472            }
473    
474            /**
475             * Returns the shopping order item local service.
476             *
477             * @return the shopping order item local service
478             */
479            public ShoppingOrderItemLocalService getShoppingOrderItemLocalService() {
480                    return shoppingOrderItemLocalService;
481            }
482    
483            /**
484             * Sets the shopping order item local service.
485             *
486             * @param shoppingOrderItemLocalService the shopping order item local service
487             */
488            public void setShoppingOrderItemLocalService(
489                    ShoppingOrderItemLocalService shoppingOrderItemLocalService) {
490                    this.shoppingOrderItemLocalService = shoppingOrderItemLocalService;
491            }
492    
493            /**
494             * Returns the shopping order item persistence.
495             *
496             * @return the shopping order item persistence
497             */
498            public ShoppingOrderItemPersistence getShoppingOrderItemPersistence() {
499                    return shoppingOrderItemPersistence;
500            }
501    
502            /**
503             * Sets the shopping order item persistence.
504             *
505             * @param shoppingOrderItemPersistence the shopping order item persistence
506             */
507            public void setShoppingOrderItemPersistence(
508                    ShoppingOrderItemPersistence shoppingOrderItemPersistence) {
509                    this.shoppingOrderItemPersistence = shoppingOrderItemPersistence;
510            }
511    
512            /**
513             * Returns the counter local service.
514             *
515             * @return the counter local service
516             */
517            public CounterLocalService getCounterLocalService() {
518                    return counterLocalService;
519            }
520    
521            /**
522             * Sets the counter local service.
523             *
524             * @param counterLocalService the counter local service
525             */
526            public void setCounterLocalService(CounterLocalService counterLocalService) {
527                    this.counterLocalService = counterLocalService;
528            }
529    
530            /**
531             * Returns the resource local service.
532             *
533             * @return the resource local service
534             */
535            public ResourceLocalService getResourceLocalService() {
536                    return resourceLocalService;
537            }
538    
539            /**
540             * Sets the resource local service.
541             *
542             * @param resourceLocalService the resource local service
543             */
544            public void setResourceLocalService(
545                    ResourceLocalService resourceLocalService) {
546                    this.resourceLocalService = resourceLocalService;
547            }
548    
549            /**
550             * Returns the user local service.
551             *
552             * @return the user local service
553             */
554            public UserLocalService getUserLocalService() {
555                    return userLocalService;
556            }
557    
558            /**
559             * Sets the user local service.
560             *
561             * @param userLocalService the user local service
562             */
563            public void setUserLocalService(UserLocalService userLocalService) {
564                    this.userLocalService = userLocalService;
565            }
566    
567            /**
568             * Returns the user remote service.
569             *
570             * @return the user remote service
571             */
572            public UserService getUserService() {
573                    return userService;
574            }
575    
576            /**
577             * Sets the user remote service.
578             *
579             * @param userService the user remote service
580             */
581            public void setUserService(UserService userService) {
582                    this.userService = userService;
583            }
584    
585            /**
586             * Returns the user persistence.
587             *
588             * @return the user persistence
589             */
590            public UserPersistence getUserPersistence() {
591                    return userPersistence;
592            }
593    
594            /**
595             * Sets the user persistence.
596             *
597             * @param userPersistence the user persistence
598             */
599            public void setUserPersistence(UserPersistence userPersistence) {
600                    this.userPersistence = userPersistence;
601            }
602    
603            /**
604             * Returns the user finder.
605             *
606             * @return the user finder
607             */
608            public UserFinder getUserFinder() {
609                    return userFinder;
610            }
611    
612            /**
613             * Sets the user finder.
614             *
615             * @param userFinder the user finder
616             */
617            public void setUserFinder(UserFinder userFinder) {
618                    this.userFinder = userFinder;
619            }
620    
621            public void afterPropertiesSet() {
622            }
623    
624            public void destroy() {
625            }
626    
627            /**
628             * Returns the Spring bean ID for this bean.
629             *
630             * @return the Spring bean ID for this bean
631             */
632            public String getBeanIdentifier() {
633                    return _beanIdentifier;
634            }
635    
636            /**
637             * Sets the Spring bean ID for this bean.
638             *
639             * @param beanIdentifier the Spring bean ID for this bean
640             */
641            public void setBeanIdentifier(String beanIdentifier) {
642                    _beanIdentifier = beanIdentifier;
643            }
644    
645            protected Class<?> getModelClass() {
646                    return ShoppingCoupon.class;
647            }
648    
649            protected String getModelClassName() {
650                    return ShoppingCoupon.class.getName();
651            }
652    
653            /**
654             * Performs an SQL query.
655             *
656             * @param sql the sql query
657             */
658            protected void runSQL(String sql) throws SystemException {
659                    try {
660                            DataSource dataSource = shoppingCouponPersistence.getDataSource();
661    
662                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
663                                            sql, new int[0]);
664    
665                            sqlUpdate.update();
666                    }
667                    catch (Exception e) {
668                            throw new SystemException(e);
669                    }
670            }
671    
672            @BeanReference(type = ShoppingCartLocalService.class)
673            protected ShoppingCartLocalService shoppingCartLocalService;
674            @BeanReference(type = ShoppingCartPersistence.class)
675            protected ShoppingCartPersistence shoppingCartPersistence;
676            @BeanReference(type = ShoppingCategoryLocalService.class)
677            protected ShoppingCategoryLocalService shoppingCategoryLocalService;
678            @BeanReference(type = ShoppingCategoryService.class)
679            protected ShoppingCategoryService shoppingCategoryService;
680            @BeanReference(type = ShoppingCategoryPersistence.class)
681            protected ShoppingCategoryPersistence shoppingCategoryPersistence;
682            @BeanReference(type = ShoppingCouponLocalService.class)
683            protected ShoppingCouponLocalService shoppingCouponLocalService;
684            @BeanReference(type = ShoppingCouponService.class)
685            protected ShoppingCouponService shoppingCouponService;
686            @BeanReference(type = ShoppingCouponPersistence.class)
687            protected ShoppingCouponPersistence shoppingCouponPersistence;
688            @BeanReference(type = ShoppingCouponFinder.class)
689            protected ShoppingCouponFinder shoppingCouponFinder;
690            @BeanReference(type = ShoppingItemLocalService.class)
691            protected ShoppingItemLocalService shoppingItemLocalService;
692            @BeanReference(type = ShoppingItemService.class)
693            protected ShoppingItemService shoppingItemService;
694            @BeanReference(type = ShoppingItemPersistence.class)
695            protected ShoppingItemPersistence shoppingItemPersistence;
696            @BeanReference(type = ShoppingItemFinder.class)
697            protected ShoppingItemFinder shoppingItemFinder;
698            @BeanReference(type = ShoppingItemFieldLocalService.class)
699            protected ShoppingItemFieldLocalService shoppingItemFieldLocalService;
700            @BeanReference(type = ShoppingItemFieldPersistence.class)
701            protected ShoppingItemFieldPersistence shoppingItemFieldPersistence;
702            @BeanReference(type = ShoppingItemPriceLocalService.class)
703            protected ShoppingItemPriceLocalService shoppingItemPriceLocalService;
704            @BeanReference(type = ShoppingItemPricePersistence.class)
705            protected ShoppingItemPricePersistence shoppingItemPricePersistence;
706            @BeanReference(type = ShoppingOrderLocalService.class)
707            protected ShoppingOrderLocalService shoppingOrderLocalService;
708            @BeanReference(type = ShoppingOrderService.class)
709            protected ShoppingOrderService shoppingOrderService;
710            @BeanReference(type = ShoppingOrderPersistence.class)
711            protected ShoppingOrderPersistence shoppingOrderPersistence;
712            @BeanReference(type = ShoppingOrderFinder.class)
713            protected ShoppingOrderFinder shoppingOrderFinder;
714            @BeanReference(type = ShoppingOrderItemLocalService.class)
715            protected ShoppingOrderItemLocalService shoppingOrderItemLocalService;
716            @BeanReference(type = ShoppingOrderItemPersistence.class)
717            protected ShoppingOrderItemPersistence shoppingOrderItemPersistence;
718            @BeanReference(type = CounterLocalService.class)
719            protected CounterLocalService counterLocalService;
720            @BeanReference(type = ResourceLocalService.class)
721            protected ResourceLocalService resourceLocalService;
722            @BeanReference(type = UserLocalService.class)
723            protected UserLocalService userLocalService;
724            @BeanReference(type = UserService.class)
725            protected UserService userService;
726            @BeanReference(type = UserPersistence.class)
727            protected UserPersistence userPersistence;
728            @BeanReference(type = UserFinder.class)
729            protected UserFinder userFinder;
730            private String _beanIdentifier;
731    }