/** * Get reference to physical connection. * <p/> * NOTE : be sure this handler is still valid before calling! * * @return The physical connection */ private Connection extractPhysicalConnection() { return logicalConnection.getConnection(); }
/** * Get reference to physical connection. * <p/> * NOTE : be sure this handler is still valid before calling! * * @return The physical connection */ private Connection extractPhysicalConnection() { return logicalConnection.getConnection(); }
protected final Connection connection() { return logicalConnection().getConnection(); }
protected final Connection connection() { return logicalConnection().getConnection(); }
protected final Connection connection() { return logicalConnection().getConnection(); }
@Override protected void doBegin() { try { if ( managedConnection != null ) { throw new TransactionException( "Already have an associated managed connection" ); } managedConnection = transactionCoordinator().getJdbcCoordinator().getLogicalConnection().getConnection(); wasInitiallyAutoCommit = managedConnection.getAutoCommit(); LOG.debugv( "initial autocommit status: {0}", wasInitiallyAutoCommit ); if ( wasInitiallyAutoCommit ) { LOG.debug( "disabling autocommit" ); managedConnection.setAutoCommit( false ); } } catch( SQLException e ) { throw new TransactionException( "JDBC begin transaction failed: ", e ); } isDriver = transactionCoordinator().takeOwnership(); }
@Override protected void doBegin() { try { if ( managedConnection != null ) { throw new TransactionException( "Already have an associated managed connection" ); } managedConnection = transactionCoordinator().getJdbcCoordinator().getLogicalConnection().getConnection(); wasInitiallyAutoCommit = managedConnection.getAutoCommit(); LOG.debugv( "initial autocommit status: {0}", wasInitiallyAutoCommit ); if ( wasInitiallyAutoCommit ) { LOG.debug( "disabling autocommit" ); managedConnection.setAutoCommit( false ); } } catch( SQLException e ) { throw new TransactionException( "JDBC begin transaction failed: ", e ); } isDriver = transactionCoordinator().takeOwnership(); }