javax.resource.cci
Interface Connection


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 createInteraction()
          Creates a new interaction associated with this connection.
 LocalTransaction getLocalTransaction()
          Gets a LocalTransaction object which allows the client to manage local transactions for the connection.
 ConnectionMetaData getMetaData()
          Gets meta data for the underlying resource represented by this connection.
 ResultSetInfo getResultSetInfo()
          Gets information on ResultSet functionality supported by the underlying resource for the connection.
 

Method Detail

close

void close()
           throws ResourceException
Closes a connection

Throws:
ResourceException

createInteraction

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

Throws:
ResourceException

getLocalTransaction

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

Throws:
ResourceException

getMetaData

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

Throws:
ResourceException

getResultSetInfo

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

Throws:
ResourceException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.