| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | JdbcXAConnection.
A pooled connection. |
| Modifier and Type | Field and Description |
|---|---|
| private Xid | |
| private final JdbcDataSourceFactory | |
| private volatile Connection | |
| private final ArrayList | |
| private JdbcConnection | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | addConnectionEventListener(ConnectionEventListener
the event listener listener)Implements javax. Register a new listener for the connection. |
| public void | addStatementEventListener(StatementEventListener
the new statement event listener listener)Implements javax. [Not supported] Add a statement event listener. |
| private void | |
| public void | |
| pack-priv void | |
| public void | commit(Xid
the transaction id xid, boolean use a one-phase protocol if true onePhase)Implements javax. Commit a transaction. |
| private static XAException | |
| public void | end(Xid
the transaction id xid, int TMSUCCESS, TMFAIL, or TMSUSPEND flags)Implements javax. End a transaction. |
| public void | forget(Xid
the transaction id xid)Implements javax. Forget a transaction. |
| public Connection | Returns: the connectionImplements javax. Get a connection that is a handle to the physical connection. |
| public int | Returns: 0Implements javax. Get the transaction timeout. |
| public XAResource | Returns: itselfImplements javax. Get the XAResource object. |
| public boolean | Returns: true if this is the same objectthe other object xares)Implements javax. Checks if this is the same XAResource. |
| public int | Returns: XA_OKthe transaction id xid)Implements javax. Prepare a transaction. |
| private static String | |
| private static String | |
| public Xid[] | Returns: zero or more Xid objectsTMSTARTRSCAN, TMENDRSCAN, or TMNOFLAGS. If no other flags are
set, TMNOFLAGS must be used. flag)Implements javax. Get the list of prepared transaction branches. |
| public void | removeConnectionEventListener(ConnectionEventListener
the event listener listener)Implements javax. Remove the event listener. |
| public void | removeStatementEventListener(StatementEventListener
the statement event listener listener)Implements javax. [Not supported] Remove a statement event listener. |
| public void | rollback(Xid
the transaction id xid)Implements javax. Roll back a transaction. |
| public boolean | Returns: falseignored seconds)Implements javax. Set the transaction timeout. |
| public void | start(Xid
the transaction id xid, int TMNOFLAGS, TMJOIN, or TMRESUME flags)Implements javax. Start or continue to work on a transaction. |
| public String |
| currentTransaction | back to summary |
|---|---|
| private Xid currentTransaction | |
| factory | back to summary |
|---|---|
| private final JdbcDataSourceFactory factory | |
| handleConn | back to summary |
|---|---|
| private volatile Connection handleConn | |
| listeners | back to summary |
|---|---|
| private final ArrayList<ConnectionEventListener> listeners | |
| physicalConn | back to summary |
|---|---|
| private JdbcConnection physicalConn | |
| prepared | back to summary |
|---|---|
| private boolean prepared | |
| JdbcXAConnection | back to summary |
|---|---|
| pack-priv JdbcXAConnection(JdbcDataSourceFactory factory, int id, JdbcConnection physicalConn) | |
| addConnectionEventListener | back to summary |
|---|---|
| public void addConnectionEventListener(ConnectionEventListener listener) Implements javax. Register a new listener for the connection.
| |
| addStatementEventListener | back to summary |
|---|---|
| public void addStatementEventListener(StatementEventListener listener) Implements javax. [Not supported] Add a statement event listener.
| |
| checkOpen | back to summary |
|---|---|
| private void checkOpen() throws XAException | |
| close | back to summary |
|---|---|
| public void close() throws SQLException Implements javax. Close the physical connection. This method is usually called by the connection pool.
| |
| closedHandle | back to summary |
|---|---|
| pack-priv void closedHandle() INTERNAL | |
| commit | back to summary |
|---|---|
| public void commit(Xid xid, boolean onePhase) throws XAException Implements javax. Commit a transaction.
| |
| convertException | back to summary |
|---|---|
| private static XAException convertException(SQLException e) | |
| end | back to summary |
|---|---|
| public void end(Xid xid, int flags) throws XAException Implements javax. End a transaction.
| |
| forget | back to summary |
|---|---|
| public void forget(Xid xid) Implements javax. Forget a transaction. This method does not have an effect for this database. | |
| getConnection | back to summary |
|---|---|
| public Connection getConnection() throws SQLException Implements javax. Get a connection that is a handle to the physical connection. This method is usually called by the connection pool. This method closes the last connection handle if one exists.
| |
| getTransactionTimeout | back to summary |
|---|---|
| public int getTransactionTimeout() Implements javax. Get the transaction timeout.
| |
| getXAResource | back to summary |
|---|---|
| public XAResource getXAResource() Implements javax. Get the XAResource object.
| |
| isSameRM | back to summary |
|---|---|
| public boolean isSameRM(XAResource xares) Implements javax. Checks if this is the same XAResource.
| |
| prepare | back to summary |
|---|---|
| public int prepare(Xid xid) throws XAException Implements javax. Prepare a transaction.
| |
| quoteFlags | back to summary |
|---|---|
| private static String quoteFlags(int flags) | |
| quoteXid | back to summary |
|---|---|
| private static String quoteXid(Xid xid) | |
| recover | back to summary |
|---|---|
| public Xid[] recover(int flag) throws XAException Implements javax. Get the list of prepared transaction branches. This method is called by the transaction manager during recovery.
| |
| removeConnectionEventListener | back to summary |
|---|---|
| public void removeConnectionEventListener(ConnectionEventListener listener) Implements javax. Remove the event listener.
| |
| removeStatementEventListener | back to summary |
|---|---|
| public void removeStatementEventListener(StatementEventListener listener) Implements javax. [Not supported] Remove a statement event listener.
| |
| rollback | back to summary |
|---|---|
| public void rollback(Xid xid) throws XAException Implements javax. Roll back a transaction.
| |
| setTransactionTimeout | back to summary |
|---|---|
| public boolean setTransactionTimeout(int seconds) Implements javax. Set the transaction timeout.
| |
| start | back to summary |
|---|---|
| public void start(Xid xid, int flags) throws XAException Implements javax. Start or continue to work on a transaction.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. INTERNAL
| |
| Modifier and Type | Field and Description |
|---|---|
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| public void | close()
Overrides org. Implements java. Closes this connection. |
| public boolean | isClosed()
Overrides org. Implements java. Returns true if this connection has been closed. |
| isClosed | back to summary |
|---|---|
| private boolean isClosed | |
| PooledJdbcConnection | back to summary |
|---|---|
| public PooledJdbcConnection(JdbcConnection conn) | |
| checkClosed | back to summary |
|---|---|
| protected void checkClosed() Overrides org. Doc from org. INTERNAL. Check if this connection is closed.
| |
| close | back to summary |
|---|---|
| public void close() throws SQLException Overrides org. Implements java. Doc from org. Closes this connection. All open statements, prepared statements and result sets that where created by this connection become invalid after calling this method. If there is an uncommitted transaction, it will be rolled back.
| |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() throws SQLException Overrides org. Implements java. Doc from org. Returns true if this connection has been closed.
| |