Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Servlets
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Servlets
Opinion with db access
Davie Lin
Ranch Hand
Posts: 294
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi everyone, I was wondering if it's better to have the
jdbc
code in the Controller or the Model? or does that even matter at all. Which is the standard practice amount you experienced programmers?
Thanks
Bear Bibeault
Sheriff
Posts: 67746
173
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
All DB access should be hidden behind the Model layer in my opinion.
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
pravin kantipudi
Greenhorn
Posts: 5
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
all jdbc code should be in a DAO.Data Access Object
pattern
.
Your controller class should invoke model class which inturn should invoke DAO class to do all jdbc calls
hope this explains. Look at DAO pattern for more info
Davie Lin
Ranch Hand
Posts: 294
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Where can I find more DAO info? Can anyone of you provide me a link that I can do more research about it?
Thank you
Bear Bibeault
Sheriff
Posts: 67746
173
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
http://en.wikipedia.org/wiki/Data_Access_Object
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Connection Method
Simulators opinion
about abstract class
Agility: formality vs. discipline
Bodgitt: Locking requirements
More...