|
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.jdatastore60.JDataStore60
An adapter for the Borland JDataStore version 6.0 embedded JDBC driver, implementing
the org.opmath.util.db.DB interface.
Note that the following Borland JDataStore 6 JAR files are required in order that the host application server can connect to the JDataStore database:
jds.jar
dx.jar
Refer to the Borland documentation for information on the use of the JDataStore server, at: http://www.borland.com/techpubs/jdatastore/
Copyright Copyright (c) 2001, 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.DBObject |
conn, path, protocol |
| Constructor Summary | |
JDataStore60(String path)
Constructs a new JDataStore60 object. |
|
| Method Summary | |
void |
close()
Close the connection. |
void |
connect(String user,
String pass)
Establish a connection to a JDataStore embedded database. |
Class |
getDriver()
Returns the driver class of this DB. |
| Methods inherited from class com.opmath.util.db.DBObject |
className, create, createTable, delete, delete, dropTable, getConnection, getPath, getProtocol, isAvailable, maxIndex, newDbConnection, query, read, read, readAll, update, update |
| Methods inherited from class java.lang.Object |
|
| 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 JDataStore60(String path)
Constructs a new JDataStore60 object.
The new JDataStore60 object has protocol, host, and
path set appropriately, and its connection is initially closed.
host - a String identifying the database
host name.path - a String identifying the absolute
path to the .jds database file.| 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 JDataStore embedded database.
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. Thus, connect(String, String)
throws a SQLException if a connection is already established.
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 | |||||||||