| java.lang.Object org.h2.message.TraceObject org.h2.jdbcx.JdbcXAConnection
addConnectionEventListener | public void addConnectionEventListener(ConnectionEventListener listener)(Code) | | Register a new listener for the connection.
Parameters: listener - the event listener |
close | public void close() throws SQLException(Code) | | Close the physical connection.
This method is usually called by the connection pool.
|
commit | public void commit(Xid xid, boolean onePhase) throws XAException(Code) | | Commit a transaction.
Parameters: xid - the transaction id Parameters: onePhase - use a one-phase protocol if true |
end | public void end(Xid xid, int flags) throws XAException(Code) | | End a transaction.
Parameters: xid - the transaction id Parameters: flags - TMSUCCESS, TMFAIL, or TMSUSPEND |
forget | public void forget(Xid xid) throws XAException(Code) | | Forget a transaction.
This method does not have an effect for this database.
Parameters: xid - the transaction id |
getConnection | public Connection getConnection() throws SQLException(Code) | | Get a new connection. This method is usually called by the connection
pool when there are no more connections in the pool.
the connection |
getTransactionTimeout | public int getTransactionTimeout() throws XAException(Code) | | Get the transaction timeout.
0 |
isSameRM | public boolean isSameRM(XAResource xares) throws XAException(Code) | | Checks if this is the same XAResource.
Parameters: xares - the other object true if this is the same object |
prepare | public int prepare(Xid xid) throws XAException(Code) | | Prepare a transaction.
Parameters: xid - the transaction id |
recover | public Xid[] recover(int flag) throws XAException(Code) | | Get the list of prepared transaction branches.
This method is called by the transaction manager during recovery.
Parameters: flag - TMSTARTRSCAN, TMENDRSCAN, or TMNOFLAGS. If no other flags are set,TMNOFLAGS must be used. zero or more Xid objects |
removeConnectionEventListener | public void removeConnectionEventListener(ConnectionEventListener listener)(Code) | | Remove the event listener.
Parameters: listener - the event listener |
rollback | public void rollback(Xid xid) throws XAException(Code) | | Roll back a transaction.
Parameters: xid - the transaction id |
setTransactionTimeout | public boolean setTransactionTimeout(int seconds) throws XAException(Code) | | Set the transaction timeout.
Parameters: seconds - ignored false |
start | public void start(Xid xid, int flags) throws XAException(Code) | | Start or continue to work on a transaction.
Parameters: xid - the transaction id Parameters: flags - TMNOFLAGS, TMJOIN, or TMRESUME |
Fields inherited from org.h2.message.TraceObject | final public static int CALLABLE_STATEMENTCONNECTIONDATABASE_META_DATAPREPARED_STATEMENTRESULT_SETRESULT_SET_META_DATASAVEPOINTSQL_EXCEPTIONSTATEMENTBLOBCLOBPARAMETER_META_DATA(Code)(Java Doc) final public static int DATA_SOURCEXA_DATA_SOURCEXIDARRAY(Code)(Java Doc)
|
|
|