This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes OraResultSet and ResutSet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "OraResultSet and ResutSet" Watch "OraResultSet and ResutSet" New topic
Author

OraResultSet and ResutSet

Steve Jiang
Ranch Hand

Joined: May 17, 2004
Posts: 107
I hope to use the function getINTERVALDS() in OracleResultSet, and find the existing code is using standard java interface ResultSet and PrearedStatement, I am thinking to change the existing ResultSet to OracleResultSet , but not sure if it will affect the existing code somwhat.

My application is only run in Oracle Env, so no concern for the interface with other DBs. Can I change the ResultSet tr OracleResultSet without the effect for existing code? What is the difference between OracleResultSet and ResultSet?


Thanks,


Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30057
    
149

Steve Jiang wrote: What is the difference between OracleResultSet and ResultSet?

It's Oracle's implementation.

By changing to OracleResultSet, you run the risk of making your code harder to maintain. As a rule of thumb, I wouldn't switch unless what you want to do can't be accomplished by other means. Looking at the JavaDoc for IntervalDS, it looks like a date type object. What do you need from it that getTimestamp() doesn't?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: OraResultSet and ResutSet
 
Similar Threads
How can I interact with OracleResultSet?
Extracting BFILE from database
LONG IN ORACLE
How to test a method taking resultset as input parameter with junit
Migration from Oracle to Weblogic and CLOB ClassCastException