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: DxDiskHashNodeBranch.java,v 1.2 2002/04/10 06:57:25 per_nyfelt Exp $
08:
09: package org.ozoneDB.DxLib;
10:
11: import java.io.*;
12:
13: /**
14: * Tied with referens to a subTable without a key and without a date
15: * @author <a href="http://www.softwarebuero.de/">SMB</a>
16: * @author <a href="http://www.medium.net/">Medium.net</a>
17: */
18: public class DxDiskHashNodeBranch extends DxDiskHashNode implements
19: Externalizable {
20:
21: final static long serialVersionUID = 1;
22:
23: protected DxDiskHashMap grandParent;
24: protected DxDiskSubTable subTable;
25:
26: public DxDiskHashNodeBranch(DxDiskHashMap grandParent) {
27: this .grandParent = grandParent;
28: }
29:
30: public void empty() {
31: subTable = null;
32: }
33:
34: public void writeExternal(ObjectOutput out) throws IOException {
35: subTable.writeExternal(out);
36: }
37:
38: public void readExternal(ObjectInput in) throws IOException,
39: ClassNotFoundException {
40: subTable = new DxDiskSubTable(grandParent);
41: subTable.readExternal(in);
42: }
43: }
|