public class DataSourceConnectionProvider
extends java.lang.Object
implements org.hibernate.engine.jdbc.connections.spi.ConnectionProvider, org.hibernate.service.spi.Configurable
| Constructor and Description |
|---|
DataSourceConnectionProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeConnection(java.sql.Connection con) |
void |
configure(java.util.Map props) |
java.sql.Connection |
getConnection() |
boolean |
isUnwrappableAs(java.lang.Class unwrapType) |
boolean |
supportsAggressiveRelease() |
<T> T |
unwrap(java.lang.Class<T> unwrapType) |
public void configure(java.util.Map props)
throws org.hibernate.HibernateException
configure in interface org.hibernate.service.spi.Configurableorg.hibernate.HibernateExceptionpublic java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface org.hibernate.engine.jdbc.connections.spi.ConnectionProviderjava.sql.SQLExceptionpublic void closeConnection(java.sql.Connection con)
throws java.sql.SQLException
closeConnection in interface org.hibernate.engine.jdbc.connections.spi.ConnectionProviderjava.sql.SQLExceptionpublic void close()
throws org.hibernate.HibernateException
org.hibernate.HibernateExceptionpublic boolean supportsAggressiveRelease()
supportsAggressiveRelease in interface org.hibernate.engine.jdbc.connections.spi.ConnectionProviderpublic boolean isUnwrappableAs(java.lang.Class unwrapType)
isUnwrappableAs in interface org.hibernate.service.spi.Wrappedpublic <T> T unwrap(java.lang.Class<T> unwrapType)
unwrap in interface org.hibernate.service.spi.Wrapped