org.ozoneDB.odmg
Class OzoneODMG

java.lang.Object
  extended byorg.ozoneDB.odmg.ODMG
      extended byorg.ozoneDB.odmg.OzoneODMG
All Implemented Interfaces:
Implementation

public class OzoneODMG
extends ODMG

Implementation of the ODMG Implementation interface.

Version:
$Revision: 1.1 $Date: 2001/12/18 10:31:31 $
Author:
SMB

Constructor Summary
OzoneODMG()
           
 
Method Summary
 Transaction currentTransaction()
          Get the current Transaction for the thread.
protected  void databaseClosed(Database db)
           
protected  void databaseOpened(Database db)
          This method is called by the database objects to inform their factory that another database actually has been opened.
 Database getDatabase(java.lang.Object obj)
          Get the Database that contains the object obj.
 java.lang.String getObjectId(java.lang.Object obj)
          Get a String representation of the object's identifier.
 DArray newDArray()
          Create a new DArray object.
 Database newDatabase()
          Create a new Database object.
 DBag newDBag()
          Create a new DBag object.
 DList newDList()
          Create a new DList object.
 DMap newDMap()
          Create a new DMap object.
 DSet newDSet()
          Create a new DSet object.
 OQLQuery newOQLQuery()
          Create a new OQLQuery object.
 Transaction newTransaction()
          Create a Transaction object and associate it with the current thread.
 
Methods inherited from class org.ozoneDB.odmg.ODMG
getDatabase2
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OzoneODMG

public OzoneODMG()
Method Detail

newDatabase

public Database newDatabase()
Create a new Database object.

Returns:
The new Database object.
See Also:
Database

databaseOpened

protected void databaseOpened(Database db)
This method is called by the database objects to inform their factory that another database actually has been opened.


databaseClosed

protected void databaseClosed(Database db)

getDatabase

public Database getDatabase(java.lang.Object obj)
Get the Database that contains the object obj.

Parameters:
obj - The object.
Returns:
The Database that contains the object.

newTransaction

public Transaction newTransaction()
Create a Transaction object and associate it with the current thread.

Returns:
The newly created Transaction instance.
See Also:
Transaction

currentTransaction

public Transaction currentTransaction()
Get the current Transaction for the thread.

Returns:
The current Transaction object or null if there is none.
See Also:
Transaction

getObjectId

public java.lang.String getObjectId(java.lang.Object obj)
Get a String representation of the object's identifier.

Parameters:
obj - The object whose identifier is being accessed.
Returns:
The object's identifier in the form of a String

newOQLQuery

public OQLQuery newOQLQuery()
Create a new OQLQuery object.

Returns:
The new OQLQuery object.
See Also:
OQLQuery

newDList

public DList newDList()
Create a new DList object.

Returns:
The new DList object.
See Also:
DList

newDBag

public DBag newDBag()
Create a new DBag object.

Returns:
The new DBag object.
See Also:
DBag

newDSet

public DSet newDSet()
Create a new DSet object.

Returns:
The new DSet object.
See Also:
DSet

newDArray

public DArray newDArray()
Create a new DArray object.

Returns:
The new DArray object.
See Also:
DArray

newDMap

public DMap newDMap()
Create a new DMap object.

Returns:
The new DMap object.
See Also:
DMap


Copyright © 2004 The Ozone Database Project - www.ozone-db.org. All Rights Reserved.