英语翻译Transparent persistenceThis capability refers to the persistence of POJOs to durable stores—typically,relational databases—without the objects needing to make significant object-orientation concessions.It bridges the object-relational

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/02 22:45:34
英语翻译Transparent persistenceThis capability refers to the persistence of POJOs to durable stores—typically,relational databases—without the objects needing to make significant object-orientation concessions.It bridges the object-relational

英语翻译Transparent persistenceThis capability refers to the persistence of POJOs to durable stores—typically,relational databases—without the objects needing to make significant object-orientation concessions.It bridges the object-relational
英语翻译
Transparent persistence
This capability refers to the persistence of POJOs to durable stores—typically,relational databases—without the objects needing to make significant object-orientation concessions.It bridges the object-relational impedance mismatch with a framework responsible for mapping persistent objects to rows in a relational database management system,generating all the necessary Structured Query Language code to retrieve and store objects.ORM tools use techniques such as reflection,dynamic byte code generation,or byte code enhancement in a postprocessing step to perform this mapping at runtime.
Transparent persistence frees domain objects from the responsibility of managing their persistent representation,enabling them to contain business logic where appropriate,without mixing that with persistence operations.It can also greatly increase productivity by eliminating the need to write verbose and often error-prone persistence code.Transparent persistence is a goal rather than a reality,but the best ORM solutions come close to achieving it.
Inversion of control
A POJO model can be applied to business services through IoC containers.These let business objects be configured at runtime,and enjoy declarative services such as automatic transaction management.Inversion of control is a widely used term that in this case refers to a model in which the framework instantiates application objects and configures them for use.
Dependency injection is a pure Java type of IoC that does not depend on framework APIs and thus can be applied to objects that aren’t aware of—or may have been written without knowledge of—the framework.
Configuration is via JavaBean properties (setter injection) or constructor arguments (constructor injection).This means that application code doesn’t implement any framework interfaces; the framework uses reflection to configure it.The framework injects dependencies such as collaborating objects or configuration parameters,without application classes needing to perform explicit lookup—as,for example,in the traditional JNDI-based approach to J2EE configuration.
Dependency injection is a simple,but surprisingly powerful,concept.Because the framework is responsible for resolving dependencies on collaborating objects,it can introduce a range of value-adds such as indirection to support hot swapping and codeless generation of proxies that represent remote services.
Aspect-oriented programming
Dependency injection goes a long way toward delivering a POJO application model but fails to address some important requirements,such as the ability to apply declarative transaction management—security checking,custom caching,auditing,and so on—to selected methods.
接上:
Traditional solutions to this problem all have substantial disadvantages.Using boilerplate code—for example,to start and commit or roll back a transaction—results in the same code being used in multiple methods.In addition,design patterns such as the Decorator end up with cut-and-paste code.And objects can only benefit special-purpose frameworks such as EJB,which provide a fixed set of services,by conforming to framework APIs and implicit contracts.
The Spring Framework provides a proxy-based AOP solution that complements dependency injection.AspectJ,AspectWerkz,and other AOP technologies are more ambitious,enabling modification of class byte code for more powerful weaving of aspects into an object model.

英语翻译Transparent persistenceThis capability refers to the persistence of POJOs to durable stores—typically,relational databases—without the objects needing to make significant object-orientation concessions.It bridges the object-relational
先看看!了解大概意思!
你所接下一段的含意差不多!
透明的坚持不懈的努力,这个能力是指POJOs持久的关系databases-without stores-typically对象需要作出了重大的object-orientation让步.它的对象关系阻抗匹配与框架负责映射到一个持久对象关系型数据库管理系统,产生了所有必要的结构化查询语言代码来恢复和存储对象.ORM工具使用技术,如反射、动态字节或字节码生成代码,在一个后置处理步骤,提高执行该映射在运行时间.
透明的持续释放的责任领域对象管理持续表现,使他们能够包含业务逻辑,在适当的时候,坚持运作.它还可以大大提高生产率,消除需要写罗嗦,往往容易出错的毅力的代码.坚持是一种透明的目标,而不是现实,但最好的解决方案来接近实现ORM.
反演的控制
一个POJO模型可应用于商业服务,透过国际奥委会的容器.这些让商业对象被配置在运行,并享受声明服务,如自动交易管理.反演的控制是一种被广泛使用的术语,在这种情况下,指的是一种模型框架instantiates应用对象和配置他们使用.
依赖性注射模式是一种纯粹的爪哇类型的国际奥委会不依靠框架api,从而可以应用到物体,没有意识到of-or可能已经没有知识of-the框架.
配置是通过属性(二传JavaBean注射)或构造函数参数构造器(注).这意味着,应用程序的代码不能实现框架;利用反射界面框架配置.依赖性注射的合作框架等物体或配置参数,没有申请课程需要进行显式lookup-as,例如,在传统的JNDI-based J2EE配置.
依赖性注射模式是一个简单,但却意外地强大、概念.因为这个框架负责解决依赖于合作对象,它能介绍一系列value-adds如间接的方式来支持热交换和codeless一代的代理人,代表远程服务.
面向方面的编程
依赖性注射模式已经走过了很长一段路往交付POJO应用模式,但未能解决一些重要的要求,如申请公开交易management-security检查、风俗缓存、审计、等on-to选定的方法.
透明的坚持不懈的努力,
这个能力是指POJOs持久的关系databases-without stores-typically对象需要作出了重大的object-orientation让步.它的对象关系阻抗匹配与框架负责映射到一个持久对象关系型数据库管理系统,产生了所有必要的结构化查询语言代码来恢复和存储对象.ORM工具使用技术,如反射、动态字节或字节码生成代码,在一个后置处理步骤,提高执行该映射在运行时间.
透明的持续释放的责任领域对象管理持续表现,使他们能够包含业务逻辑,在适当的时候,坚持运作.它还可以大大提高生产率,消除需要写罗嗦,往往容易出错的毅力的代码.坚持是一种透明的目标,而不是现实,但最好的解决方案来接近实现ORM.
反演的控制
一个POJO模型可应用于商业服务,透过国际奥委会的容器.这些让商业对象被配置在运行,并享受声明服务,如自动交易管理.反演的控制是一种被广泛使用的术语,在这种情况下,指的是一种模型框架instantiates应用对象和配置他们使用.
依赖性注射模式是一种纯粹的爪哇类型的国际奥委会不依靠框架api,从而可以应用到物体,没有意识到of-or可能已经没有知识of-the框架.
配置是通过属性(二传JavaBean注射)或构造函数参数构造器(注).这意味着,应用程序的代码不能实现框架;利用反射界面框架配置.依赖性注射的合作框架等物体或配置参数,没有申请课程需要进行显式lookup-as,例如,在传统的JNDI-based J2EE配置.
依赖性注射模式是一个简单,但却意外地强大、概念.因为这个框架负责解决依赖于合作对象,它能介绍一系列value-adds如间接的方式来支持热交换和codeless一代的代理人,代表远程服务.
面向方面的编程
依赖性注射模式已经走过了很长一段路往交付POJO应用模式,但未能解决一些重要的要求,如申请公开交易management-security检查、风俗缓存、审计、等on-to选定的方法.