Driver.getPropertyInfo
Interface Overview | Interface Members | This Package | All Packages
Syntax
public abstract DriverPropertyInfo[] getPropertyInfo( String url**, Properties** info ) throws SQLException
Parameters
- url
The URL of the database to connect to. - info
A proposed list of tag/value pairs that will be sent on connect open.
Returns
An array of DriverPropertyInfo objects describing possible properties. This array may be an empty array if no properties are required.
Description
The getPropertyInfo method is intended to allow a generic GUI tool to discover what properties it should prompt a human for in order to get enough information to connect to a database. Note that depending on the values the human has supplied so far, additional values may become necessary, so it may be necessary to iterate though several calls to getPropertyInfo.
Exceptions
SQLException if a database-access error occurs.