public class DriverPropertyInfo extends Object
用于进行连接的驱动程序属性。 DriverPropertyInfo课程仅对需要通过方法getDriverProperties与驱动程序进行getDriverProperties以发现和提供连接属性的高级程序员感兴趣。
| Modifier and Type | Field and Description |
|---|---|
String[] |
choices
如果可以从特定值集合中选择字段 DriverPropertyInfo.value的值,则可能的值的数组;
否则为空。
|
String |
description
属性的简要说明,可能为null。
|
String |
name
物业的名称。
|
boolean |
required
required字段是
true如果在
Driver.connect和
false中必须为此属性提供一个值。
|
String |
value
基于提供给方法
getPropertyInfo ,Java环境和驱动程序提供的默认值,
value字段指定了该属性的当前值。
|
| Constructor and Description |
|---|
DriverPropertyInfo(String name, String value)
构造具有给定名称和值的
DriverPropertyInfo对象。
|
public String name
public String description
public boolean required
required字段是
true如果必须为该属性期间被供给的值
Driver.connect和
false否则。
public String value
getPropertyInfo ,Java环境和驱动程序提供的默认值, value字段指定了属性的当前值。
如果没有值,则该字段可以为null。
public String[] choices
DriverPropertyInfo.value的值可以从特定值集合中选择,则可能值的数组;
否则为空。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.