Neoview JDBC Type 4 Driver API Reference (R2.2, R2.3, R2.4, R2.5)

Attempts to make an NDCS connection to the given URL. The Type 4 driver returns "null" when it determines
that the driver is the wrong kind of driver to connect to the given URL. This occurence is common; for example,
when the JDBC driver manager is requested to connect to a given URL, the driver manager it passes the URL to
each loaded driver in turn. The Type 4 driver throws an SQLException when it has trouble connecting to NDCS.
You can use the java.util.Properties argument to pass arbitrary string name-value pairs as connection
arguments. Typically, you should include "user" and "password" properties in the Properties object.
Specified by:
connect in interface java.sql.Driver
Parameters:
url - The URL string of format jdbc:hpt4jdbc://host:port/:
info
- java.util.Properties object containing name-value pair.
Returns:
The HPT4Connection object.
Throws:
java.sql.SQLException - When an error occurs connecting to NDCS.
See Also:
T4Properties
getMajorVersion
public int getMajorVersion()
Retrieves the driver's major JDBC version number. For the Type 4 Driver, the number should be 3.
Specified by:
getMajorVersion in interface java.sql.Driver
Returns:
3.
getMinorVersion
public int getMinorVersion()
Gets the Type 4 driver's minor version number. For the Type 4 driver, the number should be 11.
Specified by:
getMinorVersion in interface java.sql.Driver
Returns:
11
getPropertyInfo
public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url,
java.util.Properties info)
throws java.sql.SQLException
Gets information about the possible properties for the Type 4 driver. The getPropertyInfo method is intended
to allow a generic GUI tool to determine the properties that the tool should prompt from a human to get enough