com.ibm.connector2.hod
Class J2HODConnection

java.lang.Object
  |
  +--com.ibm.connector2.hod.J2HODConnection
All Implemented Interfaces:
javax.resource.cci.Connection

public class J2HODConnection
extends java.lang.Object
implements javax.resource.cci.Connection

This is an application level handle to the Managed Connection. Subject to change once J2EE/CA specification includes Common Client Interfaces


Constructor Summary
J2HODConnection(javax.resource.spi.ManagedConnection managedConnection)
          Creates an instance of J2HODConnection and sets a set physical connection to a managed connection instance.
 
Method Summary
 void close()
          Closes connection from the host.
 javax.resource.cci.Interaction createInteraction()
          Create an interaction assoicated with this Connection.
 boolean execute(javax.resource.cci.InteractionSpec interactionSpec, javax.resource.cci.Record input, javax.resource.cci.Record output)
          Executes according to interactionSpec and input record.
 boolean getAutoCommit()
          This method is not supported.
 javax.resource.cci.LocalTransaction getLocalTransaction()
          This method is not supported.
 javax.resource.cci.ConnectionMetaData getMetaData()
          Gets the information on the underlying EIS instance represented through an active connection.
 javax.resource.cci.ResultSetInfo getResultSetInfo()
          This method is not supported.
 void setAutoCommit(boolean aAutoCommit)
          This method is not supported.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

J2HODConnection

public J2HODConnection(javax.resource.spi.ManagedConnection managedConnection)
Creates an instance of J2HODConnection and sets a set physical connection to a managed connection instance.
Parameters:
managedConnection - javax.resource.ManagedConnection - a ManagedConnection
Method Detail

execute

public boolean execute(javax.resource.cci.InteractionSpec interactionSpec,
                       javax.resource.cci.Record input,
                       javax.resource.cci.Record output)
                throws javax.resource.ResourceException
Executes according to interactionSpec and input record.
Parameters:
interactionSpec - javax.resource.cci.InteractionSpec
input - javax.resource.cci.Record - screen information sent to the host
output - javax.resource.cci.Record - screen information received from the host after the completion of this method
Returns:
boolean - true if executed successfully; false otherwise.
Throws:
javax.resource.ResourceException - - Failed to get the information for the EIS instance

close

public void close()
           throws javax.resource.ResourceException
Closes connection from the host.
Specified by:
close in interface javax.resource.cci.Connection
Throws:
javax.resource.ResourceException - - Failed to get the information for the EIS instance

createInteraction

public javax.resource.cci.Interaction createInteraction()
                                                 throws javax.resource.ResourceException
Create an interaction assoicated with this Connection. An Interaction enables an application to execute EIS functions.
Specified by:
createInteraction in interface javax.resource.cci.Connection
Returns:
javax.resource.cci.Interaction
Throws:
javax.resource.ResourceException - - Fails to create Interaction

getAutoCommit

public boolean getAutoCommit()
                      throws javax.resource.ResourceException
This method is not supported.
Specified by:
getAutoCommit in interface javax.resource.cci.Connection
Throws:
javax.resource.NotSupportedException - - Method not supported

getLocalTransaction

public javax.resource.cci.LocalTransaction getLocalTransaction()
                                                        throws javax.resource.ResourceException
This method is not supported.
Specified by:
getLocalTransaction in interface javax.resource.cci.Connection
Throws:
javax.resource.NotSupportedException - - Method not supported

getMetaData

public javax.resource.cci.ConnectionMetaData getMetaData()
                                                  throws javax.resource.ResourceException
Gets the information on the underlying EIS instance represented through an active connection.
Specified by:
getMetaData in interface javax.resource.cci.Connection
Returns:
ConnectionMetaData instance representing information about the EIS instance
Throws:
javax.resource.ResourceException - - Failed to get information about the EIS instance

getResultSetInfo

public javax.resource.cci.ResultSetInfo getResultSetInfo()
                                                  throws javax.resource.ResourceException
This method is not supported.
Specified by:
getResultSetInfo in interface javax.resource.cci.Connection
Throws:
javax.resource.NotSupportedException - - Method not supported

setAutoCommit

public void setAutoCommit(boolean aAutoCommit)
                   throws javax.resource.ResourceException
This method is not supported.
Specified by:
setAutoCommit in interface javax.resource.cci.Connection
Throws:
javax.resource.NotSupportedException - - Method not supported