Closed sshrav closed 3 years ago
should it be BaseTransform or JDBCBaseTransform
JdbcCpoTransform has two transformOut calls. public interface JdbcCpoTransform<D, J> extends CpoTransform<D, J> { public D transformOut(JdbcPreparedStatementFactory jpsf, J attributeObject) throws CpoException; public D transformOut(JdbcCallableStatementFactory jpsf, J attributeObject) throws CpoException; }
There needs to be another handleConnection call for JdbcCallableStatement
we should probably call the method unwrapConnection, since that is what we are doing
Agree with Dave on both counts: -name this thing BaseJDBCTransform -rename the method as he suggested
Still not sure I like this approach though...seems dirty.
Does the JBoss WrappedConnection implement the Wrapper interface? I thought the reason we had to have our own check was because it did not.
I believe so.. The unwrap call internally invokes the getUnderlyingConnection method and returns us the connection.
The unwrap method is an inherited method which calls the overridden getWrappedObject() method. The getWrappedObject() method in turn calls the getUnderlyingConnection() and returns the underlying connection;
If that's the case, then I'm much happier w/ this code change as it's generic.
@berryware - thoughts? If you agree this is good, I'll accept the pull and merge it in.
Closing as the Blob transform for oracle is no longer needed. Please let me know if you feel otherwise.
refactored TransformBase to BaseTransform