This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
Similar Threads
Why MVC is not one of the 23 GOF patterns?
GOF vs Head First Design Patterns
Abstract Factory and Factory Pattern applied to Sun's Blueprint on DAO
Class form Adapter VS Object form Adapter
First class object -- what is it?