svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.db / org.gvsig.fmap.dal.db.jdbc / src / main / java / org / gvsig / fmap / dal / store / jdbc / JDBCServerExplorerParameters.java @ 44058
History | View | Annotate | Download (2.7 KB)
1 | 40559 | jjdelcerro | /**
|
---|---|---|---|
2 | * gvSIG. Desktop Geographic Information System.
|
||
3 | *
|
||
4 | * Copyright (C) 2007-2013 gvSIG Association.
|
||
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 3
|
||
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 | * For any additional information, do not hesitate to contact us
|
||
22 | * at info AT gvsig.com, or visit our website www.gvsig.com.
|
||
23 | */
|
||
24 | 40435 | jjdelcerro | package org.gvsig.fmap.dal.store.jdbc; |
25 | |||
26 | import org.gvsig.fmap.dal.serverexplorer.db.DBServerExplorerParameters; |
||
27 | |||
28 | public class JDBCServerExplorerParameters extends |
||
29 | DBServerExplorerParameters implements JDBCConnectionParameters {
|
||
30 | |||
31 | public static final String PARAMETERS_DEFINITION_NAME = "JDBCServerExplorerParameters"; |
||
32 | |||
33 | public static final String SHOWINFORMATIONDBTABLES_PARAMTER_NAME = "showInformationDBTables"; |
||
34 | |||
35 | public JDBCServerExplorerParameters() {
|
||
36 | 43020 | jjdelcerro | super(PARAMETERS_DEFINITION_NAME, JDBCServerExplorerBase.NAME);
|
37 | 40435 | jjdelcerro | } |
38 | |||
39 | public JDBCServerExplorerParameters(String parametersDefinitionName, String name) { |
||
40 | super(parametersDefinitionName, name);
|
||
41 | } |
||
42 | |||
43 | public void setJDBCDriverClassName(String className) { |
||
44 | this.setDynValue(JDBC_DRIVER_CLASS_PARAMTER_NAME, className);
|
||
45 | } |
||
46 | |||
47 | public String getJDBCDriverClassName() { |
||
48 | return (String) this.getDynValue(JDBC_DRIVER_CLASS_PARAMTER_NAME); |
||
49 | } |
||
50 | |||
51 | public String getCatalog() { |
||
52 | return (String) this.getDynValue(CATALOG_PARAMTER_NAME); |
||
53 | } |
||
54 | |||
55 | public void setCatalog(String catalog) { |
||
56 | this.setDynValue(CATALOG_PARAMTER_NAME, catalog);
|
||
57 | } |
||
58 | |||
59 | public String getSchema() { |
||
60 | return (String) this.getDynValue(SCHEMA_PARAMTER_NAME); |
||
61 | } |
||
62 | |||
63 | public void setSchema(String schema) { |
||
64 | this.setDynValue(SCHEMA_PARAMTER_NAME, schema);
|
||
65 | } |
||
66 | |||
67 | public void setShowInformationDBTables(boolean show){ |
||
68 | this.setShowInformationDBTables(new Boolean(show)); |
||
69 | } |
||
70 | |||
71 | public void setShowInformationDBTables(Boolean show) { |
||
72 | this.setDynValue(SHOWINFORMATIONDBTABLES_PARAMTER_NAME, show);
|
||
73 | } |
||
74 | |||
75 | public Boolean getShowInformationDBTables() { |
||
76 | return (Boolean) this.getDynValue(SHOWINFORMATIONDBTABLES_PARAMTER_NAME); |
||
77 | } |
||
78 | |||
79 | public String getUrl() { |
||
80 | return (String) this.getDynValue(URL_PARAMTER_NAME); |
||
81 | } |
||
82 | |||
83 | public void setUrl(String url) { |
||
84 | this.setDynValue(URL_PARAMTER_NAME, url);
|
||
85 | } |
||
86 | |||
87 | 40596 | jjdelcerro | } |