A client gets a Connection instance by using the
getConnection method on a ConnectionFactory
instance. A connection can be associated with zero or more Interaction
instances.
javax.resource.cci.ConnectionFactory, javax.resource.cci.Interaction
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Interaction | Returns: Interaction instanceCreates an Interaction associated with this Connection. |
| public LocalTransaction | Returns: LocalTransaction instanceReturns an LocalTransaction instance that enables a component to demarcate resource manager local transactions on the Connection. |
| public ConnectionMetaData | Returns: ConnectionMetaData instance representing information about the EIS instanceGets the information on the underlying EIS instance represented through an active connection. |
| public ResultSetInfo | Returns: ResultSetInfo instanceGets the information on the ResultSet functionality supported by a connected EIS instance. |
| close | back to summary |
|---|---|
| public void close() throws ResourceException Initiates close of the connection handle at the application level. A client should not use a closed connection to interact with an EIS.
| |
| createInteraction | back to summary |
|---|---|
| public Interaction createInteraction() throws ResourceException Creates an Interaction associated with this Connection. An Interaction enables an application to execute EIS functions.
| |
| getLocalTransaction | back to summary |
|---|---|
| public LocalTransaction getLocalTransaction() throws ResourceException Returns an LocalTransaction instance that enables a component to demarcate resource manager local transactions on the Connection. If a resource adapter does not allow a component to demarcate local transactions on an Connection using LocalTransaction interface, then the method getLocalTransaction should throw a NotSupportedException.
| |
| getMetaData | back to summary |
|---|---|
| public ConnectionMetaData getMetaData() throws ResourceException Gets the information on the underlying EIS instance represented through an active connection.
| |
| getResultSetInfo | back to summary |
|---|---|
| public ResultSetInfo getResultSetInfo() throws ResourceException Gets the information on the ResultSet functionality supported by a connected EIS instance.
| |