Package org.hibernate.testing.jdbc
Class SharedDriverManagerConnectionProviderImpl
- java.lang.Object
-
- org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl
-
- org.hibernate.testing.jdbc.SharedDriverManagerConnectionProviderImpl
-
- All Implemented Interfaces:
java.io.Serializable,org.hibernate.engine.jdbc.connections.internal.ConnectionValidator,ConnectionProvider,Service,Configurable,ServiceRegistryAwareService,Stoppable,Wrapped
public class SharedDriverManagerConnectionProviderImpl extends org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImplA special connection provider that is shared across test runs for better performance.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SharedDriverManagerConnectionProviderImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(java.util.Map configurationValues)Configure the service.static SharedDriverManagerConnectionProviderImplgetInstance()booleanisValid(java.sql.Connection connection)voidreset()voidstop()Stop phase notification
-
-
-
Method Detail
-
getInstance
public static SharedDriverManagerConnectionProviderImpl getInstance()
-
configure
public void configure(java.util.Map configurationValues)
Description copied from interface:ConfigurableConfigure the service.- Specified by:
configurein interfaceConfigurable- Overrides:
configurein classorg.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl- Parameters:
configurationValues- The configuration properties.
-
isValid
public boolean isValid(java.sql.Connection connection) throws java.sql.SQLException- Specified by:
isValidin interfaceorg.hibernate.engine.jdbc.connections.internal.ConnectionValidator- Overrides:
isValidin classorg.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl- Throws:
java.sql.SQLException
-
stop
public void stop()
Description copied from interface:StoppableStop phase notification
-
reset
public void reset()
-
-