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 DAO pattern for stored procedure cal 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 "DAO pattern for stored procedure cal" Watch "DAO pattern for stored procedure cal" New topic
Author

DAO pattern for stored procedure cal

ashok gurusamy
Greenhorn

Joined: Jul 23, 2006
Posts: 2
Can anyone please explain me how to use DAO pattern for calling stored procedure. MY scenario is mobile based application ,whenever customer calls it has to fetch the data from database using Stored Procedure and i am using MVC attern
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30068
    
149

Ashok,
Welcome to JavaRanch!

Sun's description of the DAO pattern has sample code at the end. There's nothing special about using it for a stored procedure. Just use a CallableStatement rather than a PreparedStatement.


[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: DAO pattern for stored procedure cal
 
Similar Threads
Stored Procedure within DAO class ?
Transacation Behavior When Exceptions Are Thrown
Callling Stored Procedures from CMP
Weblogic 8.1 Integration issue
Issue calling a stored procedure from Weblogic 8.1 workshop project