Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libFMap_dataDB / src / org / gvsig / fmap / data / feature / db / jdbc / JDBCExplorerParameter.java @ 23081

History | View | Annotate | Download (1.15 KB)

1
package org.gvsig.fmap.data.feature.db.jdbc;
2

    
3
import org.gvsig.fmap.data.InitializeException;
4
import org.gvsig.fmap.data.feature.db.DBExplorerParameters;
5

    
6
import com.iver.utiles.NotExistInXMLEntity;
7
import com.iver.utiles.XMLEntity;
8

    
9
public abstract class JDBCExplorerParameter extends DBExplorerParameters {
10
        protected boolean showInformationDBTables = false;
11

    
12
        public abstract String getUrl();
13

    
14
        public boolean isShowInformationDBTables() {
15
                return showInformationDBTables;
16
        }
17

    
18
        public void setShowInformationDBTables(boolean showInformationDBTables) {
19
                this.showInformationDBTables = showInformationDBTables;
20
        }
21

    
22
        public XMLEntity getXMLEntity() {
23
                XMLEntity entity = super.getXMLEntity();
24
                entity.putProperty("showInformationDBTables",
25
                                this.showInformationDBTables);
26
                return entity;
27

    
28
        }
29

    
30
        public void loadFromXMLEntity(XMLEntity xmlEntity)
31
                        throws InitializeException {
32
                // TODO Auto-generated method stub
33
                super.loadFromXMLEntity(xmlEntity);
34
                try {
35
                        this.showInformationDBTables = xmlEntity
36
                                        .getBooleanProperty("showInformationDBTables");
37
                } catch (NotExistInXMLEntity e) {
38
                        // Default value
39
                        this.showInformationDBTables = false;
40
                }
41
        }
42

    
43

    
44
}