java.lang.Object | +--com.ibm.commerce.messaging.adapters.jcasample.SampleConnection
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
Constructor Detail |
---|
public SampleConnection(SampleManagedConnection smc) throws ResourceException
javax.resource.ResourceException
- If J2EE resource exception
is thrown.ResourceException
Method Detail |
---|
public SampleManagedConnection getManagedConnection()
public void close() throws ResourceException
javax.resouce.ResourceException
- If the connection cannot
close successfully.ResourceException
public Interaction createInteraction() throws ResourceException
javax.resource.ResourceException
- If cannot create
interaction.ResourceException
public boolean getAutoCommit() throws ResourceException
javax.resource.ResourceException
ResourceException
Connection getAutoCommit()
public void setAutoCommit(boolean param) throws ResourceException
javax.resource.ResourceException
- If auto commit failed.ResourceException
public javax.resource.cci.LocalTransaction getLocalTransaction() throws ResourceException
javax.resource.ResourceException
ResourceException
public ResultSetInfo getResultSetInfo() throws ResourceException
javax.resource.ResourceException
ResourceException
public ConnectionMetaData getMetaData() throws ResourceException
javax.resource.ResourceException
- If any exception
occured.ResourceException