javax.resource.cci
Interface Connection

All Known Implementing Classes:
TestConnection (src)

public interface Connection

The Connection provides a handle for use by the application to access an underlying physical connection. The client calls the getConnection() method on a ConnectionFactory object to get a Connection.


Method Summary
 void close()
          Closes a connection
 Interaction (src) createInteraction()
          Creates a new interaction associated with this connection.
 LocalTransaction (src) getLocalTransaction()
          Gets a LocalTransaction object which allows the client to manage local transactions for the connection.
 ConnectionMetaData (src) getMetaData()
          Gets meta data for the underlying resource represented by this connection.
 ResultSetInfo (src) getResultSetInfo()
          Gets information on ResultSet functionality supported by the underlying resource for the connection.
 

Method Detail

close

public void close()
           throws ResourceException (src) 
Closes a connection

Throws:
ResourceException (src)

createInteraction

public Interaction (src)  createInteraction()
                              throws ResourceException (src) 
Creates a new interaction associated with this connection.

Throws:
ResourceException (src)

getLocalTransaction

public LocalTransaction (src)  getLocalTransaction()
                                     throws ResourceException (src) 
Gets a LocalTransaction object which allows the client to manage local transactions for the connection.

Throws:
ResourceException (src)

getMetaData

public ConnectionMetaData (src)  getMetaData()
                               throws ResourceException (src) 
Gets meta data for the underlying resource represented by this connection.

Throws:
ResourceException (src)

getResultSetInfo

public ResultSetInfo (src)  getResultSetInfo()
                               throws ResourceException (src) 
Gets information on ResultSet functionality supported by the underlying resource for the connection.

Throws:
ResourceException (src)