public class XaFacadeImplAutoLoad extends Object implements XaFacade
XaFacade
implementation.XaFacade.EmptyXaTransactionException, XaFacade.TransientXaException| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
closeConnection()
Close possible existing connection.
|
void |
commit(Xid xid,
boolean ignoreUnknown)
Commit previously prepared transaction.
|
void |
endAndPrepare(Xid xid)
End and then prepare the transaction.
|
void |
failAndRollback(Xid xid)
End transaction as
failed; in case of error,
try to roll it back. |
Connection |
getConnection()
Get existing connection.
|
Connection |
getOrEstablishConnection()
Get existing connection or establish an new one if there is none.
|
boolean |
isConnectionValid()
Check whether possible existing connection is valid or not through
Connection.isValid(int). |
boolean |
isOpen() |
void |
open() |
Collection<Xid> |
recover()
Note: this can block on some non-MVCC databases if there are ended not prepared transactions.
|
Connection |
reestablishConnection()
Close possible existing connection and establish an new one.
|
void |
rollback(Xid xid)
Rollback previously prepared transaction.
|
void |
start(Xid xid)
Start a new transaction.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfromJdbcConnectionOptionspublic void open()
throws SQLException
open 在接口中 XaFacadeSQLExceptionpublic void close()
throws SQLException
close 在接口中 AutoCloseableSQLExceptionpublic Connection getConnection()
JdbcConnectionProvidergetConnection 在接口中 JdbcConnectionProviderpublic boolean isConnectionValid()
throws SQLException
JdbcConnectionProviderConnection.isValid(int).isConnectionValid 在接口中 JdbcConnectionProviderSQLException - sql exception throw from Connection.isValid(int)public Connection getOrEstablishConnection() throws SQLException
JdbcConnectionProvidergetOrEstablishConnection 在接口中 JdbcConnectionProviderSQLException - sql exceptionpublic void closeConnection()
JdbcConnectionProvidercloseConnection 在接口中 JdbcConnectionProviderpublic Connection reestablishConnection()
JdbcConnectionProviderreestablishConnection 在接口中 JdbcConnectionProviderpublic void endAndPrepare(Xid xid)
XaFacadeendAndPrepare 在接口中 XaFacadepublic void failAndRollback(Xid xid)
XaFacadefailed; in case of error,
try to roll it back.failAndRollback 在接口中 XaFacadepublic void commit(Xid xid, boolean ignoreUnknown)
XaFacadepublic Collection<Xid> recover()
XaFacadeCopyright © 2024 The Apache Software Foundation. All rights reserved.