test_class.file: shardingsphere-scaling/shardingsphere-scaling-core/src/test/java/org/apache/shardingsphere/scaling/core/config/ShardingSphereJDBCScalingDataSourceConfigurationTest.java
test_class.identifier: ShardingSphereJDBCScalingDataSourceConfigurationTest
test_case.body: @Test
      public void assertShardingSphereJDBCDataSourceConfigurationDatabaseType() {
          ShardingSphereJDBCScalingDataSourceConfiguration config = new ShardingSphereJDBCScalingDataSourceConfiguration(
                  FixtureShardingSphereJDBCConfiguration.DATA_SOURCE, FixtureShardingSphereJDBCConfiguration.RULE);
          assertThat(config.getDatabaseType(), instanceOf(H2DatabaseType.class));
      }
test_case.class_method_signature: ShardingSphereJDBCScalingDataSourceConfigurationTest.assertShardingSphereJDBCDataSourceConfigurationDatabaseType()
test_case.full_signature: @Test public void assertShardingSphereJDBCDataSourceConfigurationDatabaseType()
test_case.identifier: assertShardingSphereJDBCDataSourceConfigurationDatabaseType
test_case.invocations: assertThat getDatabaseType instanceOf
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertShardingSphereJDBCDataSourceConfigurationDatabaseType()
focal_class.declarator: dataSource
focal_class.modifier: private
focal_class.original_string: private String dataSource;
focal_class.type: String
focal_class.var_name: dataSource
focal_class.declarator: rule
focal_class.modifier: private
focal_class.original_string: private String rule;
focal_class.type: String
focal_class.var_name: rule
focal_class.declarator: databaseType
focal_class.modifier: private
focal_class.original_string: private DatabaseType databaseType;
focal_class.type: DatabaseType
focal_class.var_name: databaseType
focal_class.file: shardingsphere-scaling/shardingsphere-scaling-core/src/main/java/org/apache/shardingsphere/scaling/core/config/ShardingSphereJDBCScalingDataSourceConfiguration.java
focal_class.identifier: ShardingSphereJDBCScalingDataSourceConfiguration
focal_class.interfaces: implements ScalingDataSourceConfiguration
focal_class.class_method_signature: ShardingSphereJDBCScalingDataSourceConfiguration.ShardingSphereJDBCScalingDataSourceConfiguration(final String dataSource, final String rule)
focal_class.full_signature: public  ShardingSphereJDBCScalingDataSourceConfiguration(final String dataSource, final String rule)
focal_class.identifier: ShardingSphereJDBCScalingDataSourceConfiguration
focal_class.modifiers: public
focal_class.parameters: (final String dataSource, final String rule)
focal_class.signature:  ShardingSphereJDBCScalingDataSourceConfiguration(final String dataSource, final String rule)
focal_class.class_method_signature: ShardingSphereJDBCScalingDataSourceConfiguration.getDatabaseType()
focal_class.full_signature: @Override public DatabaseType getDatabaseType()
focal_class.identifier: getDatabaseType
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: DatabaseType
focal_class.signature: DatabaseType getDatabaseType()
focal_method.body: @Override
      public DatabaseType getDatabaseType() {
          if (null == databaseType) {
              databaseType = DatabaseTypes.getDatabaseTypeByURL(ConfigurationYamlConverter.loadDataSourceConfigurations(dataSource).values().iterator().next().getProps().get("jdbcUrl").toString());
          }
          return databaseType;
      }
focal_method.class_method_signature: ShardingSphereJDBCScalingDataSourceConfiguration.getDatabaseType()
focal_method.full_signature: @Override public DatabaseType getDatabaseType()
focal_method.identifier: getDatabaseType
focal_method.invocations: getDatabaseTypeByURL toString get getProps next iterator values loadDataSourceConfigurations
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: DatabaseType
focal_method.signature: DatabaseType getDatabaseType()