arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.20530cs.PL
收藏

持久对象演化语言框架

Evolution Language Framework for Persistent Objects

Tetsuo Kamina, Tomoyuki Aotani, Hidehiko Masuhara

AI总结:

本文提出一种支持多模式版本数据管理的持久对象演化语言,在抽象与具体两层定义演化操作,保持程序行为,并覆盖类层次变化,是首个抽象级持久对象演化语言。

摘要:

背景:多模式版本数据管理(MSVDM)是一种数据库技术,能够同时支持一个数据库的多个模式版本。借助该技术,一个软件系统的多个版本可以共存并交换数据,即使系统的数据结构随版本演化。问题:虽然已有针对关系数据库的MSVDM理论和实现,但它们不能直接应用于持久对象。由于持久对象通常通过对象-关系映射(OR映射)实现,我们需要一个合适的抽象层次来描述数据结构的演化,并在不同版本之间转换数据访问。方法:我们提出了一种新的演化语言,由一组演化操作组成,每个操作表示对源代码的一次修改,并隐式定义了相应的数据库模式修改。鉴于从持久对象到数据库存在多种映射机制,我们将演化语言设计为两个层次。在抽象层次,它处理诸如重构、添加类和字段等场景。在具体层次,我们分别针对不同的映射机制提供定义,利用支持MSVDM的现有数据库演化语言。知识:我们的演化语言旨在支持先前工作中提出的现有演化操作。此外,它引入了对类层次结构变化相关操作的支持,这些操作是先前方法未涵盖的。使用我们的提议,两种具体的映射机制,即类似JPA的映射和信号类,可以分别提供。此外,我们的演化语言保持了程序行为,并涵盖了实践中常见的演化操作。基础:这项工作得到了目标抽象核心语言和所提出的演化语言的形式定义、若干证明我们提议合理性的定理的表述以及这些定理的证明的支持。此外,进行了一项实证研究,以调查三个开源项目的演化历史。重要性:据我们所知,我们的提议是第一个支持MSVDM的持久对象演化语言。此外,它是第一个在抽象层次定义的演化语言。通过分别定义映射,我们可以将其应用于构建在SQL之上的各种持久对象机制。

英文摘要:

Context: Multi-schema-version data management (MSVDM) is the database technology that simultaneously supports multiple schema versions of one database. With the technology, multiple versions of one software system can co-exist and exchange data even when the system's data structure evolves along with versions. Inquiry: While there have been developed MSVDM theories and implementations for relational databases, they are not directly applicable to persistent objects. Since persistent objects are commonly implemented by means of object-relational mapping (OR-mapping), we need a right level of abstraction in order to describe evolution of data structures and translate data accesses in between different versions. Approach: We propose a new evolution language consisting of a set of evolution operations, each denoting a modification of the source code and implicitly defining the corresponding modification to the database schema. Given the existence of multiple mapping mechanisms from persistent objects to databases, we designed the evolution language at two levels. At the abstract level, it handles scenarios such as refactoring and adding classes and fields. At the concrete level, we provide definitions for different mapping mechanisms separately, leveraging the existing database evolution language that supports MSVDM. Knowledge: Our evolution language is designed to support existing evolution operations proposed in prior work. Additionally, it introduces support for operations related to class hierarchy changes, which are not covered by previous approaches. Using our proposal, two concrete mapping mechanisms, namely, a JPA-like mapping and signal classes, can be provided separately. Furthermore, our evolution language preserves program behavior and covers common evolution operations in practice. Grounding: This work is supported by the formal definition of both the target abstract core language and the proposed evolution language, the formulation of several theorems demonstrating the soundness of our proposals, and the proofs of these theorems. Additionally, an empirical study was conducted to investigate the evolution histories of three open-source projects. Importance: To the best of our knowledge, our proposal is the first evolution language for persistent objects that supports MSVDM. Moreover, it is the first evolution language defined at an abstract level. By defining mappings separately, we can apply it to a wide range of persistent object mechanisms built on top of SQL.

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

↑