Revision 43035
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/jdbc2/spi/JDBCHelperBase.java | ||
---|---|---|
63 | 63 |
|
64 | 64 |
private GeometryManager geometryManager = null; |
65 | 65 |
|
66 |
protected JDBCConnectionParameters connectionParameters;
|
|
66 |
private JDBCConnectionParameters connectionParameters;
|
|
67 | 67 |
|
68 | 68 |
private JDBCStoreProvider store; |
69 | 69 |
|
... | ... | |
190 | 190 |
} |
191 | 191 |
|
192 | 192 |
@Override |
193 |
public String getConnectionURL() { |
|
194 |
return null; |
|
195 |
} |
|
196 |
|
|
197 |
public JDBCConnectionParameters getConnectionParameters() { |
|
198 |
return connectionParameters; |
|
199 |
} |
|
200 |
|
|
201 |
@Override |
|
193 | 202 |
public void closeConnection(Connection connection) { |
194 | 203 |
// this.getResource().closeConnection(connection); |
195 | 204 |
JDBCUtils.closeQuietly(connection); |
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/jdbc2/JDBCHelper.java | ||
---|---|---|
13 | 13 |
import org.gvsig.fmap.dal.resource.spi.ResourceProvider; |
14 | 14 |
import org.gvsig.fmap.dal.spi.DataServerExplorerProviderServices; |
15 | 15 |
import org.gvsig.fmap.dal.spi.DataStoreProviderServices; |
16 |
import org.gvsig.fmap.dal.store.jdbc.JDBCConnectionParameters; |
|
16 | 17 |
import org.gvsig.fmap.dal.store.jdbc.JDBCNewStoreParameters; |
17 | 18 |
import org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters; |
18 | 19 |
import org.gvsig.fmap.dal.store.jdbc.JDBCStoreParameters; |
... | ... | |
103 | 104 |
|
104 | 105 |
public Connection getConnection() throws AccessResourceException; |
105 | 106 |
|
107 |
public String getConnectionURL(); |
|
108 |
|
|
109 |
public JDBCConnectionParameters getConnectionParameters(); |
|
110 |
|
|
106 | 111 |
public void closeConnection( |
107 | 112 |
Connection connection |
108 | 113 |
); |
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/jdbc2/JDBCLibrary.java | ||
---|---|---|
25 | 25 |
import org.gvsig.fmap.dal.DALLibrary; |
26 | 26 |
import org.gvsig.fmap.dal.DALLocator; |
27 | 27 |
import org.gvsig.fmap.dal.resource.db.DBResourceLibrary; |
28 |
import org.gvsig.fmap.dal.resource.spi.ResourceManagerProviderServices; |
|
29 | 28 |
import org.gvsig.fmap.dal.spi.DataManagerProviderServices; |
30 | 29 |
import org.gvsig.fmap.dal.store.db.DBHelper; |
31 | 30 |
import org.gvsig.fmap.dal.store.db.DBStoreLibrary; |
32 | 31 |
import org.gvsig.fmap.dal.store.jdbc.JDBCNewStoreParameters; |
33 |
import org.gvsig.fmap.dal.store.jdbc.JDBCResource; |
|
34 | 32 |
import org.gvsig.fmap.dal.store.jdbc.JDBCResourceParameters; |
35 | 33 |
import org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters; |
36 | 34 |
import org.gvsig.fmap.dal.store.jdbc.JDBCStoreParameters; |
37 |
import org.gvsig.fmap.dal.store.jdbc2.impl.JDBCServerExplorerFactory; |
|
38 |
import org.gvsig.fmap.dal.store.jdbc2.impl.JDBCStoreProviderFactory; |
|
39 | 35 |
import org.gvsig.metadata.exceptions.MetadataException; |
40 | 36 |
import org.gvsig.tools.library.AbstractLibrary; |
41 | 37 |
import org.gvsig.tools.library.LibraryException; |
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/resources/META-INF/services/org.gvsig.tools.library.Library | ||
---|---|---|
1 |
org.gvsig.fmap.dal.store.jdbc.JDBCLibrary |
|
1 |
org.gvsig.fmap.dal.store.jdbc.JDBCLibrary |
|
2 |
org.gvsig.fmap.dal.store.jdbc2.JDBCLibrary |
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/resources/org/gvsig/fmap/dal/store/jdbc2/JDBC2Metadata.xml | ||
---|---|---|
1 |
<?xml version="1.0"?> |
|
2 |
<!-- |
|
3 |
|
|
4 |
gvSIG. Desktop Geographic Information System. |
|
5 |
|
|
6 |
Copyright (C) 2007-2013 gvSIG Association. |
|
7 |
|
|
8 |
This program is free software; you can redistribute it and/or |
|
9 |
modify it under the terms of the GNU General Public License |
|
10 |
as published by the Free Software Foundation; either version 3 |
|
11 |
of the License, or (at your option) any later version. |
|
12 |
|
|
13 |
This program is distributed in the hope that it will be useful, |
|
14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
16 |
GNU General Public License for more details. |
|
17 |
|
|
18 |
You should have received a copy of the GNU General Public License |
|
19 |
along with this program; if not, write to the Free Software |
|
20 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
21 |
MA 02110-1301, USA. |
|
22 |
|
|
23 |
For any additional information, do not hesitate to contact us |
|
24 |
at info AT gvsig.com, or visit our website www.gvsig.com. |
|
25 |
|
|
26 |
--> |
|
27 |
<definitions> |
|
28 |
<version>1.0.0</version> |
|
29 |
<classes> |
|
30 |
<class name="JDBC2" namespace="Metadata"> |
|
31 |
<extends> |
|
32 |
<class name="SpatialProvider" namespace="Metadata"/> |
|
33 |
</extends> |
|
34 |
<description>Metadata of a JDBC2 store</description> |
|
35 |
<fields> |
|
36 |
</fields> |
|
37 |
</class> |
|
38 |
|
|
39 |
</classes> |
|
40 |
</definitions> |
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/resources/org/gvsig/fmap/dal/store/jdbc2/JDBC2Parameters.xml | ||
---|---|---|
1 |
<?xml version="1.0"?> |
|
2 |
<!-- |
|
3 |
|
|
4 |
gvSIG. Desktop Geographic Information System. |
|
5 |
|
|
6 |
Copyright (C) 2007-2013 gvSIG Association. |
|
7 |
|
|
8 |
This program is free software; you can redistribute it and/or |
|
9 |
modify it under the terms of the GNU General Public License |
|
10 |
as published by the Free Software Foundation; either version 3 |
|
11 |
of the License, or (at your option) any later version. |
|
12 |
|
|
13 |
This program is distributed in the hope that it will be useful, |
|
14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
16 |
GNU General Public License for more details. |
|
17 |
|
|
18 |
You should have received a copy of the GNU General Public License |
|
19 |
along with this program; if not, write to the Free Software |
|
20 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
21 |
MA 02110-1301, USA. |
|
22 |
|
|
23 |
For any additional information, do not hesitate to contact us |
|
24 |
at info AT gvsig.com, or visit our website www.gvsig.com. |
|
25 |
|
|
26 |
--> |
|
27 |
<definitions> |
|
28 |
<version>1.0.0</version> |
|
29 |
<classes> |
|
30 |
<class name="JDBC2ResourceParameters"> |
|
31 |
<description></description> |
|
32 |
<extends> |
|
33 |
<class>DBResourceParameters</class> |
|
34 |
</extends> |
|
35 |
<fields> |
|
36 |
<field name="JDBCDriverClass" type="string" mandatory="true" group="Advanced"> |
|
37 |
<description>JDBC Driver class</description> |
|
38 |
</field> |
|
39 |
<field name="URL" type="string" mandatory="true" group="Connection"> |
|
40 |
<description>JDBC url connection</description> |
|
41 |
</field> |
|
42 |
<field name="Catalog" type="string" mandatory="false" group="Basic"> |
|
43 |
<description>Database catalog</description> |
|
44 |
</field> |
|
45 |
<field name="Schema" type="string" mandatory="false" group="Basic"> |
|
46 |
<description>Database schema</description> |
|
47 |
</field> |
|
48 |
</fields> |
|
49 |
</class> |
|
50 |
|
|
51 |
<class name="JDBC2StoreParameters"> |
|
52 |
<extends> |
|
53 |
<class>JDBC2ResourceParameters</class> |
|
54 |
<class>DBStoreParameters</class> |
|
55 |
</extends> |
|
56 |
<tags> |
|
57 |
<value name="defaultGroup" value="Basic"/> |
|
58 |
</tags> |
|
59 |
<fields> |
|
60 |
</fields> |
|
61 |
</class> |
|
62 |
|
|
63 |
<class name="JDBC2NewStoreParameters"> |
|
64 |
<description></description> |
|
65 |
<extends> |
|
66 |
<class>JDBC2ResourceParameters</class> |
|
67 |
<class>DBNewStoreParameters</class> |
|
68 |
</extends> |
|
69 |
<tags> |
|
70 |
<value name="defaultGroup" value="Basic"/> |
|
71 |
</tags> |
|
72 |
<fields> |
|
73 |
<field name="selectRole" label="Roles for select" type="String" mandatory="false" defaultValue="" group="Permissions"> |
|
74 |
<description>Roles asigned to have select privilegies</description> |
|
75 |
</field> |
|
76 |
<field name="insertRole" label="Roles for insert" type="String" mandatory="false" defaultValue="" group="Permissions"> |
|
77 |
<description>Roles asigned to have insert privilegies</description> |
|
78 |
</field> |
|
79 |
<field name="updateRole" label="Roles for update" type="String" mandatory="false" defaultValue="" group="Permissions"> |
|
80 |
<description>Roles asigned to have update privilegies</description> |
|
81 |
</field> |
|
82 |
<field name="deleteRole" label="Roles for delete" type="String" mandatory="false" defaultValue="" group="Permissions"> |
|
83 |
<description>Roles asigned to have delete privilegies</description> |
|
84 |
</field> |
|
85 |
<field name="truncateRole" label="Roles for truncate" type="String" mandatory="false" defaultValue="" group="Permissions"> |
|
86 |
<description>Roles asigned to have truncate privilegies</description> |
|
87 |
</field> |
|
88 |
<field name="referenceRole" label="Roles for reference" type="String" mandatory="false" defaultValue="" group="Permissions"> |
|
89 |
<description>Roles asigned to have reference privilegies</description> |
|
90 |
</field> |
|
91 |
<field name="triggerRole" label="Roles for trigger" type="String" mandatory="false" defaultValue="" group="Permissions"> |
|
92 |
<description>Roles asigned to have trigger privilegies</description> |
|
93 |
</field> |
|
94 |
<field name="allRole" label="Roles for all" type="String" mandatory="false" defaultValue="" group="Permissions"> |
|
95 |
<description>Roles asigned to have all privilegies</description> |
|
96 |
</field> |
|
97 |
<field name="postCreatingStatement" label="Post-creating statement" type="String" mandatory="false" defaultValue="" group="Advanced"> |
|
98 |
<description>Roles asigned to have all privilegies</description> |
|
99 |
</field> |
|
100 |
|
|
101 |
</fields> |
|
102 |
</class> |
|
103 |
|
|
104 |
<class name="JDBC2ServerExplorerParameters"> |
|
105 |
<extends> |
|
106 |
<class>JDBC2ResourceParameters</class> |
|
107 |
<class>DBServerExplorerParameters</class> |
|
108 |
</extends> |
|
109 |
<tags> |
|
110 |
<value name="defaultGroup" value="Basic"/> |
|
111 |
</tags> |
|
112 |
<fields> |
|
113 |
<field name="ShowInformationDBTables" type="boolean" |
|
114 |
mandatory="false" defaultValue="false" group="Basic"> |
|
115 |
<description>Show information tables</description> |
|
116 |
</field> |
|
117 |
</fields> |
|
118 |
</class> |
|
119 |
|
|
120 |
|
|
121 |
</classes> |
|
122 |
</definitions> |
Also available in: Unified diff