Class DriverPropertyInfo

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.

Fields

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.

Constructors

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



JDBC 3. 0. JAVA Database Connectivity
JDBC 3: Java Database Connectivity
ISBN: 0764548751
EAN: 2147483647
Year: 2002
Pages: 148

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net