有谁知道 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/