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 / JDBCServerExplorer.java @ 41437
History | View | Annotate | Download (16.4 KB)
1 |
/**
|
---|---|
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 |
package org.gvsig.fmap.dal.store.jdbc; |
25 |
|
26 |
import java.sql.Connection; |
27 |
import java.sql.DatabaseMetaData; |
28 |
import java.sql.ResultSet; |
29 |
import java.sql.SQLException; |
30 |
import java.sql.Statement; |
31 |
import java.util.ArrayList; |
32 |
import java.util.Iterator; |
33 |
import java.util.List; |
34 |
|
35 |
import org.slf4j.Logger; |
36 |
import org.slf4j.LoggerFactory; |
37 |
|
38 |
import org.gvsig.fmap.dal.DALLocator; |
39 |
import org.gvsig.fmap.dal.DataManager; |
40 |
import org.gvsig.fmap.dal.DataStore; |
41 |
import org.gvsig.fmap.dal.DataStoreParameters; |
42 |
import org.gvsig.fmap.dal.NewDataStoreParameters; |
43 |
import org.gvsig.fmap.dal.exception.CloseException; |
44 |
import org.gvsig.fmap.dal.exception.DataException; |
45 |
import org.gvsig.fmap.dal.exception.InitializeException; |
46 |
import org.gvsig.fmap.dal.exception.OpenException; |
47 |
import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException; |
48 |
import org.gvsig.fmap.dal.exception.ReadException; |
49 |
import org.gvsig.fmap.dal.exception.RemoveException; |
50 |
import org.gvsig.fmap.dal.exception.ValidateDataParametersException; |
51 |
import org.gvsig.fmap.dal.feature.EditableFeatureType; |
52 |
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
53 |
import org.gvsig.fmap.dal.feature.FeatureType; |
54 |
import org.gvsig.fmap.dal.feature.NewFeatureStoreParameters; |
55 |
import org.gvsig.fmap.dal.resource.spi.ResourceProvider; |
56 |
import org.gvsig.fmap.dal.serverexplorer.db.spi.AbstractDBServerExplorer; |
57 |
import org.gvsig.fmap.dal.spi.DataManagerProviderServices; |
58 |
import org.gvsig.fmap.dal.spi.DataServerExplorerProviderServices; |
59 |
import org.gvsig.fmap.dal.store.jdbc.exception.JDBCExecuteSQLException; |
60 |
import org.gvsig.fmap.dal.store.jdbc.exception.JDBCSQLException; |
61 |
import org.gvsig.tools.exception.BaseException; |
62 |
|
63 |
|
64 |
/**
|
65 |
* @author jmvivo
|
66 |
*
|
67 |
*/
|
68 |
public class JDBCServerExplorer extends AbstractDBServerExplorer |
69 |
implements JDBCHelperUser {
|
70 |
|
71 |
private static final Logger LOG = LoggerFactory |
72 |
.getLogger(JDBCServerExplorer.class); |
73 |
|
74 |
private static final String METADATA_COLUMN_TABLE_CATALOG = "TABLE_CAT"; |
75 |
private static final String METADATA_COLUMN_TABLE_SCHEMA = "TABLE_SCHEM"; |
76 |
private static final String METADATA_COLUMN_TABLE_NAME = "TABLE_NAME"; |
77 |
|
78 |
public static final String NAME = "JDBCServerExplorer"; |
79 |
protected JDBCHelper helper;
|
80 |
|
81 |
private Boolean canAdd; |
82 |
|
83 |
public JDBCServerExplorer(JDBCServerExplorerParameters parameters,
|
84 |
DataServerExplorerProviderServices services) |
85 |
throws InitializeException {
|
86 |
super(parameters, services);
|
87 |
this.helper = createHelper();
|
88 |
} |
89 |
|
90 |
protected JDBCServerExplorerParameters getJDBCParameters() {
|
91 |
return (JDBCServerExplorerParameters) getParameters();
|
92 |
} |
93 |
|
94 |
protected JDBCHelper createHelper() throws InitializeException { |
95 |
return new JDBCHelper(this, getJDBCParameters()); |
96 |
} |
97 |
|
98 |
protected JDBCHelper getHelper() {
|
99 |
return helper;
|
100 |
} |
101 |
|
102 |
|
103 |
public List list() throws DataException { |
104 |
return this.list(MODE_ALL); |
105 |
} |
106 |
|
107 |
public List list(boolean showInformationDBTables) throws DataException { |
108 |
return this.list(MODE_ALL, showInformationDBTables); |
109 |
} |
110 |
|
111 |
public List list(int mode) throws DataException { |
112 |
JDBCServerExplorerParameters parameters = getJDBCParameters(); |
113 |
if (parameters.getShowInformationDBTables() != null) { |
114 |
return this.list(mode, parameters.getShowInformationDBTables() |
115 |
.booleanValue()); |
116 |
} |
117 |
Boolean show = (Boolean) parameters |
118 |
.getDynClass() |
119 |
.getDynField( |
120 |
JDBCServerExplorerParameters.SHOWINFORMATIONDBTABLES_PARAMTER_NAME) |
121 |
.getDefaultValue(); |
122 |
if (show == null){ |
123 |
show = Boolean.FALSE;
|
124 |
} |
125 |
|
126 |
return this.list(mode, show.booleanValue()); |
127 |
} |
128 |
|
129 |
|
130 |
protected DataManagerProviderServices getManager() {
|
131 |
return (DataManagerProviderServices) DALLocator.getDataManager();
|
132 |
} |
133 |
|
134 |
public boolean hasGeometrySupport() { |
135 |
return false; |
136 |
} |
137 |
|
138 |
public boolean closeResourceRequested(ResourceProvider resource) { |
139 |
try {
|
140 |
this.helper.close();
|
141 |
} catch (CloseException e) {
|
142 |
LOG.error("Exception in close Request", e);
|
143 |
} |
144 |
return !this.helper.isOpen(); |
145 |
} |
146 |
|
147 |
public void resourceChanged(ResourceProvider resource) { |
148 |
// Nothing to do
|
149 |
} |
150 |
|
151 |
public void remove(DataStoreParameters dsp) throws RemoveException { |
152 |
final JDBCStoreParameters dsParams =(JDBCStoreParameters) dsp;
|
153 |
|
154 |
TransactionalAction action = new TransactionalAction() {
|
155 |
public boolean continueTransactionAllowed() { |
156 |
return false; |
157 |
} |
158 |
public Object action(Connection conn) throws DataException { |
159 |
Statement st;
|
160 |
try{
|
161 |
st = conn.createStatement(); |
162 |
} catch (SQLException e) { |
163 |
throw new JDBCSQLException(e); |
164 |
} |
165 |
|
166 |
String sqlDrop = "Drop table " |
167 |
+ dsParams.tableID(); |
168 |
|
169 |
try{
|
170 |
try{
|
171 |
LOG.debug("execute: "+sqlDrop);
|
172 |
st.execute(sqlDrop); |
173 |
} catch (SQLException e) { |
174 |
throw new JDBCExecuteSQLException(sqlDrop, e); |
175 |
} |
176 |
|
177 |
} finally{
|
178 |
try{ st.close(); } catch (SQLException e) {}; |
179 |
} |
180 |
return null; |
181 |
} |
182 |
}; |
183 |
try {
|
184 |
this.helper.doConnectionAction(action);
|
185 |
} catch (Exception e) { |
186 |
throw new RemoveException(this.getProviderName(), e); |
187 |
} |
188 |
} |
189 |
|
190 |
public NewDataStoreParameters getAddParameters() throws DataException { |
191 |
JDBCServerExplorerParameters parameters = getJDBCParameters(); |
192 |
JDBCNewStoreParameters params = new JDBCNewStoreParameters();
|
193 |
params.setHost(parameters.getHost()); |
194 |
params.setPort(parameters.getPort()); |
195 |
params.setDBName(parameters.getDBName()); |
196 |
params.setUser(parameters.getUser()); |
197 |
params.setPassword(parameters.getPassword()); |
198 |
params.setCatalog(parameters.getCatalog()); |
199 |
params.setSchema(parameters.getSchema()); |
200 |
params.setJDBCDriverClassName(parameters.getJDBCDriverClassName()); |
201 |
params.setUrl(parameters.getUrl()); |
202 |
|
203 |
params.setDefaultFeatureType(this.getServerExplorerProviderServices()
|
204 |
.createNewFeatureType()); |
205 |
|
206 |
return params;
|
207 |
} |
208 |
|
209 |
public void closeDone() throws DataException { |
210 |
// Nothing to do
|
211 |
} |
212 |
|
213 |
public void opendDone() throws DataException { |
214 |
// Nothin to do
|
215 |
|
216 |
} |
217 |
|
218 |
public DataStore open(DataStoreParameters dsp) throws DataException { |
219 |
checkIsMine(dsp); |
220 |
DataManager dataMan = DALLocator.getDataManager(); |
221 |
DataStore store; |
222 |
try {
|
223 |
store = dataMan.openStore(dsp.getDataStoreName(), dsp); |
224 |
} catch (ValidateDataParametersException e) {
|
225 |
throw new InitializeException(e); |
226 |
} |
227 |
|
228 |
return store;
|
229 |
} |
230 |
|
231 |
protected void checkIsMine(DataStoreParameters dsp) { |
232 |
if (!(dsp instanceof JDBCStoreParameters)) { |
233 |
// FIXME Exception ???
|
234 |
throw new IllegalArgumentException( |
235 |
"not instance of FilesystemStoreParameters");
|
236 |
} |
237 |
|
238 |
// try {
|
239 |
// dsp.validate();
|
240 |
// } catch (ValidateDataParametersException e) {
|
241 |
// throw new IllegalArgumentException("check parameters", e);
|
242 |
// }
|
243 |
|
244 |
JDBCServerExplorerParameters parameters = getJDBCParameters(); |
245 |
|
246 |
JDBCStoreParameters pgp = (JDBCStoreParameters) dsp; |
247 |
if (!compare(pgp.getHost(), parameters.getHost())) {
|
248 |
throw new IllegalArgumentException("wrong explorer: Host (mine: " |
249 |
+ parameters.getHost() + " other:" + pgp.getHost() + ")"); |
250 |
} |
251 |
if (!compare(pgp.getPort(), parameters.getPort())) {
|
252 |
throw new IllegalArgumentException("wrong explorer: Port (mine: " |
253 |
+ parameters.getPort() + " other:" + pgp.getPort() + ")"); |
254 |
} |
255 |
if (!compare(pgp.getDBName(), parameters.getDBName())) {
|
256 |
throw new IllegalArgumentException("wrong explorer: DBName (mine: " |
257 |
+ parameters.getDBName() + " other:" + pgp.getDBName()
|
258 |
+ ")");
|
259 |
} |
260 |
if (parameters.getCatalog() != null && !parameters.getCatalog().trim().equals("")) { |
261 |
// implicit catalog
|
262 |
if (!compare(pgp.getCatalog(), parameters.getCatalog())) {
|
263 |
throw new IllegalArgumentException( |
264 |
"wrong explorer: Catalog (mine: "
|
265 |
+ parameters.getCatalog() + " other:"
|
266 |
+ pgp.getCatalog() + ")");
|
267 |
} |
268 |
} |
269 |
if (parameters.getSchema() != null && !parameters.getSchema().trim().equals("")) { |
270 |
// implicit schema
|
271 |
if (!compare(pgp.getSchema(), parameters.getSchema())) {
|
272 |
throw new IllegalArgumentException( |
273 |
"wrong explorer: Schema (mine: "
|
274 |
+ parameters.getSchema() + " other:"
|
275 |
+ pgp.getSchema() + ")");
|
276 |
} |
277 |
} |
278 |
} |
279 |
|
280 |
protected boolean compare(Object str1, Object str2) { |
281 |
if (str1 == str2){
|
282 |
return true; |
283 |
} |
284 |
if (str1 == null){ |
285 |
return false; |
286 |
} |
287 |
return str1.equals(str2);
|
288 |
} |
289 |
|
290 |
protected JDBCStoreParameters createStoreParams()
|
291 |
throws InitializeException, ProviderNotRegisteredException {
|
292 |
DataManagerProviderServices manager = this.getManager();
|
293 |
JDBCServerExplorerParameters parameters = getJDBCParameters(); |
294 |
JDBCStoreParameters orgParams = (JDBCStoreParameters) manager |
295 |
.createStoreParameters(getStoreName()); |
296 |
orgParams.setHost(parameters.getHost()); |
297 |
orgParams.setPort(parameters.getPort()); |
298 |
orgParams.setDBName(parameters.getDBName()); |
299 |
orgParams.setUser(parameters.getUser()); |
300 |
orgParams.setPassword(parameters.getPassword()); |
301 |
orgParams.setCatalog(parameters.getCatalog()); |
302 |
orgParams.setJDBCDriverClassName(parameters.getJDBCDriverClassName()); |
303 |
orgParams.setSchema(parameters.getSchema()); |
304 |
orgParams.setUrl(parameters.getUrl()); |
305 |
return orgParams;
|
306 |
} |
307 |
|
308 |
public List list(final int mode, final boolean showInformationDBTables) |
309 |
throws DataException {
|
310 |
|
311 |
final JDBCStoreParameters orgParams = createStoreParams();
|
312 |
|
313 |
ConnectionAction action = new ConnectionAction() {
|
314 |
|
315 |
public Object action(Connection conn) throws DataException { |
316 |
|
317 |
String[] tableTypes = null; |
318 |
if (!showInformationDBTables) {
|
319 |
tableTypes = new String[] { "TABLE", "VIEW" }; |
320 |
} |
321 |
|
322 |
ResultSet result = null; |
323 |
try {
|
324 |
DatabaseMetaData metadata = conn.getMetaData();
|
325 |
result = metadata.getTables(null, null, null, |
326 |
tableTypes); |
327 |
List<JDBCStoreParameters> paramList = new ArrayList<JDBCStoreParameters>(); |
328 |
while (result.next()) {
|
329 |
JDBCStoreParameters params = (JDBCStoreParameters) orgParams |
330 |
.getCopy(); |
331 |
params.setCatalog(result |
332 |
.getString(METADATA_COLUMN_TABLE_CATALOG)); |
333 |
params.setSchema(result |
334 |
.getString(METADATA_COLUMN_TABLE_SCHEMA)); |
335 |
params.setTable(result |
336 |
.getString(METADATA_COLUMN_TABLE_NAME)); |
337 |
paramList.add(params); |
338 |
} |
339 |
|
340 |
return paramList;
|
341 |
} catch (SQLException e) { |
342 |
throw new JDBCSQLException(e); |
343 |
} finally {
|
344 |
if (result != null) { |
345 |
try {
|
346 |
result.close(); |
347 |
} catch (Exception e) { |
348 |
LOG.error("Error closing DatabaseMetadata "
|
349 |
+ "getTables() Resultset", e);
|
350 |
} |
351 |
} |
352 |
} |
353 |
} |
354 |
|
355 |
}; |
356 |
|
357 |
try {
|
358 |
return (List) helper.doConnectionAction(action); |
359 |
} catch (Exception e) { |
360 |
throw new ReadException(this.getProviderName(), e); |
361 |
} |
362 |
} |
363 |
|
364 |
|
365 |
public void open() throws OpenException { |
366 |
helper.open(); |
367 |
} |
368 |
|
369 |
public void close() throws CloseException { |
370 |
helper.close(); |
371 |
} |
372 |
|
373 |
@Override
|
374 |
protected void doDispose() throws BaseException { |
375 |
helper.dispose(); |
376 |
helper = null;
|
377 |
} |
378 |
|
379 |
public String getProviderName() { |
380 |
return NAME;
|
381 |
} |
382 |
|
383 |
protected String getStoreName() { |
384 |
return JDBCStoreProvider.NAME;
|
385 |
} |
386 |
|
387 |
public boolean canAdd() { |
388 |
if (this.canAdd == null){ |
389 |
ConnectionAction action = new ConnectionAction(){
|
390 |
|
391 |
public Object action(Connection conn) throws DataException { |
392 |
try {
|
393 |
DatabaseMetaData metadata = conn.getMetaData();
|
394 |
if (metadata.isReadOnly()) {
|
395 |
return Boolean.FALSE; |
396 |
} |
397 |
return Boolean.TRUE; |
398 |
} catch (SQLException e) { |
399 |
throw new JDBCSQLException(e); |
400 |
} |
401 |
} |
402 |
|
403 |
}; |
404 |
|
405 |
try {
|
406 |
this.canAdd = (Boolean) helper.doConnectionAction(action); |
407 |
} catch (Exception e) { |
408 |
// FIXME Exception
|
409 |
throw new RuntimeException(e); |
410 |
} |
411 |
} |
412 |
return this.canAdd.booleanValue(); |
413 |
} |
414 |
|
415 |
public FeatureType getFeatureType(DataStoreParameters dsp)
|
416 |
throws DataException {
|
417 |
checkIsMine(dsp); |
418 |
|
419 |
// TODO: checks geometry columns and driver geometry supports
|
420 |
EditableFeatureType edType = this.getServerExplorerProviderServices()
|
421 |
.createNewFeatureType(); |
422 |
helper.loadFeatureType(edType, (JDBCStoreParameters) dsp); |
423 |
|
424 |
return edType;
|
425 |
|
426 |
} |
427 |
|
428 |
|
429 |
public boolean add(String providerName, NewDataStoreParameters ndsp, boolean overwrite) |
430 |
throws DataException {
|
431 |
|
432 |
/**
|
433 |
* CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE table_name (
|
434 |
* { column_name data_type [ DEFAULT default_expr ] [ column_constraint
|
435 |
* [ ... ] ] | table_constraint | LIKE parent_table [ { INCLUDING |
|
436 |
* EXCLUDING } DEFAULTS ] } [, ... ] ) [ INHERITS ( parent_table [, ...
|
437 |
* ] ) ] [ WITH OIDS | WITHOUT OIDS ] [ ON COMMIT { PRESERVE ROWS |
|
438 |
* DELETE ROWS | DROP } ]
|
439 |
*
|
440 |
* where column_constraint is:
|
441 |
*
|
442 |
* [ CONSTRAINT constraint_name ] { NOT NULL | NULL | UNIQUE | PRIMARY
|
443 |
* KEY | CHECK (expression) | REFERENCES reftable [ ( refcolumn ) ] [
|
444 |
* MATCH FULL | MATCH PARTIAL | MATCH SIMPLE ] [ ON DELETE action ] [ ON
|
445 |
* UPDATE action ] } [ DEFERRABLE | NOT DEFERRABLE ] [ INITIALLY
|
446 |
* DEFERRED | INITIALLY IMMEDIATE ]
|
447 |
*
|
448 |
* and table_constraint is:
|
449 |
*
|
450 |
* [ CONSTRAINT constraint_name ] { UNIQUE ( column_name [, ... ] ) |
|
451 |
* PRIMARY KEY ( column_name [, ... ] ) | CHECK ( expression ) | FOREIGN
|
452 |
* KEY ( column_name [, ... ] ) REFERENCES reftable [ ( refcolumn [, ...
|
453 |
* ] ) ] [ MATCH FULL | MATCH PARTIAL | MATCH SIMPLE ] [ ON DELETE
|
454 |
* action ] [ ON UPDATE action ] } [ DEFERRABLE | NOT DEFERRABLE ] [
|
455 |
* INITIALLY DEFERRED | INITIALLY IMMEDIATE ]
|
456 |
*/
|
457 |
|
458 |
if (!(ndsp instanceof NewFeatureStoreParameters)) { |
459 |
// FIXME exception
|
460 |
throw new IllegalArgumentException(); |
461 |
} |
462 |
checkIsMine(ndsp); |
463 |
|
464 |
NewFeatureStoreParameters nfdsp = (NewFeatureStoreParameters) ndsp; |
465 |
|
466 |
StringBuilder sql = new StringBuilder(); |
467 |
|
468 |
if (!nfdsp.isValid()) {
|
469 |
// TODO Exception
|
470 |
throw new InitializeException(this.getProviderName(), new Exception( |
471 |
"Parameters not valid"));
|
472 |
} |
473 |
try {
|
474 |
nfdsp.validate(); |
475 |
} catch (ValidateDataParametersException e1) {
|
476 |
throw new InitializeException(this.getProviderName(), e1); |
477 |
} |
478 |
|
479 |
FeatureType fType = nfdsp.getDefaultFeatureType(); |
480 |
|
481 |
sql.append("Create table " + ((JDBCStoreParameters) ndsp).tableID()
|
482 |
+ "(");
|
483 |
Iterator attrs = fType.iterator();
|
484 |
String sqlAttr;
|
485 |
List sqlAttrs = new ArrayList(); |
486 |
|
487 |
while (attrs.hasNext()) {
|
488 |
sqlAttr = helper |
489 |
.getSqlFieldDescription((FeatureAttributeDescriptor) attrs |
490 |
.next()); |
491 |
if (sqlAttr != null) { |
492 |
sqlAttrs.add(sqlAttr); |
493 |
} |
494 |
} |
495 |
|
496 |
helper.stringJoin(sqlAttrs, ", ", sql);
|
497 |
|
498 |
sql.append(")");
|
499 |
|
500 |
final String sqlCreate = sql.toString(); |
501 |
final List sqlAdditional = helper |
502 |
.getAdditionalSqlToCreate(ndsp, fType); |
503 |
|
504 |
TransactionalAction action = new TransactionalAction() {
|
505 |
|
506 |
public boolean continueTransactionAllowed() { |
507 |
// TODO Auto-generated method stub
|
508 |
return false; |
509 |
} |
510 |
|
511 |
public Object action(Connection conn) throws DataException { |
512 |
Statement st = null; |
513 |
|
514 |
try {
|
515 |
st = conn.createStatement(); |
516 |
} catch (SQLException e1) { |
517 |
throw new JDBCSQLException(e1); |
518 |
} |
519 |
String sql = null; |
520 |
|
521 |
try {
|
522 |
sql = sqlCreate; |
523 |
LOG.debug("execute: "+sql);
|
524 |
st.execute(sql); |
525 |
if (sqlAdditional != null) { |
526 |
Iterator iter = sqlAdditional.iterator();
|
527 |
while (iter.hasNext()) {
|
528 |
sql = (String) iter.next();
|
529 |
LOG.debug("execute: "+sql);
|
530 |
st.execute(sql); |
531 |
} |
532 |
} |
533 |
|
534 |
} catch (SQLException e) { |
535 |
throw new JDBCExecuteSQLException(sql, e); |
536 |
} finally {
|
537 |
try {
|
538 |
st.close(); |
539 |
} catch (SQLException e) { |
540 |
LOG.error("Exception clossing statement", e);
|
541 |
} |
542 |
; |
543 |
} |
544 |
|
545 |
return Boolean.TRUE; |
546 |
} |
547 |
|
548 |
}; |
549 |
|
550 |
Boolean result = Boolean.FALSE; |
551 |
|
552 |
try {
|
553 |
result = (Boolean) helper.doConnectionAction(action);
|
554 |
} catch (DataException e) {
|
555 |
throw e;
|
556 |
} catch (Exception e) { |
557 |
// FIXME Exception
|
558 |
throw new RuntimeException(e); |
559 |
} |
560 |
|
561 |
return result.booleanValue();
|
562 |
} |
563 |
|
564 |
public List getDataStoreProviderNames() { |
565 |
List x = new ArrayList(1); |
566 |
x.add(JDBCStoreProvider.NAME); |
567 |
return x;
|
568 |
} |
569 |
|
570 |
} |