Statistics
| Revision:

root / branches / v2_0_0_prep / libraries / libFMap_dal / src / org / gvsig / fmap / dal / DataTypes.java @ 24496

History | View | Annotate | Download (1.1 KB)

1
package org.gvsig.fmap.dal;
2

    
3
import org.gvsig.fmap.dal.feature.Feature;
4
import org.gvsig.fmap.geom.Geometry;
5

    
6
/**
7
 * This interface defines a set of constants for all data 
8
 * types supported by the DAL.
9
 */
10
public interface DataTypes {
11
        public static final int UNKNOWN = 0;
12
        public static final int BYTE = 1;
13
        public static final int BOOLEAN = 2;
14
        public static final int INT = 3;
15
        public static final int LONG = 4;
16
        public static final int FLOAT = 5;
17
        public static final int DOUBLE = 6;
18
        public static final int STRING = 7;
19
        public static final int DATE = 8;
20
        public static final int TIME = 9;
21
        public static final int TIMESTAMP = 10;
22
        /** {@link Geometry} */
23
        public static final int GEOMETRY = 11;
24
        public static final int OBJECT = 12;
25
        /** {@link Feature} */
26
        public static final int FEATURE = 13;
27

    
28
        /** Array with the name of each data type. Use the constants to access this array. */
29
        public static final String[] TYPE_NAMES = new String[] {
30
                "UNKNOWN",
31
                "BYTE",
32
                "BOOLEAN",
33
                "INT",
34
                "LONG",
35
                "FLOAT",
36
                "DOUBLE",
37
                "STRING",
38
                "DATE",
39
                "TIME",
40
                "TIMESTAMP",
41
                "GEOMETRY",
42
                "OBJECT",
43
                "FEATURE"
44
        };
45
        
46

    
47
}