This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Java in General and the fly likes JDBC Interfaces Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "JDBC Interfaces" Watch "JDBC Interfaces" New topic
Author

JDBC Interfaces

San Nan
Greenhorn

Joined: Jul 01, 2005
Posts: 22
Dear All,

can U Please Tell me where all Interfaces has been Implemented becoz we are not declaring out class with any Interface....

(e.g Resultset, Statement, PreparedStatement etc....)

(Where is the Implementation & how our Program/Class use it)

Thanks & regards

San Nan
Mani Ram
Ranch Hand

Joined: Mar 11, 2002
Posts: 1140
Look at this thread


Mani
Quaerendo Invenietis
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41621
    
  55
You do not need to implement those interfaces, they're implemented by the objects you get from the JDBC driver. The J2SE Guide has an introduction on how to use JDBC (http://java.sun.com/j2se/1.4.2/docs/guide/jdbc/getstart/GettingStartedTOC.fm.html)

Basically, you load the Driver or get a DataSource, then use that to get a Connection to your DB, with that you create a Statement which will allow you to retrieve a ResultSet (that's the whirlwind tour from 10000 feet high).

JDBC is too complex a subject to cover in a post like this, but the guide should get you started, and there are lots of introductory articles out on the web.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDBC Interfaces