public interface ManagedConnection
Modifier and Type | Method and Description |
---|---|
void |
addConnectionEventListener(ConnectionEventListener listener)
Adds a new listener.
|
void |
associateConnection(java.lang.Object connection)
Associates an application-level connection handle with a ManagedConnection
|
void |
cleanup()
Cleanup the physical connection.
|
void |
destroy()
Destroys the physical connection.
|
java.lang.Object |
getConnection(javax.security.auth.Subject subject,
ConnectionRequestInfo requestInfo)
Creates a new connection handle for the underlying physical connection.
|
LocalTransaction |
getLocalTransaction()
Returns a LocalTransaction.
|
java.io.PrintWriter |
getLogWriter()
Returns the log stream.
|
ManagedConnectionMetaData |
getMetaData()
Returns the meta data for the connection.
|
XAResource |
getXAResource()
Returns an XAResource for the connection.
|
void |
removeConnectionEventListener(ConnectionEventListener listener)
Removes an old new listener.
|
void |
setLogWriter(java.io.PrintWriter log)
Sets the log stream.
|
java.lang.Object getConnection(javax.security.auth.Subject subject, ConnectionRequestInfo requestInfo) throws ResourceException
ResourceException
void associateConnection(java.lang.Object connection) throws ResourceException
ResourceException
void addConnectionEventListener(ConnectionEventListener listener)
void removeConnectionEventListener(ConnectionEventListener listener)
XAResource getXAResource() throws ResourceException
ResourceException
LocalTransaction getLocalTransaction() throws ResourceException
ResourceException
ManagedConnectionMetaData getMetaData() throws ResourceException
ResourceException
void setLogWriter(java.io.PrintWriter log) throws ResourceException
ResourceException
java.io.PrintWriter getLogWriter() throws ResourceException
ResourceException
void cleanup() throws ResourceException
ResourceException
void destroy() throws ResourceException
ResourceException