我正在尝试学习 Java 中的 CachedRowSet,并且正在阅读一些有关它的教程。 我经常遇到引用实现术语。
例如
Alternatively, you can use the constructor from the CachedRowSet implementation of your JDBC driver. However, implementations of the RowSet interface will differ from the reference implementation. These implementations will have different names and constructors. For example, the Oracle JDBC driver's implementation of the CachedRowSet interface is named oracle.jdbc.rowset.OracleCachedRowSet.
谁能解释一下?
请注意,我在网上发现了一些定义太模糊以至于我无法理解。
最佳答案
这意味着应该演示概念的规范的实现。大多数情况下,它是由设计规范的同一个人/公司实现的。
您可能会将规范视为允许其他可能的实现与世界其他地方兼容所需的标准。以及概念验证类软件的引用实现,应该展示如何做到这一点并鼓励其他人创建自己的实现。
在 JDBC 上下文中,这意味着有一些接口(interface) (CachedRowSet
) 规定了一些方法,并且在 Sun/Oracle 中有对这些接口(interface)的引用实现。
关于java - “Reference implementation” 是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22824843/