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.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.ExportActionableDynamicQuery;
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.lar.ExportImportHelperUtil;
036    import com.liferay.portal.kernel.lar.ManifestSummary;
037    import com.liferay.portal.kernel.lar.PortletDataContext;
038    import com.liferay.portal.kernel.lar.StagedModelDataHandlerUtil;
039    import com.liferay.portal.kernel.lar.StagedModelType;
040    import com.liferay.portal.kernel.search.Indexable;
041    import com.liferay.portal.kernel.search.IndexableType;
042    import com.liferay.portal.kernel.util.OrderByComparator;
043    import com.liferay.portal.model.PersistedModel;
044    import com.liferay.portal.model.Phone;
045    import com.liferay.portal.service.BaseLocalServiceImpl;
046    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
047    import com.liferay.portal.service.PhoneLocalService;
048    import com.liferay.portal.service.persistence.ClassNamePersistence;
049    import com.liferay.portal.service.persistence.ListTypePersistence;
050    import com.liferay.portal.service.persistence.PhonePersistence;
051    import com.liferay.portal.service.persistence.UserFinder;
052    import com.liferay.portal.service.persistence.UserPersistence;
053    import com.liferay.portal.util.PortalUtil;
054    
055    import java.io.Serializable;
056    
057    import java.util.List;
058    
059    import javax.sql.DataSource;
060    
061    /**
062     * Provides the base implementation for the phone local service.
063     *
064     * <p>
065     * 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.PhoneLocalServiceImpl}.
066     * </p>
067     *
068     * @author Brian Wing Shun Chan
069     * @see com.liferay.portal.service.impl.PhoneLocalServiceImpl
070     * @see com.liferay.portal.service.PhoneLocalServiceUtil
071     * @generated
072     */
073    @ProviderType
074    public abstract class PhoneLocalServiceBaseImpl extends BaseLocalServiceImpl
075            implements PhoneLocalService, IdentifiableBean {
076            /*
077             * NOTE FOR DEVELOPERS:
078             *
079             * Never modify or reference this class directly. Always use {@link com.liferay.portal.service.PhoneLocalServiceUtil} to access the phone local service.
080             */
081    
082            /**
083             * Adds the phone to the database. Also notifies the appropriate model listeners.
084             *
085             * @param phone the phone
086             * @return the phone that was added
087             */
088            @Indexable(type = IndexableType.REINDEX)
089            @Override
090            public Phone addPhone(Phone phone) {
091                    phone.setNew(true);
092    
093                    return phonePersistence.update(phone);
094            }
095    
096            /**
097             * Creates a new phone with the primary key. Does not add the phone to the database.
098             *
099             * @param phoneId the primary key for the new phone
100             * @return the new phone
101             */
102            @Override
103            public Phone createPhone(long phoneId) {
104                    return phonePersistence.create(phoneId);
105            }
106    
107            /**
108             * Deletes the phone with the primary key from the database. Also notifies the appropriate model listeners.
109             *
110             * @param phoneId the primary key of the phone
111             * @return the phone that was removed
112             * @throws PortalException if a phone with the primary key could not be found
113             */
114            @Indexable(type = IndexableType.DELETE)
115            @Override
116            public Phone deletePhone(long phoneId) throws PortalException {
117                    return phonePersistence.remove(phoneId);
118            }
119    
120            /**
121             * Deletes the phone from the database. Also notifies the appropriate model listeners.
122             *
123             * @param phone the phone
124             * @return the phone that was removed
125             */
126            @Indexable(type = IndexableType.DELETE)
127            @Override
128            public Phone deletePhone(Phone phone) {
129                    return phonePersistence.remove(phone);
130            }
131    
132            @Override
133            public DynamicQuery dynamicQuery() {
134                    Class<?> clazz = getClass();
135    
136                    return DynamicQueryFactoryUtil.forClass(Phone.class,
137                            clazz.getClassLoader());
138            }
139    
140            /**
141             * Performs a dynamic query on the database and returns the matching rows.
142             *
143             * @param dynamicQuery the dynamic query
144             * @return the matching rows
145             */
146            @Override
147            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
148                    return phonePersistence.findWithDynamicQuery(dynamicQuery);
149            }
150    
151            /**
152             * Performs a dynamic query on the database and returns a range of the matching rows.
153             *
154             * <p>
155             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 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.PhoneModelImpl}. 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.
156             * </p>
157             *
158             * @param dynamicQuery the dynamic query
159             * @param start the lower bound of the range of model instances
160             * @param end the upper bound of the range of model instances (not inclusive)
161             * @return the range of matching rows
162             */
163            @Override
164            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
165                    int end) {
166                    return phonePersistence.findWithDynamicQuery(dynamicQuery, start, end);
167            }
168    
169            /**
170             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
171             *
172             * <p>
173             * 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.PhoneModelImpl}. 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.
174             * </p>
175             *
176             * @param dynamicQuery the dynamic query
177             * @param start the lower bound of the range of model instances
178             * @param end the upper bound of the range of model instances (not inclusive)
179             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
180             * @return the ordered range of matching rows
181             */
182            @Override
183            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
184                    int end, OrderByComparator<T> orderByComparator) {
185                    return phonePersistence.findWithDynamicQuery(dynamicQuery, start, end,
186                            orderByComparator);
187            }
188    
189            /**
190             * Returns the number of rows matching the dynamic query.
191             *
192             * @param dynamicQuery the dynamic query
193             * @return the number of rows matching the dynamic query
194             */
195            @Override
196            public long dynamicQueryCount(DynamicQuery dynamicQuery) {
197                    return phonePersistence.countWithDynamicQuery(dynamicQuery);
198            }
199    
200            /**
201             * Returns the number of rows matching the dynamic query.
202             *
203             * @param dynamicQuery the dynamic query
204             * @param projection the projection to apply to the query
205             * @return the number of rows matching the dynamic query
206             */
207            @Override
208            public long dynamicQueryCount(DynamicQuery dynamicQuery,
209                    Projection projection) {
210                    return phonePersistence.countWithDynamicQuery(dynamicQuery, projection);
211            }
212    
213            @Override
214            public Phone fetchPhone(long phoneId) {
215                    return phonePersistence.fetchByPrimaryKey(phoneId);
216            }
217    
218            /**
219             * Returns the phone with the matching UUID and company.
220             *
221             * @param uuid the phone's UUID
222             * @param companyId the primary key of the company
223             * @return the matching phone, or <code>null</code> if a matching phone could not be found
224             */
225            @Override
226            public Phone fetchPhoneByUuidAndCompanyId(String uuid, long companyId) {
227                    return phonePersistence.fetchByUuid_C_First(uuid, companyId, null);
228            }
229    
230            /**
231             * Returns the phone with the primary key.
232             *
233             * @param phoneId the primary key of the phone
234             * @return the phone
235             * @throws PortalException if a phone with the primary key could not be found
236             */
237            @Override
238            public Phone getPhone(long phoneId) throws PortalException {
239                    return phonePersistence.findByPrimaryKey(phoneId);
240            }
241    
242            @Override
243            public ActionableDynamicQuery getActionableDynamicQuery() {
244                    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
245    
246                    actionableDynamicQuery.setBaseLocalService(com.liferay.portal.service.PhoneLocalServiceUtil.getService());
247                    actionableDynamicQuery.setClass(Phone.class);
248                    actionableDynamicQuery.setClassLoader(getClassLoader());
249    
250                    actionableDynamicQuery.setPrimaryKeyPropertyName("phoneId");
251    
252                    return actionableDynamicQuery;
253            }
254    
255            protected void initActionableDynamicQuery(
256                    ActionableDynamicQuery actionableDynamicQuery) {
257                    actionableDynamicQuery.setBaseLocalService(com.liferay.portal.service.PhoneLocalServiceUtil.getService());
258                    actionableDynamicQuery.setClass(Phone.class);
259                    actionableDynamicQuery.setClassLoader(getClassLoader());
260    
261                    actionableDynamicQuery.setPrimaryKeyPropertyName("phoneId");
262            }
263    
264            @Override
265            public ExportActionableDynamicQuery getExportActionableDynamicQuery(
266                    final PortletDataContext portletDataContext) {
267                    final ExportActionableDynamicQuery exportActionableDynamicQuery = new ExportActionableDynamicQuery() {
268                                    @Override
269                                    public long performCount() throws PortalException {
270                                            ManifestSummary manifestSummary = portletDataContext.getManifestSummary();
271    
272                                            StagedModelType stagedModelType = getStagedModelType();
273    
274                                            long modelAdditionCount = super.performCount();
275    
276                                            manifestSummary.addModelAdditionCount(stagedModelType.toString(),
277                                                    modelAdditionCount);
278    
279                                            long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(portletDataContext,
280                                                            stagedModelType);
281    
282                                            manifestSummary.addModelDeletionCount(stagedModelType.toString(),
283                                                    modelDeletionCount);
284    
285                                            return modelAdditionCount;
286                                    }
287                            };
288    
289                    initActionableDynamicQuery(exportActionableDynamicQuery);
290    
291                    exportActionableDynamicQuery.setAddCriteriaMethod(new ActionableDynamicQuery.AddCriteriaMethod() {
292                                    @Override
293                                    public void addCriteria(DynamicQuery dynamicQuery) {
294                                            portletDataContext.addDateRangeCriteria(dynamicQuery,
295                                                    "modifiedDate");
296    
297                                            StagedModelType stagedModelType = exportActionableDynamicQuery.getStagedModelType();
298    
299                                            if (stagedModelType.getReferrerClassNameId() >= 0) {
300                                                    Property classNameIdProperty = PropertyFactoryUtil.forName(
301                                                                    "classNameId");
302    
303                                                    dynamicQuery.add(classNameIdProperty.eq(
304                                                                    stagedModelType.getReferrerClassNameId()));
305                                            }
306                                    }
307                            });
308    
309                    exportActionableDynamicQuery.setCompanyId(portletDataContext.getCompanyId());
310    
311                    exportActionableDynamicQuery.setPerformActionMethod(new ActionableDynamicQuery.PerformActionMethod() {
312                                    @Override
313                                    public void performAction(Object object)
314                                            throws PortalException {
315                                            Phone stagedModel = (Phone)object;
316    
317                                            StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
318                                                    stagedModel);
319                                    }
320                            });
321                    exportActionableDynamicQuery.setStagedModelType(new StagedModelType(
322                                    PortalUtil.getClassNameId(Phone.class.getName())));
323    
324                    return exportActionableDynamicQuery;
325            }
326    
327            /**
328             * @throws PortalException
329             */
330            @Override
331            public PersistedModel deletePersistedModel(PersistedModel persistedModel)
332                    throws PortalException {
333                    return phoneLocalService.deletePhone((Phone)persistedModel);
334            }
335    
336            @Override
337            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
338                    throws PortalException {
339                    return phonePersistence.findByPrimaryKey(primaryKeyObj);
340            }
341    
342            /**
343             * Returns the phone with the matching UUID and company.
344             *
345             * @param uuid the phone's UUID
346             * @param companyId the primary key of the company
347             * @return the matching phone
348             * @throws PortalException if a matching phone could not be found
349             */
350            @Override
351            public Phone getPhoneByUuidAndCompanyId(String uuid, long companyId)
352                    throws PortalException {
353                    return phonePersistence.findByUuid_C_First(uuid, companyId, null);
354            }
355    
356            /**
357             * Returns a range of all the phones.
358             *
359             * <p>
360             * 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.PhoneModelImpl}. 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.
361             * </p>
362             *
363             * @param start the lower bound of the range of phones
364             * @param end the upper bound of the range of phones (not inclusive)
365             * @return the range of phones
366             */
367            @Override
368            public List<Phone> getPhones(int start, int end) {
369                    return phonePersistence.findAll(start, end);
370            }
371    
372            /**
373             * Returns the number of phones.
374             *
375             * @return the number of phones
376             */
377            @Override
378            public int getPhonesCount() {
379                    return phonePersistence.countAll();
380            }
381    
382            /**
383             * Updates the phone in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
384             *
385             * @param phone the phone
386             * @return the phone that was updated
387             */
388            @Indexable(type = IndexableType.REINDEX)
389            @Override
390            public Phone updatePhone(Phone phone) {
391                    return phonePersistence.update(phone);
392            }
393    
394            /**
395             * Returns the phone local service.
396             *
397             * @return the phone local service
398             */
399            public com.liferay.portal.service.PhoneLocalService getPhoneLocalService() {
400                    return phoneLocalService;
401            }
402    
403            /**
404             * Sets the phone local service.
405             *
406             * @param phoneLocalService the phone local service
407             */
408            public void setPhoneLocalService(
409                    com.liferay.portal.service.PhoneLocalService phoneLocalService) {
410                    this.phoneLocalService = phoneLocalService;
411            }
412    
413            /**
414             * Returns the phone remote service.
415             *
416             * @return the phone remote service
417             */
418            public com.liferay.portal.service.PhoneService getPhoneService() {
419                    return phoneService;
420            }
421    
422            /**
423             * Sets the phone remote service.
424             *
425             * @param phoneService the phone remote service
426             */
427            public void setPhoneService(
428                    com.liferay.portal.service.PhoneService phoneService) {
429                    this.phoneService = phoneService;
430            }
431    
432            /**
433             * Returns the phone persistence.
434             *
435             * @return the phone persistence
436             */
437            public PhonePersistence getPhonePersistence() {
438                    return phonePersistence;
439            }
440    
441            /**
442             * Sets the phone persistence.
443             *
444             * @param phonePersistence the phone persistence
445             */
446            public void setPhonePersistence(PhonePersistence phonePersistence) {
447                    this.phonePersistence = phonePersistence;
448            }
449    
450            /**
451             * Returns the counter local service.
452             *
453             * @return the counter local service
454             */
455            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
456                    return counterLocalService;
457            }
458    
459            /**
460             * Sets the counter local service.
461             *
462             * @param counterLocalService the counter local service
463             */
464            public void setCounterLocalService(
465                    com.liferay.counter.service.CounterLocalService counterLocalService) {
466                    this.counterLocalService = counterLocalService;
467            }
468    
469            /**
470             * Returns the class name local service.
471             *
472             * @return the class name local service
473             */
474            public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
475                    return classNameLocalService;
476            }
477    
478            /**
479             * Sets the class name local service.
480             *
481             * @param classNameLocalService the class name local service
482             */
483            public void setClassNameLocalService(
484                    com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
485                    this.classNameLocalService = classNameLocalService;
486            }
487    
488            /**
489             * Returns the class name remote service.
490             *
491             * @return the class name remote service
492             */
493            public com.liferay.portal.service.ClassNameService getClassNameService() {
494                    return classNameService;
495            }
496    
497            /**
498             * Sets the class name remote service.
499             *
500             * @param classNameService the class name remote service
501             */
502            public void setClassNameService(
503                    com.liferay.portal.service.ClassNameService classNameService) {
504                    this.classNameService = classNameService;
505            }
506    
507            /**
508             * Returns the class name persistence.
509             *
510             * @return the class name persistence
511             */
512            public ClassNamePersistence getClassNamePersistence() {
513                    return classNamePersistence;
514            }
515    
516            /**
517             * Sets the class name persistence.
518             *
519             * @param classNamePersistence the class name persistence
520             */
521            public void setClassNamePersistence(
522                    ClassNamePersistence classNamePersistence) {
523                    this.classNamePersistence = classNamePersistence;
524            }
525    
526            /**
527             * Returns the list type remote service.
528             *
529             * @return the list type remote service
530             */
531            public com.liferay.portal.service.ListTypeService getListTypeService() {
532                    return listTypeService;
533            }
534    
535            /**
536             * Sets the list type remote service.
537             *
538             * @param listTypeService the list type remote service
539             */
540            public void setListTypeService(
541                    com.liferay.portal.service.ListTypeService listTypeService) {
542                    this.listTypeService = listTypeService;
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 remote service.
584             *
585             * @return the user remote service
586             */
587            public com.liferay.portal.service.UserService getUserService() {
588                    return userService;
589            }
590    
591            /**
592             * Sets the user remote service.
593             *
594             * @param userService the user remote service
595             */
596            public void setUserService(
597                    com.liferay.portal.service.UserService userService) {
598                    this.userService = userService;
599            }
600    
601            /**
602             * Returns the user persistence.
603             *
604             * @return the user persistence
605             */
606            public UserPersistence getUserPersistence() {
607                    return userPersistence;
608            }
609    
610            /**
611             * Sets the user persistence.
612             *
613             * @param userPersistence the user persistence
614             */
615            public void setUserPersistence(UserPersistence userPersistence) {
616                    this.userPersistence = userPersistence;
617            }
618    
619            /**
620             * Returns the user finder.
621             *
622             * @return the user finder
623             */
624            public UserFinder getUserFinder() {
625                    return userFinder;
626            }
627    
628            /**
629             * Sets the user finder.
630             *
631             * @param userFinder the user finder
632             */
633            public void setUserFinder(UserFinder userFinder) {
634                    this.userFinder = userFinder;
635            }
636    
637            public void afterPropertiesSet() {
638                    persistedModelLocalServiceRegistry.register("com.liferay.portal.model.Phone",
639                            phoneLocalService);
640            }
641    
642            public void destroy() {
643                    persistedModelLocalServiceRegistry.unregister(
644                            "com.liferay.portal.model.Phone");
645            }
646    
647            /**
648             * Returns the Spring bean ID for this bean.
649             *
650             * @return the Spring bean ID for this bean
651             */
652            @Override
653            public String getBeanIdentifier() {
654                    return _beanIdentifier;
655            }
656    
657            /**
658             * Sets the Spring bean ID for this bean.
659             *
660             * @param beanIdentifier the Spring bean ID for this bean
661             */
662            @Override
663            public void setBeanIdentifier(String beanIdentifier) {
664                    _beanIdentifier = beanIdentifier;
665            }
666    
667            protected Class<?> getModelClass() {
668                    return Phone.class;
669            }
670    
671            protected String getModelClassName() {
672                    return Phone.class.getName();
673            }
674    
675            /**
676             * Performs a SQL query.
677             *
678             * @param sql the sql query
679             */
680            protected void runSQL(String sql) {
681                    try {
682                            DataSource dataSource = phonePersistence.getDataSource();
683    
684                            DB db = DBFactoryUtil.getDB();
685    
686                            sql = db.buildSQL(sql);
687                            sql = PortalUtil.transformSQL(sql);
688    
689                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
690                                            sql, new int[0]);
691    
692                            sqlUpdate.update();
693                    }
694                    catch (Exception e) {
695                            throw new SystemException(e);
696                    }
697            }
698    
699            @BeanReference(type = com.liferay.portal.service.PhoneLocalService.class)
700            protected com.liferay.portal.service.PhoneLocalService phoneLocalService;
701            @BeanReference(type = com.liferay.portal.service.PhoneService.class)
702            protected com.liferay.portal.service.PhoneService phoneService;
703            @BeanReference(type = PhonePersistence.class)
704            protected PhonePersistence phonePersistence;
705            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
706            protected com.liferay.counter.service.CounterLocalService counterLocalService;
707            @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
708            protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
709            @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
710            protected com.liferay.portal.service.ClassNameService classNameService;
711            @BeanReference(type = ClassNamePersistence.class)
712            protected ClassNamePersistence classNamePersistence;
713            @BeanReference(type = com.liferay.portal.service.ListTypeService.class)
714            protected com.liferay.portal.service.ListTypeService listTypeService;
715            @BeanReference(type = ListTypePersistence.class)
716            protected ListTypePersistence listTypePersistence;
717            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
718            protected com.liferay.portal.service.UserLocalService userLocalService;
719            @BeanReference(type = com.liferay.portal.service.UserService.class)
720            protected com.liferay.portal.service.UserService userService;
721            @BeanReference(type = UserPersistence.class)
722            protected UserPersistence userPersistence;
723            @BeanReference(type = UserFinder.class)
724            protected UserFinder userFinder;
725            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
726            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
727            private String _beanIdentifier;
728    }