001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.shopping.service.base;
016    
017    import com.liferay.counter.service.CounterLocalService;
018    
019    import com.liferay.mail.service.MailService;
020    
021    import com.liferay.portal.kernel.annotation.BeanReference;
022    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
023    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
024    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
025    import com.liferay.portal.kernel.exception.PortalException;
026    import com.liferay.portal.kernel.exception.SystemException;
027    import com.liferay.portal.kernel.util.OrderByComparator;
028    import com.liferay.portal.service.CompanyLocalService;
029    import com.liferay.portal.service.CompanyService;
030    import com.liferay.portal.service.ResourceLocalService;
031    import com.liferay.portal.service.ResourceService;
032    import com.liferay.portal.service.UserLocalService;
033    import com.liferay.portal.service.UserService;
034    import com.liferay.portal.service.persistence.CompanyPersistence;
035    import com.liferay.portal.service.persistence.ResourceFinder;
036    import com.liferay.portal.service.persistence.ResourcePersistence;
037    import com.liferay.portal.service.persistence.UserFinder;
038    import com.liferay.portal.service.persistence.UserPersistence;
039    
040    import com.liferay.portlet.messageboards.service.MBMessageLocalService;
041    import com.liferay.portlet.messageboards.service.MBMessageService;
042    import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
043    import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
044    import com.liferay.portlet.shopping.model.ShoppingOrder;
045    import com.liferay.portlet.shopping.service.ShoppingCartLocalService;
046    import com.liferay.portlet.shopping.service.ShoppingCategoryLocalService;
047    import com.liferay.portlet.shopping.service.ShoppingCategoryService;
048    import com.liferay.portlet.shopping.service.ShoppingCouponLocalService;
049    import com.liferay.portlet.shopping.service.ShoppingCouponService;
050    import com.liferay.portlet.shopping.service.ShoppingItemFieldLocalService;
051    import com.liferay.portlet.shopping.service.ShoppingItemLocalService;
052    import com.liferay.portlet.shopping.service.ShoppingItemPriceLocalService;
053    import com.liferay.portlet.shopping.service.ShoppingItemService;
054    import com.liferay.portlet.shopping.service.ShoppingOrderItemLocalService;
055    import com.liferay.portlet.shopping.service.ShoppingOrderLocalService;
056    import com.liferay.portlet.shopping.service.ShoppingOrderService;
057    import com.liferay.portlet.shopping.service.persistence.ShoppingCartPersistence;
058    import com.liferay.portlet.shopping.service.persistence.ShoppingCategoryPersistence;
059    import com.liferay.portlet.shopping.service.persistence.ShoppingCouponFinder;
060    import com.liferay.portlet.shopping.service.persistence.ShoppingCouponPersistence;
061    import com.liferay.portlet.shopping.service.persistence.ShoppingItemFieldPersistence;
062    import com.liferay.portlet.shopping.service.persistence.ShoppingItemFinder;
063    import com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence;
064    import com.liferay.portlet.shopping.service.persistence.ShoppingItemPricePersistence;
065    import com.liferay.portlet.shopping.service.persistence.ShoppingOrderFinder;
066    import com.liferay.portlet.shopping.service.persistence.ShoppingOrderItemPersistence;
067    import com.liferay.portlet.shopping.service.persistence.ShoppingOrderPersistence;
068    
069    import java.util.List;
070    
071    import javax.sql.DataSource;
072    
073    /**
074     * The base implementation of the shopping order local service.
075     *
076     * <p>
077     * 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.ShoppingOrderLocalServiceImpl}.
078     * </p>
079     *
080     * <p>
081     * Never modify or reference this class directly. Always use {@link com.liferay.portlet.shopping.service.ShoppingOrderLocalServiceUtil} to access the shopping order local service.
082     * </p>
083     *
084     * @author Brian Wing Shun Chan
085     * @see com.liferay.portlet.shopping.service.impl.ShoppingOrderLocalServiceImpl
086     * @see com.liferay.portlet.shopping.service.ShoppingOrderLocalServiceUtil
087     * @generated
088     */
089    public abstract class ShoppingOrderLocalServiceBaseImpl
090            implements ShoppingOrderLocalService {
091            /**
092             * Adds the shopping order to the database. Also notifies the appropriate model listeners.
093             *
094             * @param shoppingOrder the shopping order to add
095             * @return the shopping order that was added
096             * @throws SystemException if a system exception occurred
097             */
098            public ShoppingOrder addShoppingOrder(ShoppingOrder shoppingOrder)
099                    throws SystemException {
100                    shoppingOrder.setNew(true);
101    
102                    return shoppingOrderPersistence.update(shoppingOrder, false);
103            }
104    
105            /**
106             * Creates a new shopping order with the primary key. Does not add the shopping order to the database.
107             *
108             * @param orderId the primary key for the new shopping order
109             * @return the new shopping order
110             */
111            public ShoppingOrder createShoppingOrder(long orderId) {
112                    return shoppingOrderPersistence.create(orderId);
113            }
114    
115            /**
116             * Deletes the shopping order with the primary key from the database. Also notifies the appropriate model listeners.
117             *
118             * @param orderId the primary key of the shopping order to delete
119             * @throws PortalException if a shopping order with the primary key could not be found
120             * @throws SystemException if a system exception occurred
121             */
122            public void deleteShoppingOrder(long orderId)
123                    throws PortalException, SystemException {
124                    shoppingOrderPersistence.remove(orderId);
125            }
126    
127            /**
128             * Deletes the shopping order from the database. Also notifies the appropriate model listeners.
129             *
130             * @param shoppingOrder the shopping order to delete
131             * @throws SystemException if a system exception occurred
132             */
133            public void deleteShoppingOrder(ShoppingOrder shoppingOrder)
134                    throws SystemException {
135                    shoppingOrderPersistence.remove(shoppingOrder);
136            }
137    
138            /**
139             * Performs a dynamic query on the database and returns the matching rows.
140             *
141             * @param dynamicQuery the dynamic query to search with
142             * @return the matching rows
143             * @throws SystemException if a system exception occurred
144             */
145            @SuppressWarnings("rawtypes")
146            public List dynamicQuery(DynamicQuery dynamicQuery)
147                    throws SystemException {
148                    return shoppingOrderPersistence.findWithDynamicQuery(dynamicQuery);
149            }
150    
151            /**
152             * Performs a dynamic query on the database and returns a range of the matching rows.
153             *
154             * <p>
155             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
156             * </p>
157             *
158             * @param dynamicQuery the dynamic query to search with
159             * @param start the lower bound of the range of model instances to return
160             * @param end the upper bound of the range of model instances to return (not inclusive)
161             * @return the range of matching rows
162             * @throws SystemException if a system exception occurred
163             */
164            @SuppressWarnings("rawtypes")
165            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
166                    throws SystemException {
167                    return shoppingOrderPersistence.findWithDynamicQuery(dynamicQuery,
168                            start, end);
169            }
170    
171            /**
172             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
173             *
174             * <p>
175             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
176             * </p>
177             *
178             * @param dynamicQuery the dynamic query to search with
179             * @param start the lower bound of the range of model instances to return
180             * @param end the upper bound of the range of model instances to return (not inclusive)
181             * @param orderByComparator the comparator to order the results by
182             * @return the ordered range of matching rows
183             * @throws SystemException if a system exception occurred
184             */
185            @SuppressWarnings("rawtypes")
186            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
187                    OrderByComparator orderByComparator) throws SystemException {
188                    return shoppingOrderPersistence.findWithDynamicQuery(dynamicQuery,
189                            start, end, orderByComparator);
190            }
191    
192            /**
193             * Counts the number of rows that match the dynamic query.
194             *
195             * @param dynamicQuery the dynamic query to search with
196             * @return the number of rows that match the dynamic query
197             * @throws SystemException if a system exception occurred
198             */
199            public long dynamicQueryCount(DynamicQuery dynamicQuery)
200                    throws SystemException {
201                    return shoppingOrderPersistence.countWithDynamicQuery(dynamicQuery);
202            }
203    
204            /**
205             * Gets the shopping order with the primary key.
206             *
207             * @param orderId the primary key of the shopping order to get
208             * @return the shopping order
209             * @throws PortalException if a shopping order with the primary key could not be found
210             * @throws SystemException if a system exception occurred
211             */
212            public ShoppingOrder getShoppingOrder(long orderId)
213                    throws PortalException, SystemException {
214                    return shoppingOrderPersistence.findByPrimaryKey(orderId);
215            }
216    
217            /**
218             * Gets a range of all the shopping orders.
219             *
220             * <p>
221             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
222             * </p>
223             *
224             * @param start the lower bound of the range of shopping orders to return
225             * @param end the upper bound of the range of shopping orders to return (not inclusive)
226             * @return the range of shopping orders
227             * @throws SystemException if a system exception occurred
228             */
229            public List<ShoppingOrder> getShoppingOrders(int start, int end)
230                    throws SystemException {
231                    return shoppingOrderPersistence.findAll(start, end);
232            }
233    
234            /**
235             * Gets the number of shopping orders.
236             *
237             * @return the number of shopping orders
238             * @throws SystemException if a system exception occurred
239             */
240            public int getShoppingOrdersCount() throws SystemException {
241                    return shoppingOrderPersistence.countAll();
242            }
243    
244            /**
245             * Updates the shopping order in the database. Also notifies the appropriate model listeners.
246             *
247             * @param shoppingOrder the shopping order to update
248             * @return the shopping order that was updated
249             * @throws SystemException if a system exception occurred
250             */
251            public ShoppingOrder updateShoppingOrder(ShoppingOrder shoppingOrder)
252                    throws SystemException {
253                    shoppingOrder.setNew(false);
254    
255                    return shoppingOrderPersistence.update(shoppingOrder, true);
256            }
257    
258            /**
259             * Updates the shopping order in the database. Also notifies the appropriate model listeners.
260             *
261             * @param shoppingOrder the shopping order to update
262             * @param merge whether to merge the shopping order with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
263             * @return the shopping order that was updated
264             * @throws SystemException if a system exception occurred
265             */
266            public ShoppingOrder updateShoppingOrder(ShoppingOrder shoppingOrder,
267                    boolean merge) throws SystemException {
268                    shoppingOrder.setNew(false);
269    
270                    return shoppingOrderPersistence.update(shoppingOrder, merge);
271            }
272    
273            /**
274             * Gets the shopping cart local service.
275             *
276             * @return the shopping cart local service
277             */
278            public ShoppingCartLocalService getShoppingCartLocalService() {
279                    return shoppingCartLocalService;
280            }
281    
282            /**
283             * Sets the shopping cart local service.
284             *
285             * @param shoppingCartLocalService the shopping cart local service
286             */
287            public void setShoppingCartLocalService(
288                    ShoppingCartLocalService shoppingCartLocalService) {
289                    this.shoppingCartLocalService = shoppingCartLocalService;
290            }
291    
292            /**
293             * Gets the shopping cart persistence.
294             *
295             * @return the shopping cart persistence
296             */
297            public ShoppingCartPersistence getShoppingCartPersistence() {
298                    return shoppingCartPersistence;
299            }
300    
301            /**
302             * Sets the shopping cart persistence.
303             *
304             * @param shoppingCartPersistence the shopping cart persistence
305             */
306            public void setShoppingCartPersistence(
307                    ShoppingCartPersistence shoppingCartPersistence) {
308                    this.shoppingCartPersistence = shoppingCartPersistence;
309            }
310    
311            /**
312             * Gets the shopping category local service.
313             *
314             * @return the shopping category local service
315             */
316            public ShoppingCategoryLocalService getShoppingCategoryLocalService() {
317                    return shoppingCategoryLocalService;
318            }
319    
320            /**
321             * Sets the shopping category local service.
322             *
323             * @param shoppingCategoryLocalService the shopping category local service
324             */
325            public void setShoppingCategoryLocalService(
326                    ShoppingCategoryLocalService shoppingCategoryLocalService) {
327                    this.shoppingCategoryLocalService = shoppingCategoryLocalService;
328            }
329    
330            /**
331             * Gets the shopping category remote service.
332             *
333             * @return the shopping category remote service
334             */
335            public ShoppingCategoryService getShoppingCategoryService() {
336                    return shoppingCategoryService;
337            }
338    
339            /**
340             * Sets the shopping category remote service.
341             *
342             * @param shoppingCategoryService the shopping category remote service
343             */
344            public void setShoppingCategoryService(
345                    ShoppingCategoryService shoppingCategoryService) {
346                    this.shoppingCategoryService = shoppingCategoryService;
347            }
348    
349            /**
350             * Gets the shopping category persistence.
351             *
352             * @return the shopping category persistence
353             */
354            public ShoppingCategoryPersistence getShoppingCategoryPersistence() {
355                    return shoppingCategoryPersistence;
356            }
357    
358            /**
359             * Sets the shopping category persistence.
360             *
361             * @param shoppingCategoryPersistence the shopping category persistence
362             */
363            public void setShoppingCategoryPersistence(
364                    ShoppingCategoryPersistence shoppingCategoryPersistence) {
365                    this.shoppingCategoryPersistence = shoppingCategoryPersistence;
366            }
367    
368            /**
369             * Gets the shopping coupon local service.
370             *
371             * @return the shopping coupon local service
372             */
373            public ShoppingCouponLocalService getShoppingCouponLocalService() {
374                    return shoppingCouponLocalService;
375            }
376    
377            /**
378             * Sets the shopping coupon local service.
379             *
380             * @param shoppingCouponLocalService the shopping coupon local service
381             */
382            public void setShoppingCouponLocalService(
383                    ShoppingCouponLocalService shoppingCouponLocalService) {
384                    this.shoppingCouponLocalService = shoppingCouponLocalService;
385            }
386    
387            /**
388             * Gets the shopping coupon remote service.
389             *
390             * @return the shopping coupon remote service
391             */
392            public ShoppingCouponService getShoppingCouponService() {
393                    return shoppingCouponService;
394            }
395    
396            /**
397             * Sets the shopping coupon remote service.
398             *
399             * @param shoppingCouponService the shopping coupon remote service
400             */
401            public void setShoppingCouponService(
402                    ShoppingCouponService shoppingCouponService) {
403                    this.shoppingCouponService = shoppingCouponService;
404            }
405    
406            /**
407             * Gets the shopping coupon persistence.
408             *
409             * @return the shopping coupon persistence
410             */
411            public ShoppingCouponPersistence getShoppingCouponPersistence() {
412                    return shoppingCouponPersistence;
413            }
414    
415            /**
416             * Sets the shopping coupon persistence.
417             *
418             * @param shoppingCouponPersistence the shopping coupon persistence
419             */
420            public void setShoppingCouponPersistence(
421                    ShoppingCouponPersistence shoppingCouponPersistence) {
422                    this.shoppingCouponPersistence = shoppingCouponPersistence;
423            }
424    
425            /**
426             * Gets the shopping coupon finder.
427             *
428             * @return the shopping coupon finder
429             */
430            public ShoppingCouponFinder getShoppingCouponFinder() {
431                    return shoppingCouponFinder;
432            }
433    
434            /**
435             * Sets the shopping coupon finder.
436             *
437             * @param shoppingCouponFinder the shopping coupon finder
438             */
439            public void setShoppingCouponFinder(
440                    ShoppingCouponFinder shoppingCouponFinder) {
441                    this.shoppingCouponFinder = shoppingCouponFinder;
442            }
443    
444            /**
445             * Gets the shopping item local service.
446             *
447             * @return the shopping item local service
448             */
449            public ShoppingItemLocalService getShoppingItemLocalService() {
450                    return shoppingItemLocalService;
451            }
452    
453            /**
454             * Sets the shopping item local service.
455             *
456             * @param shoppingItemLocalService the shopping item local service
457             */
458            public void setShoppingItemLocalService(
459                    ShoppingItemLocalService shoppingItemLocalService) {
460                    this.shoppingItemLocalService = shoppingItemLocalService;
461            }
462    
463            /**
464             * Gets the shopping item remote service.
465             *
466             * @return the shopping item remote service
467             */
468            public ShoppingItemService getShoppingItemService() {
469                    return shoppingItemService;
470            }
471    
472            /**
473             * Sets the shopping item remote service.
474             *
475             * @param shoppingItemService the shopping item remote service
476             */
477            public void setShoppingItemService(ShoppingItemService shoppingItemService) {
478                    this.shoppingItemService = shoppingItemService;
479            }
480    
481            /**
482             * Gets the shopping item persistence.
483             *
484             * @return the shopping item persistence
485             */
486            public ShoppingItemPersistence getShoppingItemPersistence() {
487                    return shoppingItemPersistence;
488            }
489    
490            /**
491             * Sets the shopping item persistence.
492             *
493             * @param shoppingItemPersistence the shopping item persistence
494             */
495            public void setShoppingItemPersistence(
496                    ShoppingItemPersistence shoppingItemPersistence) {
497                    this.shoppingItemPersistence = shoppingItemPersistence;
498            }
499    
500            /**
501             * Gets the shopping item finder.
502             *
503             * @return the shopping item finder
504             */
505            public ShoppingItemFinder getShoppingItemFinder() {
506                    return shoppingItemFinder;
507            }
508    
509            /**
510             * Sets the shopping item finder.
511             *
512             * @param shoppingItemFinder the shopping item finder
513             */
514            public void setShoppingItemFinder(ShoppingItemFinder shoppingItemFinder) {
515                    this.shoppingItemFinder = shoppingItemFinder;
516            }
517    
518            /**
519             * Gets the shopping item field local service.
520             *
521             * @return the shopping item field local service
522             */
523            public ShoppingItemFieldLocalService getShoppingItemFieldLocalService() {
524                    return shoppingItemFieldLocalService;
525            }
526    
527            /**
528             * Sets the shopping item field local service.
529             *
530             * @param shoppingItemFieldLocalService the shopping item field local service
531             */
532            public void setShoppingItemFieldLocalService(
533                    ShoppingItemFieldLocalService shoppingItemFieldLocalService) {
534                    this.shoppingItemFieldLocalService = shoppingItemFieldLocalService;
535            }
536    
537            /**
538             * Gets the shopping item field persistence.
539             *
540             * @return the shopping item field persistence
541             */
542            public ShoppingItemFieldPersistence getShoppingItemFieldPersistence() {
543                    return shoppingItemFieldPersistence;
544            }
545    
546            /**
547             * Sets the shopping item field persistence.
548             *
549             * @param shoppingItemFieldPersistence the shopping item field persistence
550             */
551            public void setShoppingItemFieldPersistence(
552                    ShoppingItemFieldPersistence shoppingItemFieldPersistence) {
553                    this.shoppingItemFieldPersistence = shoppingItemFieldPersistence;
554            }
555    
556            /**
557             * Gets the shopping item price local service.
558             *
559             * @return the shopping item price local service
560             */
561            public ShoppingItemPriceLocalService getShoppingItemPriceLocalService() {
562                    return shoppingItemPriceLocalService;
563            }
564    
565            /**
566             * Sets the shopping item price local service.
567             *
568             * @param shoppingItemPriceLocalService the shopping item price local service
569             */
570            public void setShoppingItemPriceLocalService(
571                    ShoppingItemPriceLocalService shoppingItemPriceLocalService) {
572                    this.shoppingItemPriceLocalService = shoppingItemPriceLocalService;
573            }
574    
575            /**
576             * Gets the shopping item price persistence.
577             *
578             * @return the shopping item price persistence
579             */
580            public ShoppingItemPricePersistence getShoppingItemPricePersistence() {
581                    return shoppingItemPricePersistence;
582            }
583    
584            /**
585             * Sets the shopping item price persistence.
586             *
587             * @param shoppingItemPricePersistence the shopping item price persistence
588             */
589            public void setShoppingItemPricePersistence(
590                    ShoppingItemPricePersistence shoppingItemPricePersistence) {
591                    this.shoppingItemPricePersistence = shoppingItemPricePersistence;
592            }
593    
594            /**
595             * Gets the shopping order local service.
596             *
597             * @return the shopping order local service
598             */
599            public ShoppingOrderLocalService getShoppingOrderLocalService() {
600                    return shoppingOrderLocalService;
601            }
602    
603            /**
604             * Sets the shopping order local service.
605             *
606             * @param shoppingOrderLocalService the shopping order local service
607             */
608            public void setShoppingOrderLocalService(
609                    ShoppingOrderLocalService shoppingOrderLocalService) {
610                    this.shoppingOrderLocalService = shoppingOrderLocalService;
611            }
612    
613            /**
614             * Gets the shopping order remote service.
615             *
616             * @return the shopping order remote service
617             */
618            public ShoppingOrderService getShoppingOrderService() {
619                    return shoppingOrderService;
620            }
621    
622            /**
623             * Sets the shopping order remote service.
624             *
625             * @param shoppingOrderService the shopping order remote service
626             */
627            public void setShoppingOrderService(
628                    ShoppingOrderService shoppingOrderService) {
629                    this.shoppingOrderService = shoppingOrderService;
630            }
631    
632            /**
633             * Gets the shopping order persistence.
634             *
635             * @return the shopping order persistence
636             */
637            public ShoppingOrderPersistence getShoppingOrderPersistence() {
638                    return shoppingOrderPersistence;
639            }
640    
641            /**
642             * Sets the shopping order persistence.
643             *
644             * @param shoppingOrderPersistence the shopping order persistence
645             */
646            public void setShoppingOrderPersistence(
647                    ShoppingOrderPersistence shoppingOrderPersistence) {
648                    this.shoppingOrderPersistence = shoppingOrderPersistence;
649            }
650    
651            /**
652             * Gets the shopping order finder.
653             *
654             * @return the shopping order finder
655             */
656            public ShoppingOrderFinder getShoppingOrderFinder() {
657                    return shoppingOrderFinder;
658            }
659    
660            /**
661             * Sets the shopping order finder.
662             *
663             * @param shoppingOrderFinder the shopping order finder
664             */
665            public void setShoppingOrderFinder(ShoppingOrderFinder shoppingOrderFinder) {
666                    this.shoppingOrderFinder = shoppingOrderFinder;
667            }
668    
669            /**
670             * Gets the shopping order item local service.
671             *
672             * @return the shopping order item local service
673             */
674            public ShoppingOrderItemLocalService getShoppingOrderItemLocalService() {
675                    return shoppingOrderItemLocalService;
676            }
677    
678            /**
679             * Sets the shopping order item local service.
680             *
681             * @param shoppingOrderItemLocalService the shopping order item local service
682             */
683            public void setShoppingOrderItemLocalService(
684                    ShoppingOrderItemLocalService shoppingOrderItemLocalService) {
685                    this.shoppingOrderItemLocalService = shoppingOrderItemLocalService;
686            }
687    
688            /**
689             * Gets the shopping order item persistence.
690             *
691             * @return the shopping order item persistence
692             */
693            public ShoppingOrderItemPersistence getShoppingOrderItemPersistence() {
694                    return shoppingOrderItemPersistence;
695            }
696    
697            /**
698             * Sets the shopping order item persistence.
699             *
700             * @param shoppingOrderItemPersistence the shopping order item persistence
701             */
702            public void setShoppingOrderItemPersistence(
703                    ShoppingOrderItemPersistence shoppingOrderItemPersistence) {
704                    this.shoppingOrderItemPersistence = shoppingOrderItemPersistence;
705            }
706    
707            /**
708             * Gets the counter local service.
709             *
710             * @return the counter local service
711             */
712            public CounterLocalService getCounterLocalService() {
713                    return counterLocalService;
714            }
715    
716            /**
717             * Sets the counter local service.
718             *
719             * @param counterLocalService the counter local service
720             */
721            public void setCounterLocalService(CounterLocalService counterLocalService) {
722                    this.counterLocalService = counterLocalService;
723            }
724    
725            /**
726             * Gets the mail remote service.
727             *
728             * @return the mail remote service
729             */
730            public MailService getMailService() {
731                    return mailService;
732            }
733    
734            /**
735             * Sets the mail remote service.
736             *
737             * @param mailService the mail remote service
738             */
739            public void setMailService(MailService mailService) {
740                    this.mailService = mailService;
741            }
742    
743            /**
744             * Gets the company local service.
745             *
746             * @return the company local service
747             */
748            public CompanyLocalService getCompanyLocalService() {
749                    return companyLocalService;
750            }
751    
752            /**
753             * Sets the company local service.
754             *
755             * @param companyLocalService the company local service
756             */
757            public void setCompanyLocalService(CompanyLocalService companyLocalService) {
758                    this.companyLocalService = companyLocalService;
759            }
760    
761            /**
762             * Gets the company remote service.
763             *
764             * @return the company remote service
765             */
766            public CompanyService getCompanyService() {
767                    return companyService;
768            }
769    
770            /**
771             * Sets the company remote service.
772             *
773             * @param companyService the company remote service
774             */
775            public void setCompanyService(CompanyService companyService) {
776                    this.companyService = companyService;
777            }
778    
779            /**
780             * Gets the company persistence.
781             *
782             * @return the company persistence
783             */
784            public CompanyPersistence getCompanyPersistence() {
785                    return companyPersistence;
786            }
787    
788            /**
789             * Sets the company persistence.
790             *
791             * @param companyPersistence the company persistence
792             */
793            public void setCompanyPersistence(CompanyPersistence companyPersistence) {
794                    this.companyPersistence = companyPersistence;
795            }
796    
797            /**
798             * Gets the resource local service.
799             *
800             * @return the resource local service
801             */
802            public ResourceLocalService getResourceLocalService() {
803                    return resourceLocalService;
804            }
805    
806            /**
807             * Sets the resource local service.
808             *
809             * @param resourceLocalService the resource local service
810             */
811            public void setResourceLocalService(
812                    ResourceLocalService resourceLocalService) {
813                    this.resourceLocalService = resourceLocalService;
814            }
815    
816            /**
817             * Gets the resource remote service.
818             *
819             * @return the resource remote service
820             */
821            public ResourceService getResourceService() {
822                    return resourceService;
823            }
824    
825            /**
826             * Sets the resource remote service.
827             *
828             * @param resourceService the resource remote service
829             */
830            public void setResourceService(ResourceService resourceService) {
831                    this.resourceService = resourceService;
832            }
833    
834            /**
835             * Gets the resource persistence.
836             *
837             * @return the resource persistence
838             */
839            public ResourcePersistence getResourcePersistence() {
840                    return resourcePersistence;
841            }
842    
843            /**
844             * Sets the resource persistence.
845             *
846             * @param resourcePersistence the resource persistence
847             */
848            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
849                    this.resourcePersistence = resourcePersistence;
850            }
851    
852            /**
853             * Gets the resource finder.
854             *
855             * @return the resource finder
856             */
857            public ResourceFinder getResourceFinder() {
858                    return resourceFinder;
859            }
860    
861            /**
862             * Sets the resource finder.
863             *
864             * @param resourceFinder the resource finder
865             */
866            public void setResourceFinder(ResourceFinder resourceFinder) {
867                    this.resourceFinder = resourceFinder;
868            }
869    
870            /**
871             * Gets the user local service.
872             *
873             * @return the user local service
874             */
875            public UserLocalService getUserLocalService() {
876                    return userLocalService;
877            }
878    
879            /**
880             * Sets the user local service.
881             *
882             * @param userLocalService the user local service
883             */
884            public void setUserLocalService(UserLocalService userLocalService) {
885                    this.userLocalService = userLocalService;
886            }
887    
888            /**
889             * Gets the user remote service.
890             *
891             * @return the user remote service
892             */
893            public UserService getUserService() {
894                    return userService;
895            }
896    
897            /**
898             * Sets the user remote service.
899             *
900             * @param userService the user remote service
901             */
902            public void setUserService(UserService userService) {
903                    this.userService = userService;
904            }
905    
906            /**
907             * Gets the user persistence.
908             *
909             * @return the user persistence
910             */
911            public UserPersistence getUserPersistence() {
912                    return userPersistence;
913            }
914    
915            /**
916             * Sets the user persistence.
917             *
918             * @param userPersistence the user persistence
919             */
920            public void setUserPersistence(UserPersistence userPersistence) {
921                    this.userPersistence = userPersistence;
922            }
923    
924            /**
925             * Gets the user finder.
926             *
927             * @return the user finder
928             */
929            public UserFinder getUserFinder() {
930                    return userFinder;
931            }
932    
933            /**
934             * Sets the user finder.
935             *
936             * @param userFinder the user finder
937             */
938            public void setUserFinder(UserFinder userFinder) {
939                    this.userFinder = userFinder;
940            }
941    
942            /**
943             * Gets the message-boards message local service.
944             *
945             * @return the message-boards message local service
946             */
947            public MBMessageLocalService getMBMessageLocalService() {
948                    return mbMessageLocalService;
949            }
950    
951            /**
952             * Sets the message-boards message local service.
953             *
954             * @param mbMessageLocalService the message-boards message local service
955             */
956            public void setMBMessageLocalService(
957                    MBMessageLocalService mbMessageLocalService) {
958                    this.mbMessageLocalService = mbMessageLocalService;
959            }
960    
961            /**
962             * Gets the message-boards message remote service.
963             *
964             * @return the message-boards message remote service
965             */
966            public MBMessageService getMBMessageService() {
967                    return mbMessageService;
968            }
969    
970            /**
971             * Sets the message-boards message remote service.
972             *
973             * @param mbMessageService the message-boards message remote service
974             */
975            public void setMBMessageService(MBMessageService mbMessageService) {
976                    this.mbMessageService = mbMessageService;
977            }
978    
979            /**
980             * Gets the message-boards message persistence.
981             *
982             * @return the message-boards message persistence
983             */
984            public MBMessagePersistence getMBMessagePersistence() {
985                    return mbMessagePersistence;
986            }
987    
988            /**
989             * Sets the message-boards message persistence.
990             *
991             * @param mbMessagePersistence the message-boards message persistence
992             */
993            public void setMBMessagePersistence(
994                    MBMessagePersistence mbMessagePersistence) {
995                    this.mbMessagePersistence = mbMessagePersistence;
996            }
997    
998            /**
999             * Gets the message-boards message finder.
1000             *
1001             * @return the message-boards message finder
1002             */
1003            public MBMessageFinder getMBMessageFinder() {
1004                    return mbMessageFinder;
1005            }
1006    
1007            /**
1008             * Sets the message-boards message finder.
1009             *
1010             * @param mbMessageFinder the message-boards message finder
1011             */
1012            public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
1013                    this.mbMessageFinder = mbMessageFinder;
1014            }
1015    
1016            /**
1017             * Performs an SQL query.
1018             *
1019             * @param sql the sql query to perform
1020             */
1021            protected void runSQL(String sql) throws SystemException {
1022                    try {
1023                            DataSource dataSource = shoppingOrderPersistence.getDataSource();
1024    
1025                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1026                                            sql, new int[0]);
1027    
1028                            sqlUpdate.update();
1029                    }
1030                    catch (Exception e) {
1031                            throw new SystemException(e);
1032                    }
1033            }
1034    
1035            @BeanReference(type = ShoppingCartLocalService.class)
1036            protected ShoppingCartLocalService shoppingCartLocalService;
1037            @BeanReference(type = ShoppingCartPersistence.class)
1038            protected ShoppingCartPersistence shoppingCartPersistence;
1039            @BeanReference(type = ShoppingCategoryLocalService.class)
1040            protected ShoppingCategoryLocalService shoppingCategoryLocalService;
1041            @BeanReference(type = ShoppingCategoryService.class)
1042            protected ShoppingCategoryService shoppingCategoryService;
1043            @BeanReference(type = ShoppingCategoryPersistence.class)
1044            protected ShoppingCategoryPersistence shoppingCategoryPersistence;
1045            @BeanReference(type = ShoppingCouponLocalService.class)
1046            protected ShoppingCouponLocalService shoppingCouponLocalService;
1047            @BeanReference(type = ShoppingCouponService.class)
1048            protected ShoppingCouponService shoppingCouponService;
1049            @BeanReference(type = ShoppingCouponPersistence.class)
1050            protected ShoppingCouponPersistence shoppingCouponPersistence;
1051            @BeanReference(type = ShoppingCouponFinder.class)
1052            protected ShoppingCouponFinder shoppingCouponFinder;
1053            @BeanReference(type = ShoppingItemLocalService.class)
1054            protected ShoppingItemLocalService shoppingItemLocalService;
1055            @BeanReference(type = ShoppingItemService.class)
1056            protected ShoppingItemService shoppingItemService;
1057            @BeanReference(type = ShoppingItemPersistence.class)
1058            protected ShoppingItemPersistence shoppingItemPersistence;
1059            @BeanReference(type = ShoppingItemFinder.class)
1060            protected ShoppingItemFinder shoppingItemFinder;
1061            @BeanReference(type = ShoppingItemFieldLocalService.class)
1062            protected ShoppingItemFieldLocalService shoppingItemFieldLocalService;
1063            @BeanReference(type = ShoppingItemFieldPersistence.class)
1064            protected ShoppingItemFieldPersistence shoppingItemFieldPersistence;
1065            @BeanReference(type = ShoppingItemPriceLocalService.class)
1066            protected ShoppingItemPriceLocalService shoppingItemPriceLocalService;
1067            @BeanReference(type = ShoppingItemPricePersistence.class)
1068            protected ShoppingItemPricePersistence shoppingItemPricePersistence;
1069            @BeanReference(type = ShoppingOrderLocalService.class)
1070            protected ShoppingOrderLocalService shoppingOrderLocalService;
1071            @BeanReference(type = ShoppingOrderService.class)
1072            protected ShoppingOrderService shoppingOrderService;
1073            @BeanReference(type = ShoppingOrderPersistence.class)
1074            protected ShoppingOrderPersistence shoppingOrderPersistence;
1075            @BeanReference(type = ShoppingOrderFinder.class)
1076            protected ShoppingOrderFinder shoppingOrderFinder;
1077            @BeanReference(type = ShoppingOrderItemLocalService.class)
1078            protected ShoppingOrderItemLocalService shoppingOrderItemLocalService;
1079            @BeanReference(type = ShoppingOrderItemPersistence.class)
1080            protected ShoppingOrderItemPersistence shoppingOrderItemPersistence;
1081            @BeanReference(type = CounterLocalService.class)
1082            protected CounterLocalService counterLocalService;
1083            @BeanReference(type = MailService.class)
1084            protected MailService mailService;
1085            @BeanReference(type = CompanyLocalService.class)
1086            protected CompanyLocalService companyLocalService;
1087            @BeanReference(type = CompanyService.class)
1088            protected CompanyService companyService;
1089            @BeanReference(type = CompanyPersistence.class)
1090            protected CompanyPersistence companyPersistence;
1091            @BeanReference(type = ResourceLocalService.class)
1092            protected ResourceLocalService resourceLocalService;
1093            @BeanReference(type = ResourceService.class)
1094            protected ResourceService resourceService;
1095            @BeanReference(type = ResourcePersistence.class)
1096            protected ResourcePersistence resourcePersistence;
1097            @BeanReference(type = ResourceFinder.class)
1098            protected ResourceFinder resourceFinder;
1099            @BeanReference(type = UserLocalService.class)
1100            protected UserLocalService userLocalService;
1101            @BeanReference(type = UserService.class)
1102            protected UserService userService;
1103            @BeanReference(type = UserPersistence.class)
1104            protected UserPersistence userPersistence;
1105            @BeanReference(type = UserFinder.class)
1106            protected UserFinder userFinder;
1107            @BeanReference(type = MBMessageLocalService.class)
1108            protected MBMessageLocalService mbMessageLocalService;
1109            @BeanReference(type = MBMessageService.class)
1110            protected MBMessageService mbMessageService;
1111            @BeanReference(type = MBMessagePersistence.class)
1112            protected MBMessagePersistence mbMessagePersistence;
1113            @BeanReference(type = MBMessageFinder.class)
1114            protected MBMessageFinder mbMessageFinder;
1115    }