com.mulesoft.adapter.ra
Class CCIInteraction

java.lang.Object
  extended by com.mulesoft.adapter.ra.CCIInteraction
All Implemented Interfaces:
com.sap.aii.af.lib.ra.cci.XIInteraction, javax.resource.cci.Interaction

public class CCIInteraction
extends Object
implements com.sap.aii.af.lib.ra.cci.XIInteraction

CciInteraction represents the XI 3.0 AF compliant interaction implementation. It processes the message processing for the outbound (AF->ra) direction.


Constructor Summary
CCIInteraction(javax.resource.cci.Connection cciConnection)
          Creates a new CCI interaction object to call "methods" of an ra The constructor is called by the CciConnection only.
 
Method Summary
 void clearWarnings()
          Resets warning list in this interaction.
 void close()
          Disconnects the current interaction from its current CCI connection (CCI JCA 1.0)
 javax.resource.cci.Record execute(javax.resource.cci.InteractionSpec ispec, javax.resource.cci.Record input)
          Execute the interaction.
 boolean execute(javax.resource.cci.InteractionSpec ispec, javax.resource.cci.Record input, javax.resource.cci.Record output)
          Execute the interaction.
 javax.resource.cci.Connection getConnection()
          Returns the CCI connection that is related to this interaction (CCI JCA 1.0)
 javax.resource.cci.ResourceWarning getWarnings()
          Returns list of warnings occured in this interaction.
 com.sap.aii.af.lib.ra.cci.XIInteractionSpec getXIInteractionSpec()
          Returns the NetWeaver XI specific InteractionSpec (XI specific)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CCIInteraction

public CCIInteraction(javax.resource.cci.Connection cciConnection)
               throws javax.resource.ResourceException
Creates a new CCI interaction object to call "methods" of an ra The constructor is called by the CciConnection only. (ra implementation specific)

Parameters:
cciConnection - The corresponding connection on which this interaction takes place
Throws:
javax.resource.ResourceException - Thrown if message factory cannot be instantiated
Method Detail

getConnection

public javax.resource.cci.Connection getConnection()
Returns the CCI connection that is related to this interaction (CCI JCA 1.0)

Specified by:
getConnection in interface javax.resource.cci.Interaction
Returns:
connection The related connection

close

public void close()
           throws javax.resource.ResourceException
Disconnects the current interaction from its current CCI connection (CCI JCA 1.0)

Specified by:
close in interface javax.resource.cci.Interaction
Throws:
javax.resource.ResourceException

execute

public boolean execute(javax.resource.cci.InteractionSpec ispec,
                       javax.resource.cci.Record input,
                       javax.resource.cci.Record output)
                throws javax.resource.ResourceException
Execute the interaction. This flavour of the execute() signature is mapped to the second flavor For details see: public Record execute (InteractionSpec ispec, Record input) (CCI JCA 1.0)

Specified by:
execute in interface javax.resource.cci.Interaction
Parameters:
ispec - Defines the interaction to be executed
input - The input CCI record related to the ispec
output - The output CCI record related to the ispec
Returns:
True if execution was succesful
Throws:
javax.resource.ResourceException

execute

public javax.resource.cci.Record execute(javax.resource.cci.InteractionSpec ispec,
                                         javax.resource.cci.Record input)
                                  throws javax.resource.ResourceException
Execute the interaction. The execution is controlled by the InteractionSpec. The standard XI AF CCI usage requires that the InteractionSpec is a XiInteractionSpec This sample implementation dumps every interAction to file and gives back an appropiate output record. (CCI JCA 1.0)

Specified by:
execute in interface javax.resource.cci.Interaction
Parameters:
ispec - Defines the interaction to be executed
input - The input CCI record related to the ispec
Returns:
The output CCI record related to the ispec
Throws:
javax.resource.ResourceException - Thrown if no connection, wrong input

getWarnings

public javax.resource.cci.ResourceWarning getWarnings()
                                               throws javax.resource.ResourceException
Returns list of warnings occured in this interaction. This sample does not support warnings hence it returns null (CCI JCA 1.0)

Specified by:
getWarnings in interface javax.resource.cci.Interaction
Returns:
ResourceWarnings occured in this interaction
Throws:
javax.resource.ResourceException - Never thrown

clearWarnings

public void clearWarnings()
                   throws javax.resource.ResourceException
Resets warning list in this interaction. It is not supported in this sample. (CCI JCA 1.0)

Specified by:
clearWarnings in interface javax.resource.cci.Interaction
Throws:
javax.resource.ResourceException

getXIInteractionSpec

public com.sap.aii.af.lib.ra.cci.XIInteractionSpec getXIInteractionSpec()
                                                                 throws javax.resource.NotSupportedException
Returns the NetWeaver XI specific InteractionSpec (XI specific)

Specified by:
getXIInteractionSpec in interface com.sap.aii.af.lib.ra.cci.XIInteraction
Returns:
The XI specific InteractionSpec
Throws:
javax.resource.NotSupportedException
See Also:
com.sap.aii.af.lib.ra.cci.XIInteraction#getXIInteractionSpec(java.lang.String)


Copyright © 2012. All Rights Reserved.