test_class.declarator: DATA_SOURCE_PATTERN = "ds_%s"
test_class.modifier: private static final
test_class.original_string: private static final String DATA_SOURCE_PATTERN = "ds_%s";
test_class.type: String
test_class.var_name: DATA_SOURCE_PATTERN
test_class.file: shardingsphere-proxy/shardingsphere-proxy-backend/src/test/java/org/apache/shardingsphere/proxy/backend/communication/jdbc/datasource/JDBCBackendDataSourceTest.java
test_class.identifier: JDBCBackendDataSourceTest
test_case.body: @Test
      public void assertGetConnectionFixedOne() throws SQLException {
          Connection actual = ProxyContext.getInstance().getBackendDataSource().getConnection("schema", String.format(DATA_SOURCE_PATTERN, 1));
          assertThat(actual, instanceOf(Connection.class));
      }
test_case.class_method_signature: JDBCBackendDataSourceTest.assertGetConnectionFixedOne()
test_case.full_signature: @Test public void assertGetConnectionFixedOne()
test_case.identifier: assertGetConnectionFixedOne
test_case.invocations: getConnection getBackendDataSource getInstance format assertThat instanceOf
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertGetConnectionFixedOne()
focal_class.file: shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/communication/jdbc/datasource/JDBCBackendDataSource.java
focal_class.identifier: JDBCBackendDataSource
focal_class.interfaces: implements BackendDataSource
focal_class.class_method_signature: JDBCBackendDataSource.getConnection(final String schemaName, final String dataSourceName)
focal_class.full_signature: public Connection getConnection(final String schemaName, final String dataSourceName)
focal_class.identifier: getConnection
focal_class.modifiers: public
focal_class.parameters: (final String schemaName, final String dataSourceName)
focal_class.return: Connection
focal_class.signature: Connection getConnection(final String schemaName, final String dataSourceName)
focal_class.class_method_signature: JDBCBackendDataSource.getConnections(final String schemaName, final String dataSourceName, final int connectionSize, final ConnectionMode connectionMode)
focal_class.full_signature: public List<Connection> getConnections(final String schemaName, final String dataSourceName, final int connectionSize, final ConnectionMode connectionMode)
focal_class.identifier: getConnections
focal_class.modifiers: public
focal_class.parameters: (final String schemaName, final String dataSourceName, final int connectionSize, final ConnectionMode connectionMode)
focal_class.return: List<Connection>
focal_class.signature: List<Connection> getConnections(final String schemaName, final String dataSourceName, final int connectionSize, final ConnectionMode connectionMode)
focal_class.class_method_signature: JDBCBackendDataSource.getConnections(final String schemaName, final String dataSourceName,
                                             final int connectionSize, final ConnectionMode connectionMode, final TransactionType transactionType)
focal_class.full_signature: @SuppressWarnings("SynchronizationOnLocalVariableOrMethodParameter") public List<Connection> getConnections(final String schemaName, final String dataSourceName,
                                             final int connectionSize, final ConnectionMode connectionMode, final TransactionType transactionType)
focal_class.identifier: getConnections
focal_class.modifiers: @SuppressWarnings("SynchronizationOnLocalVariableOrMethodParameter") public
focal_class.parameters: (final String schemaName, final String dataSourceName,
                                             final int connectionSize, final ConnectionMode connectionMode, final TransactionType transactionType)
focal_class.return: List<Connection>
focal_class.signature: List<Connection> getConnections(final String schemaName, final String dataSourceName,
                                             final int connectionSize, final ConnectionMode connectionMode, final TransactionType transactionType)
focal_class.class_method_signature: JDBCBackendDataSource.createConnections(final String schemaName, final String dataSourceName,
                                                 final DataSource dataSource, final int connectionSize, final TransactionType transactionType)
focal_class.full_signature: private List<Connection> createConnections(final String schemaName, final String dataSourceName,
                                                 final DataSource dataSource, final int connectionSize, final TransactionType transactionType)
focal_class.identifier: createConnections
focal_class.modifiers: private
focal_class.parameters: (final String schemaName, final String dataSourceName,
                                                 final DataSource dataSource, final int connectionSize, final TransactionType transactionType)
focal_class.return: List<Connection>
focal_class.signature: List<Connection> createConnections(final String schemaName, final String dataSourceName,
                                                 final DataSource dataSource, final int connectionSize, final TransactionType transactionType)
focal_class.class_method_signature: JDBCBackendDataSource.createConnection(final String schemaName, final String dataSourceName, final DataSource dataSource, final TransactionType transactionType)
focal_class.full_signature: private Connection createConnection(final String schemaName, final String dataSourceName, final DataSource dataSource, final TransactionType transactionType)
focal_class.identifier: createConnection
focal_class.modifiers: private
focal_class.parameters: (final String schemaName, final String dataSourceName, final DataSource dataSource, final TransactionType transactionType)
focal_class.return: Connection
focal_class.signature: Connection createConnection(final String schemaName, final String dataSourceName, final DataSource dataSource, final TransactionType transactionType)
focal_class.class_method_signature: JDBCBackendDataSource.isInShardingTransaction(final ShardingTransactionManager shardingTransactionManager)
focal_class.full_signature: private boolean isInShardingTransaction(final ShardingTransactionManager shardingTransactionManager)
focal_class.identifier: isInShardingTransaction
focal_class.modifiers: private
focal_class.parameters: (final ShardingTransactionManager shardingTransactionManager)
focal_class.return: boolean
focal_class.signature: boolean isInShardingTransaction(final ShardingTransactionManager shardingTransactionManager)
focal_method.body: public Connection getConnection(final String schemaName, final String dataSourceName) throws SQLException {
          return getConnections(schemaName, dataSourceName, 1, ConnectionMode.MEMORY_STRICTLY).get(0);
      }
focal_method.class_method_signature: JDBCBackendDataSource.getConnection(final String schemaName, final String dataSourceName)
focal_method.full_signature: public Connection getConnection(final String schemaName, final String dataSourceName)
focal_method.identifier: getConnection
focal_method.invocations: get getConnections
focal_method.modifiers: public
focal_method.parameters: (final String schemaName, final String dataSourceName)
focal_method.return: Connection
focal_method.signature: Connection getConnection(final String schemaName, final String dataSourceName)