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
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.