com.ibm.commerce.messaging.adapters.jcasample
Class SampleConnection

java.lang.Object
  |
  +--com.ibm.commerce.messaging.adapters.jcasample.SampleConnection

public class SampleConnection
extends java.lang.Object

This class implements Connection interface, which is a Client handle of the Physical connection.


Field Summary
static java.lang.String COPYRIGHT
          Copyright statement.
 
Constructor Summary
SampleConnection( SampleManagedConnection smc)
          The default constructor.
 
Method Summary
 void close()
          Closes the connection
 Interaction createInteraction()
          Creates a new SampleInteraction
 boolean getAutoCommit()
           
 javax.resource.cci.LocalTransaction getLocalTransaction()
          Gets LocalTransaction
  SampleManagedConnection getManagedConnection()
          Gives access to SampleManagedConnection smc
 ConnectionMetaData getMetaData()
          Gets the connections MetaData
 ResultSetInfo getResultSetInfo()
          Gets information on the result set
 void setAutoCommit(boolean param)
          Sets AutoCommit
 
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
Copyright statement.
See Also:
Constant Field Values
Constructor Detail

SampleConnection

public SampleConnection(SampleManagedConnection smc)
                 throws ResourceException
The default constructor.
Throws:
javax.resource.ResourceException - If J2EE resource exception is thrown.
ResourceException
Method Detail

getManagedConnection

public SampleManagedConnection getManagedConnection()
Gives access to SampleManagedConnection smc
Returns:
The SampleManagedConection.

close

public void close()
           throws ResourceException
Closes the connection
Throws:
javax.resouce.ResourceException - If the connection cannot close successfully.
ResourceException

createInteraction

public Interaction createInteraction()
                              throws ResourceException
Creates a new SampleInteraction
Returns:
The Interaction.
Throws:
javax.resource.ResourceException - If cannot create interaction.
ResourceException

getAutoCommit

public boolean getAutoCommit()
                      throws ResourceException
Returns:
Always true.
Throws:
javax.resource.ResourceException
ResourceException
See Also:
Connection getAutoCommit()

setAutoCommit

public void setAutoCommit(boolean param)
                   throws ResourceException
Sets AutoCommit
Throws:
javax.resource.ResourceException - If auto commit failed.
ResourceException

getLocalTransaction

public javax.resource.cci.LocalTransaction getLocalTransaction()
                                                        throws ResourceException
Gets LocalTransaction
Returns:
Always return null. There is no implementation provided in this sample method.
Throws:
javax.resource.ResourceException
ResourceException

getResultSetInfo

public ResultSetInfo getResultSetInfo()
                               throws ResourceException
Gets information on the result set
Returns:
Always return null. There is no implementation provided in this sample method.
Throws:
javax.resource.ResourceException
ResourceException

getMetaData

public ConnectionMetaData getMetaData()
                               throws ResourceException
Gets the connections MetaData
Returns:
The SampleConnectionMetaData
Throws:
javax.resource.ResourceException - If any exception occured.
ResourceException