public class TransactionEnlistingInterceptor extends java.lang.Object implements ConnectionInterceptor
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
TransactionEnlistingInterceptor(ConnectionInterceptor next,
javax.transaction.TransactionManager transactionManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
getConnection(ConnectionInfo connectionInfo) |
void |
info(java.lang.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, javax.transaction.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(java.lang.StringBuilder s)
info in interface ConnectionInterceptorCopyright © 2003-2016 The Apache Software Foundation. All Rights Reserved.