[DBCP] Support for JDBC 4.0

View: New views
3 Messages — Rating Filter:   Alert me  

[DBCP] Support for JDBC 4.0

by wesclark :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In Java 1.6, support was introduced for JDBC 4.0.  This new specification introduced many new methods, including getNString() and setNString(String).    Are we limited when using DBCP if the delegated methods don't have these methods?


Re: [DBCP] Support for JDBC 4.0

by Mark Thomas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Wes Clark wrote:
> In Java 1.6, support was introduced for JDBC 4.0.  This new specification introduced many new methods, including getNString() and setNString(String).    Are we limited when using DBCP if the delegated methods don't have these methods?

DBCP support for JDBC 4.0 is in trunk but has yet to be released. With
the current DBCP release you can't use any JDBC 4 methods unless you
obtain the underlying connection.

Now pool 1.5 has been released, a new DBCP release should follow but
there are a handful of bugs that need to be fixed first.

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


RE: [DBCP] Support for JDBC 4.0

by wesclark :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I know if JDBC 4.0 you use unwrap() to get access to the underlying object's methods.  Do you do a simple cast if the unwrap method is not available?

-----Original Message-----
From: Mark Thomas [mailto:markt@...]
Sent: Thursday, June 11, 2009 2:19 PM
To: Commons Users List
Subject: Re: [DBCP] Support for JDBC 4.0

Wes Clark wrote:
> In Java 1.6, support was introduced for JDBC 4.0.  This new specification introduced many new methods, including getNString() and setNString(String).    Are we limited when using DBCP if the delegated methods don't have these methods?

DBCP support for JDBC 4.0 is in trunk but has yet to be released. With
the current DBCP release you can't use any JDBC 4 methods unless you
obtain the underlying connection.

Now pool 1.5 has been released, a new DBCP release should follow but
there are a handful of bugs that need to be fixed first.

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...