|
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
The superclass for implementations of the com.opmath.util.db.DBRemote
interface.
This class implements instance variables and methods that are likely to be
common to all implementations of com.opmath.util.db.DBRemote.
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 | |
protected String |
host
The name of the host for this DBRemote server. |
| Fields inherited from class com.opmath.util.db.DBObject |
conn, path, protocol |
| Constructor Summary | |
DBRemoteObject()
|
|
| Method Summary | |
String |
getHost()
Returns the host for the current connection. |
static DB |
newDbConnection(String className,
String path)
Explicitly prohibited by this class. |
static DBRemote |
newDbConnection(String className,
String host,
String path)
A factory method for implementations of the DBRemote interface. |
| 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.DB |
className, close, connect, create, createTable, delete, delete, dropTable, getConnection, getDriver, getPath, getProtocol, isAvailable, maxIndex, query, read, read, readAll, update, update |
| Field Detail |
protected String host
The name of the host for this DBRemote server.
| Constructor Detail |
public DBRemoteObject()
| Method Detail |
public static DB newDbConnection(String className,
String path)
throws UnsupportedOperationException
Explicitly prohibited by this class.
UnsupportedOperationException - always.DBObject.newDbConnection(String, String)
public static DBRemote newDbConnection(String className,
String host,
String path)
throws ClassNotFoundException
A factory method for implementations of the DBRemote interface.
NOTE: This method can only construct DBRemote objects where a constructor
of the form <ClassName>(String host, String path) is available.
className - a String the name of the class
implementing DBRemote.host - a String identifying the host.path - a String specifying the absolute path,
including the database file or directory.DBRemote.ClassNotFoundException - if it was not possible to construct
the specified object.public String getHost()
Returns the host for the current connection.
Returns null if there is no current connection.
getHost in interface DBRemoteString identifying the host.
|
OpMath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||