test_class.declarator: DQL_SQL = "SELECT * FROM table_x"
test_class.modifier: private static final
test_class.original_string: private static final String DQL_SQL = "SELECT * FROM table_x";
test_class.type: String
test_class.var_name: DQL_SQL
test_class.declarator: DML_SQL = "DELETE FROM table_x"
test_class.modifier: private static final
test_class.original_string: private static final String DML_SQL = "DELETE FROM table_x";
test_class.type: String
test_class.var_name: DML_SQL
test_class.declarator: actual
test_class.modifier: private
test_class.original_string: private StatementExecutor actual;
test_class.type: StatementExecutor
test_class.var_name: actual
test_class.file: shardingsphere-jdbc/shardingsphere-jdbc-core/src/test/java/org/apache/shardingsphere/driver/executor/StatementExecutorTest.java
test_class.identifier: StatementExecutorTest
test_class.superclass: extends AbstractBaseExecutorTest
test_case.body: @Test
      public void assertExecuteUpdateForSingleStatementSuccess() throws SQLException {
          Statement statement = getStatement();
          when(statement.executeUpdate(DML_SQL)).thenReturn(10);
          assertThat(actual.executeUpdate(getExecuteGroups(Collections.singletonList(statement), false), createSQLStatementContext()), is(10));
          verify(statement).executeUpdate(DML_SQL);
      }
test_case.class_method_signature: StatementExecutorTest.assertExecuteUpdateForSingleStatementSuccess()
test_case.full_signature: @Test public void assertExecuteUpdateForSingleStatementSuccess()
test_case.identifier: assertExecuteUpdateForSingleStatementSuccess
test_case.invocations: getStatement thenReturn when executeUpdate assertThat executeUpdate getExecuteGroups singletonList createSQLStatementContext is executeUpdate verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertExecuteUpdateForSingleStatementSuccess()
focal_class.file: shardingsphere-jdbc/shardingsphere-jdbc-core/src/main/java/org/apache/shardingsphere/driver/executor/StatementExecutor.java
focal_class.identifier: StatementExecutor
focal_class.class_method_signature: StatementExecutor.StatementExecutor(final Map<String, DataSource> dataSourceMap, final SchemaContexts schemaContexts, final SQLExecutor sqlExecutor)
focal_class.full_signature: public  StatementExecutor(final Map<String, DataSource> dataSourceMap, final SchemaContexts schemaContexts, final SQLExecutor sqlExecutor)
focal_class.identifier: StatementExecutor
focal_class.modifiers: public
focal_class.parameters: (final Map<String, DataSource> dataSourceMap, final SchemaContexts schemaContexts, final SQLExecutor sqlExecutor)
focal_class.signature:  StatementExecutor(final Map<String, DataSource> dataSourceMap, final SchemaContexts schemaContexts, final SQLExecutor sqlExecutor)
focal_class.class_method_signature: StatementExecutor.executeQuery(final Collection<InputGroup<StatementExecuteUnit>> inputGroups)
focal_class.full_signature: @Override public List<QueryResult> executeQuery(final Collection<InputGroup<StatementExecuteUnit>> inputGroups)
focal_class.identifier: executeQuery
focal_class.modifiers: @Override public
focal_class.parameters: (final Collection<InputGroup<StatementExecuteUnit>> inputGroups)
focal_class.return: List<QueryResult>
focal_class.signature: List<QueryResult> executeQuery(final Collection<InputGroup<StatementExecuteUnit>> inputGroups)
focal_class.class_method_signature: StatementExecutor.executeUpdate(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext)
focal_class.full_signature: @Override public int executeUpdate(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext)
focal_class.identifier: executeUpdate
focal_class.modifiers: @Override public
focal_class.parameters: (final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext)
focal_class.return: int
focal_class.signature: int executeUpdate(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext)
focal_class.class_method_signature: StatementExecutor.executeUpdate(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext, final int autoGeneratedKeys)
focal_class.full_signature: public int executeUpdate(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext, final int autoGeneratedKeys)
focal_class.identifier: executeUpdate
focal_class.modifiers: public
focal_class.parameters: (final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext, final int autoGeneratedKeys)
focal_class.return: int
focal_class.signature: int executeUpdate(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext, final int autoGeneratedKeys)
focal_class.class_method_signature: StatementExecutor.executeUpdate(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext, final int[] columnIndexes)
focal_class.full_signature: public int executeUpdate(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext, final int[] columnIndexes)
focal_class.identifier: executeUpdate
focal_class.modifiers: public
focal_class.parameters: (final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext, final int[] columnIndexes)
focal_class.return: int
focal_class.signature: int executeUpdate(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext, final int[] columnIndexes)
focal_class.class_method_signature: StatementExecutor.executeUpdate(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext, final String[] columnNames)
focal_class.full_signature: public int executeUpdate(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext, final String[] columnNames)
focal_class.identifier: executeUpdate
focal_class.modifiers: public
focal_class.parameters: (final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext, final String[] columnNames)
focal_class.return: int
focal_class.signature: int executeUpdate(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext, final String[] columnNames)
focal_class.class_method_signature: StatementExecutor.executeUpdate(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final Updater updater, final SQLStatementContext<?> sqlStatementContext)
focal_class.full_signature: @SuppressWarnings({"unchecked", "rawtypes"}) private int executeUpdate(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final Updater updater, final SQLStatementContext<?> sqlStatementContext)
focal_class.identifier: executeUpdate
focal_class.modifiers: @SuppressWarnings({"unchecked", "rawtypes"}) private
focal_class.parameters: (final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final Updater updater, final SQLStatementContext<?> sqlStatementContext)
focal_class.return: int
focal_class.signature: int executeUpdate(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final Updater updater, final SQLStatementContext<?> sqlStatementContext)
focal_class.class_method_signature: StatementExecutor.execute(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext)
focal_class.full_signature: @Override public boolean execute(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext)
focal_class.identifier: execute
focal_class.modifiers: @Override public
focal_class.parameters: (final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext)
focal_class.return: boolean
focal_class.signature: boolean execute(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext)
focal_class.class_method_signature: StatementExecutor.execute(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext, final int autoGeneratedKeys)
focal_class.full_signature: public boolean execute(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext, final int autoGeneratedKeys)
focal_class.identifier: execute
focal_class.modifiers: public
focal_class.parameters: (final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext, final int autoGeneratedKeys)
focal_class.return: boolean
focal_class.signature: boolean execute(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext, final int autoGeneratedKeys)
focal_class.class_method_signature: StatementExecutor.execute(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext, final int[] columnIndexes)
focal_class.full_signature: public boolean execute(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext, final int[] columnIndexes)
focal_class.identifier: execute
focal_class.modifiers: public
focal_class.parameters: (final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext, final int[] columnIndexes)
focal_class.return: boolean
focal_class.signature: boolean execute(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext, final int[] columnIndexes)
focal_class.class_method_signature: StatementExecutor.execute(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext, final String[] columnNames)
focal_class.full_signature: public boolean execute(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext, final String[] columnNames)
focal_class.identifier: execute
focal_class.modifiers: public
focal_class.parameters: (final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext, final String[] columnNames)
focal_class.return: boolean
focal_class.signature: boolean execute(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext, final String[] columnNames)
focal_class.class_method_signature: StatementExecutor.execute(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final Executor executor, final SQLStatementContext<?> sqlStatementContext)
focal_class.full_signature: @SuppressWarnings({"unchecked", "rawtypes"}) private boolean execute(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final Executor executor, final SQLStatementContext<?> sqlStatementContext)
focal_class.identifier: execute
focal_class.modifiers: @SuppressWarnings({"unchecked", "rawtypes"}) private
focal_class.parameters: (final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final Executor executor, final SQLStatementContext<?> sqlStatementContext)
focal_class.return: boolean
focal_class.signature: boolean execute(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final Executor executor, final SQLStatementContext<?> sqlStatementContext)
focal_class.superclass: extends AbstractStatementExecutor
focal_method.body: @Override
      public int executeUpdate(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext) throws SQLException {
          return executeUpdate(inputGroups, Statement::executeUpdate, sqlStatementContext);
      }
focal_method.class_method_signature: StatementExecutor.executeUpdate(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext)
focal_method.full_signature: @Override public int executeUpdate(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext)
focal_method.identifier: executeUpdate
focal_method.invocations: executeUpdate
focal_method.modifiers: @Override public
focal_method.parameters: (final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext)
focal_method.return: int
focal_method.signature: int executeUpdate(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext)