|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.adapter.cci.AbstractConnection
A simple implementation of the CCI Connection interface. Provides logging support and basic state management (i.e. whether this handle has been closed, etc.). Adapter developers will need to implement the createInteraction method to return a concrete Interaction.
Constructor Summary | |
AbstractConnection(AbstractManagedConnection managedConnection)
Creates an object that represents an application-level connection handle to an EIS. |
Method Summary | |
protected void |
checkIfClosed()
Checks to see if the client has already called the "close" on this instance. |
void |
close()
Closes this application-level connection handle. |
javax.resource.cci.Connection |
getAdapterConnection()
Used to gain access to the real javax.resource.Connection from the proxy returned in weblogic. |
boolean |
getAutoCommit()
|
javax.resource.cci.LocalTransaction |
getLocalTransaction()
This method delegates the retrieval of a local transaction instance to its ManagedConnection . |
LogContext |
getLogContext()
Retrieves an object that determines the logging configuration for this instance in the logging framework. |
ILogger |
getLogger()
Retrieves an object used to log information to. |
AbstractManagedConnection |
getManagedConnection()
Get the managed connection for this connection. |
javax.resource.cci.ConnectionMetaData |
getMetaData()
|
Object |
getPhysicalConnection()
This method returns the physical database connection of our managed connection member. |
javax.resource.cci.ResultSetInfo |
getResultSetInfo()
This method is not supported by default; adapter providers should override this method to return result set info. |
void |
invalidate()
Invalidates this handle. |
boolean |
isClosed()
|
void |
setAutoCommit(boolean bAutoCommit)
This method gets the current physical (jdbc) connection of our managed connection and checks to make sure that it supports local transactions. |
void |
setManagedConnection(AbstractManagedConnection managedConnection)
Sets the managed connection for this connection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.resource.cci.Connection |
createInteraction |
Constructor Detail |
public AbstractConnection(AbstractManagedConnection managedConnection) throws javax.resource.ResourceException
managedConnection
- - the underlying physical connection to the EISMethod Detail |
public AbstractManagedConnection getManagedConnection()
public void setManagedConnection(AbstractManagedConnection managedConnection) throws javax.resource.ResourceException
javax.resource.ResourceException
protected void checkIfClosed() throws javax.resource.spi.IllegalStateException
javax.resource.spi.IllegalStateException
- - the destoy has
already been called on this instance.public boolean isClosed()
public void close() throws javax.resource.ResourceException
close
in interface javax.resource.cci.Connection
javax.resource.ResourceException
public void invalidate()
public boolean getAutoCommit() throws javax.resource.ResourceException
javax.resource.ResourceException
public javax.resource.cci.LocalTransaction getLocalTransaction() throws javax.resource.ResourceException
ManagedConnection
. Consequently, this assumes that the
local transaction object supplied by the ManagedConnection
implements javax.resource.cci.LocalTransaction
as well as
javax.resource.spi.LocalTransaction
. Note, this method will
attempt to enable local TX event notifications as per the JCA 1.0 spec.
By default LocalTransaction objects obtained directly from the managed
connection (by the Connector container) should not send local TX event
notifications. If the LocalTransaction object returned by the managed
connection is a subclass of AbstractLocalTransaction, this method will
call the AbstractLocalTransaction.setNotifyEnabled(true) method.
getLocalTransaction
in interface javax.resource.cci.Connection
javax.resource.ResourceException
public javax.resource.cci.Connection getAdapterConnection()
getAdapterConnection
in interface IProxiedConnection
public LogContext getLogContext()
public ILogger getLogger()
public javax.resource.cci.ConnectionMetaData getMetaData() throws javax.resource.ResourceException
getMetaData
in interface javax.resource.cci.Connection
javax.resource.ResourceException
public javax.resource.cci.ResultSetInfo getResultSetInfo() throws javax.resource.ResourceException
getResultSetInfo
in interface javax.resource.cci.Connection
javax.resource.ResourceException
public void setAutoCommit(boolean bAutoCommit) throws javax.resource.ResourceException
bAutoCommit
- is a boolean indicating whether or not autocommit should be turned
on (true) or turned off (false).
javax.resource.ResourceException
public Object getPhysicalConnection() throws javax.resource.ResourceException
javax.resource.ResourceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |