|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvortex.sql.vortexDriver
public class vortexDriver
| 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 |
|---|
clone, equals, finalize, 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 fails| Method 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. '/usr/trifox/vtxhost.ora'
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 in interface java.sql.Driverurl - The URL of the database to connect to
jdbc:vortex://[database login]@[port:][host][!services][,environs]
For more details concerning the login string and info parameters, see
the Trifox Resource Manual.info - a list of arbitrary string tag/value pairs as
connection arguments; such as "user" and "password" property might
be included.
java.sql.SQLException - thrown in the event the connection fails
public boolean acceptsURL(java.lang.String url)
throws java.sql.SQLException
acceptsURL in interface java.sql.Driverurl - The URL of the database.
java.sql.SQLException - Not apply
public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url,
java.util.Properties info)
throws java.sql.SQLException
getPropertyInfo in interface java.sql.Driverurl - 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.Driverpublic int getMinorVersion()
getMinorVersion in interface java.sql.Driverpublic boolean jdbcCompliant()
jdbcCompliant in interface java.sql.Driver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||