public class ViburDBCPConnectionProvider extends Object implements org.hibernate.service.jdbc.connections.spi.ConnectionProvider, org.hibernate.service.spi.Configurable, org.hibernate.service.spi.Stoppable
A connection provider for Hibernate org.vibur.dbcp.integration.
To use this connection provider set:
hibernate.connection.provider_class org.vibur.dbcp.org.vibur.dbcp.integration.ViburDBCPConnectionProvider
Supported Hibernate properties:All
hibernate.connection.driver_class hibernate.connection.url hibernate.connection.username hibernate.connection.password hibernate.connection.isolation hibernate.connection.autocommit
ViburDBCPConfig properties are also supported via using the
hibernate.vibur prefix.ConnectionProvider,
Serialized Form| Constructor and Description |
|---|
ViburDBCPConnectionProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnection(Connection conn) |
void |
configure(Map configurationValues) |
Connection |
getConnection() |
org.vibur.dbcp.ViburDBCPDataSource |
getDataSource() |
boolean |
isUnwrappableAs(Class unwrapType) |
void |
stop() |
boolean |
supportsAggressiveRelease() |
<T> T |
unwrap(Class<T> unwrapType) |
public void configure(Map configurationValues)
configure in interface org.hibernate.service.spi.Configurablepublic Connection getConnection() throws SQLException
getConnection in interface org.hibernate.service.jdbc.connections.spi.ConnectionProviderSQLExceptionpublic void closeConnection(Connection conn) throws SQLException
closeConnection in interface org.hibernate.service.jdbc.connections.spi.ConnectionProviderSQLExceptionpublic void stop()
stop in interface org.hibernate.service.spi.Stoppablepublic boolean supportsAggressiveRelease()
supportsAggressiveRelease in interface org.hibernate.service.jdbc.connections.spi.ConnectionProviderpublic boolean isUnwrappableAs(Class unwrapType)
isUnwrappableAs in interface org.hibernate.service.spi.Wrappedpublic <T> T unwrap(Class<T> unwrapType)
unwrap in interface org.hibernate.service.spi.Wrappedpublic org.vibur.dbcp.ViburDBCPDataSource getDataSource()
Copyright © 2014-2016 vibur.org. All Rights Reserved.