Package rasj.odmg

Class RasDatabase

java.lang.Object
rasj.odmg.RasDatabase
All Implemented Interfaces:
Database

public class RasDatabase extends Object implements Database
This class implements the ODMG Database interface.
Author:
Peter Zoller
  • Constructor Details

  • Method Details

    • open

      public void open(String name, int accessMode) throws ODMGException
      Opens a database on the RasDaMan server ( which has been specified when the RasODMG bootstrap object has been initialized).
      Specified by:
      open in interface Database
      Parameters:
      name - Name of the database
      accessMode - access mode. Available options: OPEN_READ_ONLY, OPEN_READ_WRITE, OPEN_EXCLUSIVE
      Throws:
      ODMGException - The database could not be opened.
    • close

      public void close() throws ODMGException
      Closes an open database. At the moment, only one database can be open at a given time and thus no parameter "database" is necessary here.
      Specified by:
      close in interface Database
      Throws:
      ODMGException - Unable to close the database.
    • bind

      public void bind(Object object, String name) throws ObjectNameNotUniqueException
      Not implemented yet.
      Specified by:
      bind in interface Database
      Parameters:
      object - The object to be named.
      name - The name to be given to the object.
      Throws:
      ObjectNameNotUniqueException - If an attempt is made to bind a name to an object and that name is already bound to an object.
    • lookup

      public Object lookup(String name) throws ObjectNameNotFoundException
      Not implemented yet.
      Specified by:
      lookup in interface Database
      Parameters:
      name - The name of an object.
      Returns:
      The object with that name.
      Throws:
      ObjectNameNotFoundException - There is no object with the specified name.
      See Also:
    • unbind

      public void unbind(String name) throws ObjectNameNotFoundException
      Not implemented yet.
      Specified by:
      unbind in interface Database
      Parameters:
      name - The name of an object.
      Throws:
      ObjectNameNotFoundException - No object exists in the database with that name.
    • makePersistent

      public void makePersistent(Object object)
      Not implemented yet.
      Specified by:
      makePersistent in interface Database
      Parameters:
      object - The object to make persistent.
    • deletePersistent

      public void deletePersistent(Object object)
      Not implemented yet.
      Specified by:
      deletePersistent in interface Database
      Parameters:
      object - The object to delete.