/** * Returns my underlying {@link Connection}. * @return my underlying {@link Connection}. */ public Connection getDelegate() { return getDelegateInternal(); }
protected final Connection getInnermostDelegateInternal() { Connection c = _conn; while(c != null && c instanceof DelegatingConnection) { c = ((DelegatingConnection)c).getDelegateInternal(); if(this == c) { return null; } } return c; }
/** * Returns my underlying {@link Connection}. * @return my underlying {@link Connection}. */ public Connection getDelegate() { return getDelegateInternal(); }
protected final Connection getInnermostDelegateInternal() { Connection c = _conn; while(c != null && c instanceof DelegatingConnection) { c = ((DelegatingConnection)c).getDelegateInternal(); if(this == c) { return null; } } return c; }