|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vortex.sql.vortexDriver
public class vortexDriver
The interface that every driver class must implement.
Constructor Summary | |
---|---|
vortexDriver()
Constructs a new driver and registers it with java.sql.DriverManager.registerDriver() |
Method Summary | |
---|---|
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.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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public vortexDriver() throws java.sql.SQLException
java.sql.SQLException
- thrown in the event the driver regist failsMethod Detail |
---|
public 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]@[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 arguments
java.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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |