protected void handleException(SQLException e) throws SQLException { if (_stmt != null && _stmt instanceof DelegatingStatement) { ((DelegatingStatement) _stmt).handleException(e); } else if (_conn != null && _conn instanceof DelegatingConnection) { ((DelegatingConnection<?>) _conn).handleException(e); } else { throw e; } }
/** Sets my delegate. */ public void setDelegate(PreparedStatement s) { super.setDelegate(s); _stmt = s; }