Class H2DataStoreDriver
- java.lang.Object
-
- com.vividsolutions.jump.datastore.spatialdatabases.AbstractSpatialDatabasesDSDriver
-
- com.vividsolutions.jump.datastore.h2.H2DataStoreDriver
-
- All Implemented Interfaces:
DataStoreDriver
public class H2DataStoreDriver extends AbstractSpatialDatabasesDSDriver
A driver for supplyingSpatialDatabasesDSConnections
-
-
Field Summary
Fields Modifier and Type Field Description static StringJDBC_CLASS-
Fields inherited from class com.vividsolutions.jump.datastore.spatialdatabases.AbstractSpatialDatabasesDSDriver
driverName, jdbcClass, jdbcDriver, PARAM_DB_File, PARAM_Instance, PARAM_Password, PARAM_Port, PARAM_Server, PARAM_User, paramClasses, paramNames, schema, urlPrefix
-
Fields inherited from interface com.vividsolutions.jump.datastore.DataStoreDriver
REGISTRY_CLASSIFICATION
-
-
Constructor Summary
Constructors Constructor Description H2DataStoreDriver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataStoreConnectioncreateConnection(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 implementationIcongetConnectedIcon()Default icon for this driver after a connection to the datastore has been set.IcongetDisconnectedIcon()Default icon for this driver when there is no active connection.-
Methods inherited from class com.vividsolutions.jump.datastore.spatialdatabases.AbstractSpatialDatabasesDSDriver
createJdbcConnection, createJdbcConnection, getJdbcClass, getJdbcDriver, getJdbcDriverVersion, getName, getParamClasses, getParameterListSchema, getParamNames, getSchema, getUrlPrefix, getVersion, initializeJdbcDriver, isAdHocQuerySupported
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vividsolutions.jump.datastore.DataStoreDriver
toString
-
-
-
-
Field Detail
-
JDBC_CLASS
public static final String JDBC_CLASS
- See Also:
- Constant Field Values
-
-
Method Detail
-
createConnection
public DataStoreConnection createConnection(ParameterList params) throws Exception
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
protected String createJdbcUrl(ParameterList params)
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
public Icon 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
public Icon getDisconnectedIcon()
Default icon for this driver when there is no active connection. Subclass should overload this method to offer a database specific icon.
-
-