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 | 22373 | jmvivo | package org.gvsig.fmap.data.feature.db.jdbc; |
---|---|---|---|
2 | 20032 | jmvivo | |
3 | 23081 | jmvivo | import org.gvsig.fmap.data.InitializeException; |
4 | 22373 | jmvivo | import org.gvsig.fmap.data.feature.db.DBExplorerParameters; |
5 | 20032 | jmvivo | |
6 | 23081 | jmvivo | import com.iver.utiles.NotExistInXMLEntity; |
7 | import com.iver.utiles.XMLEntity; |
||
8 | |||
9 | 20032 | jmvivo | public abstract class JDBCExplorerParameter extends DBExplorerParameters { |
10 | 23081 | jmvivo | protected boolean showInformationDBTables = false; |
11 | |||
12 | 20032 | jmvivo | public abstract String getUrl(); |
13 | 23081 | jmvivo | |
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 | 20032 | jmvivo | } |