@Test public void testGetStatement() { SqlExecutionContextImpl context = new SqlExecutionContextImpl( new MockDataSource(), true, false); context.begin(); Statement statement = context.getStatement(); assertNotNull(statement); PreparedStatement preparedStatement = context.getPreparedStatement(""); assertNotNull(preparedStatement); context.end(); context.destroy(); }
public Statement getStatement() { assertBegun(); assertConnectionNotNull(); statement = ConnectionUtil.createStatement(connection); return statement; }
SqlExecutionContextImpl implements SqlExecutionContext { public Statement getStatement() { assertBegun(); assertConnectionNotNull(); statement = ConnectionUtil.createStatement(connection); return statement; } }
SqlExecutionContextImpl implements SqlExecutionContext { public Statement getStatement() { assertBegun(); assertConnectionNotNull(); statement = ConnectionUtil.createStatement(connection); return statement; } SqlExecutionContextImpl(DataSource dataSource, boolean localTx,
            boolean haltOnError); }
SqlExecutionContextImpl implements SqlExecutionContext { public Statement getStatement() { assertBegun(); assertConnectionNotNull(); statement = ConnectionUtil.createStatement(connection); return statement; } SqlExecutionContextImpl(DataSource dataSource, boolean localTx,
            boolean haltOnError); boolean isHaltOnError(); void setHaltOnError(boolean haltOnError); Statement getStatement(); PreparedStatement getPreparedStatement(String sql); List<RuntimeException> getExceptionList(); void addException(RuntimeException exception); void notifyException(); void destroy(); void begin(); void end(); void commitLocalTx(); }
SqlExecutionContextImpl implements SqlExecutionContext { public Statement getStatement() { assertBegun(); assertConnectionNotNull(); statement = ConnectionUtil.createStatement(connection); return statement; } SqlExecutionContextImpl(DataSource dataSource, boolean localTx,
            boolean haltOnError); boolean isHaltOnError(); void setHaltOnError(boolean haltOnError); Statement getStatement(); PreparedStatement getPreparedStatement(String sql); List<RuntimeException> getExceptionList(); void addException(RuntimeException exception); void notifyException(); void destroy(); void begin(); void end(); void commitLocalTx();  }