• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DAO pattern for stored procedure cal

 
ashok gurusamy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic