gvsig-oracle / org.gvsig.oracle / trunk / org.gvsig.oracle / org.gvsig.oracle.provider / src / main / java / org / gvsig / oracle / dal / OracleExplorerParameters.java @ 915
History | View | Annotate | Download (2.96 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 |
*/
|
25 |
package org.gvsig.oracle.dal; |
26 |
|
27 |
import org.gvsig.fmap.dal.exception.ValidateDataParametersException; |
28 |
import org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParametersBase; |
29 |
|
30 |
public class OracleExplorerParameters extends |
31 |
JDBCServerExplorerParametersBase |
32 |
implements
|
33 |
OracleConnectionParameters |
34 |
{ |
35 |
|
36 |
private final OracleConnectionParametersHelper helper; |
37 |
|
38 |
public OracleExplorerParameters() {
|
39 |
super(
|
40 |
OracleLibrary.NAME + "ServerExplorerParameters",
|
41 |
OracleLibrary.NAME |
42 |
); |
43 |
this.helper = new OracleConnectionParametersHelper(this); |
44 |
} |
45 |
|
46 |
@Override
|
47 |
public String getUrl() { |
48 |
return this.helper.getUrl(); |
49 |
} |
50 |
|
51 |
@Override
|
52 |
public void validate() throws ValidateDataParametersException { |
53 |
this.helper.validate();
|
54 |
super.validate();
|
55 |
} |
56 |
|
57 |
@Override
|
58 |
public void setDynValue(String name, Object value) { |
59 |
if (!URL_PARAMTER_NAME.equals(name)) {
|
60 |
// reset URL each time a parameter changes
|
61 |
super.setDynValue(URL_PARAMTER_NAME, null); |
62 |
} |
63 |
super.setDynValue(name, value);
|
64 |
} |
65 |
|
66 |
@Override
|
67 |
public String getMode() { |
68 |
return this.helper.getMode(); |
69 |
} |
70 |
|
71 |
@Override
|
72 |
public void setMode(String mode) { |
73 |
this.helper.setMode(mode);
|
74 |
} |
75 |
public Integer getLobPrefetchSize() { |
76 |
return this.helper.getLobPrefetchSize(); |
77 |
} |
78 |
|
79 |
public void setLobPrefetchSize(Integer size) { |
80 |
this.helper.setLobPrefetchSize(size);
|
81 |
} |
82 |
|
83 |
@Override
|
84 |
public boolean getUpdateSpatialIndexAndMetadata() { |
85 |
return this.helper.getUpdateSpatialIndexAndMetadata(); |
86 |
} |
87 |
|
88 |
@Override
|
89 |
public void setUpdateSpatialIndexAndMetadata(boolean updateSpatialIndexAndMetadata) { |
90 |
this.helper.setUpdateSpatialIndexAndMetadata(updateSpatialIndexAndMetadata);
|
91 |
} |
92 |
|
93 |
@Override
|
94 |
public boolean getForceUppercaseInTableName() { |
95 |
return this.helper.getForceUppercaseInTableName(); |
96 |
} |
97 |
|
98 |
@Override
|
99 |
public void setForceUppercaseInTableName(boolean force) { |
100 |
this.helper.setForceUppercaseInTableName(force);
|
101 |
} |
102 |
} |