ozone API

org.ozoneDB
Class RemoteDatabase

java.lang.Object
  extended byorg.ozoneDB.AbstractDatabase
      extended byorg.ozoneDB.ExternalDatabase
          extended byorg.ozoneDB.RemoteDatabase
All Implemented Interfaces:
OzoneInterface

public final class RemoteDatabase
extends ExternalDatabase

This class represents a remote database server that is connected via a network connection. For a detailed description of the API see OzoneInterface.

Version:
$Revision: 1.5 $Date: 2002/09/18 06:54:13 $
Author:
SMB
See Also:
OzoneInterface

Field Summary
 
Fields inherited from class org.ozoneDB.ExternalDatabase
DefaultAccessRight, PROP_DEBUG, PROP_DIR, PROP_HOST, PROP_PASSWD, PROP_PORT, PROP_USER
 
Fields inherited from interface org.ozoneDB.OzoneInterface
AllLock, AllRead, GroupLock, GroupRead, Private, Public
 
Constructor Summary
RemoteDatabase()
           
 
Method Summary
 void open(java.lang.String hostName, int portNum)
          Open a new database connection.
 void open(java.lang.String hostName, int portNum, java.lang.String userName, java.lang.String passwd)
          Open a new database connection.
 java.lang.String toString()
           
 
Methods inherited from class org.ozoneDB.ExternalDatabase
admin, beginTX, checkpointTX, close, commitTX, copyObject, createObject, createObject, createObject, createObject, createObject, createObject, createObject, createObject, createObject, createObject, currentExternalTransaction, currentTransaction, deleteObject, fetch, forThread, getStatusTX, getXAResource, invoke, invoke, isOpen, joinTX, leaveTX, nameObject, newTransaction, notifyProxyDeath, objectForHandle, objectForName, objectNames, openDatabase, openDatabase, prepareTX, reloadClasses, rollbackTX, xmlForObject, xmlForObject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemoteDatabase

public RemoteDatabase()
Method Detail

open

public void open(java.lang.String hostName,
                 int portNum)
          throws java.lang.Exception
Open a new database connection.

Parameters:
hostName - name of the host where the server resides
portNum - port of the server (default server setting: 3000)
Throws:
java.lang.Exception

open

public void open(java.lang.String hostName,
                 int portNum,
                 java.lang.String userName,
                 java.lang.String passwd)
          throws java.lang.Exception
Open a new database connection.

Parameters:
hostName - name of the host where the server resides
portNum - port of the server (default server setting: 3000)
userName -
passwd -
Throws:
java.lang.Exception

toString

public java.lang.String toString()

ozone API

Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.