This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Kubernetes in Action and have Marko Luksa on-line!
See this thread for details.
Win a copy of Kubernetes in Action this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

DAO pattern for stored procedure cal  RSS feed

 
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
 
author & internet detective
Marshal
Posts: 37714
579
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!