Class AbstractSpatialDatabasesDSDriver
java.lang.Object
com.vividsolutions.jump.datastore.spatialdatabases.AbstractSpatialDatabasesDSDriver
- All Implemented Interfaces:
DataStoreDriver
- Direct Known Subclasses:
H2DataStoreDriver, H2ServerDataStoreDriver, MariadbDataStoreDriver, OracleDataStoreDriver, PostgisDataStoreDriver, SpatialiteDataStoreDriver
A driver for supplying
SpatialDatabasesDSConnections-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Driverstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected Class[]protected String[]protected ParameterListSchemaprotected StringFields inherited from interface DataStoreDriver
REGISTRY_CLASSIFICATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract DataStoreConnectioncreateConnection(ParameterList params) protected ConnectioncreateJdbcConnection(ParameterList params) convenience wrapper for thecreateJdbcConnection(ParameterList, Properties)belowprotected ConnectioncreateJdbcConnection(ParameterList params, Properties connProps) use this method in your implementation to create the actual JDBC connectionprotected StringcreateJdbcUrl(ParameterList params) overwrite this method if you have some fancy url scheme and createJdbcConnection() will use that instead of the default implementationgetName()Class[]String[]protected voidbooleanMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DataStoreDriver
getConnectedIcon, getDisconnectedIcon, toString
-
Field Details
-
PARAM_Server
- See Also:
-
PARAM_Port
- See Also:
-
PARAM_Instance
- See Also:
-
PARAM_User
- See Also:
-
PARAM_Password
- See Also:
-
PARAM_DB_File
- See Also:
-
driverName
-
jdbcClass
-
jdbcDriver
-
urlPrefix
-
paramNames
-
paramClasses
-
schema
-
-
Constructor Details
-
AbstractSpatialDatabasesDSDriver
public AbstractSpatialDatabasesDSDriver()
-
-
Method Details
-
getJdbcDriver
- Specified by:
getJdbcDriverin interfaceDataStoreDriver
-
getJdbcDriverVersion
- Specified by:
getJdbcDriverVersionin interfaceDataStoreDriver
-
getJdbcClass
-
getUrlPrefix
-
getParamNames
-
getParamClasses
-
getSchema
-
getName
- Specified by:
getNamein interfaceDataStoreDriver
-
getVersion
- Specified by:
getVersionin interfaceDataStoreDriver
-
getParameterListSchema
- Specified by:
getParameterListSchemain interfaceDataStoreDriver
-
initializeJdbcDriver
protected void initializeJdbcDriver() throws SQLException, InstantiationException, IllegalAccessException, ClassNotFoundException -
createJdbcUrl
overwrite this method if you have some fancy url scheme and createJdbcConnection() will use that instead of the default implementation- Parameters:
params- list of parameters to create a JDBC URL- Returns:
- an URL String from given parameters
-
createJdbcConnection
convenience wrapper for thecreateJdbcConnection(ParameterList, Properties)below- Parameters:
params- list of parameters to create a Connection to a Spatial Database- Returns:
- a Connection from the given parameters
- Throws:
Exception- if an exception occurs during connection creation
-
createJdbcConnection
protected Connection createJdbcConnection(ParameterList params, Properties connProps) throws Exception use this method in your implementation to create the actual JDBC connection- Parameters:
params- list of parameters to create a Connection to a Spatial DatabaseconnProps- properties to create the connection- Returns:
- a Connection from the list of parameters and the database properties
- Throws:
Exception- if an exception occurs during connection creation
-
createConnection
- Specified by:
createConnectionin interfaceDataStoreDriver- Throws:
Exception
-
isAdHocQuerySupported
public boolean isAdHocQuerySupported()- Specified by:
isAdHocQuerySupportedin interfaceDataStoreDriver
-