|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ca.idms.jdbc.IdmsJdbcDriver
public class IdmsJdbcDriver
The CA IDMS JDBC Driver class. This class is as small as possible in line with JavaSoft recommendations.
IdmsDriverInterface
,
IdmsConnection
Field Summary | |
---|---|
static int |
MAJOR_VERSION
|
static int |
MINOR_VERSION
|
Fields inherited from interface ca.idms.jdbc.IdmsDriverInterface |
---|
ACCOUNT, BATCH, CCIHOST, CCIPORT, CSUSPEND, CUSTOM, DEF_CCIPORT, DEF_TASK, DEFSCHEM, EWAIT, INFO, INTERACTIVE, NODE, PASSWORD, PROGRAM, RSINT, SBUFLEN, SERVICE, SSL, STRACE, SUSPEND, TASK, USER, VIA |
Constructor Summary | |
---|---|
IdmsJdbcDriver()
|
Method Summary | |
---|---|
boolean |
acceptsURL(java.lang.String url)
Returns true if the driver can process the URL. |
java.sql.Connection |
connect(java.lang.String url,
java.util.Properties info)
Try to make a database connection to the given URL. |
int |
getMajorVersion()
Gets the driver's major version number. |
int |
getMinorVersion()
Gets the driver's minor version number. |
java.sql.DriverPropertyInfo[] |
getPropertyInfo(java.lang.String url,
java.util.Properties info)
Allows a generic GUI tool to discover what properties provide enough information to connect to a database. |
boolean |
jdbcCompliant()
Reports whether the Driver is a genuine JDBC COMPLIANT (tm) driver. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAJOR_VERSION
public static final int MINOR_VERSION
Constructor Detail |
---|
public IdmsJdbcDriver()
Method Detail |
---|
public 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 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
- if a database-access error occurs.public java.sql.Connection connect(java.lang.String url, java.util.Properties info) throws java.sql.SQLException
The URL format for the CA IDMS JDBC driver is:
An ODBC style data source name can be used when connecting to the CA IDMS system through the CA IDMS Server native code, either directly or via the "proxy Server". The actual dictionary, node names, and task code are resolved by the CA IDMS Server native code, and must be defined on the system where the native code runs.
A dictionary name can be used when no ODBC style data source is defined. If connecting directly to a A CA IDMS system, no additional information is needed other than the user id and password, otherwise the additional connect information is specified using the Properties info.
Additional connection information is specified in the Properties argument. At least "user", and usually, "password" properties should be included.
connect
in interface java.sql.Driver
url
- the URL of the database.info
- connection arguments.
java.sql.SQLException
- if an error occursgetPropertyInfo(java.lang.String, java.util.Properties)
,
IdmsConnection
public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url, java.util.Properties info) throws java.sql.SQLException
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.
java.sql.SQLException
- if a database-access error occurs.IdmsDriverInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |