|
Daniel John Debrunner wrote: This is there as an EoD feature for Java EE developers. Java EE apps deal with DataSources not usually directly with XADataSources or ConnectionPoolDataSources.Rick Hillegas wrote: DataSets layer Rowsets and ResultSets. RowSets already accept a DataSource instead of a Connection object. Often a DataSource is typically implemented by application server. Application server's implementation of DataSource will implement the createQueryObject method. That will result in a call such as return underlyingDataSource.getQueryObjectGenerator().createQueryObject(ifc, this); As far as I can tell it seems to be a short-cut for getConnection().createQueryObject(java.lang.Class<T> ifc) (using the getConnection() method on javax.sql.DataSource). Should we ask this question to the JDBC 4.0 review? The whole ease of section 20.1 in JDBC 4.0 I'd assumed would be above the level of the JDBC driver, it's somewhat disconcerting to me that it's that closely linked to the low level driver. Related to that, does anyone have any idea how the QueryObjectGenerator interface is meant to be used. What piece of code would call CommonDataSource.getQueryObjectGenerator()? Would it be a wrapping DataSource implementation (e.g. from a app server). Section 20.1.6 seems to be no help here. Section 20.2.2.1 has this sentence: "If the JDBC driver does not provide its own implementation of a QueryObjectGenerator, it must invoke the default QueryObjectGenerator implementation provided by Java SE 6." I can't see any mention of how a driver implementation finds the defaultQueryObjectGenerator implementation. Dan. |
- Re: conflict between Derby API and JDBC 4.0 Lance J. Andersen
- Re: conflict between Derby API and JDBC 4.0 Rick Hillegas
- Re: conflict between Derby API and JDBC 4.... David W. Van Couvering
- Re: conflict between Derby API and JDB... Daniel John Debrunner
- Re: conflict between Derby API and JDBC 4.... Daniel John Debrunner
