java.sql
Class DriverPropertyInfo

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.sql.DriverPropertyInfo

public class DriverPropertyInfo
extends Object sample code for java.lang.Object definition code for java.lang.Object

Driver properties for making a connection. The DriverPropertyInfo class is of interest only to advanced programmers who need to interact with a Driver via the method getDriverProperties to discover and supply properties for connections.


Field Summary
 String sample code for java.lang.String definition code for java.lang.String [] choices sample code for java.sql.DriverPropertyInfo.choices definition code for java.sql.DriverPropertyInfo.choices
          An array of possible values if the value for the field DriverPropertyInfo.value may be selected from a particular set of values; otherwise null.
 String sample code for java.lang.String definition code for java.lang.String description sample code for java.sql.DriverPropertyInfo.description definition code for java.sql.DriverPropertyInfo.description
          A brief description of the property, which may be null.
 String sample code for java.lang.String definition code for java.lang.String name sample code for java.sql.DriverPropertyInfo.name definition code for java.sql.DriverPropertyInfo.name
          The name of the property.
 boolean required sample code for java.sql.DriverPropertyInfo.required definition code for java.sql.DriverPropertyInfo.required
          The required field is true if a value must be supplied for this property during Driver.connect and false otherwise.
 String sample code for java.lang.String definition code for java.lang.String value sample code for java.sql.DriverPropertyInfo.value definition code for java.sql.DriverPropertyInfo.value
          The value field specifies the current value of the property, based on a combination of the information supplied to the method getPropertyInfo, the Java environment, and the driver-supplied default values.
 
Constructor Summary
DriverPropertyInfo sample code for java.sql.DriverPropertyInfo.DriverPropertyInfo(java.lang.String, java.lang.String) definition code for java.sql.DriverPropertyInfo.DriverPropertyInfo(java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  name, String sample code for java.lang.String definition code for java.lang.String  value)
          Constructs a DriverPropertyInfo object with a name and value; other members default to their initial values.
 
Method Summary
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

name sample code for java.sql.DriverPropertyInfo.name

public String sample code for java.lang.String definition code for java.lang.String  name
The name of the property.


description sample code for java.sql.DriverPropertyInfo.description

public String sample code for java.lang.String definition code for java.lang.String  description
A brief description of the property, which may be null.


required sample code for java.sql.DriverPropertyInfo.required

public boolean required
The required field is true if a value must be supplied for this property during Driver.connect and false otherwise.


value sample code for java.sql.DriverPropertyInfo.value

public String sample code for java.lang.String definition code for java.lang.String  value
The value field specifies the current value of the property, based on a combination of the information supplied to the method getPropertyInfo, the Java environment, and the driver-supplied default values. This field may be null if no value is known.


choices sample code for java.sql.DriverPropertyInfo.choices

public String sample code for java.lang.String definition code for java.lang.String [] choices
An array of possible values if the value for the field DriverPropertyInfo.value may be selected from a particular set of values; otherwise null.

Constructor Detail

DriverPropertyInfo sample code for java.sql.DriverPropertyInfo(java.lang.String, java.lang.String) definition code for java.sql.DriverPropertyInfo(java.lang.String, java.lang.String)

public DriverPropertyInfo(String sample code for java.lang.String definition code for java.lang.String  name,
                          String sample code for java.lang.String definition code for java.lang.String  value)
Constructs a DriverPropertyInfo object with a name and value; other members default to their initial values.

Parameters:
name - the name of the property
value - the current value, which may be null