Statistics
| Revision:

root / branches / v2_0_0_prep / libraries / libFMap_dataDB / src / org / gvsig / data / datastores / vectorial / db / jdbc / h2 / H2StoreParameters.java @ 21176

History | View | Annotate | Download (1.12 KB)

1
package org.gvsig.data.datastores.vectorial.db.jdbc.h2;
2

    
3
import org.gvsig.data.datastores.vectorial.db.jdbc.JDBCStoreParameters;
4
import org.gvsig.fmap.geom.primitive.Envelope;
5

    
6
public class H2StoreParameters extends JDBCStoreParameters{
7

    
8
        public String getDataStoreName() {
9
                return H2Store.DATASTORE_NAME;
10
        }
11
        private Envelope workingArea=null;
12
        private String SRISD = null;
13
        private String geometryField=null;
14

    
15

    
16
        public String getGeometryField() {
17
                return geometryField;
18
        }
19

    
20
        public void setGeometryField(String geometryColumn) {
21
                this.geometryField = geometryColumn;
22
        }
23

    
24
        public String getUrl() {
25
                return H2Utils.getJDBCUrl(this.getHost(), this.getDb());
26
        }
27

    
28
        public String tableID(){
29
                if (this.getSchema() == null || this.getSchema() == "")
30
                        return this.getTableName();
31
                return this.getSchema()+"."+this.getTableName();
32
        }
33

    
34
        public String getSRISD() {
35
                return SRISD;
36
        }
37

    
38
        public void setSRISD(String srisd) {
39
                SRISD = srisd;
40
        }
41

    
42
        public Envelope getWorkingArea() {
43
                return workingArea;
44
        }
45

    
46
        public void setWorkingArea(Envelope workingArea) {
47
                this.workingArea = workingArea;
48
        }
49
}