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 the
Driver.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. -
Method Summary
-
Field Details
-
choices
If the value member can be chosen from a set of possible values, they are contained here. Otherwise choices isnull. -
description
A description of the property. May benull. -
name
The name of the property. -
required
public boolean requiredtruewhen the value member must be provided duringDriver.connect.falseotherwise. -
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.
-
-
Constructor Details
-
DriverPropertyInfo
Creates aDriverPropertyInfoinstance with the supplied name and value. Other class members take their default values.- Parameters:
name- The property name.value- The property value.
-