KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > odmg > EnhDatabase


1 // You can redistribute this software and/or modify it under the terms of
2
// the Ozone Library License version 1 published by ozone-db.org.
3
//
4
// The original code and portions created by SMB are
5
// Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
6
//
7
// $Id: EnhDatabase.java,v 1.1 2001/12/18 10:31:31 per_nyfelt Exp $
8

9 package org.ozoneDB.odmg;
10
11 import java.util.*;
12 import org.odmg.*;
13
14
15 /**
16  * This interface enhances the original ODMG {@link Database} interface by a
17  * standard way to create persistent objects. Using this interface instead of
18  * ODMG {@link Database} allows to keep the application code independent of the
19  * actual underlying database. {@link OzoneODMGDatabase} implements this
20  * interface already. All other databases need a wrapper that implements this
21  * interface.
22  *
23  *
24  * @author <a HREF="http://www.softwarebuero.de/">SMB</a>
25  * @version $Revision: 1.1 $Date: 2001/12/18 10:31:31 $
26  */

27 public interface EnhDatabase extends Database {
28     
29     
30     /**
31      * Create a new persistent instance of the given class. This method must be
32      * executed in the context of an open transaction. If the transaction in
33      * which this method is executed commits, then the object is made durable.
34      * ClassNotPersistenceCapableException is thrown if the implementation
35      * cannot make the object persistent because of the type of the object.
36      */

37     public Object JavaDoc createPersistent( Class JavaDoc cl );
38     
39 }
40
Popular Tags