Class H2DataStoreDriver

All Implemented Interfaces:
DataStoreDriver

public class H2DataStoreDriver extends AbstractSpatialDatabasesDSDriver
A driver for supplying SpatialDatabasesDSConnection s
  • Field Details

  • Constructor Details

    • H2DataStoreDriver

      public H2DataStoreDriver()
  • Method Details

    • createConnection

      public DataStoreConnection createConnection(ParameterList params) throws Exception
      returns the right type of DataStoreConnection
      Specified by:
      createConnection in interface DataStoreDriver
      Specified by:
      createConnection in class AbstractSpatialDatabasesDSDriver
      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: AbstractSpatialDatabasesDSDriver
      overwrite this method if you have some fancy url scheme and createJdbcConnection() will use that instead of the default implementation
      Overrides:
      createJdbcUrl in class AbstractSpatialDatabasesDSDriver
      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.