O'Reilly logo

Database Programming with JDBC & Java, Second Edition by George Reese

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

DriverPropertyInfo

Synopsis

Class Name: java.sql.DriverPropertyInfo

Superclass: None

Immediate Subclasses: None

Interfaces Implemented: None

Availability: JDK 1.1

Description

This class provides information required by a driver to connect to a database. Only development tools are likely to require this class. It has no methods, but simply a list of public attributes.

Class Summary

public class DriverPropertyInfo {
    public String[] choices;
    public String description;
    public String name;     
    public boolean required; 
    public String value;
    public DriverPropertyInfo(String name, String value);
}

Object Attributes

choices

public String[] choices
Description

This attribute provides a list of choices from which a user may be prompted to specify a value for this property. This value can be null.

description

public String description
Description

This attribute gives a brief description of the property or null.

name

public String name
Description

This attribute gives the name of the property.

required

public boolean required
Description

This attribute indicates whether or not this property must be set in order to make a connection.

value

public String value
Description

This attribute gives the current value of the property or null, if no current value is set.

Object Constructors

DriverPropertyInfo( )

public DriverPropertyInfo(String name, String value)
Description

This constructor creates a new DriverPropertyInfo object with the name and value attributes set to the specified parameters. All other values are set to their default ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required