File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Use of sql.Date Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Use of sql.Date" Watch "Use of sql.Date" New topic
Author

Use of sql.Date

Melody Siu
Greenhorn

Joined: Nov 06, 2003
Posts: 21
Hi, is there any benefit for having the sql.Date object exposed to the web tier after object is retrieved from its persistent storage versus using Calendar object through out except in the block of code that needs to deal with sql.Date (i.e. insert/update sql methods).
Thanks,
Mel
Wayne L Johnson
Ranch Hand

Joined: Sep 03, 2003
Posts: 399
I think your analysis is correct: "java.sql.Date" should be used as close to the database tier as possible, and exposed to the outside world as another class instance, such as "java.util.Calendar".
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Use of sql.Date