arXivDaily arXiv每日学术速递 周一至周五更新
arXiv cs/0306013cs.DB
收藏

Java数据对象的透明持久化

Transparent Persistence with Java Data Objects

Julius Hrivnac

摘要:

灵活和高性能的持久化服务是任何HEP软件框架的必要组件。构建一个模块化的、非侵入式的、高性能的持久化组件是一项非常困难的任务。在过去,通常需要牺牲模块化来实现可接受的性能。这导致了整个框架对它们的持久化子系统的强烈依赖。软件技术的最新发展使得建立一个持久化服务成为可能,它可以透明地从其他框架中使用。这样的服务不会对整个框架架构施加很强的架构约束,同时满足高性能要求。Java数据对象标准(JDO)已经在几乎所有主要数据库中实现。它为任何Java对象(内部和外部)提供了真正透明的持久化。其他语言的对象可以通过透明代理来处理。JDO只是旧数据库上的一个薄层,不会引起任何显著的性能下降。面向方面的编程(AOP)也可以将持久化视为应用程序框架的一个正交方面,而不会用持久化特定的概念污染它。所有这些技术都主要(或仅)是为Java环境开发的。然而,可以将它们透明地连接到用其他语言构建的框架,例如C++。灵活和非侵入式持久化模块的全功能原型已经为其他几个包构建,例如FreeHEP AIDA和LCG Pool AttributeSet(包Indicium)。

英文摘要:

Flexible and performant Persistency Service is a necessary component of any HEP Software Framework. The building of a modular, non-intrusive and performant persistency component have been shown to be very difficult task. In the past, it was very often necessary to sacrifice modularity to achieve acceptable performance. This resulted in the strong dependency of the overall Frameworks on their Persistency subsystems. Recent development in software technology has made possible to build a Persistency Service which can be transparently used from other Frameworks. Such Service doesn't force a strong architectural constraints on the overall Framework Architecture, while satisfying high performance requirements. Java Data Object standard (JDO) has been already implemented for almost all major databases. It provides truly transparent persistency for any Java object (both internal and external). Objects in other languages can be handled via transparent proxies. Being only a thin layer on top of a used database, JDO doesn't introduce any significant performance degradation. Also Aspect-Oriented Programming (AOP) makes possible to treat persistency as an orthogonal Aspect of the Application Framework, without polluting it with persistence-specific concepts. All these techniques have been developed primarily (or only) for the Java environment. It is, however, possible to interface them transparently to Frameworks built in other languages, like for example C++. Fully functional prototypes of flexible and non-intrusive persistency modules have been build for several other packages, as for example FreeHEP AIDA and LCG Pool AttributeSet (package Indicium).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑