public class DriverPropertyInfo extends Object
The DriverPropertyInfo class is used to specify one tag name/value pair plus its description, possible choices for values, and so on. You can use java.sql.Driver. getPropertyInfo() to obtain an array of DriverPropertyInfo objects. Note the public variables of DriverPropertyInfo.
choices
public String choices[]
This is an array of the possible values for the property. If no choice is possible, choices[] is null.
description
public String description
This is a description of the property.
name
public String name
This is the name of the property.
required
public boolean required
This variable is set to true if a value must be supplied for the property during Driver.connect. The property is optional in the opposite case.
value
public String value
This string contains the current value of the property. It may be null if no value is known.
DriverPropertyInfo
public DriverPropertyInfo(String name, String value)
This constructs a DriverPropertyInfo object, giving it a name and a value.
Parameters:
name: | The name of the property |
value: | The value of the property |