站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 j2ee API Documentation 英文版文档

Connection (JBoss J2EE API) - JBoss 4.0.1 sp1 j2ee API Documentation 英文版文档


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

public void close()
           throws ResourceException
Closes a connection

Throws:
ResourceException

createInteraction

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

Throws:
ResourceException

getLocalTransaction

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

Throws:
ResourceException

getMetaData

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

Throws:
ResourceException

getResultSetInfo

public 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.