I've been reading up on the DAO design
pattern, and I'm still a little unclear on a few points. Let's assume I'm working with a simple banking application that has Customers and Accounts. I understand that I'd have interfaces that were CustomerDAO and AccountDAO (or something similar), but my real question is about the implementations.
Would I have two separate implements of each if I was connecting to two separate types of databases, such as MS Access and MS SQL? It seems like the only thing that would really be different is the connection
string for the database. If I could use one DAO implementation there, in what instance would I need another type of implementation (assuming I always have a database backend and not storing things in a flat file). Seems like all databases would handle SQL pretty much the same and I shouldn't need different DAO implementations.
Thanks,
Jeff