wangjiong的专栏

笑对人生,永不言败

Review of the J2EE Blueprint 2

When to Use Value Object?
1. When possible reduce the number of calls to the enterprise beans
2. This implies coarse-grained enterprise beans
3. Use value objects to hold data

When to use Data Access Objects
1. Encapsulate data access code in data access objects
2. This class contains all the portable SQL or other code to access data
3. Use sub-classes of the data-access class to handle SQL specific to a database vendor

阅读更多
个人分类: 读书笔记
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭