ConnectionProvider interface that simply throws an exception when a connection
is requested, the assumption being that the application is responsible for handing the connection to use to
the session
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | closeConnection(Connection
The JDBC connection to release conn)Implements org. |
| public Connection | getConnection()
Implements org. |
| public boolean | isUnwrappableAs(Class<T>
The type to check. unwrapType)Implements org. |
| public boolean | supportsAggressiveRelease()
Implements org. |
| public <T> T | unwrap(Class<T>
The java type as which to unwrap this instance. unwrapType)Implements org. |
| UserSuppliedConnectionProviderImpl | back to summary |
|---|---|
| public UserSuppliedConnectionProviderImpl() | |
| closeConnection | back to summary |
|---|---|
| public void closeConnection(Connection conn) throws SQLException Implements org. Doc from org. Release a connection from Hibernate use.
| |
| getConnection | back to summary |
|---|---|
| public Connection getConnection() throws SQLException Implements org. Doc from org. Obtains a connection for Hibernate use according to the underlying strategy of this provider.
| |
| isUnwrappableAs | back to summary |
|---|---|
| public boolean isUnwrappableAs(Class<T> unwrapType) Implements org. Doc from org. Can this wrapped service be unwrapped as the indicated type? | |
| supportsAggressiveRelease | back to summary |
|---|---|
| public boolean supportsAggressiveRelease() Implements org. Doc from org. Does this connection provider support aggressive release of JDBC connections and re-acquisition of those connections (if need be) later?
This is used in conjunction with Typically, this is only true in managed environments where a container tracks connections by transaction or thread. Note that JTA semantic depends on the fact that the underlying connection provider does support aggressive release.
| |
| unwrap | back to summary |
|---|---|
| public <T> T unwrap(Class<T> unwrapType) Implements org. Doc from org. Unproxy the service proxy
| |