Class SharedDriverManagerConnectionProviderImpl

  • All Implemented Interfaces:
    Serializable, org.hibernate.engine.jdbc.connections.internal.ConnectionValidator, org.hibernate.engine.jdbc.connections.spi.ConnectionProvider, org.hibernate.service.Service, org.hibernate.service.spi.Configurable, org.hibernate.service.spi.ServiceRegistryAwareService, org.hibernate.service.spi.Stoppable, org.hibernate.service.spi.Wrapped

    public class SharedDriverManagerConnectionProviderImpl
    extends org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl
    A special connection provider that is shared across test runs for better performance.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl

        org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl.PooledConnections
    • Field Summary

      • Fields inherited from class org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl

        INITIAL_SIZE, MIN_SIZE, VALIDATION_INTERVAL
      • Fields inherited from interface org.hibernate.engine.jdbc.connections.internal.ConnectionValidator

        ALWAYS_VALID
    • Constructor Detail

      • SharedDriverManagerConnectionProviderImpl

        public SharedDriverManagerConnectionProviderImpl()
    • Method Detail

      • configure

        public void configure​(Map configurationValues)
        Specified by:
        configure in interface org.hibernate.service.spi.Configurable
        Overrides:
        configure in class org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl
      • isValid

        public boolean isValid​(Connection connection)
                        throws SQLException
        Specified by:
        isValid in interface org.hibernate.engine.jdbc.connections.internal.ConnectionValidator
        Overrides:
        isValid in class org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl
        Throws:
        SQLException
      • stop

        public void stop()
        Specified by:
        stop in interface org.hibernate.service.spi.Stoppable
        Overrides:
        stop in class org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl
      • reset

        public void reset()