Class H2DataStoreDriver
java.lang.Object
com.vividsolutions.jump.datastore.spatialdatabases.AbstractSpatialDatabasesDSDriver
com.vividsolutions.jump.datastore.h2.H2DataStoreDriver
- All Implemented Interfaces:
DataStoreDriver
A driver for supplying
SpatialDatabasesDSConnection
s-
Field Summary
FieldsFields inherited from class AbstractSpatialDatabasesDSDriver
driverName, jdbcClass, jdbcDriver, PARAM_DB_File, PARAM_Instance, PARAM_Password, PARAM_Port, PARAM_Server, PARAM_User, paramClasses, paramNames, schema, urlPrefixFields inherited from interface DataStoreDriver
REGISTRY_CLASSIFICATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateConnection(ParameterList params) returns the right type of DataStoreConnectionprotected StringcreateJdbcUrl(ParameterList params) overwrite this method if you have some fancy url scheme and createJdbcConnection() will use that instead of the default implementationDefault icon for this driver after a connection to the datastore has been set.Default icon for this driver when there is no active connection.Methods inherited from class AbstractSpatialDatabasesDSDriver
createJdbcConnection, createJdbcConnection, getJdbcClass, getJdbcDriver, getJdbcDriverVersion, getName, getParamClasses, getParameterListSchema, getParamNames, getSchema, getUrlPrefix, getVersion, initializeJdbcDriver, isAdHocQuerySupportedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DataStoreDriver
toString
-
Field Details
-
JDBC_CLASS
- See Also:
-
-
Constructor Details
-
H2DataStoreDriver
public H2DataStoreDriver()
-
-
Method Details
-
createConnection
returns the right type of DataStoreConnection- Specified by:
createConnectionin interfaceDataStoreDriver- Specified by:
createConnectionin classAbstractSpatialDatabasesDSDriver- Parameters:
params- database connection parameters- Returns:
- a DataStoreConnection
- Throws:
Exception- if an Exception occurs while establishing the connection
-
createJdbcUrl
Description copied from class:AbstractSpatialDatabasesDSDriveroverwrite this method if you have some fancy url scheme and createJdbcConnection() will use that instead of the default implementation- Overrides:
createJdbcUrlin classAbstractSpatialDatabasesDSDriver- Parameters:
params- list of parameters to create a JDBC URL- Returns:
- an URL String from given parameters
-
getConnectedIcon
Default icon for this driver after a connection to the datastore has been set. Subclass should overload this method to offer a database specific icon. -
getDisconnectedIcon
Default icon for this driver when there is no active connection. Subclass should overload this method to offer a database specific icon.
-