root / branches / v2_0_0_prep / extensions / org.gvsig.oracle / src / org / gvsig / fmap / dal / store / oracle / OracleValues.java @ 38055
History | View | Annotate | Download (3.98 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 |
public static final String USER_ORACLE_GEOMETADATA_VIEW_OWNER = "OWNER"; |
52 |
|
53 |
public static final String ORACLE_EPSG_TABLE_NAME = "ORA_EPSG"; |
54 |
public static final String ORACLE_EPSG_FILE_NAME = "ORA_EPSG.DBF"; |
55 |
public static final String DEFAULT_GEO_FIELD = "GEOMETRY"; |
56 |
|
57 |
public static final String DEFAULT_CARTOCIUDAD_GEO_FIELD = "GEOM"; |
58 |
|
59 |
public static final String ORACLE_ID_FIELD = "ROWID"; |
60 |
public static final String DEFAULT_ID_FIELD_CASE_SENSITIVE = "GID"; |
61 |
public static final String ORACLE_GEO_SCHEMA = "MDSYS"; |
62 |
public static final String CONN_STR_BEGIN = "jdbc:oracle:"; |
63 |
|
64 |
public static final int VARCHAR2_STANDARD_SIZE = 80; |
65 |
public static final int VARCHAR2_LONG_SIZE = 256; |
66 |
public static final int MAX_ID_LENGTH = 30; |
67 |
public static final double IRRELEVANT_DISTANCE = 0.00000001; |
68 |
private static final long ID_MIN_DELAY = 1000; |
69 |
|
70 |
// --------------------------------------------------------
|
71 |
|
72 |
public static final String OraGeometry_GTYPE_COLLECTION = "Collection"; |
73 |
public static final String OraGeometry_GTYPE_CURVE = "Curve"; |
74 |
public static final String OraGeometry_GTYPE_MULTICURVE = "Multi-curve"; |
75 |
public static final String OraGeometry_GTYPE_MULTIPOINT = "Multi-point"; |
76 |
public static final String OraGeometry_GTYPE_MULTIPOLYGON = "Multi-polygon"; |
77 |
public static final String OraGeometry_GTYPE_POINT = "Point"; |
78 |
public static final String OraGeometry_GTYPE_POLYGON = "Polygon"; |
79 |
public static final String OraGeometry_GTYPE_GEOMETRY = "MDSYS.SDO_GEOMETRY"; |
80 |
|
81 |
// ----------------------------------------------------
|
82 |
public static double FLATNESS = 0.8; |
83 |
public static final int ORACLE_GTYPE_UNKNOWN = 0; |
84 |
public static final int ORACLE_GTYPE_POINT = 1; |
85 |
public static final int ORACLE_GTYPE_LINE = 2; |
86 |
public static final int ORACLE_GTYPE_POLYGON = 3; |
87 |
public static final int ORACLE_GTYPE_COLLECTION = 4; |
88 |
public static final int ORACLE_GTYPE_MULTIPOINT = 5; |
89 |
public static final int ORACLE_GTYPE_MULTILINE = 6; |
90 |
public static final int ORACLE_GTYPE_MULTIPOLYGON = 7; |
91 |
|
92 |
public static final int ORACLE_GTYPE_COMPLEX_VOIDED_POLYON = 3; |
93 |
public static final int ORACLE_GTYPE_COMPLEX_COMPOUND_LINE = 4; |
94 |
public static final int ORACLE_GTYPE_COMPLEX_COMPOUND_POLYON = 5; |
95 |
|
96 |
} |