| java.lang.Object org.ozoneDB.AbstractDatabase org.ozoneDB.ExternalDatabase org.ozoneDB.LocalDatabase
LocalDatabase | final public class LocalDatabase extends ExternalDatabase (Code) | | This class represents a local database server that runs inside the same
JVM as the client. For a detailed method description see OzoneInterface.
author: SMB author: SMB version: $Revision: 1.5 $Date: 2002/07/29 11:30:23 $ See Also: OzoneInterface |
Method Summary | |
public synchronized void | close() | public synchronized String | create(String dirName) Create a new database in the given directory using default values
for all Setup entries. | public synchronized String | create(String dirName, Setup setup) Create a new database in the given directory using the values
of the given Setup. | public boolean | exists(String dbDir) | protected void | finalize() | public boolean | isOpen() | protected DbClient | newConnection() | public void | open(String dirName) opens the database. | public void | open(String dirName, int debugLevel) | public void | open(String dirName, String debugLevel) Opens the database.
Parameters: dirName - is the path name of the database directory root Parameters: debugLevel - derived from OzoneDebugLevel.Overrrides the property ozoneDB.logLevel in config.properties. | public void | open(String dirName, String debugLevel, String userName, String password) Opens the database.
Parameters: dirName - debugLevel, one of the String constants in OzoneDebugLevel (e.g. | protected synchronized void | open(Hashtable props) | public String | toString() |
LocalDatabase | public LocalDatabase()(Code) | | |
create | public synchronized String create(String dirName) throws Exception(Code) | | Create a new database in the given directory using default values
for all Setup entries.
Parameters: _dirName - a StringWriter that holds the status messages exception: java.lang.Exception - See Also: Setup |
create | public synchronized String create(String dirName, Setup setup) throws Exception(Code) | | Create a new database in the given directory using the values
of the given Setup.
Parameters: dirName - a StringWriter that holds the status messages exception: java.lang.Exception - See Also: Setup |
open | public void open(String dirName) throws Exception(Code) | | opens the database.
Parameters: dirName - is the path name of the database directory root |
open | public void open(String dirName, int debugLevel) throws Exception(Code) | | For backwards compatibility
Parameters: dirName - is the path name of the database directory root Parameters: debugLevel - should match one of the constants in OzoneDebugLevel.Overrrides the property ozoneDB.logLevel in config.properties. |
open | public void open(String dirName, String debugLevel) throws Exception(Code) | | Opens the database.
Parameters: dirName - is the path name of the database directory root Parameters: debugLevel - derived from OzoneDebugLevel.Overrrides the property ozoneDB.logLevel in config.properties. If set to null, the config.propertiessetting will be used. |
open | public void open(String dirName, String debugLevel, String userName, String password) throws Exception(Code) | | Opens the database.
Parameters: dirName - debugLevel, one of the String constants in OzoneDebugLevel (e.g. INFO_STR).Overrrides the property ozoneDB.logLevel in config.properties. If set to null, the config.propertiessetting will be used. Parameters: userName - Parameters: password - |
Methods inherited from org.ozoneDB.ExternalDatabase | final protected DbClient acquirePooledConnection() throws Exception(Code)(Java Doc) public Admin admin() throws Exception(Code)(Java Doc) public void beginTX(AbstractTransaction tx) throws TransactionExc, IOException(Code)(Java Doc) public void checkpointTX(AbstractTransaction tx) throws TransactionExc, IOException(Code)(Java Doc) public synchronized void close() throws Exception(Code)(Java Doc) final protected Object commandTX(AbstractTransaction tx, DbTransaction command) throws TransactionExc, IOException(Code)(Java Doc) public void commitTX(AbstractTransaction tx, boolean onePhase) throws TransactionExc, IOException(Code)(Java Doc) public OzoneProxy copyObject(OzoneRemote obj) throws Exception(Code)(Java Doc) public OzoneProxy createObject(String className, int access, String name, String sig, Object[] args) throws RuntimeException, ExceptionInOzoneObjectException(Code)(Java Doc) protected static Hashtable createProps(String _url) throws MalformedURLException(Code)(Java Doc) public ExternalTransaction currentExternalTransaction()(Code)(Java Doc) public AbstractTransaction currentTransaction()(Code)(Java Doc) public void deleteObject(OzoneRemote obj) throws RuntimeException, ExceptionInOzoneObjectException(Code)(Java Doc) public OzoneCompatible fetch(OzoneProxy rObj, int lockLevel) throws Exception(Code)(Java Doc) protected void finalize() throws Throwable(Code)(Java Doc) public static ExternalDatabase forThread(Thread _thread)(Code)(Java Doc) final public int getStatusTX(AbstractTransaction tx) throws TransactionExc, IOException(Code)(Java Doc) final public XAResource getXAResource()(Code)(Java Doc) public Object invoke(OzoneProxy rObj, String methodName, String sig, Object[] args, int lockLevel) throws Exception(Code)(Java Doc) public Object invoke(OzoneProxy rObj, int methodIndex, Object[] args, int lockLevel) throws Exception(Code)(Java Doc) public boolean isOpen() throws Exception(Code)(Java Doc) public void joinTX(AbstractTransaction tx) throws TransactionExc(Code)(Java Doc) public boolean leaveTX(AbstractTransaction tx)(Code)(Java Doc) protected ExternalDatabase linkForProxy(OzoneProxy proxy)(Code)(Java Doc) public void nameObject(OzoneRemote obj, String name) throws Exception(Code)(Java Doc) abstract protected DbClient newConnection() throws Exception(Code)(Java Doc) public ExternalTransaction newTransaction()(Code)(Java Doc) public void notifyProxyDeath(OzoneProxy proxy)(Code)(Java Doc) public OzoneProxy objectForHandle(String handle) throws Exception(Code)(Java Doc) public OzoneProxy objectForName(String name) throws Exception(Code)(Java Doc) public OzoneProxy[] objectsOfClass(String name) throws Exception(Code)(Java Doc) protected void open(Hashtable _props) throws Exception(Code)(Java Doc) public static ExternalDatabase openDatabase(String _url, String _username, String _passwd) throws Exception(Code)(Java Doc) public static ExternalDatabase openDatabase(String _url) throws Exception(Code)(Java Doc) public void prepareTX(AbstractTransaction tx) throws TransactionExc, IOException(Code)(Java Doc) final protected void releasePooledConnection(DbClient connection)(Code)(Java Doc) public void reloadClasses() throws Exception(Code)(Java Doc) public void rollbackTX(AbstractTransaction tx) throws TransactionExc, IOException(Code)(Java Doc) final protected Object sendCommand(DbCommand command, boolean waitForResult) throws Exception(Code)(Java Doc) protected Object sendCommand(DbCommand command, boolean waitForResult, DbClient connection) throws Exception, ExceptionInOzoneObjectException(Code)(Java Doc) protected synchronized void setWrapper(ExternalDatabase _wrapper)(Code)(Java Doc) final protected AbstractTransaction txForThread(Thread thread)(Code)(Java Doc) public Node xmlForObject(OzoneRemote rObj, Document domFactory) throws Exception(Code)(Java Doc) public void xmlForObject(OzoneRemote rObj, ContentHandler ch) throws Exception(Code)(Java Doc)
|
Fields inherited from org.ozoneDB.AbstractDatabase | final public static int DefaultAccessRight(Code)(Java Doc)
|
Methods inherited from org.ozoneDB.AbstractDatabase | public OzoneProxy createObject(String className) throws RuntimeException(Code)(Java Doc) public OzoneProxy createObject(String className, int access) throws RuntimeException(Code)(Java Doc) public OzoneProxy createObject(String className, int access, String objName) throws RuntimeException(Code)(Java Doc) public OzoneProxy createObject(String className, String sig, Object[] args) throws RuntimeException(Code)(Java Doc) public OzoneProxy createObject(Class type) throws RuntimeException(Code)(Java Doc) public OzoneProxy createObject(Class type, int access) throws RuntimeException(Code)(Java Doc) public OzoneProxy createObject(Class type, int access, String objName) throws RuntimeException(Code)(Java Doc) public OzoneProxy createObject(Class type, int access, String objName, String sig, Object[] args) throws RuntimeException(Code)(Java Doc) public OzoneProxy createObject(Class type, String sig, Object[] args) throws RuntimeException(Code)(Java Doc)
|
|
|