test_class.declarator: TEST_CATALOG = "catalog"
test_class.modifier: private static final
test_class.original_string: private static final String TEST_CATALOG = "catalog";
test_class.type: String
test_class.var_name: TEST_CATALOG
test_class.declarator: TEST_SCHEMA = "schema"
test_class.modifier: private static final
test_class.original_string: private static final String TEST_SCHEMA = "schema";
test_class.type: String
test_class.var_name: TEST_SCHEMA
test_class.declarator: connection
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Connection connection;
test_class.type: Connection
test_class.var_name: connection
test_class.file: shardingsphere-sql-parser/shardingsphere-sql-parser-binder/src/test/java/org/apache/shardingsphere/sql/parser/binder/metadata/MetaDataConnectionTest.java
test_class.identifier: MetaDataConnectionTest
test_case.body: @Test
      public void assertGetSchema() throws SQLException {
          when(connection.getSchema()).thenReturn(TEST_SCHEMA);
          MetaDataConnection metaDataConnection = new MetaDataConnection(connection);
          assertThat(metaDataConnection.getSchema(), is(TEST_SCHEMA));
      }
test_case.class_method_signature: MetaDataConnectionTest.assertGetSchema()
test_case.full_signature: @Test public void assertGetSchema()
test_case.identifier: assertGetSchema
test_case.invocations: thenReturn when getSchema assertThat getSchema is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertGetSchema()
focal_class.declarator: connection
focal_class.modifier: private final
focal_class.original_string: private final Connection connection;
focal_class.type: Connection
focal_class.var_name: connection
focal_class.file: shardingsphere-sql-parser/shardingsphere-sql-parser-binder/src/main/java/org/apache/shardingsphere/sql/parser/binder/metadata/MetaDataConnection.java
focal_class.identifier: MetaDataConnection
focal_class.interfaces: implements Connection
focal_class.class_method_signature: MetaDataConnection.getCatalog()
focal_class.full_signature: @Override public String getCatalog()
focal_class.identifier: getCatalog
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getCatalog()
focal_class.class_method_signature: MetaDataConnection.setCatalog(final String catalog)
focal_class.full_signature: @Override public void setCatalog(final String catalog)
focal_class.identifier: setCatalog
focal_class.modifiers: @Override public
focal_class.parameters: (final String catalog)
focal_class.return: void
focal_class.signature: void setCatalog(final String catalog)
focal_class.class_method_signature: MetaDataConnection.getSchema()
focal_class.full_signature: @Override public String getSchema()
focal_class.identifier: getSchema
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getSchema()
focal_class.class_method_signature: MetaDataConnection.setSchema(final String schema)
focal_class.full_signature: @Override public void setSchema(final String schema)
focal_class.identifier: setSchema
focal_class.modifiers: @Override public
focal_class.parameters: (final String schema)
focal_class.return: void
focal_class.signature: void setSchema(final String schema)
focal_class.class_method_signature: MetaDataConnection.createStatement()
focal_class.full_signature: @Override public Statement createStatement()
focal_class.identifier: createStatement
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Statement
focal_class.signature: Statement createStatement()
focal_class.class_method_signature: MetaDataConnection.createStatement(final int resultSetType, final int resultSetConcurrency)
focal_class.full_signature: @Override public Statement createStatement(final int resultSetType, final int resultSetConcurrency)
focal_class.identifier: createStatement
focal_class.modifiers: @Override public
focal_class.parameters: (final int resultSetType, final int resultSetConcurrency)
focal_class.return: Statement
focal_class.signature: Statement createStatement(final int resultSetType, final int resultSetConcurrency)
focal_class.class_method_signature: MetaDataConnection.createStatement(final int resultSetType, final int resultSetConcurrency, final int resultSetHoldability)
focal_class.full_signature: @Override public Statement createStatement(final int resultSetType, final int resultSetConcurrency, final int resultSetHoldability)
focal_class.identifier: createStatement
focal_class.modifiers: @Override public
focal_class.parameters: (final int resultSetType, final int resultSetConcurrency, final int resultSetHoldability)
focal_class.return: Statement
focal_class.signature: Statement createStatement(final int resultSetType, final int resultSetConcurrency, final int resultSetHoldability)
focal_class.class_method_signature: MetaDataConnection.prepareStatement(final String sql)
focal_class.full_signature: @Override public PreparedStatement prepareStatement(final String sql)
focal_class.identifier: prepareStatement
focal_class.modifiers: @Override public
focal_class.parameters: (final String sql)
focal_class.return: PreparedStatement
focal_class.signature: PreparedStatement prepareStatement(final String sql)
focal_class.class_method_signature: MetaDataConnection.prepareStatement(final String sql, final int resultSetType, final int resultSetConcurrency)
focal_class.full_signature: @Override public PreparedStatement prepareStatement(final String sql, final int resultSetType, final int resultSetConcurrency)
focal_class.identifier: prepareStatement
focal_class.modifiers: @Override public
focal_class.parameters: (final String sql, final int resultSetType, final int resultSetConcurrency)
focal_class.return: PreparedStatement
focal_class.signature: PreparedStatement prepareStatement(final String sql, final int resultSetType, final int resultSetConcurrency)
focal_class.class_method_signature: MetaDataConnection.prepareStatement(final String sql, final int resultSetType, final int resultSetConcurrency, final int resultSetHoldability)
focal_class.full_signature: @Override public PreparedStatement prepareStatement(final String sql, final int resultSetType, final int resultSetConcurrency, final int resultSetHoldability)
focal_class.identifier: prepareStatement
focal_class.modifiers: @Override public
focal_class.parameters: (final String sql, final int resultSetType, final int resultSetConcurrency, final int resultSetHoldability)
focal_class.return: PreparedStatement
focal_class.signature: PreparedStatement prepareStatement(final String sql, final int resultSetType, final int resultSetConcurrency, final int resultSetHoldability)
focal_class.class_method_signature: MetaDataConnection.prepareStatement(final String sql, final int autoGeneratedKeys)
focal_class.full_signature: @Override public PreparedStatement prepareStatement(final String sql, final int autoGeneratedKeys)
focal_class.identifier: prepareStatement
focal_class.modifiers: @Override public
focal_class.parameters: (final String sql, final int autoGeneratedKeys)
focal_class.return: PreparedStatement
focal_class.signature: PreparedStatement prepareStatement(final String sql, final int autoGeneratedKeys)
focal_class.class_method_signature: MetaDataConnection.prepareStatement(final String sql, final int[] columnIndexes)
focal_class.full_signature: @Override public PreparedStatement prepareStatement(final String sql, final int[] columnIndexes)
focal_class.identifier: prepareStatement
focal_class.modifiers: @Override public
focal_class.parameters: (final String sql, final int[] columnIndexes)
focal_class.return: PreparedStatement
focal_class.signature: PreparedStatement prepareStatement(final String sql, final int[] columnIndexes)
focal_class.class_method_signature: MetaDataConnection.prepareStatement(final String sql, final String[] columnNames)
focal_class.full_signature: @Override public PreparedStatement prepareStatement(final String sql, final String[] columnNames)
focal_class.identifier: prepareStatement
focal_class.modifiers: @Override public
focal_class.parameters: (final String sql, final String[] columnNames)
focal_class.return: PreparedStatement
focal_class.signature: PreparedStatement prepareStatement(final String sql, final String[] columnNames)
focal_class.class_method_signature: MetaDataConnection.prepareCall(final String sql)
focal_class.full_signature: @Override public CallableStatement prepareCall(final String sql)
focal_class.identifier: prepareCall
focal_class.modifiers: @Override public
focal_class.parameters: (final String sql)
focal_class.return: CallableStatement
focal_class.signature: CallableStatement prepareCall(final String sql)
focal_class.class_method_signature: MetaDataConnection.prepareCall(final String sql, final int resultSetType, final int resultSetConcurrency)
focal_class.full_signature: @Override public CallableStatement prepareCall(final String sql, final int resultSetType, final int resultSetConcurrency)
focal_class.identifier: prepareCall
focal_class.modifiers: @Override public
focal_class.parameters: (final String sql, final int resultSetType, final int resultSetConcurrency)
focal_class.return: CallableStatement
focal_class.signature: CallableStatement prepareCall(final String sql, final int resultSetType, final int resultSetConcurrency)
focal_class.class_method_signature: MetaDataConnection.prepareCall(final String sql, final int resultSetType, final int resultSetConcurrency, final int resultSetHoldability)
focal_class.full_signature: @Override public CallableStatement prepareCall(final String sql, final int resultSetType, final int resultSetConcurrency, final int resultSetHoldability)
focal_class.identifier: prepareCall
focal_class.modifiers: @Override public
focal_class.parameters: (final String sql, final int resultSetType, final int resultSetConcurrency, final int resultSetHoldability)
focal_class.return: CallableStatement
focal_class.signature: CallableStatement prepareCall(final String sql, final int resultSetType, final int resultSetConcurrency, final int resultSetHoldability)
focal_class.class_method_signature: MetaDataConnection.nativeSQL(final String sql)
focal_class.full_signature: @Override public String nativeSQL(final String sql)
focal_class.identifier: nativeSQL
focal_class.modifiers: @Override public
focal_class.parameters: (final String sql)
focal_class.return: String
focal_class.signature: String nativeSQL(final String sql)
focal_class.class_method_signature: MetaDataConnection.setAutoCommit(final boolean autoCommit)
focal_class.full_signature: @Override public void setAutoCommit(final boolean autoCommit)
focal_class.identifier: setAutoCommit
focal_class.modifiers: @Override public
focal_class.parameters: (final boolean autoCommit)
focal_class.return: void
focal_class.signature: void setAutoCommit(final boolean autoCommit)
focal_class.class_method_signature: MetaDataConnection.getAutoCommit()
focal_class.full_signature: @Override public boolean getAutoCommit()
focal_class.identifier: getAutoCommit
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean getAutoCommit()
focal_class.class_method_signature: MetaDataConnection.commit()
focal_class.full_signature: @Override public void commit()
focal_class.identifier: commit
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void commit()
focal_class.class_method_signature: MetaDataConnection.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: MetaDataConnection.isClosed()
focal_class.full_signature: @Override public boolean isClosed()
focal_class.identifier: isClosed
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isClosed()
focal_class.class_method_signature: MetaDataConnection.getMetaData()
focal_class.full_signature: @Override public DatabaseMetaData getMetaData()
focal_class.identifier: getMetaData
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: DatabaseMetaData
focal_class.signature: DatabaseMetaData getMetaData()
focal_class.class_method_signature: MetaDataConnection.setReadOnly(final boolean readOnly)
focal_class.full_signature: @Override public void setReadOnly(final boolean readOnly)
focal_class.identifier: setReadOnly
focal_class.modifiers: @Override public
focal_class.parameters: (final boolean readOnly)
focal_class.return: void
focal_class.signature: void setReadOnly(final boolean readOnly)
focal_class.class_method_signature: MetaDataConnection.isReadOnly()
focal_class.full_signature: @Override public boolean isReadOnly()
focal_class.identifier: isReadOnly
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isReadOnly()
focal_class.class_method_signature: MetaDataConnection.setTransactionIsolation(final int level)
focal_class.full_signature: @Override public void setTransactionIsolation(final int level)
focal_class.identifier: setTransactionIsolation
focal_class.modifiers: @Override public
focal_class.parameters: (final int level)
focal_class.return: void
focal_class.signature: void setTransactionIsolation(final int level)
focal_class.class_method_signature: MetaDataConnection.getTransactionIsolation()
focal_class.full_signature: @Override public int getTransactionIsolation()
focal_class.identifier: getTransactionIsolation
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getTransactionIsolation()
focal_class.class_method_signature: MetaDataConnection.getWarnings()
focal_class.full_signature: @Override public SQLWarning getWarnings()
focal_class.identifier: getWarnings
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: SQLWarning
focal_class.signature: SQLWarning getWarnings()
focal_class.class_method_signature: MetaDataConnection.clearWarnings()
focal_class.full_signature: @Override public void clearWarnings()
focal_class.identifier: clearWarnings
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clearWarnings()
focal_class.class_method_signature: MetaDataConnection.getTypeMap()
focal_class.full_signature: @Override public Map<String, Class<?>> getTypeMap()
focal_class.identifier: getTypeMap
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Map<String, Class<?>>
focal_class.signature: Map<String, Class<?>> getTypeMap()
focal_class.class_method_signature: MetaDataConnection.setTypeMap(final Map<String, Class<?>> map)
focal_class.full_signature: @Override public void setTypeMap(final Map<String, Class<?>> map)
focal_class.identifier: setTypeMap
focal_class.modifiers: @Override public
focal_class.parameters: (final Map<String, Class<?>> map)
focal_class.return: void
focal_class.signature: void setTypeMap(final Map<String, Class<?>> map)
focal_class.class_method_signature: MetaDataConnection.setHoldability(final int holdability)
focal_class.full_signature: @Override public void setHoldability(final int holdability)
focal_class.identifier: setHoldability
focal_class.modifiers: @Override public
focal_class.parameters: (final int holdability)
focal_class.return: void
focal_class.signature: void setHoldability(final int holdability)
focal_class.class_method_signature: MetaDataConnection.getHoldability()
focal_class.full_signature: @Override public int getHoldability()
focal_class.identifier: getHoldability
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getHoldability()
focal_class.class_method_signature: MetaDataConnection.setSavepoint()
focal_class.full_signature: @Override public Savepoint setSavepoint()
focal_class.identifier: setSavepoint
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Savepoint
focal_class.signature: Savepoint setSavepoint()
focal_class.class_method_signature: MetaDataConnection.setSavepoint(final String name)
focal_class.full_signature: @Override public Savepoint setSavepoint(final String name)
focal_class.identifier: setSavepoint
focal_class.modifiers: @Override public
focal_class.parameters: (final String name)
focal_class.return: Savepoint
focal_class.signature: Savepoint setSavepoint(final String name)
focal_class.class_method_signature: MetaDataConnection.rollback()
focal_class.full_signature: @Override public void rollback()
focal_class.identifier: rollback
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void rollback()
focal_class.class_method_signature: MetaDataConnection.rollback(final Savepoint savepoint)
focal_class.full_signature: @Override public void rollback(final Savepoint savepoint)
focal_class.identifier: rollback
focal_class.modifiers: @Override public
focal_class.parameters: (final Savepoint savepoint)
focal_class.return: void
focal_class.signature: void rollback(final Savepoint savepoint)
focal_class.class_method_signature: MetaDataConnection.releaseSavepoint(final Savepoint savepoint)
focal_class.full_signature: @Override public void releaseSavepoint(final Savepoint savepoint)
focal_class.identifier: releaseSavepoint
focal_class.modifiers: @Override public
focal_class.parameters: (final Savepoint savepoint)
focal_class.return: void
focal_class.signature: void releaseSavepoint(final Savepoint savepoint)
focal_class.class_method_signature: MetaDataConnection.createClob()
focal_class.full_signature: @Override public Clob createClob()
focal_class.identifier: createClob
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Clob
focal_class.signature: Clob createClob()
focal_class.class_method_signature: MetaDataConnection.createBlob()
focal_class.full_signature: @Override public Blob createBlob()
focal_class.identifier: createBlob
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Blob
focal_class.signature: Blob createBlob()
focal_class.class_method_signature: MetaDataConnection.createNClob()
focal_class.full_signature: @Override public NClob createNClob()
focal_class.identifier: createNClob
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: NClob
focal_class.signature: NClob createNClob()
focal_class.class_method_signature: MetaDataConnection.createSQLXML()
focal_class.full_signature: @Override public SQLXML createSQLXML()
focal_class.identifier: createSQLXML
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: SQLXML
focal_class.signature: SQLXML createSQLXML()
focal_class.class_method_signature: MetaDataConnection.isValid(final int timeout)
focal_class.full_signature: @Override public boolean isValid(final int timeout)
focal_class.identifier: isValid
focal_class.modifiers: @Override public
focal_class.parameters: (final int timeout)
focal_class.return: boolean
focal_class.signature: boolean isValid(final int timeout)
focal_class.class_method_signature: MetaDataConnection.setClientInfo(final String name, final String value)
focal_class.full_signature: @Override public void setClientInfo(final String name, final String value)
focal_class.identifier: setClientInfo
focal_class.modifiers: @Override public
focal_class.parameters: (final String name, final String value)
focal_class.return: void
focal_class.signature: void setClientInfo(final String name, final String value)
focal_class.class_method_signature: MetaDataConnection.setClientInfo(final Properties props)
focal_class.full_signature: @Override public void setClientInfo(final Properties props)
focal_class.identifier: setClientInfo
focal_class.modifiers: @Override public
focal_class.parameters: (final Properties props)
focal_class.return: void
focal_class.signature: void setClientInfo(final Properties props)
focal_class.class_method_signature: MetaDataConnection.getClientInfo(final String name)
focal_class.full_signature: @Override public String getClientInfo(final String name)
focal_class.identifier: getClientInfo
focal_class.modifiers: @Override public
focal_class.parameters: (final String name)
focal_class.return: String
focal_class.signature: String getClientInfo(final String name)
focal_class.class_method_signature: MetaDataConnection.getClientInfo()
focal_class.full_signature: @Override public Properties getClientInfo()
focal_class.identifier: getClientInfo
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Properties
focal_class.signature: Properties getClientInfo()
focal_class.class_method_signature: MetaDataConnection.createArrayOf(final String typeName, final Object[] elements)
focal_class.full_signature: @Override public Array createArrayOf(final String typeName, final Object[] elements)
focal_class.identifier: createArrayOf
focal_class.modifiers: @Override public
focal_class.parameters: (final String typeName, final Object[] elements)
focal_class.return: Array
focal_class.signature: Array createArrayOf(final String typeName, final Object[] elements)
focal_class.class_method_signature: MetaDataConnection.createStruct(final String typeName, final Object[] attributes)
focal_class.full_signature: @Override public Struct createStruct(final String typeName, final Object[] attributes)
focal_class.identifier: createStruct
focal_class.modifiers: @Override public
focal_class.parameters: (final String typeName, final Object[] attributes)
focal_class.return: Struct
focal_class.signature: Struct createStruct(final String typeName, final Object[] attributes)
focal_class.class_method_signature: MetaDataConnection.abort(final Executor executor)
focal_class.full_signature: @Override public void abort(final Executor executor)
focal_class.identifier: abort
focal_class.modifiers: @Override public
focal_class.parameters: (final Executor executor)
focal_class.return: void
focal_class.signature: void abort(final Executor executor)
focal_class.class_method_signature: MetaDataConnection.setNetworkTimeout(final Executor executor, final int milliseconds)
focal_class.full_signature: @Override public void setNetworkTimeout(final Executor executor, final int milliseconds)
focal_class.identifier: setNetworkTimeout
focal_class.modifiers: @Override public
focal_class.parameters: (final Executor executor, final int milliseconds)
focal_class.return: void
focal_class.signature: void setNetworkTimeout(final Executor executor, final int milliseconds)
focal_class.class_method_signature: MetaDataConnection.getNetworkTimeout()
focal_class.full_signature: @Override public int getNetworkTimeout()
focal_class.identifier: getNetworkTimeout
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getNetworkTimeout()
focal_class.class_method_signature: MetaDataConnection.unwrap(final Class<T> iface)
focal_class.full_signature: @Override public T unwrap(final Class<T> iface)
focal_class.identifier: unwrap
focal_class.modifiers: @Override public
focal_class.parameters: (final Class<T> iface)
focal_class.return: T
focal_class.signature: T unwrap(final Class<T> iface)
focal_class.class_method_signature: MetaDataConnection.isWrapperFor(final Class<?> iface)
focal_class.full_signature: @Override public boolean isWrapperFor(final Class<?> iface)
focal_class.identifier: isWrapperFor
focal_class.modifiers: @Override public
focal_class.parameters: (final Class<?> iface)
focal_class.return: boolean
focal_class.signature: boolean isWrapperFor(final Class<?> iface)
focal_method.body: @Override
      public String getSchema() {
          try {
              return connection.getSchema();
          } catch (final SQLException ex) {
              return null;
          }
      }
focal_method.class_method_signature: MetaDataConnection.getSchema()
focal_method.full_signature: @Override public String getSchema()
focal_method.identifier: getSchema
focal_method.invocations: getSchema
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String getSchema()