public boolean isInTransaction() {
        return inTransaction;
    }
Only closes the connection if it is NOT from a transaction.

@throws SQLException if there is a SQL error
runtime-parent/runtime-core/src/main/java/com/speedment/runtime/core/internal/db/ConnectionInfo.java