Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libTools / src / org / gvsig / tools / persistence / PersistentState.java @ 24049

History | View | Annotate | Download (1.67 KB)

1
package org.gvsig.tools.persistence;
2

    
3
import java.util.Iterator;
4

    
5
public interface PersistentState {
6

    
7
        public void setTheClass(Object obj);
8

    
9
        public void setTheClass(Class theClass);
10

    
11
        public void setTheClass(String name);
12

    
13
        public String getTheClassName();
14

    
15
        public PersistentState createState(Object obj) throws PersistenceException;
16

    
17
        public PersistentState createState(Object obj, boolean initialize)
18
                        throws PersistenceException;
19

    
20
        public int getInt(String name) throws PersistenceValueNotFoundException;
21

    
22
        public long getLong(String name) throws PersistenceValueNotFoundException;
23

    
24
        public double getDouble(String name)
25
                        throws PersistenceValueNotFoundException;
26

    
27
        public float getFloat(String name) throws PersistenceValueNotFoundException;
28

    
29
        public boolean getBoolean(String name)
30
                        throws PersistenceValueNotFoundException;
31

    
32
        public PersistentState getState(String name)
33
                        throws PersistenceValueNotFoundException, PersistenceException;
34

    
35
        public Object get(String name) throws PersistenceValueNotFoundException,
36
                        PersistenceException;
37

    
38
        public Iterator getIterator(String name) throws PersistenceException;
39

    
40
        public PersistentState set(String name, String value);
41

    
42
        public PersistentState set(String name, int value);
43

    
44
        public PersistentState set(String name, long value);
45

    
46
        public PersistentState set(String name, double value);
47

    
48
        public PersistentState set(String name, float value);
49

    
50
        public PersistentState set(String name, boolean value);
51

    
52
        public PersistentState set(String name, PersistentState state);
53

    
54
        public PersistentState set(String name, Persistent obj)
55
                        throws PersistenceException;
56

    
57
        public PersistentState set(String name, Iterator it)
58
                        throws PersistenceException;
59
}