Package java.sql
Class DriverPropertyInfo
- java.lang.Object
-
- java.sql.DriverPropertyInfo
-
public class DriverPropertyInfo extends Object
A class holding information about driver properties of a database connection. This class is returned by theDriver.getPropertyInfo(String, java.util.Properties)method and allows for the advanced connection handling.
-
-
Field Summary
Fields Modifier and Type Field Description String[]choicesIf the value member can be chosen from a set of possible values, they are contained here.StringdescriptionA description of the property.StringnameThe name of the property.booleanrequiredtruewhen the value member must be provided duringDriver.connect.StringvalueThe current value associated with this property.
-
Constructor Summary
Constructors Constructor Description DriverPropertyInfo(String name, String value)Creates aDriverPropertyInfoinstance with the supplied name and value.
-
-
-
Field Detail
-
choices
public String[] choices
If the value member can be chosen from a set of possible values, they are contained here. Otherwise choices isnull.
-
description
public String description
A description of the property. May benull.
-
name
public String name
The name of the property.
-
required
public boolean required
truewhen the value member must be provided duringDriver.connect.falseotherwise.
-
value
public String value
The current value associated with this property. It is depending on the data gathered by thegetPropertyInfomethod, the general Java environment and the driver's default values.
-
-