Class SharedDriverManagerConnectionProviderImpl

java.lang.Object
org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl
org.hibernate.testing.jdbc.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:
  • Field Summary

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

    CONNECTION_CREATOR_FACTORY, INIT_SQL, INITIAL_SIZE, MIN_SIZE, VALIDATION_INTERVAL

    Fields inherited from interface org.hibernate.engine.jdbc.connections.internal.ConnectionValidator

    ALWAYS_VALID
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    configure(Map<String,Object> configurationValues)
     
     
    int
     
    boolean
    isValid(Connection connection)
     
    void
     
    void
     
    void
     

    Methods inherited from class org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl

    closeConnection, finalize, getConnection, getDatabaseConnectionInfo, injectServices, isUnwrappableAs, supportsAggressiveRelease, unwrap, validateConnections, validateConnectionsReturned

    Methods inherited from class java.lang.Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.hibernate.engine.jdbc.connections.spi.ConnectionProvider

    getDatabaseConnectionInfo
  • Constructor Details

    • SharedDriverManagerConnectionProviderImpl

      public SharedDriverManagerConnectionProviderImpl()
  • Method Details

    • getInstance

      public static SharedDriverManagerConnectionProviderImpl getInstance()
    • configure

      public void configure(Map<String,Object> 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
    • clearTypeCache

      public void clearTypeCache()
    • onDefaultTimeZoneChange

      public void onDefaultTimeZoneChange()
    • reset

      public void reset()
    • getOpenConnections

      public int getOpenConnections()
      Overrides:
      getOpenConnections in class org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl