模块 java.sql
 java.sql

类 DriverPropertyInfo

java.lang.Object
java.sql.DriverPropertyInfo

public class DriverPropertyInfo extends Object

用于建立连接的驱动程序属性。 DriverPropertyInfo 类仅对需要通过方法 getDriverProperties 与驱动程序交互以发现和提供连接属性的高级程序员感兴趣。

自从:
1.1
  • 字段摘要

    字段
    修饰符和类型
    Field
    描述
    如果可以从一组特定的值中选择字段 DriverPropertyInfo.value 的值,则可能值的数组;否则为空。
    属性的简要说明,可以为 null。
    属性的名称。
    boolean
    如果在 Driver.connect 期间必须为此属性提供值,则 required 字段为 true,否则为 false
    value 字段根据提供给方法 getPropertyInfo 的信息、Java 环境和驱动程序提供的默认值的组合指定属性的当前值。
  • 构造方法总结

    构造方法
    构造方法
    描述
    构造具有给定名称和值的 DriverPropertyInfo 对象。
  • 方法总结

    在类 java.lang.Object 中声明的方法

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细信息

    • name

      public String  name
      属性的名称。
    • description

      public String  description
      属性的简要说明,可以为 null。
    • required

      public boolean required
      如果在 Driver.connect 期间必须为此属性提供值,则 required 字段为 true,否则为 false
    • value

      public String  value
      value 字段根据提供给方法 getPropertyInfo 的信息、Java 环境和驱动程序提供的默认值的组合指定属性的当前值。如果不知道值,则此字段可能为空。
    • choices

      public String [] choices
      如果可以从一组特定的值中选择字段 DriverPropertyInfo.value 的值,则可能值的数组;否则为空。
  • 构造方法详细信息

    • DriverPropertyInfo

      public DriverPropertyInfo(String  name, String  value)
      构造具有给定名称和值的 DriverPropertyInfo 对象。 descriptionchoices 被初始化为 nullrequired 被初始化为 false
      参数:
      name - 属性的名称
      value - 当前值,可能为空