Documentation Comments
Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.
Reality V15.0 ()
: Class RealSQLDriver (RealSQL-JDBC) (realsqldriver.html)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.northgateis.reality.realsql.RealSQLDriver
The RealSQLDriver clase is an implementation of the JDBC 2.0 Driver . interface The methods in this class should not be called directly by a client application, they should be called indirectly via the DriverManagerclass.
Connections to a Reality database can be established by using a URL with the following format:
jdbc:realsql://host{:port}/database{;key=value,key=value,...}
The host
name is network name for the remote system,
port
is optional, the default is 1203.
The database
name is database name on the remote system,
as defined in the ROUTE-FILE (Unix) or Registry (Windows).
The remaining optional key=value
pairs are used for other
connection properties; user, password, account, accountpwd, and logging
options.
Field Summary | |
static java.lang.String | startURL |
Constructor Summary | |
RealSQLDriver() Default constructor, does nothing except call super(); |
Method Summary | |
boolean | acceptsURL(java.lang.String url) Returns true if the driver thinks that it can open a connection to the given URL. |
java.sql.Connection | connect(java.lang.String url,
java.util.Properties props) Attempts to make a database connection to the given URL. |
int | getMajorVersion() Get the major version of this driver. |
int | getMinorVersion() Get the minor version of 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() Checks if this implementation is ANSI-92 compliant, since the Reality database does not conform to ANSI-92 the driver cannot claim to be a JDBC compliant implementation. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String startURL
Constructor Detail |
public RealSQLDriver()
Method Detail |
public boolean acceptsURL(java.lang.String url) throws java.sql.SQLException
jdbc:realsql
.
url
- The URL of the database.public java.sql.Connection connect(java.lang.String url, java.util.Properties props) 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 should be used to pass additional connection information, these should include:
user - User identiy. userpwd - User password. account - Reality account name. accountpwd - Reality account password.
url
- the URL for the database in questionp
- the properties objectDriver.connect(java.lang.String, java.util.Properties)
public int getMajorVersion()
Driver.getMajorVersion()
public int getMinorVersion()
Driver.getMinorVersion()
public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url, java.util.Properties info) throws java.sql.SQLException
url
- the URL of the database to connect to.info
- proposed list of tag/value pairs that will be sent on
connect open.public boolean jdbcCompliant()
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |