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: DxDiskHashCompatible.java,v 1.1 2001/12/18 10:31:30 per_nyfelt Exp $
08:
09: package org.ozoneDB.DxLib;
10:
11: import java.io.*;
12: import java.util.*;
13:
14: /**
15: * @author <a href="http://www.softwarebuero.de/">SMB</a>
16: * @version $Revision: 1.1 $Date: 2001/12/18 10:31:30 $
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: public DxDiskHashCompatible() {
27: }
28:
29: /** */
30: public void addTable(DxDiskHashMap _table) {
31: tables.addElement(_table);
32: }
33:
34: /** */
35: public void removeTable(DxDiskHashMap _table) {
36: tables.removeElement(_table);
37: }
38:
39: /**
40: * The methods signals that this element will no longer be
41: * accesses without a re-fetch (elementForKey()) from the
42: * DxDiskHastable.
43: * @see DxDiskHastable
44: */
45: public void done() {
46: System.out.print(".");
47: // for (Enumeration e=tables.elements(); e.hasMoreElements();)
48: // ((DxDiskHashMap)e.nextElement()).elementDone (this);
49: }
50:
51: /** */
52: protected void finalize() throws Throwable {
53: done();
54: super.finalize();
55: }
56: }
|