01: package net.sourceforge.jaxor.util;
02:
03: import net.sourceforge.jaxor.api.ValueHolder;
04: import net.sourceforge.jaxor.api.ObjectHolder;
05:
06: import java.io.Serializable;
07:
08: /**
09: * Created By: Mike
10: * Date: Dec 21, 2003
11: * Time: 12:45:55 AM
12: *
13: * Last Checkin: $Author: mrettig $
14: * Date: $Date: 2004/01/24 18:08:40 $
15: * Revision: $Revision: 1.1 $
16: */
17:
18: /**
19: * The value holder is used so we can pass it around rather than the object itself.
20: * This allows the value of the object to be changed,cloned, or set to null as needed.
21: * @see net.sourceforge.jaxor.PrimaryKeySet
22: */
23: public class ObjectHolderImpl implements ObjectHolder, Serializable {
24:
25: private Object _value;
26:
27: public ObjectHolderImpl() {
28:
29: }
30:
31: public ObjectHolderImpl(Object value) {
32: _value = value;
33: }
34:
35: public void setValue(Object val) {
36: _value = val;
37: }
38:
39: public Object getValue() {
40: return _value;
41: }
42: }
|