omething here to the arguments or write to a log or something return super.insert(statement, args, argfieldTypes, keyHolder); } }
Then define your own factory which constructs instances of your proxy object. For example:
JdbcConnectionSource.setDatabaseConnectionProxyFactory(new DatabaseConnectionProxyFactory() { public DatabaseConnection createProxy(DatabaseConnection realConnection) { return new MyConnectionProxy(realConnection); } });
You can also use the {@link ReflectionDatabaseConnectionProxyFactory} which takes a class and constructs your proxysubclass using reflection.
To see a working example of the connection proxy, see the {@link DatabaseConnectionProxyFactoryTest}.
@author graywatson