架构与其他模式.pptVIP

  • 1
  • 0
  • 约1.85万字
  • 约 77页
  • 2019-10-10 发布于湖北
  • 举报
对象标识符模式 * * Problem: Who should be responsible for materialization and dematerialization Info expert suggests the object should do this itself (i.e. direct mapping). But hard to program and to maintain. Solution: make a separate “database mapper” class responsible for materialization, dematerialization, object caching One for each persistent class * * 数据库映射器或代理模式 * * each mapper gets and puts objects in its own unique way, depending on the kind of data store and format 1 PersistenceFacade getInstance() : PersistenceFacade get( OID, Class ) : Object

文档评论(0)

1亿VIP精品文档

相关文档