Package totalcross.sql
Class DriverPropertyInfo
- java.lang.Object
-
- totalcross.sql.DriverPropertyInfo
-
public class DriverPropertyInfo extends java.lang.ObjectThis class holds a driver property that can be used for querying or setting driver configuration parameters.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String[]choicesIf values are restricted to certain choices, this is the list of valid ones.java.lang.StringdescriptionA description of the property, possiblynull.java.lang.StringnameThe name of the property.booleanrequiredA flag indicating whether or not a value for this property is required in order to connect to the database.java.lang.StringvalueThis is the value of the property.
-
Constructor Summary
Constructors Constructor Description DriverPropertyInfo(java.lang.String name, java.lang.String value)This method initializes a new instance ofDriverPropertyInfowith the specified name and value.
-
-
-
Field Detail
-
name
public java.lang.String name
The name of the property.
-
description
public java.lang.String description
A description of the property, possiblynull.
-
required
public boolean required
A flag indicating whether or not a value for this property is required in order to connect to the database.
-
value
public java.lang.String value
This is the value of the property.
-
choices
public java.lang.String[] choices
If values are restricted to certain choices, this is the list of valid ones. Otherwise it isnull.
-
-
Constructor Detail
-
DriverPropertyInfo
public DriverPropertyInfo(java.lang.String name, java.lang.String value)This method initializes a new instance ofDriverPropertyInfowith the specified name and value. All other fields are defaulted.- Parameters:
name- The name of the property.value- The value to assign to the property.
-
-