E
Ed Thompson
I am designing a small in-house webapp (Tomcat) that accesses 6-10
database tables. I am trying to determine from a design perspective if
I should have a single DAO that encapsulates ALL database access for the
app, or multiple (~6) DAO's to access various poritons of the model.
I looked at the Java Design pattern article and did not get a clear
direction. Part of the question I guess is related to scope - should
I keep a DAOP around for a while (session scope) or let it expire
quickly knoiwing I wmight need it again (request scope).
Does this question make sense?
database tables. I am trying to determine from a design perspective if
I should have a single DAO that encapsulates ALL database access for the
app, or multiple (~6) DAO's to access various poritons of the model.
I looked at the Java Design pattern article and did not get a clear
direction. Part of the question I guess is related to scope - should
I keep a DAOP around for a while (session scope) or let it expire
quickly knoiwing I wmight need it again (request scope).
Does this question make sense?