public class TransactionEnlistingInterceptor extends Object implements ConnectionInterceptor
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
TransactionEnlistingInterceptor(ConnectionInterceptor next,
TransactionManager transactionManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
getConnection(ConnectionInfo connectionInfo) |
void |
info(StringBuilder s) |
void |
returnConnection(ConnectionInfo connectionInfo,
ConnectionReturnAction connectionReturnAction)
The
returnConnection method
todo Probably the logic needs improvement if a connection
error occurred and we are destroying the handle. |
public TransactionEnlistingInterceptor(ConnectionInterceptor next, TransactionManager transactionManager)
public void getConnection(ConnectionInfo connectionInfo) throws javax.resource.ResourceException
getConnection in interface ConnectionInterceptorjavax.resource.ResourceExceptionpublic void returnConnection(ConnectionInfo connectionInfo, ConnectionReturnAction connectionReturnAction)
returnConnection method
todo Probably the logic needs improvement if a connection
error occurred and we are destroying the handle.returnConnection in interface ConnectionInterceptorconnectionInfo - a ConnectionInfo valueconnectionReturnAction - a ConnectionReturnAction valuepublic void destroy()
destroy in interface ConnectionInterceptorpublic void info(StringBuilder s)
info in interface ConnectionInterceptorCopyright © 2023. All rights reserved.