Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC 4.0 setup

 
Alex Khvatov
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Could somebody post instructions on how to setup JDBC 4.0 implementation.
I could not find any clear instructions on sun's website.
Thanks.
Alex
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15634
46
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JDBC 4.0 is part of Java SE 6. There is no special implementation that you need to download or install.

To be able to use all the new JDBC 4.0 features you probably need a JDBC driver that implements those features - and implementing JDBC drivers is up to the database vendors. So you'll have to find out if your database vendor has a JDBC driver available that implements the new features.
[ October 04, 2007: Message edited by: Jesper Young ]
 
Alex Khvatov
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the database included in JDK6 (Apache Derby) claims to have JDBC 4.0 driver implementation; but when I try:

I get compilation error.
When I checked JDK6 API documentation, I could not find method
.createQueryObject()
in Connection class.
What do I do wrong?
Alex
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Indeed, the Connection class in Java 6 does not have a createqueryobject method: java 6 Javadocs for java.sql.Connection, nor does it have the java.sql.BaseQuery object this call should return.

I would conclude that wherever those are mentioned, the information was based on a pre-release version of the JDK, and that it got dropped.
[ October 05, 2007: Message edited by: Ulf Dittmer ]
 
Alex Khvatov
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, basically, according to the Release Notes for JDK 6 JDBC 3.0 was released, not JDBC 4.0
I was primarily interested in using the new features of JDBC 4.0, but I could not get past the articles written about the new features and not being able to code myself. UPDATE: some features got in the JDK 6, but not all of them.
[ October 08, 2007: Message edited by: Alex Khvatov ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic