HUNAN UNIVERSITY
毕业设计(论文)
设计论文题目:
基于xml数据交换系统的研究
与实现
基于xml数据交换系统的研究与实现
摘要
各种信息系统烦杂并存,各个系统之间不能互连,信息不能共享,形成一个个的信息孤岛,造成数据不一致,在如今的信息社会中普遍存在。解决这些问题的方法就是进行系统的集成,进行系统集成过程中的一个关键问题就是如何在这些系统之间进行数据的交换。XML标记语言具有跨平台性、自描述性、可交换性等特点,这使得它非常适合于作为异构平台之间数据交换的中介。本文建立了一个数据交换系统,利用XML文件作为一种交换介质来实现多个数据库之间的数据交换。
本系统结合Hibernate的对象-关系映射技术,Xmlbeans的XML模式-对象映射技术以及Java Reflector机制解决XML模式与关系模式之间的映射问题。通过Hibernate把源数据库中的表关系映射到具体的Java对象,通过操作Java对象来处理关系数据库;通过Xmlbeans处理目标XML Schema的结构、元素等信息,建立目标XML模式到Java对象的映射以及XML文件处理对象;再通过反射机制,分析Hibernate映射对象与目标XML模式的Java映射对象,把Hibernate映射对象的数据信息转入目标XML模式的Java映射对象中,这样就能使用Xmlbeans生成基于目标模式的XML文件;最后XML文件处理对象完成XML文件处理,得到目标数据库映射对象,再通过Hibernate存入目标数据库。
本系统以XML文件作为中间数据格式化,完成了在不同的关系型数据之间交换数据,达到数据共享的目的。
关键词:可扩展标识语言、关系型数据库、数据交换、文档类型定义、模式
Research and implement data exchange system based on xml document
Abstract
The coexisted various kinds of information systems have e some information islands, unable to share information。The key to solve these problems is to integrate the systems, of which the key is sue is how to exchange data between the systems. XML is one kind of markup language, with various characteristics such as trams-platform, opening, self-description and exchangeability. So it is a good solution to solve the above-mentioned problem by building a data exchange system based on XML.
This system unifies the object-relations mapping technology of Hibernate, the XML Schema-object mapping technology of Xmlbeans as well as the Java Reflector mechanism to solves the problem between the XML Schema and the relational scheme mapping . Through Hibernate, the table of source database mapped to the concrete Java object, through operates the Java object to process relational database; Through Xmlbeans processing goal XML information and so on Schema structure, element, establishes the goal XML Schema to the Java object mapping as well as the XML file processing object; Through the reflex mechanism, analyzes the Hibernate mapping object and goal XML again the schema
基于xml数据交换系统研究与毕业设计 来自淘豆网m.daumloan.com转载请标明出处.