Meaningless Drivel is fun!*
The moose likes JDBC and the fly likes Where are the actual implementations of ResultSet and other jdbc interfaces defined? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Where are the actual implementations of ResultSet and other jdbc interfaces defined?" Watch "Where are the actual implementations of ResultSet and other jdbc interfaces defined?" New topic
Author

Where are the actual implementations of ResultSet and other jdbc interfaces defined?

Raj roy
Greenhorn

Joined: Jan 11, 2013
Posts: 18
Hello all,


The ResultSet, Connection, Statement are all interfaces in java. Where are there actual implementaions defined ?

When we call createStatement() or execuiteQuery() what subclass of those classes are returned in actual?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42277
    
  64
They're part of the JDBC driver in use. You can find out the actual class name of any object by calling "getClass().getName()" on it.


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Where are the actual implementations of ResultSet and other jdbc interfaces defined?