|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection
BaseWrapperManagedConnection.java Created: Fri Apr 19 13:31:47 2002
Field Summary | |
protected java.sql.Connection |
con
|
protected boolean |
destroyed
|
protected boolean |
inManagedTransaction
|
protected boolean |
jdbcAutoCommit
|
protected boolean |
jdbcReadOnly
|
protected int |
jdbcTransactionIsolation
|
protected BaseWrapperManagedConnectionFactory (src) |
mcf
|
protected java.util.Properties |
props
|
protected java.lang.Object |
stateLock
|
protected boolean |
underlyingAutoCommit
|
protected boolean |
underlyingReadOnly
|
Constructor Summary | |
BaseWrapperManagedConnection(BaseWrapperManagedConnectionFactory (src) mcf,
java.sql.Connection con,
java.util.Properties props,
int transactionIsolation,
int psCacheSize)
|
Method Summary | |
void |
addConnectionEventListener(ConnectionEventListener (src) cel)
Adds a connection event listener |
void |
associateConnection(java.lang.Object handle)
Associates a new application level connection handle with the connection. |
protected void |
broadcastConnectionError(java.sql.SQLException e)
|
protected void |
checkException(java.sql.SQLException e)
|
protected void |
checkState()
Checks the state |
boolean |
checkValid()
|
void |
cleanup()
Application server calls this to force cleanup of connection. |
void |
destroy()
Destroys the connection to the underlying resource. |
java.lang.Object |
getConnection(javax.security.auth.Subject subject,
ConnectionRequestInfo (src) cri)
Creates a new connection handle for the underlying connection. |
protected Logger (src) |
getLog()
|
java.io.PrintWriter |
getLogWriter()
Gets the logwriter for this instance. |
ManagedConnectionMetaData (src) |
getMetaData()
Gets metadata inormation for this instances underlying resource manager instance. |
void |
removeConnectionEventListener(ConnectionEventListener (src) cel)
Removes a connection event listener |
void |
setLogWriter(java.io.PrintWriter param1)
Sets the logwriter for this instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.resource.spi.ManagedConnection (src) |
getLocalTransaction, getXAResource |
Field Detail |
protected final BaseWrapperManagedConnectionFactory (src) mcf
protected final java.sql.Connection con
protected final java.util.Properties props
protected java.lang.Object stateLock
protected boolean inManagedTransaction
protected boolean jdbcAutoCommit
protected boolean underlyingAutoCommit
protected boolean jdbcReadOnly
protected boolean underlyingReadOnly
protected int jdbcTransactionIsolation
protected boolean destroyed
Constructor Detail |
public BaseWrapperManagedConnection(BaseWrapperManagedConnectionFactory (src) mcf, java.sql.Connection con, java.util.Properties props, int transactionIsolation, int psCacheSize) throws java.sql.SQLException
Method Detail |
public void addConnectionEventListener(ConnectionEventListener (src) cel)
ManagedConnection (src)
addConnectionEventListener
in interface ManagedConnection (src)
cel
- the listenerpublic void removeConnectionEventListener(ConnectionEventListener (src) cel)
ManagedConnection (src)
removeConnectionEventListener
in interface ManagedConnection (src)
cel
- the listenerpublic void associateConnection(java.lang.Object handle) throws ResourceException (src)
ManagedConnection (src)
associateConnection
in interface ManagedConnection (src)
handle
- the connection
ResourceException (src)
- public java.io.PrintWriter getLogWriter() throws ResourceException (src)
ManagedConnection (src)
getLogWriter
in interface ManagedConnection (src)
ResourceException (src)
- public ManagedConnectionMetaData (src) getMetaData() throws ResourceException (src)
ManagedConnection (src)
getMetaData
in interface ManagedConnection (src)
ResourceException (src)
- public void setLogWriter(java.io.PrintWriter param1) throws ResourceException (src)
ManagedConnection (src)
setLogWriter
in interface ManagedConnection (src)
param1
- ResourceException (src)
- public void cleanup() throws ResourceException (src)
ManagedConnection (src)
cleanup
in interface ManagedConnection (src)
ResourceException (src)
- public java.lang.Object getConnection(javax.security.auth.Subject subject, ConnectionRequestInfo (src) cri) throws ResourceException (src)
ManagedConnection (src)
getConnection
in interface ManagedConnection (src)
subject
- the subjectcri
- the connection request info
ResourceException (src)
- public void destroy() throws ResourceException (src)
ManagedConnection (src)
destroy
in interface ManagedConnection (src)
ResourceException (src)
- public boolean checkValid()
protected void broadcastConnectionError(java.sql.SQLException e)
protected Logger (src) getLog()
protected void checkState() throws java.sql.SQLException
java.sql.SQLException
protected void checkException(java.sql.SQLException e) throws ResourceException (src)
ResourceException (src)
|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |