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 PreparedStatementExecutor actual;
test_class.type: PreparedStatementExecutor
test_class.var_name: actual
test_class.file: shardingsphere-jdbc/shardingsphere-jdbc-core/src/test/java/org/apache/shardingsphere/driver/executor/PreparedStatementExecutorTest.java
test_class.identifier: PreparedStatementExecutorTest
test_class.superclass: extends AbstractBaseExecutorTest
test_case.body: @Test
      public void assertExecuteForMultiplePreparedStatementsFailureWithDML() throws SQLException {
          PreparedStatement preparedStatement1 = getPreparedStatement();
          PreparedStatement preparedStatement2 = getPreparedStatement();
          SQLException ex = new SQLException("");
          when(preparedStatement1.execute()).thenThrow(ex);
          when(preparedStatement2.execute()).thenThrow(ex);
          assertFalse(actual.execute(getExecuteGroups(Arrays.asList(preparedStatement1, preparedStatement2), false), createSQLStatementContext()));
          verify(preparedStatement1).execute();
          verify(preparedStatement2).execute();
      }
test_case.class_method_signature: PreparedStatementExecutorTest.assertExecuteForMultiplePreparedStatementsFailureWithDML()
test_case.full_signature: @Test public void assertExecuteForMultiplePreparedStatementsFailureWithDML()
test_case.identifier: assertExecuteForMultiplePreparedStatementsFailureWithDML
test_case.invocations: getPreparedStatement getPreparedStatement thenThrow when execute thenThrow when execute assertFalse execute getExecuteGroups asList createSQLStatementContext execute verify execute verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertExecuteForMultiplePreparedStatementsFailureWithDML()
focal_class.file: shardingsphere-jdbc/shardingsphere-jdbc-core/src/main/java/org/apache/shardingsphere/driver/executor/PreparedStatementExecutor.java
focal_class.identifier: PreparedStatementExecutor
focal_class.class_method_signature: PreparedStatementExecutor.PreparedStatementExecutor(final Map<String, DataSource> dataSourceMap, final SchemaContexts schemaContexts, final SQLExecutor sqlExecutor)
focal_class.full_signature: public  PreparedStatementExecutor(final Map<String, DataSource> dataSourceMap, final SchemaContexts schemaContexts, final SQLExecutor sqlExecutor)
focal_class.identifier: PreparedStatementExecutor
focal_class.modifiers: public
focal_class.parameters: (final Map<String, DataSource> dataSourceMap, final SchemaContexts schemaContexts, final SQLExecutor sqlExecutor)
focal_class.signature:  PreparedStatementExecutor(final Map<String, DataSource> dataSourceMap, final SchemaContexts schemaContexts, final SQLExecutor sqlExecutor)
focal_class.class_method_signature: PreparedStatementExecutor.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: PreparedStatementExecutor.createDefaultSQLExecutorCallbackWithQueryResult(final boolean isExceptionThrown)
focal_class.full_signature: private DefaultSQLExecutorCallback<QueryResult> createDefaultSQLExecutorCallbackWithQueryResult(final boolean isExceptionThrown)
focal_class.identifier: createDefaultSQLExecutorCallbackWithQueryResult
focal_class.modifiers: private
focal_class.parameters: (final boolean isExceptionThrown)
focal_class.return: DefaultSQLExecutorCallback<QueryResult>
focal_class.signature: DefaultSQLExecutorCallback<QueryResult> createDefaultSQLExecutorCallbackWithQueryResult(final boolean isExceptionThrown)
focal_class.class_method_signature: PreparedStatementExecutor.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: PreparedStatementExecutor.createDefaultSQLExecutorCallbackWithInteger(final boolean isExceptionThrown)
focal_class.full_signature: private DefaultSQLExecutorCallback<Integer> createDefaultSQLExecutorCallbackWithInteger(final boolean isExceptionThrown)
focal_class.identifier: createDefaultSQLExecutorCallbackWithInteger
focal_class.modifiers: private
focal_class.parameters: (final boolean isExceptionThrown)
focal_class.return: DefaultSQLExecutorCallback<Integer>
focal_class.signature: DefaultSQLExecutorCallback<Integer> createDefaultSQLExecutorCallbackWithInteger(final boolean isExceptionThrown)
focal_class.class_method_signature: PreparedStatementExecutor.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: PreparedStatementExecutor.createDefaultSQLExecutorCallbackWithBoolean(final boolean isExceptionThrown)
focal_class.full_signature: private DefaultSQLExecutorCallback<Boolean> createDefaultSQLExecutorCallbackWithBoolean(final boolean isExceptionThrown)
focal_class.identifier: createDefaultSQLExecutorCallbackWithBoolean
focal_class.modifiers: private
focal_class.parameters: (final boolean isExceptionThrown)
focal_class.return: DefaultSQLExecutorCallback<Boolean>
focal_class.signature: DefaultSQLExecutorCallback<Boolean> createDefaultSQLExecutorCallbackWithBoolean(final boolean isExceptionThrown)
focal_class.superclass: extends AbstractStatementExecutor
focal_method.body: @Override
      public boolean execute(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext) throws SQLException {
          boolean isExceptionThrown = ExecutorExceptionHandler.isExceptionThrown();
          SQLExecutorCallback<Boolean> sqlExecutorCallback = createDefaultSQLExecutorCallbackWithBoolean(isExceptionThrown);
          List<Boolean> result = getSqlExecutor().execute(inputGroups, sqlExecutorCallback);
          refreshTableMetaData(getSchemaContexts().getDefaultSchema(), sqlStatementContext);
          if (null == result || result.isEmpty() || null == result.get(0)) {
              return false;
          }
          return result.get(0);
      }
focal_method.class_method_signature: PreparedStatementExecutor.execute(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext)
focal_method.full_signature: @Override public boolean execute(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext)
focal_method.identifier: execute
focal_method.invocations: isExceptionThrown createDefaultSQLExecutorCallbackWithBoolean execute getSqlExecutor refreshTableMetaData getDefaultSchema getSchemaContexts isEmpty get get
focal_method.modifiers: @Override public
focal_method.parameters: (final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext)
focal_method.return: boolean
focal_method.signature: boolean execute(final Collection<InputGroup<StatementExecuteUnit>> inputGroups, final SQLStatementContext<?> sqlStatementContext)