01: // You can redistribute this software and/or modify it under the terms of
02: // the Ozone Library License version 1 published by ozone-db.org.
03: //
04: // The original code and portions created by SMB are
05: // Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
06: //
07: // $Id: EnhDatabase.java,v 1.1 2002/05/08 15:03:21 per_nyfelt Exp $
08:
09: package org.ozoneDB.odmg;
10:
11: import java.util.*;
12: import org.odmg.*;
13:
14: /**
15: * This interface enhances the original ODMG {@link Database} interface by a
16: * standard way to create persistent objects. Using this interface instead of
17: * ODMG {@link Database} allows to keep the application code independent of the
18: * actual underlying database. {@link OzoneODMGDatabase} implements this
19: * interface already. All other databases need a wrapper that implements this
20: * interface.
21: *
22: *
23: * @author <a href="http://www.softwarebuero.de/">SMB</a>
24: * @version $Revision: 1.1 $Date: 2002/05/08 15:03:21 $
25: */
26: public interface EnhDatabase extends Database {
27:
28: /**
29: * Create a new persistent instance of the given class. This method must be
30: * executed in the context of an open transaction. If the transaction in
31: * which this method is executed commits, then the object is made durable.
32: * ClassNotPersistenceCapableException is thrown if the implementation
33: * cannot make the object persistent because of the type of the object.
34: */
35: public Object createPersistent(Class cl);
36:
37: }
|