Revision 30207 branches/v2_0_0_prep/libraries/libTools/src/org/gvsig/tools/persistence/impl/ImplementationPersistenceManager.java

View differences:

ImplementationPersistenceManager.java
34 34
import org.gvsig.tools.dynobject.DynStruct;
35 35
import org.gvsig.tools.persistence.PersistenceCreateException;
36 36
import org.gvsig.tools.persistence.PersistenceException;
37
import org.gvsig.tools.persistence.PersistenceFactory;
37 38
import org.gvsig.tools.persistence.PersistenceManager;
38
import org.gvsig.tools.persistence.Persistent;
39 39
import org.gvsig.tools.persistence.PersistentState;
40 40

  
41 41
public interface ImplementationPersistenceManager extends PersistenceManager {
42 42

  
43
	public Persistent createInstaceOfObject(PersistentState state)
43

  
44
	public Object createInstaceOfObject(PersistentState state,
45
			Class classOfState, PersistenceFactory factory)
44 46
			throws PersistenceException, PersistenceCreateException;
45 47

  
48
	public Class getClassOf(PersistentState state);
49

  
50
	public void loadFromState(Object obj, PersistentState state,
51
			PersistenceFactory factory) throws PersistenceException;
52

  
46 53
	public DynStruct getDefinition(String persistentClassName);
47 54

  
48
	public ImplementationPersistentState createState(Persistent theOriginal,
55
	public ImplementationPersistentState createState(Object theOriginal,
49 56
			PersistentContext context) throws PersistenceException;
50 57

  
51 58
	public ImplementationPersistentState createPersistentStateInstance(
......
67 74

  
68 75
	public Map createMap(Map map, PersistentContext context);
69 76

  
77
	/**
78
	 * Look in register {@link PersistenceFactory} for a factory that can
79
	 * manager <code>object</code>
80
	 *
81
	 * @param object
82
	 * @return
83
	 */
84
	public PersistenceFactory getFactoryFor(Object object);
85

  
86
	/**
87
	 * Look in register {@link PersistenceFactory} for a factory that can
88
	 * manager <code>klass</code>
89
	 *
90
	 * @param object
91
	 * @return
92
	 */
93
	public PersistenceFactory getFactoryFor(Class klass);
94

  
95
	/**
96
	 * Look in register {@link PersistenceFactory} for a factory that can build
97
	 * a instace for <code>state</code>
98
	 *
99
	 * @param state
100
	 * @return
101
	 */
102
	public PersistenceFactory getFactoryFor(PersistentState state);
103

  
70 104
}

Also available in: Unified diff