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-2001 by SMB GmbH. All rights reserved.
06: //
07: // $Id: UserImpl.java,v 1.1 2001/12/18 10:31:31 per_nyfelt Exp $
08:
09: package org.ozoneDB.test.tx;
10:
11: import java.io.*;
12: import org.ozoneDB.*;
13: import org.ozoneDB.DxLib.*;
14:
15: public class UserImpl extends OzoneObject implements User {
16:
17: protected final static long serialVersionUID = 1;
18:
19: protected String name;
20:
21: public UserImpl() {
22: name = "User " + (byte) System.currentTimeMillis();
23: }
24:
25: public void setName(String _name) {
26: name = _name;
27: }
28:
29: public String name() {
30: return name;
31: }
32:
33: public int crash() {
34: throw new NullPointerException();
35: }
36:
37: }
|