test_class.file: shardingsphere-jdbc/shardingsphere-jdbc-core/src/test/java/org/apache/shardingsphere/driver/jdbc/core/datasource/ShardingSphereDataSourceTest.java
test_class.identifier: ShardingSphereDataSourceTest
test_case.body: @Test(expected = IllegalStateException.class)
      public void assertGetDatabaseProductNameWhenDataBaseProductNameDifferent() throws SQLException {
          DataSource dataSource1 = mockDataSource(DatabaseTypes.getActualDatabaseType("MySQL"));
          DataSource dataSource2 = mockDataSource(DatabaseTypes.getActualDatabaseType("H2"));
          Map<String, DataSource> dataSourceMap = new HashMap<>(2, 1);
          dataSourceMap.put("ds1", dataSource1);
          dataSourceMap.put("ds2", dataSource2);
          assertDatabaseProductName(dataSourceMap, dataSource1.getConnection(), dataSource2.getConnection());
      }
test_case.class_method_signature: ShardingSphereDataSourceTest.assertGetDatabaseProductNameWhenDataBaseProductNameDifferent()
test_case.full_signature: @Test(expected = IllegalStateException.class) public void assertGetDatabaseProductNameWhenDataBaseProductNameDifferent()
test_case.identifier: assertGetDatabaseProductNameWhenDataBaseProductNameDifferent
test_case.invocations: mockDataSource getActualDatabaseType mockDataSource getActualDatabaseType put put assertDatabaseProductName getConnection getConnection
test_case.modifiers: @Test(expected = IllegalStateException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertGetDatabaseProductNameWhenDataBaseProductNameDifferent()
focal_class.declarator: schemaContexts
focal_class.modifier: private final
focal_class.original_string: private final SchemaContexts schemaContexts;
focal_class.type: SchemaContexts
focal_class.var_name: schemaContexts
focal_class.declarator: transactionContexts
focal_class.modifier: private final
focal_class.original_string: private final TransactionContexts transactionContexts;
focal_class.type: TransactionContexts
focal_class.var_name: transactionContexts
focal_class.file: shardingsphere-jdbc/shardingsphere-jdbc-core/src/main/java/org/apache/shardingsphere/driver/jdbc/core/datasource/ShardingSphereDataSource.java
focal_class.identifier: ShardingSphereDataSource
focal_class.interfaces: implements AutoCloseable
focal_class.class_method_signature: ShardingSphereDataSource.ShardingSphereDataSource(final Map<String, DataSource> dataSourceMap, final Collection<RuleConfiguration> configurations, final Properties props)
focal_class.full_signature: public  ShardingSphereDataSource(final Map<String, DataSource> dataSourceMap, final Collection<RuleConfiguration> configurations, final Properties props)
focal_class.identifier: ShardingSphereDataSource
focal_class.modifiers: public
focal_class.parameters: (final Map<String, DataSource> dataSourceMap, final Collection<RuleConfiguration> configurations, final Properties props)
focal_class.signature:  ShardingSphereDataSource(final Map<String, DataSource> dataSourceMap, final Collection<RuleConfiguration> configurations, final Properties props)
focal_class.class_method_signature: ShardingSphereDataSource.createDatabaseType(final Map<String, DataSource> dataSourceMap)
focal_class.full_signature: private DatabaseType createDatabaseType(final Map<String, DataSource> dataSourceMap)
focal_class.identifier: createDatabaseType
focal_class.modifiers: private
focal_class.parameters: (final Map<String, DataSource> dataSourceMap)
focal_class.return: DatabaseType
focal_class.signature: DatabaseType createDatabaseType(final Map<String, DataSource> dataSourceMap)
focal_class.class_method_signature: ShardingSphereDataSource.createDatabaseType(final DataSource dataSource)
focal_class.full_signature: private DatabaseType createDatabaseType(final DataSource dataSource)
focal_class.identifier: createDatabaseType
focal_class.modifiers: private
focal_class.parameters: (final DataSource dataSource)
focal_class.return: DatabaseType
focal_class.signature: DatabaseType createDatabaseType(final DataSource dataSource)
focal_class.class_method_signature: ShardingSphereDataSource.createTransactionContexts(final DatabaseType databaseType, final Map<String, DataSource> dataSourceMap)
focal_class.full_signature: private TransactionContexts createTransactionContexts(final DatabaseType databaseType, final Map<String, DataSource> dataSourceMap)
focal_class.identifier: createTransactionContexts
focal_class.modifiers: private
focal_class.parameters: (final DatabaseType databaseType, final Map<String, DataSource> dataSourceMap)
focal_class.return: TransactionContexts
focal_class.signature: TransactionContexts createTransactionContexts(final DatabaseType databaseType, final Map<String, DataSource> dataSourceMap)
focal_class.class_method_signature: ShardingSphereDataSource.getConnection()
focal_class.full_signature: @Override public ShardingSphereConnection getConnection()
focal_class.identifier: getConnection
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: ShardingSphereConnection
focal_class.signature: ShardingSphereConnection getConnection()
focal_class.class_method_signature: ShardingSphereDataSource.getConnection(final String username, final String password)
focal_class.full_signature: @Override public ShardingSphereConnection getConnection(final String username, final String password)
focal_class.identifier: getConnection
focal_class.modifiers: @Override public
focal_class.parameters: (final String username, final String password)
focal_class.return: ShardingSphereConnection
focal_class.signature: ShardingSphereConnection getConnection(final String username, final String password)
focal_class.class_method_signature: ShardingSphereDataSource.getDataSourceMap()
focal_class.full_signature: public Map<String, DataSource> getDataSourceMap()
focal_class.identifier: getDataSourceMap
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Map<String, DataSource>
focal_class.signature: Map<String, DataSource> getDataSourceMap()
focal_class.class_method_signature: ShardingSphereDataSource.close()
focal_class.full_signature: @Override public void close()
focal_class.identifier: close
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: ShardingSphereDataSource.close(final Collection<String> dataSourceNames)
focal_class.full_signature: public void close(final Collection<String> dataSourceNames)
focal_class.identifier: close
focal_class.modifiers: public
focal_class.parameters: (final Collection<String> dataSourceNames)
focal_class.return: void
focal_class.signature: void close(final Collection<String> dataSourceNames)
focal_class.class_method_signature: ShardingSphereDataSource.close(final DataSource dataSource)
focal_class.full_signature: private void close(final DataSource dataSource)
focal_class.identifier: close
focal_class.modifiers: private
focal_class.parameters: (final DataSource dataSource)
focal_class.return: void
focal_class.signature: void close(final DataSource dataSource)
focal_class.superclass: extends AbstractUnsupportedOperationDataSource
focal_method.body: @Override
      public ShardingSphereConnection getConnection() {
          return new ShardingSphereConnection(getDataSourceMap(), schemaContexts, transactionContexts, TransactionTypeHolder.get());
      }
focal_method.class_method_signature: ShardingSphereDataSource.getConnection()
focal_method.full_signature: @Override public ShardingSphereConnection getConnection()
focal_method.identifier: getConnection
focal_method.invocations: getDataSourceMap get
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: ShardingSphereConnection
focal_method.signature: ShardingSphereConnection getConnection()