Daniel John Debrunner wrote:
Okay, sounds good. Then what should we return for the metadata "class
name"? Esp. ResultSetMetaData.getColumnClassName()?
How about "java.sql.SQLXML" ?
I guess that would work since the user's attempt to call "getObject()" would
fail before the class was instantiated. But something about returning a
non-existent (for JDBC 3.0) class name seemed funny to me. *shrug* Maybe
that's the way to go, though...
Another option is to simply return "java.lang.Object" since, per the JDBC API,
"ResultSet.getObject _may_ return a _subclass_ of the class returned by this
method" (emphasis is my own). Then we'd at least be returning a valid JDBC 3.0
class name. When JDBC 4.0 support is available, changing to "java.sql.SQLXML"
seems okay to me; i.e. there wouldn't be any compatibility problems there, would
there?
Army