关于 JDBC 行集

发布于 2024-08-03 08:49:11 字数 117 浏览 2 评论 0原文

我知道 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

天气好吗我好吗 2024-08-10 08:49:11

我认为有两个因素可以决定您的 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.

合约呢 2024-08-10 08:49:11

RowSet

  1. RowSet 让生活变得更加轻松
    所有 JDBC 程序员。不再
    连接对象、语句
    对象,只需一个 RowSet 即可
    为你做一切。
  2. 行集使发送表格变得容易
    网络上的数据。他们还可以
    用于提供可滚动的结果
    集或可更新结果集时
    底层 JDBC 驱动程序不
    支持他们。
  3. RowSet对象遵循JavaBeans
    属性和事件模型
    通知,它是一个JavaBeans
    可以组合的组件
    应用程序中的其他组件。
  4. 行集可能有许多不同的
    实现来填充不同的
    需要。这些实现落下
    分为两大类,行集
    那些相连的以及那些
    已断开连接。

行集教程

RowSet

  1. RowSet makes life a lot easier for
    all JDBC programmers. No more
    Connection objects, statement
    objects, just a single RowSet will
    do everything for you.
  2. Rowsets make it easy to send tabular
    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.
  3. RowSet object follows the JavaBeans
    model for properties and event
    notification, it is a JavaBeans
    component that can be combined with
    other components in an application.
  4. Rowsets may have many different
    implementations to fill different
    needs. These implementations fall
    into two broad categories, rowsets
    that are connected and those that
    are disconnected.

RowSet Tutorial

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文