001
014
015 package com.liferay.portlet.shopping.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.jdbc.SqlUpdate;
020 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
021 import com.liferay.portal.kernel.exception.SystemException;
022 import com.liferay.portal.service.BaseServiceImpl;
023 import com.liferay.portal.service.persistence.UserFinder;
024 import com.liferay.portal.service.persistence.UserPersistence;
025
026 import com.liferay.portlet.shopping.model.ShoppingCoupon;
027 import com.liferay.portlet.shopping.service.ShoppingCouponService;
028 import com.liferay.portlet.shopping.service.persistence.ShoppingCartPersistence;
029 import com.liferay.portlet.shopping.service.persistence.ShoppingCategoryPersistence;
030 import com.liferay.portlet.shopping.service.persistence.ShoppingCouponFinder;
031 import com.liferay.portlet.shopping.service.persistence.ShoppingCouponPersistence;
032 import com.liferay.portlet.shopping.service.persistence.ShoppingItemFieldPersistence;
033 import com.liferay.portlet.shopping.service.persistence.ShoppingItemFinder;
034 import com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence;
035 import com.liferay.portlet.shopping.service.persistence.ShoppingItemPricePersistence;
036 import com.liferay.portlet.shopping.service.persistence.ShoppingOrderFinder;
037 import com.liferay.portlet.shopping.service.persistence.ShoppingOrderItemPersistence;
038 import com.liferay.portlet.shopping.service.persistence.ShoppingOrderPersistence;
039
040 import javax.sql.DataSource;
041
042
054 public abstract class ShoppingCouponServiceBaseImpl extends BaseServiceImpl
055 implements ShoppingCouponService, IdentifiableBean {
056
061
062
067 public com.liferay.portlet.shopping.service.ShoppingCartLocalService getShoppingCartLocalService() {
068 return shoppingCartLocalService;
069 }
070
071
076 public void setShoppingCartLocalService(
077 com.liferay.portlet.shopping.service.ShoppingCartLocalService shoppingCartLocalService) {
078 this.shoppingCartLocalService = shoppingCartLocalService;
079 }
080
081
086 public ShoppingCartPersistence getShoppingCartPersistence() {
087 return shoppingCartPersistence;
088 }
089
090
095 public void setShoppingCartPersistence(
096 ShoppingCartPersistence shoppingCartPersistence) {
097 this.shoppingCartPersistence = shoppingCartPersistence;
098 }
099
100
105 public com.liferay.portlet.shopping.service.ShoppingCategoryLocalService getShoppingCategoryLocalService() {
106 return shoppingCategoryLocalService;
107 }
108
109
114 public void setShoppingCategoryLocalService(
115 com.liferay.portlet.shopping.service.ShoppingCategoryLocalService shoppingCategoryLocalService) {
116 this.shoppingCategoryLocalService = shoppingCategoryLocalService;
117 }
118
119
124 public com.liferay.portlet.shopping.service.ShoppingCategoryService getShoppingCategoryService() {
125 return shoppingCategoryService;
126 }
127
128
133 public void setShoppingCategoryService(
134 com.liferay.portlet.shopping.service.ShoppingCategoryService shoppingCategoryService) {
135 this.shoppingCategoryService = shoppingCategoryService;
136 }
137
138
143 public ShoppingCategoryPersistence getShoppingCategoryPersistence() {
144 return shoppingCategoryPersistence;
145 }
146
147
152 public void setShoppingCategoryPersistence(
153 ShoppingCategoryPersistence shoppingCategoryPersistence) {
154 this.shoppingCategoryPersistence = shoppingCategoryPersistence;
155 }
156
157
162 public com.liferay.portlet.shopping.service.ShoppingCouponLocalService getShoppingCouponLocalService() {
163 return shoppingCouponLocalService;
164 }
165
166
171 public void setShoppingCouponLocalService(
172 com.liferay.portlet.shopping.service.ShoppingCouponLocalService shoppingCouponLocalService) {
173 this.shoppingCouponLocalService = shoppingCouponLocalService;
174 }
175
176
181 public com.liferay.portlet.shopping.service.ShoppingCouponService getShoppingCouponService() {
182 return shoppingCouponService;
183 }
184
185
190 public void setShoppingCouponService(
191 com.liferay.portlet.shopping.service.ShoppingCouponService shoppingCouponService) {
192 this.shoppingCouponService = shoppingCouponService;
193 }
194
195
200 public ShoppingCouponPersistence getShoppingCouponPersistence() {
201 return shoppingCouponPersistence;
202 }
203
204
209 public void setShoppingCouponPersistence(
210 ShoppingCouponPersistence shoppingCouponPersistence) {
211 this.shoppingCouponPersistence = shoppingCouponPersistence;
212 }
213
214
219 public ShoppingCouponFinder getShoppingCouponFinder() {
220 return shoppingCouponFinder;
221 }
222
223
228 public void setShoppingCouponFinder(
229 ShoppingCouponFinder shoppingCouponFinder) {
230 this.shoppingCouponFinder = shoppingCouponFinder;
231 }
232
233
238 public com.liferay.portlet.shopping.service.ShoppingItemLocalService getShoppingItemLocalService() {
239 return shoppingItemLocalService;
240 }
241
242
247 public void setShoppingItemLocalService(
248 com.liferay.portlet.shopping.service.ShoppingItemLocalService shoppingItemLocalService) {
249 this.shoppingItemLocalService = shoppingItemLocalService;
250 }
251
252
257 public com.liferay.portlet.shopping.service.ShoppingItemService getShoppingItemService() {
258 return shoppingItemService;
259 }
260
261
266 public void setShoppingItemService(
267 com.liferay.portlet.shopping.service.ShoppingItemService shoppingItemService) {
268 this.shoppingItemService = shoppingItemService;
269 }
270
271
276 public ShoppingItemPersistence getShoppingItemPersistence() {
277 return shoppingItemPersistence;
278 }
279
280
285 public void setShoppingItemPersistence(
286 ShoppingItemPersistence shoppingItemPersistence) {
287 this.shoppingItemPersistence = shoppingItemPersistence;
288 }
289
290
295 public ShoppingItemFinder getShoppingItemFinder() {
296 return shoppingItemFinder;
297 }
298
299
304 public void setShoppingItemFinder(ShoppingItemFinder shoppingItemFinder) {
305 this.shoppingItemFinder = shoppingItemFinder;
306 }
307
308
313 public com.liferay.portlet.shopping.service.ShoppingItemFieldLocalService getShoppingItemFieldLocalService() {
314 return shoppingItemFieldLocalService;
315 }
316
317
322 public void setShoppingItemFieldLocalService(
323 com.liferay.portlet.shopping.service.ShoppingItemFieldLocalService shoppingItemFieldLocalService) {
324 this.shoppingItemFieldLocalService = shoppingItemFieldLocalService;
325 }
326
327
332 public ShoppingItemFieldPersistence getShoppingItemFieldPersistence() {
333 return shoppingItemFieldPersistence;
334 }
335
336
341 public void setShoppingItemFieldPersistence(
342 ShoppingItemFieldPersistence shoppingItemFieldPersistence) {
343 this.shoppingItemFieldPersistence = shoppingItemFieldPersistence;
344 }
345
346
351 public com.liferay.portlet.shopping.service.ShoppingItemPriceLocalService getShoppingItemPriceLocalService() {
352 return shoppingItemPriceLocalService;
353 }
354
355
360 public void setShoppingItemPriceLocalService(
361 com.liferay.portlet.shopping.service.ShoppingItemPriceLocalService shoppingItemPriceLocalService) {
362 this.shoppingItemPriceLocalService = shoppingItemPriceLocalService;
363 }
364
365
370 public ShoppingItemPricePersistence getShoppingItemPricePersistence() {
371 return shoppingItemPricePersistence;
372 }
373
374
379 public void setShoppingItemPricePersistence(
380 ShoppingItemPricePersistence shoppingItemPricePersistence) {
381 this.shoppingItemPricePersistence = shoppingItemPricePersistence;
382 }
383
384
389 public com.liferay.portlet.shopping.service.ShoppingOrderLocalService getShoppingOrderLocalService() {
390 return shoppingOrderLocalService;
391 }
392
393
398 public void setShoppingOrderLocalService(
399 com.liferay.portlet.shopping.service.ShoppingOrderLocalService shoppingOrderLocalService) {
400 this.shoppingOrderLocalService = shoppingOrderLocalService;
401 }
402
403
408 public com.liferay.portlet.shopping.service.ShoppingOrderService getShoppingOrderService() {
409 return shoppingOrderService;
410 }
411
412
417 public void setShoppingOrderService(
418 com.liferay.portlet.shopping.service.ShoppingOrderService shoppingOrderService) {
419 this.shoppingOrderService = shoppingOrderService;
420 }
421
422
427 public ShoppingOrderPersistence getShoppingOrderPersistence() {
428 return shoppingOrderPersistence;
429 }
430
431
436 public void setShoppingOrderPersistence(
437 ShoppingOrderPersistence shoppingOrderPersistence) {
438 this.shoppingOrderPersistence = shoppingOrderPersistence;
439 }
440
441
446 public ShoppingOrderFinder getShoppingOrderFinder() {
447 return shoppingOrderFinder;
448 }
449
450
455 public void setShoppingOrderFinder(ShoppingOrderFinder shoppingOrderFinder) {
456 this.shoppingOrderFinder = shoppingOrderFinder;
457 }
458
459
464 public com.liferay.portlet.shopping.service.ShoppingOrderItemLocalService getShoppingOrderItemLocalService() {
465 return shoppingOrderItemLocalService;
466 }
467
468
473 public void setShoppingOrderItemLocalService(
474 com.liferay.portlet.shopping.service.ShoppingOrderItemLocalService shoppingOrderItemLocalService) {
475 this.shoppingOrderItemLocalService = shoppingOrderItemLocalService;
476 }
477
478
483 public ShoppingOrderItemPersistence getShoppingOrderItemPersistence() {
484 return shoppingOrderItemPersistence;
485 }
486
487
492 public void setShoppingOrderItemPersistence(
493 ShoppingOrderItemPersistence shoppingOrderItemPersistence) {
494 this.shoppingOrderItemPersistence = shoppingOrderItemPersistence;
495 }
496
497
502 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
503 return counterLocalService;
504 }
505
506
511 public void setCounterLocalService(
512 com.liferay.counter.service.CounterLocalService counterLocalService) {
513 this.counterLocalService = counterLocalService;
514 }
515
516
521 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
522 return resourceLocalService;
523 }
524
525
530 public void setResourceLocalService(
531 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
532 this.resourceLocalService = resourceLocalService;
533 }
534
535
540 public com.liferay.portal.service.UserLocalService getUserLocalService() {
541 return userLocalService;
542 }
543
544
549 public void setUserLocalService(
550 com.liferay.portal.service.UserLocalService userLocalService) {
551 this.userLocalService = userLocalService;
552 }
553
554
559 public com.liferay.portal.service.UserService getUserService() {
560 return userService;
561 }
562
563
568 public void setUserService(
569 com.liferay.portal.service.UserService userService) {
570 this.userService = userService;
571 }
572
573
578 public UserPersistence getUserPersistence() {
579 return userPersistence;
580 }
581
582
587 public void setUserPersistence(UserPersistence userPersistence) {
588 this.userPersistence = userPersistence;
589 }
590
591
596 public UserFinder getUserFinder() {
597 return userFinder;
598 }
599
600
605 public void setUserFinder(UserFinder userFinder) {
606 this.userFinder = userFinder;
607 }
608
609 public void afterPropertiesSet() {
610 }
611
612 public void destroy() {
613 }
614
615
620 @Override
621 public String getBeanIdentifier() {
622 return _beanIdentifier;
623 }
624
625
630 @Override
631 public void setBeanIdentifier(String beanIdentifier) {
632 _beanIdentifier = beanIdentifier;
633 }
634
635 protected Class<?> getModelClass() {
636 return ShoppingCoupon.class;
637 }
638
639 protected String getModelClassName() {
640 return ShoppingCoupon.class.getName();
641 }
642
643
648 protected void runSQL(String sql) throws SystemException {
649 try {
650 DataSource dataSource = shoppingCouponPersistence.getDataSource();
651
652 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
653 sql, new int[0]);
654
655 sqlUpdate.update();
656 }
657 catch (Exception e) {
658 throw new SystemException(e);
659 }
660 }
661
662 @BeanReference(type = com.liferay.portlet.shopping.service.ShoppingCartLocalService.class)
663 protected com.liferay.portlet.shopping.service.ShoppingCartLocalService shoppingCartLocalService;
664 @BeanReference(type = ShoppingCartPersistence.class)
665 protected ShoppingCartPersistence shoppingCartPersistence;
666 @BeanReference(type = com.liferay.portlet.shopping.service.ShoppingCategoryLocalService.class)
667 protected com.liferay.portlet.shopping.service.ShoppingCategoryLocalService shoppingCategoryLocalService;
668 @BeanReference(type = com.liferay.portlet.shopping.service.ShoppingCategoryService.class)
669 protected com.liferay.portlet.shopping.service.ShoppingCategoryService shoppingCategoryService;
670 @BeanReference(type = ShoppingCategoryPersistence.class)
671 protected ShoppingCategoryPersistence shoppingCategoryPersistence;
672 @BeanReference(type = com.liferay.portlet.shopping.service.ShoppingCouponLocalService.class)
673 protected com.liferay.portlet.shopping.service.ShoppingCouponLocalService shoppingCouponLocalService;
674 @BeanReference(type = com.liferay.portlet.shopping.service.ShoppingCouponService.class)
675 protected com.liferay.portlet.shopping.service.ShoppingCouponService shoppingCouponService;
676 @BeanReference(type = ShoppingCouponPersistence.class)
677 protected ShoppingCouponPersistence shoppingCouponPersistence;
678 @BeanReference(type = ShoppingCouponFinder.class)
679 protected ShoppingCouponFinder shoppingCouponFinder;
680 @BeanReference(type = com.liferay.portlet.shopping.service.ShoppingItemLocalService.class)
681 protected com.liferay.portlet.shopping.service.ShoppingItemLocalService shoppingItemLocalService;
682 @BeanReference(type = com.liferay.portlet.shopping.service.ShoppingItemService.class)
683 protected com.liferay.portlet.shopping.service.ShoppingItemService shoppingItemService;
684 @BeanReference(type = ShoppingItemPersistence.class)
685 protected ShoppingItemPersistence shoppingItemPersistence;
686 @BeanReference(type = ShoppingItemFinder.class)
687 protected ShoppingItemFinder shoppingItemFinder;
688 @BeanReference(type = com.liferay.portlet.shopping.service.ShoppingItemFieldLocalService.class)
689 protected com.liferay.portlet.shopping.service.ShoppingItemFieldLocalService shoppingItemFieldLocalService;
690 @BeanReference(type = ShoppingItemFieldPersistence.class)
691 protected ShoppingItemFieldPersistence shoppingItemFieldPersistence;
692 @BeanReference(type = com.liferay.portlet.shopping.service.ShoppingItemPriceLocalService.class)
693 protected com.liferay.portlet.shopping.service.ShoppingItemPriceLocalService shoppingItemPriceLocalService;
694 @BeanReference(type = ShoppingItemPricePersistence.class)
695 protected ShoppingItemPricePersistence shoppingItemPricePersistence;
696 @BeanReference(type = com.liferay.portlet.shopping.service.ShoppingOrderLocalService.class)
697 protected com.liferay.portlet.shopping.service.ShoppingOrderLocalService shoppingOrderLocalService;
698 @BeanReference(type = com.liferay.portlet.shopping.service.ShoppingOrderService.class)
699 protected com.liferay.portlet.shopping.service.ShoppingOrderService shoppingOrderService;
700 @BeanReference(type = ShoppingOrderPersistence.class)
701 protected ShoppingOrderPersistence shoppingOrderPersistence;
702 @BeanReference(type = ShoppingOrderFinder.class)
703 protected ShoppingOrderFinder shoppingOrderFinder;
704 @BeanReference(type = com.liferay.portlet.shopping.service.ShoppingOrderItemLocalService.class)
705 protected com.liferay.portlet.shopping.service.ShoppingOrderItemLocalService shoppingOrderItemLocalService;
706 @BeanReference(type = ShoppingOrderItemPersistence.class)
707 protected ShoppingOrderItemPersistence shoppingOrderItemPersistence;
708 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
709 protected com.liferay.counter.service.CounterLocalService counterLocalService;
710 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
711 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
712 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
713 protected com.liferay.portal.service.UserLocalService userLocalService;
714 @BeanReference(type = com.liferay.portal.service.UserService.class)
715 protected com.liferay.portal.service.UserService userService;
716 @BeanReference(type = UserPersistence.class)
717 protected UserPersistence userPersistence;
718 @BeanReference(type = UserFinder.class)
719 protected UserFinder userFinder;
720 private String _beanIdentifier;
721 }