|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A Connection represents an application-level handle that is used by a client to access the underlying physical connection. The actual physical connection associated with a Connection instance is represented by a ManagedConnection instance.
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.
ConnectionFactory,
Interaction| Method Summary | |
void |
close()
Initiates close of the connection handle at the application level. |
Interaction |
createInteraction()
Creates an Interaction associated with this Connection. |
boolean |
getAutoCommit()
Gets the AutoCommit mode for the Connection. |
LocalTransaction |
getLocalTransaction()
Returns an LocalTransaction instance that enables a component to demarcate resource manager local transactions on the Connection. |
ConnectionMetaData |
getMetaData()
Gets the information on the underlying EIS instance represented through an active connection. |
ResultSetInfo |
getResultSetInfo()
Gets the information on the ResultSet functionality supported by a connected EIS instance. |
void |
setAutoCommit(boolean autoCommit)
Sets the AutoCommit mode for the Connection. |
| Method Detail |
public Interaction createInteraction()
throws ResourceException
ResourceException - Exception if the create operation
fails
public LocalTransaction getLocalTransaction()
throws ResourceException
ResourceException - Failed to return a LocalTransaction
instance because of a resource
adapter or EIS error.NotSupportedException - Demarcation of Resource manager
local transactions is not supported
on this Connection.
public void setAutoCommit(boolean autoCommit)
throws ResourceException
autoCommit - true sets autoCommit mode on; false
sets autoCommit mode to be offResourceException - Failed to set the autoCommit mode
or if the connection is participating
in an on-going transaction
public boolean getAutoCommit()
throws ResourceException
ResourceException - Failed to get the autoCommit mode
public ConnectionMetaData getMetaData()
throws ResourceException
ResourceException - Failed to get information about the EIS
instance
public ResultSetInfo getResultSetInfo()
throws ResourceException
ResourceException - Failed to get resultSet related
informationNotSupportedException - ResultSet functionality is not
supported
public void close()
throws ResourceException
ResourceException - Close operation failed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||