svn-gvsig-desktop / trunk / libraries / libDataSourceDBBaseDrivers / src / org / gvsig / data / datastores / vectorial / db / jdbc / JDBCExplorer.java @ 20032
History | View | Annotate | Download (926 Bytes)
1 |
package org.gvsig.data.datastores.vectorial.db.jdbc; |
---|---|
2 |
|
3 |
import java.sql.Connection; |
4 |
|
5 |
import org.gvsig.data.DataManager; |
6 |
import org.gvsig.data.IDataExplorerParameters; |
7 |
import org.gvsig.data.IDataStore; |
8 |
import org.gvsig.data.IDataStoreParameters; |
9 |
import org.gvsig.data.datastores.vectorial.db.DBExplorer; |
10 |
import org.gvsig.data.exception.InitializeException; |
11 |
import org.gvsig.data.exception.InitializeWriterException; |
12 |
import org.gvsig.data.exception.OpenException; |
13 |
import org.gvsig.data.exception.ReadException; |
14 |
import org.gvsig.data.vectorial.INewDataStoreParameters; |
15 |
|
16 |
public abstract class JDBCExplorer extends DBExplorer { |
17 |
protected Connection connection = null; |
18 |
|
19 |
protected abstract Connection getConnection(); |
20 |
|
21 |
public IDataStore createDataStore(IDataStoreParameters dsp) throws InitializeException, InitializeWriterException { |
22 |
DataManager manager = DataManager.getManager(); |
23 |
return manager.createDataStore(dsp);
|
24 |
} |
25 |
|
26 |
|
27 |
|
28 |
} |