com.mockrunner.mock.connector.cci
Class MockInteraction

java.lang.Object
  extended by com.mockrunner.mock.connector.cci.MockInteraction
All Implemented Interfaces:
javax.resource.cci.Interaction

public class MockInteraction
extends java.lang.Object
implements javax.resource.cci.Interaction

Mock implementation of Interaction. The execute calls are delegated to InteractionHandler.


Constructor Summary
MockInteraction(MockConnection mockConnection)
           
 
Method Summary
 void clearWarnings()
           
 void close()
           
 javax.resource.cci.Record execute(javax.resource.cci.InteractionSpec is, javax.resource.cci.Record record)
          Calls InteractionHandler.execute(InteractionSpec, Record).
 boolean execute(javax.resource.cci.InteractionSpec is, javax.resource.cci.Record request, javax.resource.cci.Record response)
          Calls InteractionHandler.execute(InteractionSpec, Record, Record).
 javax.resource.cci.Connection getConnection()
           
 javax.resource.cci.ResourceWarning getWarnings()
          Returns null, warnings not supported yet.
 boolean isClosed()
          Returns if this Interaction is closed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockInteraction

public MockInteraction(MockConnection mockConnection)
Method Detail

clearWarnings

public void clearWarnings()
                   throws javax.resource.ResourceException
Specified by:
clearWarnings in interface javax.resource.cci.Interaction
Throws:
javax.resource.ResourceException

close

public void close()
           throws javax.resource.ResourceException
Specified by:
close in interface javax.resource.cci.Interaction
Throws:
javax.resource.ResourceException

execute

public javax.resource.cci.Record execute(javax.resource.cci.InteractionSpec is,
                                         javax.resource.cci.Record record)
                                  throws javax.resource.ResourceException
Calls InteractionHandler.execute(InteractionSpec, Record).

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

execute

public boolean execute(javax.resource.cci.InteractionSpec is,
                       javax.resource.cci.Record request,
                       javax.resource.cci.Record response)
                throws javax.resource.ResourceException
Calls InteractionHandler.execute(InteractionSpec, Record, Record).

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

getConnection

public javax.resource.cci.Connection getConnection()
Specified by:
getConnection in interface javax.resource.cci.Interaction

isClosed

public boolean isClosed()
Returns if this Interaction is closed.

Returns:
true if this Interaction is closed, false otherwise

getWarnings

public javax.resource.cci.ResourceWarning getWarnings()
                                               throws javax.resource.ResourceException
Returns null, warnings not supported yet.

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