public class vortexDriver
extends java.lang.Object
implements java.sql.Driver
The interface that every driver class must implement.
Constructor and Description |
---|
vortexDriver()
Constructs a new driver and registers it with
java.sql.DriverManager.registerDriver()
|
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsURL(java.lang.String url)
'jdbc:vortex' is the only URL accepted here
|
java.sql.Connection |
connect(java.lang.String url,
java.util.Properties info)
Try to make a database connection to the given URL.
|
int |
getMajorVersion()
Get the driver's major version number.
|
int |
getMinorVersion()
Get the driver's minor version number.
|
java.util.logging.Logger |
getParentLogger()
Return the parent Logger of all the Loggers used by this driver.
|
java.sql.DriverPropertyInfo[] |
getPropertyInfo(java.lang.String url,
java.util.Properties info)
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.
|
boolean |
jdbcCompliant()
JDBC compliance requires full support for the JDBC API and full support
for SQL 92 Entry Level.
|
public vortexDriver() throws java.sql.SQLException
java.sql.SQLException
- thrown in the event the driver regist failspublic java.sql.Connection connect(java.lang.String url, java.util.Properties info) throws java.sql.SQLException
The driver will raise a SQLException if it is the right driver to connect to the given URL, but has trouble connecting to the database.
The java.util.Properties argument can be used to passed arbitrary string tag/value pairs as connection arguments.
login | for database login such as 'scott/tiger' or 'sa/sa/master' |
port | for port number connect to VORTEX server eg. 1958 |
host | for the host machine name/IP address |
service | for the host server program, eg. 'VTX4' |
environs | (optional) for the environment variables, eg. 'ORACLE_SID=?', 'INFORMIXDIR=?' |
fetch_size | (optional) for query fetch buffer size. default: 8192 |
max_column | (optional) maximum columns allowed. default: 256 |
db_cursor | (optional) database cursor allocated. default: 128 |
logical_cursor | (optional) logical cursor allocated. default: 1024 |
user | (optional) operating system login user name. |
password | (optional) operating system login password name. |
connect_timeout | (optional) operating system login password name. |
read_timeout | (optional) operating system login password name. |
write_timeout | (optional) operating system login password name. |
connect
in interface java.sql.Driver
url
- The URL of the database to connect to
jdbc:vortex://[database login][embedded props]@[port:][host][!service][,environs]For more details concerning the login string and info parameters, see the Vortex Installation and Operations Manual.
info
- a list of string tag/value pairs as
connection argumentsjava.sql.SQLException
- thrown in the event the connection failspublic boolean acceptsURL(java.lang.String url) throws java.sql.SQLException
acceptsURL
in interface java.sql.Driver
url
- The URL of the database.java.sql.SQLException
- Not applypublic java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url, java.util.Properties info)
getPropertyInfo
in interface java.sql.Driver
url
- The URL of the database to connect to.info
- A proposed list of tag/value pairs that will be sent on
connect open.java.sql.SQLException
- Not applypublic int getMajorVersion()
getMajorVersion
in interface java.sql.Driver
public int getMinorVersion()
getMinorVersion
in interface java.sql.Driver
public boolean jdbcCompliant()
jdbcCompliant
in interface java.sql.Driver
public java.util.logging.Logger getParentLogger() throws java.sql.SQLFeatureNotSupportedException
getParentLogger
in interface java.sql.Driver
java.sql.SQLFeatureNotSupportedException
- - if the driver does not use java.util.logging.Updated June 17 2024