Current specdiffs for JDBC 4.2

Lance Andersen - Oracle Lance.Andersen at
Mon Dec 24 10:46:34 PST 2012

On Dec 22, 2012, at 2:59 AM, Mark Rotteveel wrote:

> On 19-12-2012 15:43, Lance Andersen - Oracle wrote:
>>>> (and other methods accepting java.sql.SQLType)
>>>> I think it is unfortunate that there are no methods accepting the java.sql.JDBCType enum directly (as an enum); it makes - as a driver implementer - only supporting the basic enum a bit more cumbersome.
>> If a JDBCType such as JDBCTYPES.INTEGER is passed you can still use as an enum
>> We had lengthy discussions on this in 2010 and early 2011 on this and it was felt that passing an enum was too restrictive.
> Now that I have thought some more on it, I agree. Even if there was also a method just accepting the enum, it wouldn't make it easier in the driver implementation.
> I think adding a method to JDBCTypes to lookup the enum by java.sql.Types value would be a great addition, as it would simplify conversion from java.sql.Types to JDBCTypes. Lets say JDBCTypes.valueOf(int sqlType), similar to JDBCTypes.valueOf(String name).

Sure, I guess I can add this if you think this is of benefit.

Will be in the next spin of the javadocs early next week

Happy Holidays

> Mark
> -- 
> Mark Rotteveel

-------------- next part --------------

Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering 
1 Network Drive 
Burlington, MA 01803
Lance.Andersen at

More information about the jdbc-spec-discuss mailing list