Revision 24081 branches/v2_0_0_prep/libraries/libIverUtiles/src/com/iver/utiles/xmlentity/XMLEntityManager.java
XMLEntityManager.java | ||
---|---|---|
9 | 9 |
|
10 | 10 |
public class XMLEntityManager extends AbstractPersistenceManager { |
11 | 11 |
|
12 |
public PersistentState createState(Object obj) throws PersistenceException { |
|
13 |
return createState(obj, true); |
|
14 |
} |
|
15 | 12 |
|
16 | 13 |
public PersistentState createState(XMLEntity xmlEntity) |
17 | 14 |
throws PersistenceException { |
... | ... | |
23 | 20 |
PersistentState state = new XMLEntityState(this); |
24 | 21 |
state.setTheClass(obj); |
25 | 22 |
if (initialize && obj instanceof Persistent) { |
26 |
((Persistent)obj).getState(state);
|
|
23 |
((Persistent) obj).loadState(state);
|
|
27 | 24 |
} |
28 | 25 |
return state; |
29 | 26 |
} |
Also available in: Unified diff