Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / extensions / org.gvsig.oracle / src / org / gvsig / fmap / dal / store / oracle / OracleValues.java @ 30231

History | View | Annotate | Download (3.84 KB)

1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 */
22

    
23
/*
24
 * AUTHORS (In addition to CIT):
25
 * 2009 Prodevelop S.L. main development
26
 */
27

    
28
package org.gvsig.fmap.dal.store.oracle;
29

    
30
/**
31
 * Oracle static values
32
 * 
33
 * @author jldominguez, vsanjaime
34
 * 
35
 */
36
public class OracleValues {
37

    
38
        public static int FETCH_SIZE = 15000;
39

    
40
        public static final int GEODETIC_FULLEXTENT_SAMPLE_SIZE = 50;
41
        public static final String GEODETIC_SRID = "8307";
42

    
43
        // ------------------------------------------------
44
        public static final String NAME = "Oracle Database Driver";
45
        public static final int ID_COLUMN_INDEX = 1;
46

    
47
        public static final String ALL_ORACLE_GEOMETADATA_VIEW = "ALL_SDO_GEOM_METADATA";
48
        public static final String USER_ORACLE_GEOMETADATA_VIEW = "USER_SDO_GEOM_METADATA";
49
        public static final String USER_ORACLE_GEOMETADATA_VIEW_TABLE_NAME = "TABLE_NAME";
50
        public static final String USER_ORACLE_GEOMETADATA_VIEW_COLUMN_NAME = "COLUMN_NAME";
51

    
52
        public static final String ORACLE_EPSG_TABLE_NAME = "ORA_EPSG";
53
        public static final String ORACLE_EPSG_FILE_NAME = "ORA_EPSG.DBF";
54
        public static final String DEFAULT_GEO_FIELD = "GEOMETRY";
55

    
56
        public static final String ORACLE_ID_FIELD = "ROWID";
57
        public static final String DEFAULT_ID_FIELD_CASE_SENSITIVE = "GID";
58
        public static final String ORACLE_GEO_SCHEMA = "MDSYS";
59
        public static final String CONN_STR_BEGIN = "jdbc:oracle:";
60

    
61
        public static final int VARCHAR2_STANDARD_SIZE = 80;
62
        public static final int VARCHAR2_LONG_SIZE = 256;
63
        public static final int MAX_ID_LENGTH = 30;
64
        public static final double IRRELEVANT_DISTANCE = 0.00000001;
65
        private static final long ID_MIN_DELAY = 1000;
66

    
67
        // --------------------------------------------------------
68

    
69
        public static final String OraGeometry_GTYPE_COLLECTION = "Collection";
70
        public static final String OraGeometry_GTYPE_CURVE = "Curve";
71
        public static final String OraGeometry_GTYPE_MULTICURVE = "Multi-curve";
72
        public static final String OraGeometry_GTYPE_MULTIPOINT = "Multi-point";
73
        public static final String OraGeometry_GTYPE_MULTIPOLYGON = "Multi-polygon";
74
        public static final String OraGeometry_GTYPE_POINT = "Point";
75
        public static final String OraGeometry_GTYPE_POLYGON = "Polygon";
76
        public static final String OraGeometry_GTYPE_GEOMETRY = "MDSYS.SDO_GEOMETRY";
77

    
78
        // ----------------------------------------------------
79
        public static double FLATNESS = 0.8;
80
        public static final int ORACLE_GTYPE_UNKNOWN = 0;
81
        public static final int ORACLE_GTYPE_POINT = 1;
82
        public static final int ORACLE_GTYPE_LINE = 2;
83
        public static final int ORACLE_GTYPE_POLYGON = 3;
84
        public static final int ORACLE_GTYPE_COLLECTION = 4;
85
        public static final int ORACLE_GTYPE_MULTIPOINT = 5;
86
        public static final int ORACLE_GTYPE_MULTILINE = 6;
87
        public static final int ORACLE_GTYPE_MULTIPOLYGON = 7;
88

    
89
        public static final int ORACLE_GTYPE_COMPLEX_VOIDED_POLYON = 3;
90
        public static final int ORACLE_GTYPE_COMPLEX_COMPOUND_LINE = 4;
91
        public static final int ORACLE_GTYPE_COMPLEX_COMPOUND_POLYON = 5;
92

    
93
}