public SingleConnectionTransactionManager(@NotNull Connection connection,boolean insideForeignTransaction){
  this.connection=requireNonNull(connection);
  currentTransaction=insideForeignTransaction ? Optional.of(new DefaultTransaction(connection)) : Optional.empty();
}

public SingleConnectionTransactionManager ( @ NotNull Connection connection , boolean insideForeignTransaction ) { this . connection = requireNonNull ( connection ) ; currentTransaction = insideForeignTransaction ? Optional . of ( new DefaultTransaction ( connection ) ) : Optional . empty ( ) ; }
constructs a transaction manager that uses given connection .
