只有高级程序员对 DriverPropertyInfo 类感兴趣,他们需要借助于
getDriverPropertis 与驱动器交互,以发现和提供连接特性。
类 java.sql.DriverPropertyInfo
java.lang.Object
|
+----java.sql.DriverPropertyInfo
public class DriverPropertyInfo
extends Object
变量索引
- choices
- 如果该数值可以从一个特定数值集中选中,那么它是一个可能值数组。
- description
- 特性的简单说明。
- name
- 特性名称。
- required
- 如果在连接驱动器过程中必须为此特性提供一个数值,那么“required"
值为 true 。
- value
- 根据提供给 getPropertyInfo 的信息、Java 环境和驱动器指定的缺省值的组合,"value" 指定特性的当前值。
构造子索引
- DriverPropertyInfo(String, String)
- 用名称和数值构造 DriverPropertyInfo;其它成员缺省为初始值。
变量
name
public String name
- 特性名称。
description
public String description
- 特性的简单说明。 该值可能为零。。
必需的
public boolean required
- 如果在连接驱动器过程中必须为此特性提供一个数值,那么“required"
值为 true 。 否则,特性是任选的。
数值
public String value
- 根据提供给 getPropertyInfo 的信息,Java 环境和驱动器指定的缺省值的组合,"value" 指定特性的当前值。 如果不知道数值,它可能为空。
choices
public String choices[]
- 如果该数值可以从一个特定数值集中选中,那么它是一个可能值数组。 否则,它必须为空。
构造子
DriverPropertyInfo
public DriverPropertyInfo(String name,
String value)
- 用名称和数值构造 DriverPropertyInfo;其它成员缺省为初始值。
- 参数:
- name -属性名
- value - 当前值,可能为空