KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > openxml > DataImpl


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-2001 by SMB GmbH. All rights reserved.
6
//
7
// $Id: DataImpl.java,v 1.1 2003/11/02 17:29:30 per_nyfelt Exp $
8

9 package test.openxml;
10
11 import java.util.*;
12 import org.ozoneDB.*;
13 import org.ozoneDB.DxLib.*;
14
15
16 public class DataImpl extends OzoneObject implements Data {
17     
18     protected int i;
19     
20     protected Vector v;
21     protected Vector v2;
22     
23     protected Hashtable ht;
24     
25     protected Data next;
26     
27     
28     public DataImpl() {
29         i = 100;
30         
31         v = new Vector();
32         v.addElement( "Hallo" );
33         v2 = v;
34         
35         ht = new Hashtable();
36         ht.put( "Key", "Value" );
37     }
38     
39     
40     public void setup() throws Exception JavaDoc {
41         next = (Data)database().createObject( DataImpl.class.getName() );
42     }
43     
44 }
45
Popular Tags