• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JDBC 4.0 setup

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic