|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ManagedConnection
Interface for the resource adapter's connection instance. This interface is used by the app server and is normally not visible to the application itself.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |