org.hibernate.testing.jta
Class TestingJtaBootstrap.JtaAwareDataSourceConnectionProvider
java.lang.Object
org.hibernate.service.jdbc.connections.internal.DatasourceConnectionProviderImpl
org.hibernate.testing.jta.TestingJtaBootstrap.JtaAwareDataSourceConnectionProvider
- All Implemented Interfaces:
- Serializable, ConnectionProvider, Service, Configurable, Stoppable, Wrapped
- Enclosing class:
- TestingJtaBootstrap
public static class TestingJtaBootstrap.JtaAwareDataSourceConnectionProvider
- extends DatasourceConnectionProviderImpl
- See Also:
- Serialized Form
Method Summary |
Connection |
getConnection()
Obtains a connection for Hibernate use according to the underlying strategy of this provider. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final TestingJtaBootstrap.JtaAwareDataSourceConnectionProvider INSTANCE
TestingJtaBootstrap.JtaAwareDataSourceConnectionProvider
public TestingJtaBootstrap.JtaAwareDataSourceConnectionProvider()
getConnection
public Connection getConnection()
throws SQLException
- Description copied from class:
DatasourceConnectionProviderImpl
- Obtains a connection for Hibernate use according to the underlying strategy of this provider.
- Specified by:
getConnection
in interface ConnectionProvider
- Overrides:
getConnection
in class DatasourceConnectionProviderImpl
- Returns:
- The obtained JDBC connection
- Throws:
SQLException
- Indicates a problem opening a connection
Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.