|
OpMath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.opmath.util.db.DBObject
|
+--com.opmath.util.db.DBRemoteObject
|
+--com.opmath.util.db.cloudscape36.Cloudscape36Remote
A class providing an adapter for the IBM Cloudscape version 3.6 RMI server,
implementing the com.opmath.util.db.DB interface.
Refer to the Clouscape documentation for information on the use of the the driver, at http://www.cloudscape.com/docs/doc_36/doc/html/coredocs/docs.htm.
RUNTIME: The Cloudscape server must be running on an accessible host in order
for this class to operate correctly. See the startCS.sh and
stopCS.sh scripts.
Copyright: (c) 2002 The Open Math Company Limited
The Terms of Distribution of this software are stipulated in the javadoc Overview for this project.
| Field Summary | |
static String |
JDBC_DRIVER
|
static String |
JDBC_PROTOCOL
|
| Fields inherited from class com.opmath.util.db.DBRemoteObject |
host |
| Fields inherited from class com.opmath.util.db.DBObject |
conn, path, protocol |
| Constructor Summary | |
Cloudscape36Remote(String host,
String path)
Constructs a new Cloudscape36 object. |
|
| Method Summary | |
void |
close()
Close the connection. |
void |
connect(String user,
String pass)
Establish a connection to a Cloudscape RMI server. |
Class |
getDriver()
Returns the driver class of this DB. |
| Methods inherited from class com.opmath.util.db.DBRemoteObject |
getHost, newDbConnection, newDbConnection |
| Methods inherited from class com.opmath.util.db.DBObject |
className, create, createTable, delete, delete, dropTable, getConnection, getPath, getProtocol, isAvailable, maxIndex, query, read, read, readAll, update, update |
| Methods inherited from class java.lang.Object |
|
| Methods inherited from interface com.opmath.util.db.DBRemote |
getHost |
| Methods inherited from interface com.opmath.util.db.DB |
className, create, createTable, delete, delete, dropTable, getConnection, getPath, getProtocol, isAvailable, maxIndex, query, read, read, readAll, update, update |
| Field Detail |
public static final String JDBC_PROTOCOL
public static final String JDBC_DRIVER
| Constructor Detail |
public Cloudscape36Remote(String host,
String path)
Constructs a new Cloudscape36 object.
The new Cloudscape36 object has protocol and
path set appropriately, and its connection is initially closed.
path - a String identifying the absolute
path to the database directory.| Method Detail |
public Class getDriver()
throws ClassNotFoundException
Returns the driver class of this DB.
getDriver in interface DBgetDriver in class DBObjectClass representing the database driver.ClassNotFoundException - if the driver class cannot be found.
public void connect(String user,
String pass)
throws SQLException
Establish a connection to a Cloudscape RMI server.
The connection is configured with autocommit false and the transaction
isolation level set to java.sql.Connection.TRANSACTION_SERIALIZABLE.
NOTE: It is assumed that only one symultaneous connection can be held by
any DB instance.
connect in interface DBconnect in class DBObjectuser - a String specifying the user name.pass - a String specifying the password.SQLException - if the connection could not be made.
public void close()
throws SQLException
Close the connection.
close in interface DBclose in class DBObjectSQLException - if the connection could not be closed,
or was already closed.
|
OpMath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||