#13 Casts to driver-specific interfaces fail when using InfraRED

v2.2.beta
open
nobody
agent (5)
9
2012-12-05
2006-02-03
Binil Thomas
No

For getting some things done with some JDBC drivers one
might need to cast the java.sql implementations to
driver-specific interfaces. For instance, to insert a
LOB using Oracle, one needs to cast to
oracle.driver.OracleConnection etc.

When InfraRED is set up, it wraps the java.sql
implementations provided by the driver with its own (in
the package net.sf.infrared.aspects.jdbc.p6spy). So
these casts fail!

We need to fix this. We might be able to use dynamic
proxies to implement all interfaces implemented by the
object we wrap.

Discussion