FileDocCategorySizeDatePackage
DriverPropertyInfo.javaAPI DocAndroid 1.5 API2604Wed May 06 22:41:06 BST 2009java.sql

DriverPropertyInfo

public class DriverPropertyInfo extends Object
A class holding information about driver properties of a database connection. This class is returned by the {@link Driver#getPropertyInfo(String, java.util.Properties)} method and allows for the advanced connection handling.
since
Android 1.0

Fields Summary
public String[]
choices
If the value member can be chosen from a set of possible values, they are contained here. Otherwise choices is {@code null}.
public String
description
A description of the property. May be {@code null}.
public String
name
The name of the property.
public boolean
required
{@code True} when the value member must be provided during {@code Driver.connect}. {@code False} otherwise.
public String
value
The current value associated with this property. It is depending on the data gathered by the {@code getPropertyInfo} method, the general Java environment and the driver's default values.
Constructors Summary
public DriverPropertyInfo(String name, String value)
Creates a {@code DriverPropertyInfo} instance with the supplied name and value. Other class members take their default values.

param
name The property name.
param
value The property value.
since
Android 1.0

        this.name = name;
        this.value = value;
        this.choices = null;
        this.description = null;
        this.required = false;
    
Methods Summary