KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > tx > UserImpl


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$
8

9 package test.tx;
10
11 import org.ozoneDB.OzoneObject;
12
13
14 public class UserImpl extends OzoneObject implements User {
15
16     protected final static long serialVersionUID = 1;
17
18     protected String JavaDoc name;
19
20
21     public UserImpl() {
22         name = "User " + (byte) System.currentTimeMillis();
23     }
24
25
26     public void setName(String JavaDoc _name) {
27         name = _name;
28     }
29
30
31     public String JavaDoc name() {
32         return name;
33     }
34
35
36     public int crash() {
37         throw new NullPointerException JavaDoc();
38     }
39
40 }
41
Popular Tags