Patterns for Data Access Layers

  • Thread starter Thread starter Rafael Veronezi
  • Start date Start date
R

Rafael Veronezi

Hello people,
Is there somebody who knows a good pattern for writing my Data Access Layer?
I would like to build my app in the 3-tier model, I experienced a lot of
patterns I made by myself, but I didn't find one really good, or useful!
Sometimes I think they doubled the work I had... I would see some pattern
wrote to this, some kind of suggestions...
It's something like, it's good to work with classes that represents my
database entities? How it should be? It would expose the entity attributtes
as properties of the class, and the operations associed with that as
methods?
Thanks,
Rafa
 
Take a look at the Data Access Application Block if you are using sql on the
back end. Its a good starting point.
 
Hello people,
Is there somebody who knows a good pattern for writing my Data Access
Layer? I would like to build my app in the 3-tier model, I experienced a
lot of patterns I made by myself, but I didn't find one really good, or
useful! Sometimes I think they doubled the work I had... I would see
some pattern wrote to this, some kind of suggestions...
It's something like, it's good to work with classes that represents my
database entities? How it should be? It would expose the entity
attributtes as properties of the class, and the operations associed with
that as methods?

Go to the Sun J2EE site and visit the DAO (data access object)
pattern and the transfer pattern.
http://java.sun.com/blueprints/patterns/catalog.html

The patterns are explained very well, and if you perform a search,
you'll find other pages about these patterns as well, with more
information if you'd like.

Microsoft's patterns site is nice, but not very useful, and the
data access application block is also not that helpful to say teh least.

FB
 
Back
Top