Revision 28468 branches/v2_0_0_prep/libraries/libTools/src/org/gvsig/tools/persistence/impl/AbstractPersistenceManager.java

View differences:

AbstractPersistenceManager.java
53 53
					theClass = Class.forName(className);
54 54
				}
55 55
				Persistent obj = (Persistent) theClass.newInstance();
56
				obj.setState(state);
56
				obj.loadFromState(state);
57 57
				return obj;
58 58
			} catch (ClassNotFoundException e) {
59 59
				throw new PersistenceException(e);
......
94 94
		state.load(reader);
95 95
		return state;
96 96
	}
97

  
98
	public int getAutoValidation() {
99
		return DISABLED;
100
	}
101

  
102
	public void setAutoValidation(int validationMode) throws PersistenceException {
103
		if (validationMode!=DISABLED) {
104
			throw new PersistenceException("Validation not implemented");
105
		}
106
	}
97 107
}

Also available in: Unified diff