Java中的DataSet类? [英] DataSet class in Java?

查看:1299
本文介绍了Java中的DataSet类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道Java中是否有DataSet类,就像在.Net中一样?我熟悉EJB3和数据的java方式。但是,我仍然错过数据库查询,xml和DataSet类提供的对象之间的无缝集成。有没有人发现DataSet的Java实现(包括DataTable,DataRow等)?



编辑:还有如果有人为JavaSet的DataSet教程,请分享一个链接

解决方案

你看过 javax.sql.rowset.WebRowSet



从Javadocs :


WebRowSetImpl提供
标准参考实现
,如果需要,可以扩展。



标准的WebRowSet XML模式
定义可以在
下面找到:

  http://java.sun.com/xml/ns/jdbc/webrowset.xsd 



描述了在描述
RowSet对象时需要的标准XML文档
格式,并且必须使用
作为
的所有标准实现WebRowSet接口确保
的互操作性。此外,
WebRowSet模式使用特定的SQL / XML
模式注释,从而确保
更大的跨平台
互操作性。这是目前正在进行的ISO
组织的努力
。 SQL / XML定义
可从以下URI获取:

  http://standards.iso.org/ iso / 9075/2002/12 / sqlxml 



Does anyone know if there is a DataSet class in Java like there is in .Net? I am familiar with EJB3 and the "java way" of doing data. However, I really still miss the seamless integration between database queries, xml and objects provided by the DataSet class. Has anyone found a Java implementation of DataSet (including DataTable, DataRow, etc)?

Edit: Also if anyone has tutorials for the java flavor of DataSet, please share a link.

解决方案

Have you looked at javax.sql.rowset.WebRowSet?

From the Javadocs:

The WebRowSetImpl provides the standard reference implementation, which may be extended if required.

The standard WebRowSet XML Schema definition is available at the following URI:

   http://java.sun.com/xml/ns/jdbc/webrowset.xsd

It describes the standard XML document format required when describing a RowSet object in XML and must be used be all standard implementations of the WebRowSet interface to ensure interoperability. In addition, the WebRowSet schema uses specific SQL/XML Schema annotations, thus ensuring greater cross platform inter-operability. This is an effort currently under way at the ISO organization. The SQL/XML definition is available at the following URI:

   http://standards.iso.org/iso/9075/2002/12/sqlxml

这篇关于Java中的DataSet类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆