Class DruidConnectionProvider
java.lang.Object
com.alibaba.druid.support.hibernate.DruidConnectionProvider
- All Implemented Interfaces:
Serializable
,org.hibernate.engine.jdbc.connections.spi.ConnectionProvider
,org.hibernate.service.Service
,org.hibernate.service.spi.Configurable
,org.hibernate.service.spi.Stoppable
,org.hibernate.service.spi.Wrapped
public class DruidConnectionProvider
extends Object
implements org.hibernate.engine.jdbc.connections.spi.ConnectionProvider, org.hibernate.service.spi.Configurable, org.hibernate.service.spi.Stoppable
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
closeConnection
(Connection conn) void
boolean
isUnwrappableAs
(Class unwrapType) void
stop()
boolean
<T> T
-
Constructor Details
-
DruidConnectionProvider
public DruidConnectionProvider()
-
-
Method Details
-
isUnwrappableAs
- Specified by:
isUnwrappableAs
in interfaceorg.hibernate.service.spi.Wrapped
-
unwrap
- Specified by:
unwrap
in interfaceorg.hibernate.service.spi.Wrapped
-
getConnection
- Specified by:
getConnection
in interfaceorg.hibernate.engine.jdbc.connections.spi.ConnectionProvider
- Throws:
SQLException
-
closeConnection
- Specified by:
closeConnection
in interfaceorg.hibernate.engine.jdbc.connections.spi.ConnectionProvider
- Throws:
SQLException
-
supportsAggressiveRelease
public boolean supportsAggressiveRelease()- Specified by:
supportsAggressiveRelease
in interfaceorg.hibernate.engine.jdbc.connections.spi.ConnectionProvider
-
configure
- Specified by:
configure
in interfaceorg.hibernate.service.spi.Configurable
-
stop
public void stop()- Specified by:
stop
in interfaceorg.hibernate.service.spi.Stoppable
-