oracle.jdbc.xa.client
Class OracleXAHeteroCloseCallback
java.lang.Object
oracle.jdbc.xa.client.OracleXAHeteroCloseCallback
- All Implemented Interfaces:
- oracle.jdbc.driver.OracleCloseCallback
public class OracleXAHeteroCloseCallback
- extends java.lang.Object
- implements oracle.jdbc.driver.OracleCloseCallback
This class implements the OracleCloseCallback interface that
is defined in oracle.jdbc.driver. It is used to close a physical
connection to an RM instance, and unregister this RM instance
from C-XA's current thread of control. An instance of this class
should be registered with an OracleXAConnection/OraclePooledConnection,
using the registerCloseCallback() method in the OraclePooledConnection
class to function, like:
((OracleXAConnection) xaconn).registerCloseCallback(
new OracleXAHeteroCloseCallback(), new SomeUserObject());
Method Summary |
void |
afterClose(java.lang.Object privData)
|
void |
beforeClose(oracle.jdbc.internal.OracleConnection conn,
java.lang.Object obj)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BUILD_DATE
public static final java.lang.String BUILD_DATE
- See Also:
- Constant Field Values
TRACE
public static final boolean TRACE
- See Also:
- Constant Field Values
OracleXAHeteroCloseCallback
public OracleXAHeteroCloseCallback()
beforeClose
public void beforeClose(oracle.jdbc.internal.OracleConnection conn,
java.lang.Object obj)
- Specified by:
beforeClose
in interface oracle.jdbc.driver.OracleCloseCallback
afterClose
public void afterClose(java.lang.Object privData)
- Specified by:
afterClose
in interface oracle.jdbc.driver.OracleCloseCallback
Copyright © 1998, 2007, Oracle. All rights reserved.