Class H2PooledConnection

  • All Implemented Interfaces:
    AutoCloseable

    public class H2PooledConnection
    extends Object
    implements AutoCloseable
    Pooled connection wrapper to use close semantic to recycle connection (return to the pool).
    • Method Detail

      • schema

        public String schema()
        Returns:
        Schema name if schema is set, null otherwise.
      • schema

        public void schema​(@Nullable
                           @Nullable String schema)
        Parameters:
        schema - Schema name set on this connection.
      • connection

        public Connection connection()
        Returns:
        Connection.
      • statementCacheSize

        public int statementCacheSize()
        Returns:
        Statement cache size.
      • close

        public void close()
        Closes wrapped connection (return to pool or close).
        Specified by:
        close in interface AutoCloseable