org.ozoneDB.odmg
Interface EnhDatabase

All Superinterfaces:
Database
All Known Implementing Classes:
OzoneODMGDatabase, OzoneServerODMGDatabase

public interface EnhDatabase
extends Database

This interface enhances the original ODMG Database interface by a standard way to create persistent objects. Using this interface instead of ODMG Database allows to keep the application code independent of the actual underlying database. OzoneODMGDatabase implements this interface already. All other databases need a wrapper that implements this interface.

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

Field Summary
 
Fields inherited from interface org.odmg.Database
NOT_OPEN, OPEN_EXCLUSIVE, OPEN_READ_ONLY, OPEN_READ_WRITE
 
Method Summary
 java.lang.Object createPersistent(java.lang.Class cl)
          Create a new persistent instance of the given class.
 
Methods inherited from interface org.odmg.Database
bind, close, deletePersistent, lookup, makePersistent, open, unbind
 

Method Detail

createPersistent

public java.lang.Object createPersistent(java.lang.Class cl)
Create a new persistent instance of the given class. This method must be executed in the context of an open transaction. If the transaction in which this method is executed commits, then the object is made durable. ClassNotPersistenceCapableException is thrown if the implementation cannot make the object persistent because of the type of the object.



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