|
MySQL Connector/J size='-1'>5.1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mysql.jdbc.jdbc2.optional.MysqlPooledConnection
com.mysql.jdbc.jdbc2.optional.SuspendableXAConnection
com.mysql.jdbc.jdbc2.optional.JDBC4SuspendableXAConnection
public class JDBC4SuspendableXAConnection
Field Summary |
---|
Fields inherited from class com.mysql.jdbc.jdbc2.optional.MysqlPooledConnection |
---|
CONNECTION_CLOSED_EVENT, CONNECTION_ERROR_EVENT |
Fields inherited from interface javax.transaction.xa.XAResource |
---|
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY |
Constructor Summary | |
---|---|
JDBC4SuspendableXAConnection(ConnectionImpl connection)
|
Method Summary | |
---|---|
void |
addStatementEventListener(javax.sql.StatementEventListener listener)
Registers a StatementEventListener with this PooledConnection object. |
void |
close()
Invoked by the container (not the client), and should close the physical connection. |
void |
removeStatementEventListener(javax.sql.StatementEventListener listener)
Removes the specified StatementEventListener from the list of
components that will be notified when the driver detects that a
PreparedStatement has been closed or is invalid. |
Methods inherited from class com.mysql.jdbc.jdbc2.optional.SuspendableXAConnection |
---|
commit, end, forget, getConnection, getInstance, getTransactionTimeout, getXAResource, isSameRM, prepare, recover, rollback, setTransactionTimeout, start |
Methods inherited from class com.mysql.jdbc.jdbc2.optional.MysqlPooledConnection |
---|
addConnectionEventListener, callConnectionEventListeners, getConnection, getInstance, removeConnectionEventListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.sql.PooledConnection |
---|
addConnectionEventListener, removeConnectionEventListener |
Constructor Detail |
---|
public JDBC4SuspendableXAConnection(ConnectionImpl connection) throws java.sql.SQLException
java.sql.SQLException
Method Detail |
---|
public void close() throws java.sql.SQLException
MysqlPooledConnection
close
in interface javax.sql.PooledConnection
close
in class SuspendableXAConnection
java.sql.SQLException
java.sql.DataSource#close()
public void addStatementEventListener(javax.sql.StatementEventListener listener)
StatementEventListener
with this PooledConnection
object. Components that
wish to be notified when PreparedStatement
s created by the
connection are closed or are detected to be invalid may use this method
to register a StatementEventListener
with this PooledConnection
object.
addStatementEventListener
in interface javax.sql.PooledConnection
addStatementEventListener
in class SuspendableXAConnection
listener
- an component which implements the StatementEventListener
interface that is to be registered with this PooledConnection
object
public void removeStatementEventListener(javax.sql.StatementEventListener listener)
StatementEventListener
from the list of
components that will be notified when the driver detects that a
PreparedStatement
has been closed or is invalid.
removeStatementEventListener
in interface javax.sql.PooledConnection
removeStatementEventListener
in class SuspendableXAConnection
listener
- the component which implements the
StatementEventListener
interface that was previously
registered with this PooledConnection
object
|
MySQL Connector/J size='-1'>5.1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |