Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Fields](https://developer.android.com/reference/java/sql/DriverPropertyInfo#lfields) \| [Ctors](https://developer.android.com/reference/java/sql/DriverPropertyInfo#pubctors) \| [Inherited Methods](https://developer.android.com/reference/java/sql/DriverPropertyInfo#inhmethods)

# DriverPropertyInfo


`
public


class
DriverPropertyInfo
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | java.sql.DriverPropertyInfo |

<br />

*** ** * ** ***

<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.

## Summary

| ### Fields ||
|---|---|
| ` public https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/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. |
| ` public https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/java/sql/DriverPropertyInfo#description` A brief description of the property, which may be null. |
| ` public https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/java/sql/DriverPropertyInfo#name` The name of the property. |
| ` public boolean` | `https://developer.android.com/reference/java/sql/DriverPropertyInfo#required` The `required` field is `true` if a value must be supplied for this property during `Driver.connect` and `false` otherwise. |
| ` public https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/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. |

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/java/sql/DriverPropertyInfo#DriverPropertyInfo(java.lang.String,%20java.lang.String)(https://developer.android.com/reference/java/lang/String name, https://developer.android.com/reference/java/lang/String value) ` Constructs a `DriverPropertyInfo` object with a given name and value. |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` https://developer.android.com/reference/java/lang/Object#finalize()() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait()() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||

## Fields

### choices

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public 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.

<br />

### description

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String description
```

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

<br />

### name

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String name
```

The name of the property.

<br />

### required

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean required
```

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

<br />

### value

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public 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.

<br />

## Public constructors

### DriverPropertyInfo

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public DriverPropertyInfo (String name, 
                String 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`.

<br />

| Parameters ||
|---|---|
| `name` | `String`: the name of the property <br /> |
| `value` | `String`: the current value, which may be null <br /> |