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