01: package org.julp;
02:
03: public interface DomainObject extends java.io.Serializable, Cloneable {
04:
05: public static final char ORIGINAL = 'O';
06: public static final char CREATED = 'C';
07: public static final char STORED = 'S';
08: public static final char REMOVED = 'R';
09: public static final char UNDEFINED = 'N';
10:
11: public void setOriginalValues(DataHolder originalValues);
12:
13: public DataHolder getOriginalValues();
14:
15: public void setOriginalValue(String fieldName, Object value);
16:
17: public Object getOriginalValue(String fieldName);
18:
19: public char getPersistentState();
20:
21: public void setPersistentState(char persistentState);
22:
23: public int getObjectId();
24:
25: public void setObjectId(int objectId);
26:
27: public boolean store();
28:
29: public boolean remove();
30:
31: public boolean create();
32:
33: public boolean load();
34:
35: public boolean isLoaded();
36:
37: public void setLoaded(boolean loaded);
38:
39: public boolean isLoading();
40:
41: public void setLoading(boolean loading);
42:
43: public boolean isModified();
44:
45: public void setModified(boolean modified);
46:
47: public void setDisplayValue(String field, Object displayValue);
48:
49: public Object getDisplayValue(String field);
50:
51: public boolean syncOriginal();
52:
53: public void setDomainFactoryId(long domainFactoryId);
54:
55: public long getDomainFactoryId();
56: }
|