1 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 name; 19 20 21 public UserImpl() { 22 name = "User " + (byte) System.currentTimeMillis(); 23 } 24 25 26 public void setName(String _name) { 27 name = _name; 28 } 29 30 31 public String name() { 32 return name; 33 } 34 35 36 public int crash() { 37 throw new NullPointerException (); 38 } 39 40 } 41 | Popular Tags |