KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > DxLib > DxDiskHashCompatible


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: DxDiskHashCompatible.java,v 1.3 2002/12/30 10:13:50 per_nyfelt Exp $
8

9 package org.ozoneDB.DxLib;
10
11 import java.util.*;
12
13
14 /**
15  * @author <a HREF="http://www.softwarebuero.de/">SMB</a>
16  * @version $Revision: 1.3 $Date: 2002/12/30 10:13:50 $
17  */

18 public class DxDiskHashCompatible extends DxObject {
19
20     final static long serialVersionUID = 1L;
21
22     /** */
23     protected Vector tables = new Vector();
24
25
26     /** */
27     public DxDiskHashCompatible() {
28     }
29
30
31     /** */
32     public void addTable( DxDiskHashMap _table ) {
33         tables.addElement( _table );
34     }
35
36
37     /** */
38     public void removeTable( DxDiskHashMap _table ) {
39         tables.removeElement( _table );
40     }
41
42
43     /**
44      * The methods signals that this element will no longer be
45      * accesses without a re-fetch (elementForKey()) from the
46      * DxDiskHashMap.
47      * @see DxDiskHashMap
48      */

49     public void done() {
50         System.out.print( "." );
51     // for (Enumeration e=tables.elements(); e.hasMoreElements();)
52
// ((DxDiskHashMap)e.nextElement()).elementDone (this);
53
}
54
55
56     /** */
57     protected void finalize() throws Throwable JavaDoc {
58         done();
59         super.finalize();
60     }
61 }
62
Popular Tags