关于 JDBC 行集
我知道 RowSet 是什么以及所有;我想知道的是它是否可以正常工作并且已经被接受,或者它是否仍然存在错误并且没有像经典的 ResultSet 那样被广泛接受。到目前为止,我觉得还不错,但我想听听对此主题更有经验的看法。
i know about what a RowSet is and all; what i would like to know is if it works properly and is accepted already, or if it still has it's bugs and isn't as widely accepted as the classic ResultSet. it looks good to me so far, but i want to hear more experienced views on the subject.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为有两个因素可以决定您的 RowSet 是否适合您:
1)您能否在内存中保存整个结果?有时您需要一次一行地解析结果集,而不能一次将整个结果放入内存中。
2) 您是否测试过 JDBC 驱动程序的 RowSet 行为?
我认为#2 是你提出问题的地方。事实是,如果给定的 RowSet 是健壮的并且已准备好生产,那么它基本上是依赖于实现的。理论上,您也可以使用来自 JDBC 驱动程序之外的不同供应商的 RowSet 实现,并且这应该也能工作。
I think there are two factors in deciding if you RowSet is right for you:
1) Can you have the whole result in memory? Sometimes you need to parse the result set one row at a time and can't just get the whole thing in memory at once.
2) Have you tested your JDBC driver for the behavior with RowSet?
I think #2 is where you start with your question. The truth is that it is basically implementation dependent if a given RowSet is robust and production ready. In theory, you can use a RowSet implementation from a different vendor than the JDBC driver as well, and that should work as well.
RowSet
所有 JDBC 程序员。不再
连接对象、语句
对象,只需一个 RowSet 即可
为你做一切。
网络上的数据。他们还可以
用于提供可滚动的结果
集或可更新结果集时
底层 JDBC 驱动程序不
支持他们。
属性和事件模型
通知,它是一个JavaBeans
可以组合的组件
应用程序中的其他组件。
实现来填充不同的
需要。这些实现落下
分为两大类,行集
那些相连的以及那些
已断开连接。
行集教程
RowSet
all JDBC programmers. No more
Connection objects, statement
objects, just a single RowSet will
do everything for you.
data over a network. They can also
be used to provide scrollable result
sets or updatable result sets when
the underlying JDBC driver does not
support them.
model for properties and event
notification, it is a JavaBeans
component that can be combined with
other components in an application.
implementations to fill different
needs. These implementations fall
into two broad categories, rowsets
that are connected and those that
are disconnected.
RowSet Tutorial