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 | 24496 | jmvivo | package org.gvsig.fmap.dal; |
---|---|---|---|
2 | 23894 | jjdelcerro | |
3 | 24496 | jmvivo | import org.gvsig.fmap.dal.feature.Feature; |
4 | 24400 | jiyarza | 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 | 23894 | jjdelcerro | public interface DataTypes { |
11 | 24400 | jiyarza | public static final int UNKNOWN = 0; |
12 | 23894 | jjdelcerro | 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 | 24400 | jiyarza | /** {@link Geometry} */
|
23 | 23894 | jjdelcerro | public static final int GEOMETRY = 11; |
24 | public static final int OBJECT = 12; |
||
25 | 24400 | jiyarza | /** {@link Feature} */
|
26 | 23894 | jjdelcerro | public static final int FEATURE = 13; |
27 | |||
28 | 24400 | jiyarza | /** Array with the name of each data type. Use the constants to access this array. */
|
29 | 23894 | jjdelcerro | public static final String[] TYPE_NAMES = new String[] { |
30 | 24400 | jiyarza | "UNKNOWN",
|
31 | 23894 | jjdelcerro | "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 | } |