From: Bill H. <bi...@lo...> - 2004-03-19 10:02:42
|
On Fri, 2004-03-19 at 09:36, Bertrand Renuart wrote: > BTW, the same remark applies to ResultSets and PreparedStatements ;) > Some vendor do enhance them as well... That should be fixable too. There is this comment in the ProxyFactory.getStatement() code: "We can't use Class#getInterfaces since that doesn't take into account superclass interfaces. We could, laboriously, work our way up the hierarchy but it doesn't seem worth while - we only actually expect three options:" And it then goes on to either implement Statement, PreparedStatement or CallableStatement. I am just running some tests to see if we can do a recursive lookup of interfaces. If that works, I will try and optimise it so that statements that simply implement the standard JDBC spec don't need to do this lookup. It's not hugely expensive but it does involve some recursion and building a Set (and then converting that Set into an array). - Bill |