|
IBM Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.samples.business.sna.lu0.DummyLu0ManagedConnection
public class DummyLu0ManagedConnection
Object representing physical connection to the EIS system.
Constructor Summary | |
---|---|
DummyLu0ManagedConnection(DummyLu0ManagedConnectionFactory connectionFactory,
DummyLu0SnaSessionConfigurationProperties configurationProperties)
DummyLu0ManagedConnection constructor |
Method Summary | |
---|---|
void |
addConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
Adds a connection event listener to the ManagedConnection instance |
void |
associateConnection(java.lang.Object handle)
Used by the container to change the association of an application-level connection handle with a ManagedConneciton instance |
protected boolean |
call(DummyLu0Connection currentConnection,
javax.resource.cci.InteractionSpec interactionSpec,
javax.resource.cci.Record input,
javax.resource.cci.Record output)
Executes EIS interaction |
void |
cleanup()
Application server calls this method to force any cleanup on the ManagedConnection instance |
protected void |
close(DummyLu0Connection connectionHandle)
Closes current application level handle |
void |
destroy()
Destroys the physical connection to the underlying resource manager |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getClassID()
|
DummyLu0SnaSessionConfigurationProperties |
getConfigurationProperties()
Gets the configurationProperties |
java.lang.Object |
getConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo requestInfo)
Creates a new connection handle for the underlying physical connection represented by the ManagedConnection instance |
DummyLu0ManagedConnectionFactory |
getConnectionFactory()
Returns a LU0ManagedConnectionFactory instance associated with the DummyLu0ManagedConnection |
boolean |
getInUse()
|
javax.resource.spi.LocalTransaction |
getLocalTransaction()
Returns an LocalTransaction instance that enables a component to demarcate resource manager local transactions on the Connection |
java.io.PrintWriter |
getLogWriter()
Returns LogWriter |
javax.resource.spi.ManagedConnectionMetaData |
getMetaData()
Gets the metadata information for this connection's underlying EIS resource manager instance |
javax.resource.spi.security.PasswordCredential |
getPasswordCredential()
Gets the passwordCredential |
java.lang.Boolean |
getSessionClosed()
Gets the sessionClosed indicator |
java.lang.Boolean |
getSessionEstablished()
Gets the sessionEstablished indicator |
java.lang.String |
getUserName()
Gets the userName |
javax.transaction.xa.XAResource |
getXAResource()
Returns an javax.transaction.xa.XAresource instance |
boolean |
hasActiveConnectionHandle()
returns true if ManagedConnection has active application level connection handle |
void |
removeConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
Removes an already registered connection event listener from the ManagedConnection instance |
void |
setConnectionFactory(DummyLu0ManagedConnectionFactory connectionFactory)
Sets a LU0ManagedConnectionFactory instance associated with the DummyLu0ManagedConnection |
void |
setInUse(boolean b)
|
void |
setLogWriter(java.io.PrintWriter out)
Sets LogWriter |
void |
setUserName(java.lang.String userName)
Sets the userName |
void |
updateClassID()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DummyLu0ManagedConnection(DummyLu0ManagedConnectionFactory connectionFactory, DummyLu0SnaSessionConfigurationProperties configurationProperties) throws javax.resource.ResourceException
connectionFactory
- javax.resource.spi.ManagedConnectionFactoryconfigurationProperties
- com.ibm.btt.samples.business.sna.lu0.host.Lu0SnaSessionConfigurationProperties
javax.resource.ResourceException
Method Detail |
---|
public void addConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
addConnectionEventListener
in interface javax.resource.spi.ManagedConnection
listener
- javax.resource.spi.ConnectionEventListenerpublic void associateConnection(java.lang.Object handle) throws javax.resource.ResourceException
associateConnection
in interface javax.resource.spi.ManagedConnection
handle
- java.lang.Object
javax.resource.ResourceException
public void cleanup() throws javax.resource.ResourceException
cleanup
in interface javax.resource.spi.ManagedConnection
javax.resource.ResourceException
protected boolean call(DummyLu0Connection currentConnection, javax.resource.cci.InteractionSpec interactionSpec, javax.resource.cci.Record input, javax.resource.cci.Record output) throws javax.resource.ResourceException
currentConnection
- com.ibm.btt.samples.business.sna.lu0.DummyLu0ConnectioninteractionSpec
- javax.resource.cci.InteractionSpecinput
- javax.resource.cci.Recordoutput
- javax.resource.cci.Record
javax.resource.ResourceException
protected void close(DummyLu0Connection connectionHandle) throws javax.resource.ResourceException
connectionHandle
- com.ibm.btt.samples.business.sna.lu0.DummyLu0Connection
javax.resource.ResourceException
public void destroy() throws javax.resource.ResourceException
destroy
in interface javax.resource.spi.ManagedConnection
javax.resource.ResourceException
public java.lang.Object getConnection(javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo requestInfo) throws javax.resource.ResourceException
getConnection
in interface javax.resource.spi.ManagedConnection
subject
- javax.security.auth.SubjectrequestInfo
- javax.resource.spi.ConnectionRequestInfo
javax.resource.ResourceException
public boolean hasActiveConnectionHandle()
public javax.resource.spi.LocalTransaction getLocalTransaction() throws javax.resource.ResourceException
getLocalTransaction
in interface javax.resource.spi.ManagedConnection
javax.resource.NotSupportedException
javax.resource.ResourceException
public java.io.PrintWriter getLogWriter()
getLogWriter
in interface javax.resource.spi.ManagedConnection
public javax.resource.spi.ManagedConnectionMetaData getMetaData() throws javax.resource.ResourceException
getMetaData
in interface javax.resource.spi.ManagedConnection
javax.resource.NotSupportedException
javax.resource.ResourceException
public javax.transaction.xa.XAResource getXAResource() throws javax.resource.ResourceException
getXAResource
in interface javax.resource.spi.ManagedConnection
javax.resource.NotSupportedException
javax.resource.ResourceException
public void removeConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
removeConnectionEventListener
in interface javax.resource.spi.ManagedConnection
listener
- javax.resource.spi.ConnectionEventListenerpublic void setLogWriter(java.io.PrintWriter out)
setLogWriter
in interface javax.resource.spi.ManagedConnection
out
- java.io.PrintWriterpublic java.lang.String getUserName()
public void setUserName(java.lang.String userName)
userName
- public DummyLu0ManagedConnectionFactory getConnectionFactory()
public void setConnectionFactory(DummyLu0ManagedConnectionFactory connectionFactory)
connectionFactory
- com.ibm.btt.samples.business.sna.lu0.DummyLU0ManagedConnectionFactorypublic javax.resource.spi.security.PasswordCredential getPasswordCredential()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public DummyLu0SnaSessionConfigurationProperties getConfigurationProperties()
public java.lang.Boolean getSessionClosed()
public java.lang.Boolean getSessionEstablished()
public void setInUse(boolean b)
public boolean getInUse()
public void updateClassID()
public java.lang.String getClassID()
|
IBM Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |