001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.bean.IdentifiableBean;
021    import com.liferay.portal.kernel.dao.db.DB;
022    import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
023    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
024    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
025    import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;
026    import com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery;
027    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
028    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
029    import com.liferay.portal.kernel.dao.orm.Projection;
030    import com.liferay.portal.kernel.exception.PortalException;
031    import com.liferay.portal.kernel.exception.SystemException;
032    import com.liferay.portal.kernel.search.Indexable;
033    import com.liferay.portal.kernel.search.IndexableType;
034    import com.liferay.portal.kernel.util.OrderByComparator;
035    import com.liferay.portal.model.PersistedModel;
036    import com.liferay.portal.service.BaseLocalServiceImpl;
037    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
038    import com.liferay.portal.service.persistence.UserFinder;
039    import com.liferay.portal.service.persistence.UserPersistence;
040    import com.liferay.portal.util.PortalUtil;
041    
042    import com.liferay.portlet.shopping.model.ShoppingCart;
043    import com.liferay.portlet.shopping.service.ShoppingCartLocalService;
044    import com.liferay.portlet.shopping.service.persistence.ShoppingCartPersistence;
045    import com.liferay.portlet.shopping.service.persistence.ShoppingCouponFinder;
046    import com.liferay.portlet.shopping.service.persistence.ShoppingCouponPersistence;
047    import com.liferay.portlet.shopping.service.persistence.ShoppingItemFinder;
048    import com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence;
049    
050    import java.io.Serializable;
051    
052    import java.util.List;
053    
054    import javax.sql.DataSource;
055    
056    /**
057     * Provides the base implementation for the shopping cart local service.
058     *
059     * <p>
060     * 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.ShoppingCartLocalServiceImpl}.
061     * </p>
062     *
063     * @author Brian Wing Shun Chan
064     * @see com.liferay.portlet.shopping.service.impl.ShoppingCartLocalServiceImpl
065     * @see com.liferay.portlet.shopping.service.ShoppingCartLocalServiceUtil
066     * @generated
067     */
068    @ProviderType
069    public abstract class ShoppingCartLocalServiceBaseImpl
070            extends BaseLocalServiceImpl implements ShoppingCartLocalService,
071                    IdentifiableBean {
072            /*
073             * NOTE FOR DEVELOPERS:
074             *
075             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.shopping.service.ShoppingCartLocalServiceUtil} to access the shopping cart local service.
076             */
077    
078            /**
079             * Adds the shopping cart to the database. Also notifies the appropriate model listeners.
080             *
081             * @param shoppingCart the shopping cart
082             * @return the shopping cart that was added
083             */
084            @Indexable(type = IndexableType.REINDEX)
085            @Override
086            public ShoppingCart addShoppingCart(ShoppingCart shoppingCart) {
087                    shoppingCart.setNew(true);
088    
089                    return shoppingCartPersistence.update(shoppingCart);
090            }
091    
092            /**
093             * Creates a new shopping cart with the primary key. Does not add the shopping cart to the database.
094             *
095             * @param cartId the primary key for the new shopping cart
096             * @return the new shopping cart
097             */
098            @Override
099            public ShoppingCart createShoppingCart(long cartId) {
100                    return shoppingCartPersistence.create(cartId);
101            }
102    
103            /**
104             * Deletes the shopping cart with the primary key from the database. Also notifies the appropriate model listeners.
105             *
106             * @param cartId the primary key of the shopping cart
107             * @return the shopping cart that was removed
108             * @throws PortalException if a shopping cart with the primary key could not be found
109             */
110            @Indexable(type = IndexableType.DELETE)
111            @Override
112            public ShoppingCart deleteShoppingCart(long cartId)
113                    throws PortalException {
114                    return shoppingCartPersistence.remove(cartId);
115            }
116    
117            /**
118             * Deletes the shopping cart from the database. Also notifies the appropriate model listeners.
119             *
120             * @param shoppingCart the shopping cart
121             * @return the shopping cart that was removed
122             */
123            @Indexable(type = IndexableType.DELETE)
124            @Override
125            public ShoppingCart deleteShoppingCart(ShoppingCart shoppingCart) {
126                    return shoppingCartPersistence.remove(shoppingCart);
127            }
128    
129            @Override
130            public DynamicQuery dynamicQuery() {
131                    Class<?> clazz = getClass();
132    
133                    return DynamicQueryFactoryUtil.forClass(ShoppingCart.class,
134                            clazz.getClassLoader());
135            }
136    
137            /**
138             * Performs a dynamic query on the database and returns the matching rows.
139             *
140             * @param dynamicQuery the dynamic query
141             * @return the matching rows
142             */
143            @Override
144            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
145                    return shoppingCartPersistence.findWithDynamicQuery(dynamicQuery);
146            }
147    
148            /**
149             * Performs a dynamic query on the database and returns a range of the matching rows.
150             *
151             * <p>
152             * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.shopping.model.impl.ShoppingCartModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
153             * </p>
154             *
155             * @param dynamicQuery the dynamic query
156             * @param start the lower bound of the range of model instances
157             * @param end the upper bound of the range of model instances (not inclusive)
158             * @return the range of matching rows
159             */
160            @Override
161            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
162                    int end) {
163                    return shoppingCartPersistence.findWithDynamicQuery(dynamicQuery,
164                            start, end);
165            }
166    
167            /**
168             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
169             *
170             * <p>
171             * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.shopping.model.impl.ShoppingCartModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
172             * </p>
173             *
174             * @param dynamicQuery the dynamic query
175             * @param start the lower bound of the range of model instances
176             * @param end the upper bound of the range of model instances (not inclusive)
177             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
178             * @return the ordered range of matching rows
179             */
180            @Override
181            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
182                    int end, OrderByComparator<T> orderByComparator) {
183                    return shoppingCartPersistence.findWithDynamicQuery(dynamicQuery,
184                            start, end, orderByComparator);
185            }
186    
187            /**
188             * Returns the number of rows matching the dynamic query.
189             *
190             * @param dynamicQuery the dynamic query
191             * @return the number of rows matching the dynamic query
192             */
193            @Override
194            public long dynamicQueryCount(DynamicQuery dynamicQuery) {
195                    return shoppingCartPersistence.countWithDynamicQuery(dynamicQuery);
196            }
197    
198            /**
199             * Returns the number of rows matching the dynamic query.
200             *
201             * @param dynamicQuery the dynamic query
202             * @param projection the projection to apply to the query
203             * @return the number of rows matching the dynamic query
204             */
205            @Override
206            public long dynamicQueryCount(DynamicQuery dynamicQuery,
207                    Projection projection) {
208                    return shoppingCartPersistence.countWithDynamicQuery(dynamicQuery,
209                            projection);
210            }
211    
212            @Override
213            public ShoppingCart fetchShoppingCart(long cartId) {
214                    return shoppingCartPersistence.fetchByPrimaryKey(cartId);
215            }
216    
217            /**
218             * Returns the shopping cart with the primary key.
219             *
220             * @param cartId the primary key of the shopping cart
221             * @return the shopping cart
222             * @throws PortalException if a shopping cart with the primary key could not be found
223             */
224            @Override
225            public ShoppingCart getShoppingCart(long cartId) throws PortalException {
226                    return shoppingCartPersistence.findByPrimaryKey(cartId);
227            }
228    
229            @Override
230            public ActionableDynamicQuery getActionableDynamicQuery() {
231                    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
232    
233                    actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.shopping.service.ShoppingCartLocalServiceUtil.getService());
234                    actionableDynamicQuery.setClass(ShoppingCart.class);
235                    actionableDynamicQuery.setClassLoader(getClassLoader());
236    
237                    actionableDynamicQuery.setPrimaryKeyPropertyName("cartId");
238    
239                    return actionableDynamicQuery;
240            }
241    
242            protected void initActionableDynamicQuery(
243                    ActionableDynamicQuery actionableDynamicQuery) {
244                    actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.shopping.service.ShoppingCartLocalServiceUtil.getService());
245                    actionableDynamicQuery.setClass(ShoppingCart.class);
246                    actionableDynamicQuery.setClassLoader(getClassLoader());
247    
248                    actionableDynamicQuery.setPrimaryKeyPropertyName("cartId");
249            }
250    
251            /**
252             * @throws PortalException
253             */
254            @Override
255            public PersistedModel deletePersistedModel(PersistedModel persistedModel)
256                    throws PortalException {
257                    return shoppingCartLocalService.deleteShoppingCart((ShoppingCart)persistedModel);
258            }
259    
260            @Override
261            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
262                    throws PortalException {
263                    return shoppingCartPersistence.findByPrimaryKey(primaryKeyObj);
264            }
265    
266            /**
267             * Returns a range of all the shopping carts.
268             *
269             * <p>
270             * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.shopping.model.impl.ShoppingCartModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
271             * </p>
272             *
273             * @param start the lower bound of the range of shopping carts
274             * @param end the upper bound of the range of shopping carts (not inclusive)
275             * @return the range of shopping carts
276             */
277            @Override
278            public List<ShoppingCart> getShoppingCarts(int start, int end) {
279                    return shoppingCartPersistence.findAll(start, end);
280            }
281    
282            /**
283             * Returns the number of shopping carts.
284             *
285             * @return the number of shopping carts
286             */
287            @Override
288            public int getShoppingCartsCount() {
289                    return shoppingCartPersistence.countAll();
290            }
291    
292            /**
293             * Updates the shopping cart in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
294             *
295             * @param shoppingCart the shopping cart
296             * @return the shopping cart that was updated
297             */
298            @Indexable(type = IndexableType.REINDEX)
299            @Override
300            public ShoppingCart updateShoppingCart(ShoppingCart shoppingCart) {
301                    return shoppingCartPersistence.update(shoppingCart);
302            }
303    
304            /**
305             * Returns the shopping cart local service.
306             *
307             * @return the shopping cart local service
308             */
309            public com.liferay.portlet.shopping.service.ShoppingCartLocalService getShoppingCartLocalService() {
310                    return shoppingCartLocalService;
311            }
312    
313            /**
314             * Sets the shopping cart local service.
315             *
316             * @param shoppingCartLocalService the shopping cart local service
317             */
318            public void setShoppingCartLocalService(
319                    com.liferay.portlet.shopping.service.ShoppingCartLocalService shoppingCartLocalService) {
320                    this.shoppingCartLocalService = shoppingCartLocalService;
321            }
322    
323            /**
324             * Returns the shopping cart persistence.
325             *
326             * @return the shopping cart persistence
327             */
328            public ShoppingCartPersistence getShoppingCartPersistence() {
329                    return shoppingCartPersistence;
330            }
331    
332            /**
333             * Sets the shopping cart persistence.
334             *
335             * @param shoppingCartPersistence the shopping cart persistence
336             */
337            public void setShoppingCartPersistence(
338                    ShoppingCartPersistence shoppingCartPersistence) {
339                    this.shoppingCartPersistence = shoppingCartPersistence;
340            }
341    
342            /**
343             * Returns the counter local service.
344             *
345             * @return the counter local service
346             */
347            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
348                    return counterLocalService;
349            }
350    
351            /**
352             * Sets the counter local service.
353             *
354             * @param counterLocalService the counter local service
355             */
356            public void setCounterLocalService(
357                    com.liferay.counter.service.CounterLocalService counterLocalService) {
358                    this.counterLocalService = counterLocalService;
359            }
360    
361            /**
362             * Returns the user local service.
363             *
364             * @return the user local service
365             */
366            public com.liferay.portal.service.UserLocalService getUserLocalService() {
367                    return userLocalService;
368            }
369    
370            /**
371             * Sets the user local service.
372             *
373             * @param userLocalService the user local service
374             */
375            public void setUserLocalService(
376                    com.liferay.portal.service.UserLocalService userLocalService) {
377                    this.userLocalService = userLocalService;
378            }
379    
380            /**
381             * Returns the user remote service.
382             *
383             * @return the user remote service
384             */
385            public com.liferay.portal.service.UserService getUserService() {
386                    return userService;
387            }
388    
389            /**
390             * Sets the user remote service.
391             *
392             * @param userService the user remote service
393             */
394            public void setUserService(
395                    com.liferay.portal.service.UserService userService) {
396                    this.userService = userService;
397            }
398    
399            /**
400             * Returns the user persistence.
401             *
402             * @return the user persistence
403             */
404            public UserPersistence getUserPersistence() {
405                    return userPersistence;
406            }
407    
408            /**
409             * Sets the user persistence.
410             *
411             * @param userPersistence the user persistence
412             */
413            public void setUserPersistence(UserPersistence userPersistence) {
414                    this.userPersistence = userPersistence;
415            }
416    
417            /**
418             * Returns the user finder.
419             *
420             * @return the user finder
421             */
422            public UserFinder getUserFinder() {
423                    return userFinder;
424            }
425    
426            /**
427             * Sets the user finder.
428             *
429             * @param userFinder the user finder
430             */
431            public void setUserFinder(UserFinder userFinder) {
432                    this.userFinder = userFinder;
433            }
434    
435            /**
436             * Returns the shopping coupon local service.
437             *
438             * @return the shopping coupon local service
439             */
440            public com.liferay.portlet.shopping.service.ShoppingCouponLocalService getShoppingCouponLocalService() {
441                    return shoppingCouponLocalService;
442            }
443    
444            /**
445             * Sets the shopping coupon local service.
446             *
447             * @param shoppingCouponLocalService the shopping coupon local service
448             */
449            public void setShoppingCouponLocalService(
450                    com.liferay.portlet.shopping.service.ShoppingCouponLocalService shoppingCouponLocalService) {
451                    this.shoppingCouponLocalService = shoppingCouponLocalService;
452            }
453    
454            /**
455             * Returns the shopping coupon remote service.
456             *
457             * @return the shopping coupon remote service
458             */
459            public com.liferay.portlet.shopping.service.ShoppingCouponService getShoppingCouponService() {
460                    return shoppingCouponService;
461            }
462    
463            /**
464             * Sets the shopping coupon remote service.
465             *
466             * @param shoppingCouponService the shopping coupon remote service
467             */
468            public void setShoppingCouponService(
469                    com.liferay.portlet.shopping.service.ShoppingCouponService shoppingCouponService) {
470                    this.shoppingCouponService = shoppingCouponService;
471            }
472    
473            /**
474             * Returns the shopping coupon persistence.
475             *
476             * @return the shopping coupon persistence
477             */
478            public ShoppingCouponPersistence getShoppingCouponPersistence() {
479                    return shoppingCouponPersistence;
480            }
481    
482            /**
483             * Sets the shopping coupon persistence.
484             *
485             * @param shoppingCouponPersistence the shopping coupon persistence
486             */
487            public void setShoppingCouponPersistence(
488                    ShoppingCouponPersistence shoppingCouponPersistence) {
489                    this.shoppingCouponPersistence = shoppingCouponPersistence;
490            }
491    
492            /**
493             * Returns the shopping coupon finder.
494             *
495             * @return the shopping coupon finder
496             */
497            public ShoppingCouponFinder getShoppingCouponFinder() {
498                    return shoppingCouponFinder;
499            }
500    
501            /**
502             * Sets the shopping coupon finder.
503             *
504             * @param shoppingCouponFinder the shopping coupon finder
505             */
506            public void setShoppingCouponFinder(
507                    ShoppingCouponFinder shoppingCouponFinder) {
508                    this.shoppingCouponFinder = shoppingCouponFinder;
509            }
510    
511            /**
512             * Returns the shopping item local service.
513             *
514             * @return the shopping item local service
515             */
516            public com.liferay.portlet.shopping.service.ShoppingItemLocalService getShoppingItemLocalService() {
517                    return shoppingItemLocalService;
518            }
519    
520            /**
521             * Sets the shopping item local service.
522             *
523             * @param shoppingItemLocalService the shopping item local service
524             */
525            public void setShoppingItemLocalService(
526                    com.liferay.portlet.shopping.service.ShoppingItemLocalService shoppingItemLocalService) {
527                    this.shoppingItemLocalService = shoppingItemLocalService;
528            }
529    
530            /**
531             * Returns the shopping item remote service.
532             *
533             * @return the shopping item remote service
534             */
535            public com.liferay.portlet.shopping.service.ShoppingItemService getShoppingItemService() {
536                    return shoppingItemService;
537            }
538    
539            /**
540             * Sets the shopping item remote service.
541             *
542             * @param shoppingItemService the shopping item remote service
543             */
544            public void setShoppingItemService(
545                    com.liferay.portlet.shopping.service.ShoppingItemService shoppingItemService) {
546                    this.shoppingItemService = shoppingItemService;
547            }
548    
549            /**
550             * Returns the shopping item persistence.
551             *
552             * @return the shopping item persistence
553             */
554            public ShoppingItemPersistence getShoppingItemPersistence() {
555                    return shoppingItemPersistence;
556            }
557    
558            /**
559             * Sets the shopping item persistence.
560             *
561             * @param shoppingItemPersistence the shopping item persistence
562             */
563            public void setShoppingItemPersistence(
564                    ShoppingItemPersistence shoppingItemPersistence) {
565                    this.shoppingItemPersistence = shoppingItemPersistence;
566            }
567    
568            /**
569             * Returns the shopping item finder.
570             *
571             * @return the shopping item finder
572             */
573            public ShoppingItemFinder getShoppingItemFinder() {
574                    return shoppingItemFinder;
575            }
576    
577            /**
578             * Sets the shopping item finder.
579             *
580             * @param shoppingItemFinder the shopping item finder
581             */
582            public void setShoppingItemFinder(ShoppingItemFinder shoppingItemFinder) {
583                    this.shoppingItemFinder = shoppingItemFinder;
584            }
585    
586            public void afterPropertiesSet() {
587                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.shopping.model.ShoppingCart",
588                            shoppingCartLocalService);
589            }
590    
591            public void destroy() {
592                    persistedModelLocalServiceRegistry.unregister(
593                            "com.liferay.portlet.shopping.model.ShoppingCart");
594            }
595    
596            /**
597             * Returns the Spring bean ID for this bean.
598             *
599             * @return the Spring bean ID for this bean
600             */
601            @Override
602            public String getBeanIdentifier() {
603                    return _beanIdentifier;
604            }
605    
606            /**
607             * Sets the Spring bean ID for this bean.
608             *
609             * @param beanIdentifier the Spring bean ID for this bean
610             */
611            @Override
612            public void setBeanIdentifier(String beanIdentifier) {
613                    _beanIdentifier = beanIdentifier;
614            }
615    
616            protected Class<?> getModelClass() {
617                    return ShoppingCart.class;
618            }
619    
620            protected String getModelClassName() {
621                    return ShoppingCart.class.getName();
622            }
623    
624            /**
625             * Performs a SQL query.
626             *
627             * @param sql the sql query
628             */
629            protected void runSQL(String sql) {
630                    try {
631                            DataSource dataSource = shoppingCartPersistence.getDataSource();
632    
633                            DB db = DBFactoryUtil.getDB();
634    
635                            sql = db.buildSQL(sql);
636                            sql = PortalUtil.transformSQL(sql);
637    
638                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
639                                            sql, new int[0]);
640    
641                            sqlUpdate.update();
642                    }
643                    catch (Exception e) {
644                            throw new SystemException(e);
645                    }
646            }
647    
648            @BeanReference(type = com.liferay.portlet.shopping.service.ShoppingCartLocalService.class)
649            protected com.liferay.portlet.shopping.service.ShoppingCartLocalService shoppingCartLocalService;
650            @BeanReference(type = ShoppingCartPersistence.class)
651            protected ShoppingCartPersistence shoppingCartPersistence;
652            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
653            protected com.liferay.counter.service.CounterLocalService counterLocalService;
654            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
655            protected com.liferay.portal.service.UserLocalService userLocalService;
656            @BeanReference(type = com.liferay.portal.service.UserService.class)
657            protected com.liferay.portal.service.UserService userService;
658            @BeanReference(type = UserPersistence.class)
659            protected UserPersistence userPersistence;
660            @BeanReference(type = UserFinder.class)
661            protected UserFinder userFinder;
662            @BeanReference(type = com.liferay.portlet.shopping.service.ShoppingCouponLocalService.class)
663            protected com.liferay.portlet.shopping.service.ShoppingCouponLocalService shoppingCouponLocalService;
664            @BeanReference(type = com.liferay.portlet.shopping.service.ShoppingCouponService.class)
665            protected com.liferay.portlet.shopping.service.ShoppingCouponService shoppingCouponService;
666            @BeanReference(type = ShoppingCouponPersistence.class)
667            protected ShoppingCouponPersistence shoppingCouponPersistence;
668            @BeanReference(type = ShoppingCouponFinder.class)
669            protected ShoppingCouponFinder shoppingCouponFinder;
670            @BeanReference(type = com.liferay.portlet.shopping.service.ShoppingItemLocalService.class)
671            protected com.liferay.portlet.shopping.service.ShoppingItemLocalService shoppingItemLocalService;
672            @BeanReference(type = com.liferay.portlet.shopping.service.ShoppingItemService.class)
673            protected com.liferay.portlet.shopping.service.ShoppingItemService shoppingItemService;
674            @BeanReference(type = ShoppingItemPersistence.class)
675            protected ShoppingItemPersistence shoppingItemPersistence;
676            @BeanReference(type = ShoppingItemFinder.class)
677            protected ShoppingItemFinder shoppingItemFinder;
678            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
679            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
680            private String _beanIdentifier;
681    }