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