# DriverPropertyInfo

public class **DriverPropertyInfo** extends [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)  
<br />

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

|---|---|---|
| public [String\[\]](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [choices](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/DriverPropertyInfo.html#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. |
| public [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [description](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/DriverPropertyInfo.html#description) | A brief description of the property, which may be null. |
| public [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [name](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/DriverPropertyInfo.html#name) | The name of the property. |
| public boolean | [required](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/DriverPropertyInfo.html#required) | The `required` field is `true` if a value must be supplied for this property during `Driver.connect` and `false` otherwise. |
| public [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [value](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/DriverPropertyInfo.html#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. |

### Public Constructor Summary

|---|---|
|   | [DriverPropertyInfo](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/DriverPropertyInfo.html#DriverPropertyInfo(java.lang.String,%20java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) value) Constructs a `DriverPropertyInfo` object with a given name and value. |

### Inherited Method Summary

From class [java.lang.Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)

|---|---|
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [clone](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#clone())() Creates and returns a copy of this `Object`. |
| boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) obj) Compares this instance with the specified object and indicates if they are equal. |
| void | [finalize](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#finalize())() Invoked when the garbage collector has detected that this instance is no longer reachable. |
| final [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<?\> | [getClass](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#getClass())() Returns the unique instance of `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html` that represents this object's class. |
| int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#hashCode())() Returns an integer hash code for this object. |
| final void | [notify](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notify())() Causes a thread which is waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| final void | [notifyAll](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notifyAll())() Causes all threads which are waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#toString())() Returns a string containing a concise, human-readable description of this object. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long,%20int))(long timeout, int nanos) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long))(long timeout) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait())() Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object. |

## Fields

#### public [String\[\]](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**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.

#### public [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**description**

A brief description of the property, which may be null.

#### public [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**name**

The name of the property.

#### public boolean
**required**

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

#### public [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**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.

## Public Constructors

#### public
**DriverPropertyInfo**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) value)

Constructs a `DriverPropertyInfo` object with a given
name and value. The `description` and `choices`
are intialized to `null` and `required` is initialized
to `false`.

##### Parameters

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