-
1. Re: How to get the underlaying statement (WrappedStatementJDK6)
jaikiran Jun 13, 2014 2:03 AM (in response to juanjobio)I don't think there's any non-private module to do what you are doing. In fact, the whole point of marking that private is to warn the user deployment that things might change with resources available in that module without much warning.
I know this will make the application driver dependent but this is not a problem.
If that's the case, then you can just go ahead and add the dependency on that module.
-
2. Re: How to get the underlaying statement (WrappedStatementJDK6)
juanjobio Jun 13, 2014 7:42 AM (in response to jaikiran)Thanks for the info. I will stick with that.
Just to add some information, the preferred solution for jdbc 4 is (i.e. oracle):
if (conn.isWrapperFor(OracleConnection.class)) {
OracleConnection oracleConn = conn.unwrap(OracleConnection.class);
...
} else {
throw new IllegalArgumentException("not an OracleConnection");
}
which is not possible for me.