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.portal.service.base;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.dao.db.DB;
021    import com.liferay.portal.kernel.dao.db.DBManagerUtil;
022    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
023    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
024    import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;
025    import com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery;
026    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
027    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
028    import com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery;
029    import com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery;
030    import com.liferay.portal.kernel.dao.orm.Projection;
031    import com.liferay.portal.kernel.dao.orm.Property;
032    import com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil;
033    import com.liferay.portal.kernel.exception.PortalException;
034    import com.liferay.portal.kernel.exception.SystemException;
035    import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
036    import com.liferay.portal.kernel.search.Indexable;
037    import com.liferay.portal.kernel.search.IndexableType;
038    import com.liferay.portal.kernel.util.OrderByComparator;
039    import com.liferay.portal.model.Address;
040    import com.liferay.portal.model.PersistedModel;
041    import com.liferay.portal.service.AddressLocalService;
042    import com.liferay.portal.service.BaseLocalServiceImpl;
043    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
044    import com.liferay.portal.service.persistence.AddressPersistence;
045    import com.liferay.portal.service.persistence.ClassNamePersistence;
046    import com.liferay.portal.service.persistence.CountryPersistence;
047    import com.liferay.portal.service.persistence.ListTypePersistence;
048    import com.liferay.portal.service.persistence.UserFinder;
049    import com.liferay.portal.service.persistence.UserPersistence;
050    import com.liferay.portal.util.PortalUtil;
051    
052    import com.liferay.portlet.exportimport.lar.ExportImportHelperUtil;
053    import com.liferay.portlet.exportimport.lar.ManifestSummary;
054    import com.liferay.portlet.exportimport.lar.PortletDataContext;
055    import com.liferay.portlet.exportimport.lar.StagedModelDataHandlerUtil;
056    import com.liferay.portlet.exportimport.lar.StagedModelType;
057    
058    import java.io.Serializable;
059    
060    import java.util.List;
061    
062    import javax.sql.DataSource;
063    
064    /**
065     * Provides the base implementation for the address 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.portal.service.impl.AddressLocalServiceImpl}.
069     * </p>
070     *
071     * @author Brian Wing Shun Chan
072     * @see com.liferay.portal.service.impl.AddressLocalServiceImpl
073     * @see com.liferay.portal.service.AddressLocalServiceUtil
074     * @generated
075     */
076    @ProviderType
077    public abstract class AddressLocalServiceBaseImpl extends BaseLocalServiceImpl
078            implements AddressLocalService, IdentifiableOSGiService {
079            /*
080             * NOTE FOR DEVELOPERS:
081             *
082             * Never modify or reference this class directly. Always use {@link com.liferay.portal.service.AddressLocalServiceUtil} to access the address local service.
083             */
084    
085            /**
086             * Adds the address to the database. Also notifies the appropriate model listeners.
087             *
088             * @param address the address
089             * @return the address that was added
090             */
091            @Indexable(type = IndexableType.REINDEX)
092            @Override
093            public Address addAddress(Address address) {
094                    address.setNew(true);
095    
096                    return addressPersistence.update(address);
097            }
098    
099            /**
100             * Creates a new address with the primary key. Does not add the address to the database.
101             *
102             * @param addressId the primary key for the new address
103             * @return the new address
104             */
105            @Override
106            public Address createAddress(long addressId) {
107                    return addressPersistence.create(addressId);
108            }
109    
110            /**
111             * Deletes the address with the primary key from the database. Also notifies the appropriate model listeners.
112             *
113             * @param addressId the primary key of the address
114             * @return the address that was removed
115             * @throws PortalException if a address with the primary key could not be found
116             */
117            @Indexable(type = IndexableType.DELETE)
118            @Override
119            public Address deleteAddress(long addressId) throws PortalException {
120                    return addressPersistence.remove(addressId);
121            }
122    
123            /**
124             * Deletes the address from the database. Also notifies the appropriate model listeners.
125             *
126             * @param address the address
127             * @return the address that was removed
128             */
129            @Indexable(type = IndexableType.DELETE)
130            @Override
131            public Address deleteAddress(Address address) {
132                    return addressPersistence.remove(address);
133            }
134    
135            @Override
136            public DynamicQuery dynamicQuery() {
137                    Class<?> clazz = getClass();
138    
139                    return DynamicQueryFactoryUtil.forClass(Address.class,
140                            clazz.getClassLoader());
141            }
142    
143            /**
144             * Performs a dynamic query on the database and returns the matching rows.
145             *
146             * @param dynamicQuery the dynamic query
147             * @return the matching rows
148             */
149            @Override
150            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
151                    return addressPersistence.findWithDynamicQuery(dynamicQuery);
152            }
153    
154            /**
155             * Performs a dynamic query on the database and returns a range of the matching rows.
156             *
157             * <p>
158             * 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.portal.model.impl.AddressModelImpl}. 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.
159             * </p>
160             *
161             * @param dynamicQuery the dynamic query
162             * @param start the lower bound of the range of model instances
163             * @param end the upper bound of the range of model instances (not inclusive)
164             * @return the range of matching rows
165             */
166            @Override
167            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
168                    int end) {
169                    return addressPersistence.findWithDynamicQuery(dynamicQuery, start, end);
170            }
171    
172            /**
173             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
174             *
175             * <p>
176             * 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.portal.model.impl.AddressModelImpl}. 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.
177             * </p>
178             *
179             * @param dynamicQuery the dynamic query
180             * @param start the lower bound of the range of model instances
181             * @param end the upper bound of the range of model instances (not inclusive)
182             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
183             * @return the ordered range of matching rows
184             */
185            @Override
186            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
187                    int end, OrderByComparator<T> orderByComparator) {
188                    return addressPersistence.findWithDynamicQuery(dynamicQuery, start,
189                            end, orderByComparator);
190            }
191    
192            /**
193             * Returns the number of rows matching the dynamic query.
194             *
195             * @param dynamicQuery the dynamic query
196             * @return the number of rows matching the dynamic query
197             */
198            @Override
199            public long dynamicQueryCount(DynamicQuery dynamicQuery) {
200                    return addressPersistence.countWithDynamicQuery(dynamicQuery);
201            }
202    
203            /**
204             * Returns the number of rows matching the dynamic query.
205             *
206             * @param dynamicQuery the dynamic query
207             * @param projection the projection to apply to the query
208             * @return the number of rows matching the dynamic query
209             */
210            @Override
211            public long dynamicQueryCount(DynamicQuery dynamicQuery,
212                    Projection projection) {
213                    return addressPersistence.countWithDynamicQuery(dynamicQuery, projection);
214            }
215    
216            @Override
217            public Address fetchAddress(long addressId) {
218                    return addressPersistence.fetchByPrimaryKey(addressId);
219            }
220    
221            /**
222             * Returns the address with the matching UUID and company.
223             *
224             * @param uuid the address's UUID
225             * @param companyId the primary key of the company
226             * @return the matching address, or <code>null</code> if a matching address could not be found
227             */
228            @Override
229            public Address fetchAddressByUuidAndCompanyId(String uuid, long companyId) {
230                    return addressPersistence.fetchByUuid_C_First(uuid, companyId, null);
231            }
232    
233            /**
234             * Returns the address with the primary key.
235             *
236             * @param addressId the primary key of the address
237             * @return the address
238             * @throws PortalException if a address with the primary key could not be found
239             */
240            @Override
241            public Address getAddress(long addressId) throws PortalException {
242                    return addressPersistence.findByPrimaryKey(addressId);
243            }
244    
245            @Override
246            public ActionableDynamicQuery getActionableDynamicQuery() {
247                    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
248    
249                    actionableDynamicQuery.setBaseLocalService(com.liferay.portal.service.AddressLocalServiceUtil.getService());
250                    actionableDynamicQuery.setClassLoader(getClassLoader());
251                    actionableDynamicQuery.setModelClass(Address.class);
252    
253                    actionableDynamicQuery.setPrimaryKeyPropertyName("addressId");
254    
255                    return actionableDynamicQuery;
256            }
257    
258            @Override
259            public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
260                    IndexableActionableDynamicQuery indexableActionableDynamicQuery = new IndexableActionableDynamicQuery();
261    
262                    indexableActionableDynamicQuery.setBaseLocalService(com.liferay.portal.service.AddressLocalServiceUtil.getService());
263                    indexableActionableDynamicQuery.setClassLoader(getClassLoader());
264                    indexableActionableDynamicQuery.setModelClass(Address.class);
265    
266                    indexableActionableDynamicQuery.setPrimaryKeyPropertyName("addressId");
267    
268                    return indexableActionableDynamicQuery;
269            }
270    
271            protected void initActionableDynamicQuery(
272                    ActionableDynamicQuery actionableDynamicQuery) {
273                    actionableDynamicQuery.setBaseLocalService(com.liferay.portal.service.AddressLocalServiceUtil.getService());
274                    actionableDynamicQuery.setClassLoader(getClassLoader());
275                    actionableDynamicQuery.setModelClass(Address.class);
276    
277                    actionableDynamicQuery.setPrimaryKeyPropertyName("addressId");
278            }
279    
280            @Override
281            public ExportActionableDynamicQuery getExportActionableDynamicQuery(
282                    final PortletDataContext portletDataContext) {
283                    final ExportActionableDynamicQuery exportActionableDynamicQuery = new ExportActionableDynamicQuery() {
284                                    @Override
285                                    public long performCount() throws PortalException {
286                                            ManifestSummary manifestSummary = portletDataContext.getManifestSummary();
287    
288                                            StagedModelType stagedModelType = getStagedModelType();
289    
290                                            long modelAdditionCount = super.performCount();
291    
292                                            manifestSummary.addModelAdditionCount(stagedModelType,
293                                                    modelAdditionCount);
294    
295                                            long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(portletDataContext,
296                                                            stagedModelType);
297    
298                                            manifestSummary.addModelDeletionCount(stagedModelType,
299                                                    modelDeletionCount);
300    
301                                            return modelAdditionCount;
302                                    }
303                            };
304    
305                    initActionableDynamicQuery(exportActionableDynamicQuery);
306    
307                    exportActionableDynamicQuery.setAddCriteriaMethod(new ActionableDynamicQuery.AddCriteriaMethod() {
308                                    @Override
309                                    public void addCriteria(DynamicQuery dynamicQuery) {
310                                            portletDataContext.addDateRangeCriteria(dynamicQuery,
311                                                    "modifiedDate");
312    
313                                            StagedModelType stagedModelType = exportActionableDynamicQuery.getStagedModelType();
314    
315                                            long referrerClassNameId = stagedModelType.getReferrerClassNameId();
316    
317                                            Property classNameIdProperty = PropertyFactoryUtil.forName(
318                                                            "classNameId");
319    
320                                            if ((referrerClassNameId != StagedModelType.REFERRER_CLASS_NAME_ID_ALL) &&
321                                                            (referrerClassNameId != StagedModelType.REFERRER_CLASS_NAME_ID_ANY)) {
322                                                    dynamicQuery.add(classNameIdProperty.eq(
323                                                                    stagedModelType.getReferrerClassNameId()));
324                                            }
325                                            else if (referrerClassNameId == StagedModelType.REFERRER_CLASS_NAME_ID_ANY) {
326                                                    dynamicQuery.add(classNameIdProperty.isNotNull());
327                                            }
328                                    }
329                            });
330    
331                    exportActionableDynamicQuery.setCompanyId(portletDataContext.getCompanyId());
332    
333                    exportActionableDynamicQuery.setPerformActionMethod(new ActionableDynamicQuery.PerformActionMethod<Address>() {
334                                    @Override
335                                    public void performAction(Address address)
336                                            throws PortalException {
337                                            StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
338                                                    address);
339                                    }
340                            });
341                    exportActionableDynamicQuery.setStagedModelType(new StagedModelType(
342                                    PortalUtil.getClassNameId(Address.class.getName()),
343                                    StagedModelType.REFERRER_CLASS_NAME_ID_ALL));
344    
345                    return exportActionableDynamicQuery;
346            }
347    
348            /**
349             * @throws PortalException
350             */
351            @Override
352            public PersistedModel deletePersistedModel(PersistedModel persistedModel)
353                    throws PortalException {
354                    return addressLocalService.deleteAddress((Address)persistedModel);
355            }
356    
357            @Override
358            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
359                    throws PortalException {
360                    return addressPersistence.findByPrimaryKey(primaryKeyObj);
361            }
362    
363            /**
364             * Returns the address with the matching UUID and company.
365             *
366             * @param uuid the address's UUID
367             * @param companyId the primary key of the company
368             * @return the matching address
369             * @throws PortalException if a matching address could not be found
370             */
371            @Override
372            public Address getAddressByUuidAndCompanyId(String uuid, long companyId)
373                    throws PortalException {
374                    return addressPersistence.findByUuid_C_First(uuid, companyId, null);
375            }
376    
377            /**
378             * Returns a range of all the addresses.
379             *
380             * <p>
381             * 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.portal.model.impl.AddressModelImpl}. 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.
382             * </p>
383             *
384             * @param start the lower bound of the range of addresses
385             * @param end the upper bound of the range of addresses (not inclusive)
386             * @return the range of addresses
387             */
388            @Override
389            public List<Address> getAddresses(int start, int end) {
390                    return addressPersistence.findAll(start, end);
391            }
392    
393            /**
394             * Returns the number of addresses.
395             *
396             * @return the number of addresses
397             */
398            @Override
399            public int getAddressesCount() {
400                    return addressPersistence.countAll();
401            }
402    
403            /**
404             * Updates the address in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
405             *
406             * @param address the address
407             * @return the address that was updated
408             */
409            @Indexable(type = IndexableType.REINDEX)
410            @Override
411            public Address updateAddress(Address address) {
412                    return addressPersistence.update(address);
413            }
414    
415            /**
416             * Returns the address local service.
417             *
418             * @return the address local service
419             */
420            public AddressLocalService getAddressLocalService() {
421                    return addressLocalService;
422            }
423    
424            /**
425             * Sets the address local service.
426             *
427             * @param addressLocalService the address local service
428             */
429            public void setAddressLocalService(AddressLocalService addressLocalService) {
430                    this.addressLocalService = addressLocalService;
431            }
432    
433            /**
434             * Returns the address persistence.
435             *
436             * @return the address persistence
437             */
438            public AddressPersistence getAddressPersistence() {
439                    return addressPersistence;
440            }
441    
442            /**
443             * Sets the address persistence.
444             *
445             * @param addressPersistence the address persistence
446             */
447            public void setAddressPersistence(AddressPersistence addressPersistence) {
448                    this.addressPersistence = addressPersistence;
449            }
450    
451            /**
452             * Returns the counter local service.
453             *
454             * @return the counter local service
455             */
456            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
457                    return counterLocalService;
458            }
459    
460            /**
461             * Sets the counter local service.
462             *
463             * @param counterLocalService the counter local service
464             */
465            public void setCounterLocalService(
466                    com.liferay.counter.service.CounterLocalService counterLocalService) {
467                    this.counterLocalService = counterLocalService;
468            }
469    
470            /**
471             * Returns the class name local service.
472             *
473             * @return the class name local service
474             */
475            public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
476                    return classNameLocalService;
477            }
478    
479            /**
480             * Sets the class name local service.
481             *
482             * @param classNameLocalService the class name local service
483             */
484            public void setClassNameLocalService(
485                    com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
486                    this.classNameLocalService = classNameLocalService;
487            }
488    
489            /**
490             * Returns the class name persistence.
491             *
492             * @return the class name persistence
493             */
494            public ClassNamePersistence getClassNamePersistence() {
495                    return classNamePersistence;
496            }
497    
498            /**
499             * Sets the class name persistence.
500             *
501             * @param classNamePersistence the class name persistence
502             */
503            public void setClassNamePersistence(
504                    ClassNamePersistence classNamePersistence) {
505                    this.classNamePersistence = classNamePersistence;
506            }
507    
508            /**
509             * Returns the country persistence.
510             *
511             * @return the country persistence
512             */
513            public CountryPersistence getCountryPersistence() {
514                    return countryPersistence;
515            }
516    
517            /**
518             * Sets the country persistence.
519             *
520             * @param countryPersistence the country persistence
521             */
522            public void setCountryPersistence(CountryPersistence countryPersistence) {
523                    this.countryPersistence = countryPersistence;
524            }
525    
526            /**
527             * Returns the list type local service.
528             *
529             * @return the list type local service
530             */
531            public com.liferay.portal.service.ListTypeLocalService getListTypeLocalService() {
532                    return listTypeLocalService;
533            }
534    
535            /**
536             * Sets the list type local service.
537             *
538             * @param listTypeLocalService the list type local service
539             */
540            public void setListTypeLocalService(
541                    com.liferay.portal.service.ListTypeLocalService listTypeLocalService) {
542                    this.listTypeLocalService = listTypeLocalService;
543            }
544    
545            /**
546             * Returns the list type persistence.
547             *
548             * @return the list type persistence
549             */
550            public ListTypePersistence getListTypePersistence() {
551                    return listTypePersistence;
552            }
553    
554            /**
555             * Sets the list type persistence.
556             *
557             * @param listTypePersistence the list type persistence
558             */
559            public void setListTypePersistence(ListTypePersistence listTypePersistence) {
560                    this.listTypePersistence = listTypePersistence;
561            }
562    
563            /**
564             * Returns the user local service.
565             *
566             * @return the user local service
567             */
568            public com.liferay.portal.service.UserLocalService getUserLocalService() {
569                    return userLocalService;
570            }
571    
572            /**
573             * Sets the user local service.
574             *
575             * @param userLocalService the user local service
576             */
577            public void setUserLocalService(
578                    com.liferay.portal.service.UserLocalService userLocalService) {
579                    this.userLocalService = userLocalService;
580            }
581    
582            /**
583             * Returns the user persistence.
584             *
585             * @return the user persistence
586             */
587            public UserPersistence getUserPersistence() {
588                    return userPersistence;
589            }
590    
591            /**
592             * Sets the user persistence.
593             *
594             * @param userPersistence the user persistence
595             */
596            public void setUserPersistence(UserPersistence userPersistence) {
597                    this.userPersistence = userPersistence;
598            }
599    
600            /**
601             * Returns the user finder.
602             *
603             * @return the user finder
604             */
605            public UserFinder getUserFinder() {
606                    return userFinder;
607            }
608    
609            /**
610             * Sets the user finder.
611             *
612             * @param userFinder the user finder
613             */
614            public void setUserFinder(UserFinder userFinder) {
615                    this.userFinder = userFinder;
616            }
617    
618            public void afterPropertiesSet() {
619                    persistedModelLocalServiceRegistry.register("com.liferay.portal.model.Address",
620                            addressLocalService);
621            }
622    
623            public void destroy() {
624                    persistedModelLocalServiceRegistry.unregister(
625                            "com.liferay.portal.model.Address");
626            }
627    
628            /**
629             * Returns the OSGi service identifier.
630             *
631             * @return the OSGi service identifier
632             */
633            @Override
634            public String getOSGiServiceIdentifier() {
635                    return AddressLocalService.class.getName();
636            }
637    
638            protected Class<?> getModelClass() {
639                    return Address.class;
640            }
641    
642            protected String getModelClassName() {
643                    return Address.class.getName();
644            }
645    
646            /**
647             * Performs a SQL query.
648             *
649             * @param sql the sql query
650             */
651            protected void runSQL(String sql) {
652                    try {
653                            DataSource dataSource = addressPersistence.getDataSource();
654    
655                            DB db = DBManagerUtil.getDB();
656    
657                            sql = db.buildSQL(sql);
658                            sql = PortalUtil.transformSQL(sql);
659    
660                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
661                                            sql, new int[0]);
662    
663                            sqlUpdate.update();
664                    }
665                    catch (Exception e) {
666                            throw new SystemException(e);
667                    }
668            }
669    
670            @BeanReference(type = com.liferay.portal.service.AddressLocalService.class)
671            protected AddressLocalService addressLocalService;
672            @BeanReference(type = AddressPersistence.class)
673            protected AddressPersistence addressPersistence;
674            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
675            protected com.liferay.counter.service.CounterLocalService counterLocalService;
676            @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
677            protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
678            @BeanReference(type = ClassNamePersistence.class)
679            protected ClassNamePersistence classNamePersistence;
680            @BeanReference(type = CountryPersistence.class)
681            protected CountryPersistence countryPersistence;
682            @BeanReference(type = com.liferay.portal.service.ListTypeLocalService.class)
683            protected com.liferay.portal.service.ListTypeLocalService listTypeLocalService;
684            @BeanReference(type = ListTypePersistence.class)
685            protected ListTypePersistence listTypePersistence;
686            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
687            protected com.liferay.portal.service.UserLocalService userLocalService;
688            @BeanReference(type = UserPersistence.class)
689            protected UserPersistence userPersistence;
690            @BeanReference(type = UserFinder.class)
691            protected UserFinder userFinder;
692            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
693            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
694    }