javax.resource.cci
Interface Connection


public interface Connection

Represents an application handle for the client. The physical connection is implemented by a ManagedConnection.


Method Summary
 void close()
          Closes the connection at the application level.
 Interaction createInteraction()
          Creates an Interaction for the Connection.
 LocalTransaction getLocalTransaction()
          Returns a LocalTransaction instance to allow the resource manager to manage local transactions.
 ConnectionMetaData getMetaData()
          Returns information on the underlying resource represented by the connection.
 ResultSetInfo getResultSetInfo()
          Returns metadata on the ResultSet capabitilities supported by the connection.
 

Method Detail

createInteraction

Interaction createInteraction()
                              throws ResourceException
Creates an Interaction for the Connection. The Interaction is like the JDBC Statement and actually does the work.

Throws:
ResourceException

getLocalTransaction

LocalTransaction getLocalTransaction()
                                     throws ResourceException
Returns a LocalTransaction instance to allow the resource manager to manage local transactions.

Throws:
ResourceException

getMetaData

ConnectionMetaData getMetaData()
                               throws ResourceException
Returns information on the underlying resource represented by the connection.

Throws:
ResourceException

getResultSetInfo

ResultSetInfo getResultSetInfo()
                               throws ResourceException
Returns metadata on the ResultSet capabitilities supported by the connection.

Throws:
ResourceException

close

void close()
           throws ResourceException
Closes the connection at the application level.

Throws:
ResourceException