/*
 * Copyright 2016-2018 shardingsphere.io.
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * </p>
 */

package io.shardingsphere.shardingproxy.uilt;

import lombok.AccessLevel;
import lombok.NoArgsConstructor;

/**
 * Data source parameter converter.
 *
 * @author panjuan
 */
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class DataSourceParameterConverter {
}

@@ -671,219 +671,1456 @@
 ort 
-lombok.AccessLevel;%0Aimport lombok.NoArgsConstructor;%0A%0A/**%0A * Data source parameter converter.%0A *%0A * @author panjuan%0A */%0A@NoArgsConstructor(access = AccessLevel.PRIVATE)%0Apublic class DataSourceParameterConverter %7B
+io.shardingsphere.core.config.DataSourceConfiguration;%0Aimport io.shardingsphere.core.rule.DataSourceParameter;%0Aimport lombok.AccessLevel;%0Aimport lombok.NoArgsConstructor;%0A%0Aimport java.lang.reflect.Field;%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0Aimport java.util.Map.Entry;%0A%0A/**%0A * Data source parameter converter.%0A *%0A * @author panjuan%0A */%0A@NoArgsConstructor(access = AccessLevel.PRIVATE)%0Apublic class DataSourceParameterConverter %7B%0A    %0A    public static Map%3CString, DataSourceParameter%3E getDataSourceParameterMap(final Map%3CString, DataSourceConfiguration%3E dataSourceConfigurationMap) %7B%0A        Map%3CString, DataSourceParameter%3E result = new HashMap%3C%3E(dataSourceConfigurationMap.size(), 1);%0A        for (Entry%3CString, DataSourceConfiguration%3E entry : dataSourceConfigurationMap.entrySet()) %7B%0A            result.put(entry.getKey(), getDataSourceParameter(entry.getValue()));%0A        %7D%0A        return result;%0A    %7D%0A    %0A    private static DataSourceParameter getDataSourceParameter(final DataSourceConfiguration dataSourceConfiguration) %7B%0A        DataSourceParameter result = new DataSourceParameter();%0A        for (Field each : result.getClass().getDeclaredFields()) %7B%0A            try %7B%0A                each.setAccessible(true);%0A                each.set(result, dataSourceConfiguration.getProperties().get(each.getName()));%0A            %7D catch (final ReflectiveOperationException ignored) %7B%0A            %7D%0A        %7D%0A        return result;%0A    %7D
 %0A%7D%0A

add getDataSourceParameterMap()