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