| org.ozoneDB.odmg.EnhDatabase
All known Subclasses: org.ozoneDB.odmg.OzoneServerODMGDatabase, org.ozoneDB.odmg.OzoneODMGDatabase,
EnhDatabase | public interface EnhDatabase extends Database(Code) | | 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.
author: SMB version: $Revision: 1.1 $Date: 2002/05/08 15:03:21 $ |
createPersistent | public Object createPersistent(Class cl)(Code) | | 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.
|
|
|