org.springframework.jdbc.datasource.embedded

Interface EmbeddedDatabase

  • All Superinterfaces:
    javax.sql.CommonDataSource, javax.sql.DataSource, java.sql.Wrapper


    public interface EmbeddedDatabase
    extends javax.sql.DataSource
    EmbeddedDatabase serves as a handle to an embedded database instance.

    An EmbeddedDatabase is also a DataSource and adds a shutdown() operation so that the embedded database instance can be shut down gracefully.

    Since:
    3.0
    Author:
    Keith Donald, Sam Brannen
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void shutdown()
      Shut down this embedded database.
      • Methods inherited from interface javax.sql.DataSource

        getConnection, getConnection
      • Methods inherited from interface javax.sql.CommonDataSource

        getLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriter
      • Methods inherited from interface java.sql.Wrapper

        isWrapperFor, unwrap
    • Method Detail

      • shutdown

        void shutdown()
        Shut down this embedded database.