|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.j2ca.base.WBIInteraction
Provides a light-weight foundation for an
Interaction
implementation.
A subclass should focus on the implementation of method
execute(InteractionSpec,Record)
. Non-critical methods are
implemented as no-ops in this class but can be freely overrided by a subclass
if additional features, such as warnings, need to be provided.
Constructor Summary | |
---|---|
WBIInteraction(WBIConnection conn)
|
Method Summary | |
---|---|
void |
clearWarnings()
Clears any warnings associated with this Interaction instance. |
void |
close()
Closes this Interaction instance and frees up any resources tied to it. |
abstract javax.resource.cci.Record |
execute(javax.resource.cci.InteractionSpec ispec,
javax.resource.cci.Record inRecord)
Performs an operation on the EIS according to the properties specified in the InteractionSpec provided. |
boolean |
execute(javax.resource.cci.InteractionSpec ispec,
javax.resource.cci.Record inRecord,
javax.resource.cci.Record outRecord)
Not supported by standard WBI adapters. |
javax.resource.cci.Connection |
getConnection()
Returns the connection associated with this Interaction instance. |
LogUtils |
getLogUtils()
|
javax.resource.cci.ResourceWarning |
getWarnings()
Returns the first warning in the chain of warnings associated with this Interaction instance or null if no warnings exist. |
protected void |
setLogUtils(LogUtils utils)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WBIInteraction(WBIConnection conn)
Method Detail |
public javax.resource.cci.Connection getConnection()
getConnection
in interface javax.resource.cci.Interaction
public void close() throws javax.resource.ResourceException
close
in interface javax.resource.cci.Interaction
javax.resource.ResourceException
public boolean execute(javax.resource.cci.InteractionSpec ispec, javax.resource.cci.Record inRecord, javax.resource.cci.Record outRecord) throws javax.resource.ResourceException
execute(InteractionSpec,Record)
instead.
execute
in interface javax.resource.cci.Interaction
javax.resource.ResourceException
Interaction.execute(javax.resource.cci.InteractionSpec,
javax.resource.cci.Record, javax.resource.cci.Record)
public abstract javax.resource.cci.Record execute(javax.resource.cci.InteractionSpec ispec, javax.resource.cci.Record inRecord) throws javax.resource.ResourceException
A subclass should provide an EIS-specific implementation of this method.
execute
in interface javax.resource.cci.Interaction
javax.resource.ResourceException
- if the operation failspublic javax.resource.cci.ResourceWarning getWarnings() throws javax.resource.ResourceException
null
if no warnings exist.
getWarnings
in interface javax.resource.cci.Interaction
javax.resource.ResourceException
Interaction.getWarnings()
public void clearWarnings() throws javax.resource.ResourceException
clearWarnings
in interface javax.resource.cci.Interaction
javax.resource.ResourceException
Interaction.clearWarnings()
public LogUtils getLogUtils()
protected void setLogUtils(LogUtils utils)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |