File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Design Patterns for DAO & VO Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Design Patterns for DAO & VO" Watch "Design Patterns for DAO & VO" New topic
Author

Design Patterns for DAO & VO

Daniel CarMichael
Greenhorn

Joined: Jun 10, 2001
Posts: 15
What GoF design pattern(s) does Data Access Object exhibit?
Proxy?
What GoF design pattern(s) does Value Object exhibit?
Memento?
Any idea?
Alex Pisarev
Ranch Hand

Joined: Apr 10, 2002
Posts: 49
Originally posted by Daniel CarMichael:
What GoF design pattern(s) does Data Access Object exhibit?
Proxy?
What GoF design pattern(s) does Value Object exhibit?
Memento?
Any idea?

I think DAO is closer to Adapter (anyway, it's more strutural than creational). Value Object is also structural in nature, so in some cases it could be Composite, in most cases it's just a bean, nothing else. I do not think that Memento's usage strategy will work for VOs.
JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
Could DAO be the Bridge Pattern? :roll:
Richard Li
Greenhorn

Joined: Aug 23, 2004
Posts: 1
DAO = Bridge + Adapter
The Adapter part is in the implementator of the Bridge.
Often created by Abstract Factory or Factory Method.

more detail, see the sun web site plz.


Do it, just do it.
You can do it, we can help.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Design Patterns for DAO & VO