gpt4 book ai didi

java - Java 中的数据集类?

转载 作者:搜寻专家 更新时间:2023-10-30 19:45:56 25 4
gpt4 key购买 nike

有谁知道 Java 中是否有像 .Net 中那样的 DataSet 类?我熟悉 EJB3 和处理数据的“java 方式”。然而,我真的还是怀念DataSet类提供的数据库查询、xml和对象之间的无缝集成。有没有人找到DataSet(包括DataTable、DataRow等)的Java实现?

编辑:此外,如果有人有 DataSet 的 java 风格的教程,请分享一个链接。

最佳答案

你看过javax.sql.rowset.WebRowSet了吗? ?

来自 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 - Java 中的数据集类?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1194971/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com