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