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