|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.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()
|
java.lang.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 |
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
protected void checkIfClosed() throws javax.resource.spi.IllegalStateException
public boolean isClosed()
public void close() throws javax.resource.ResourceException
public void invalidate()
public boolean getAutoCommit() throws 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
.
public javax.resource.cci.Connection getAdapterConnection()
public LogContext getLogContext()
public ILogger getLogger()
public javax.resource.cci.ConnectionMetaData getMetaData() throws javax.resource.ResourceException
public javax.resource.cci.ResultSetInfo getResultSetInfo() throws 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).public java.lang.Object getPhysicalConnection() throws javax.resource.ResourceException
|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |