java.lang.Object | +--com.ibm.commerce.messaging.adapters.jcasample.SampleInteraction
This class is invoked by SampleConnection.createInteraction()
method. Once an interaction has been executed, the input message will be
printed to standard output.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT Copyright statement. |
Constructor Summary | |
---|---|
SampleInteraction() SampleInteraction default constructor | |
SampleInteraction(Connection con) SampleInteraction constructor |
Method Summary | |
---|---|
void |
clearWarnings() Clears warnings. |
void |
close() Close the connection |
Record |
execute(InteractionSpec interaction, Record record) Executes the interaction. |
boolean |
execute(InteractionSpec interaction, Record in,
Record out) Executes the interaction. |
Connection |
getConnection() Gets the connection |
ResourceWarning |
getWarnings() Gets warnings. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public SampleInteraction() throws ResourceException
ResourceException
- Raised for any connector's
exception.public SampleInteraction(Connection con) throws ResourceException
con
- The javax.resource.cci.ConnectionResourceException
- Raised by any connector's
exception.Method Detail |
---|
public Connection getConnection()
public void close() throws ResourceException
javax.resource.ResourceException
- Raised when close
connection failed.ResourceException
public Record execute(InteractionSpec interaction, Record record) throws ResourceException
execute(interaction, record, null)
method.
interaction
- The javax.resource.cci.InteractionSpec.record
- The input javax.resource.cci.Record.javax.resource.ResourceException
- Raised when any error
occured.ResourceException
public boolean execute(InteractionSpec interaction, Record in, Record out) throws ResourceException
interaction
- The javax.resource.cci.InteractionSpec.in
- The input javax.resource.cci.Recordout
- The output javax.resource.cci.Recordjavax.resource.ResourceException
- Raised when any error
occured.ResourceException
public ResourceWarning getWarnings() throws ResourceException
javax.resource.Resource.Exception
ResourceException
public void clearWarnings() throws ResourceException
javax.resource.ResourceException
ResourceException