类 XaFacadeImplAutoLoad
- java.lang.Object
-
- org.apache.seatunnel.connectors.seatunnel.jdbc.internal.xa.XaFacadeImplAutoLoad
-
- 所有已实现的接口:
Serializable,AutoCloseable,JdbcConnectionProvider,XaFacade
public class XaFacadeImplAutoLoad extends Object implements XaFacade
DefaultXaFacadeimplementation.- 另请参阅:
- 序列化表格
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 org.apache.seatunnel.connectors.seatunnel.jdbc.internal.xa.XaFacade
XaFacade.EmptyXaTransactionException, XaFacade.TransientXaException
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclose()voidcloseConnection()Close possible existing connection.voidcommit(Xid xid, boolean ignoreUnknown)Commit previously prepared transaction.voidendAndPrepare(Xid xid)End and then prepare the transaction.voidfailAndRollback(Xid xid)End transaction asfailed; in case of error, try to roll it back.ConnectiongetConnection()Get existing connection.ConnectiongetOrEstablishConnection()Get existing connection or establish an new one if there is none.booleanisConnectionValid()Check whether possible existing connection is valid or not throughConnection.isValid(int).booleanisOpen()voidopen()Collection<Xid>recover()Note: this can block on some non-MVCC databases if there are ended not prepared transactions.ConnectionreestablishConnection()Close possible existing connection and establish an new one.voidrollback(Xid xid)Rollback previously prepared transaction.voidstart(Xid xid)Start a new transaction.
-
-
-
方法详细资料
-
open
public void open() throws SQLException- 指定者:
open在接口中XaFacade- 抛出:
SQLException
-
close
public void close() throws SQLException- 指定者:
close在接口中AutoCloseable- 抛出:
SQLException
-
getConnection
public Connection getConnection()
从接口复制的说明:JdbcConnectionProviderGet existing connection.- 指定者:
getConnection在接口中JdbcConnectionProvider- 返回:
- existing connection
-
isConnectionValid
public boolean isConnectionValid() throws SQLException从接口复制的说明:JdbcConnectionProviderCheck whether possible existing connection is valid or not throughConnection.isValid(int).- 指定者:
isConnectionValid在接口中JdbcConnectionProvider- 返回:
- true if existing connection is valid
- 抛出:
SQLException- sql exception throw fromConnection.isValid(int)
-
getOrEstablishConnection
public Connection getOrEstablishConnection() throws SQLException
从接口复制的说明:JdbcConnectionProviderGet existing connection or establish an new one if there is none.- 指定者:
getOrEstablishConnection在接口中JdbcConnectionProvider- 返回:
- existing connection or newly established connection
- 抛出:
SQLException- sql exception
-
closeConnection
public void closeConnection()
从接口复制的说明:JdbcConnectionProviderClose possible existing connection.- 指定者:
closeConnection在接口中JdbcConnectionProvider
-
reestablishConnection
public Connection reestablishConnection()
从接口复制的说明:JdbcConnectionProviderClose possible existing connection and establish an new one.- 指定者:
reestablishConnection在接口中JdbcConnectionProvider- 返回:
- newly established connection
-
endAndPrepare
public void endAndPrepare(Xid xid)
从接口复制的说明:XaFacadeEnd and then prepare the transaction. Transaction can't be resumed afterwards.- 指定者:
endAndPrepare在接口中XaFacade
-
failAndRollback
public void failAndRollback(Xid xid)
从接口复制的说明:XaFacadeEnd transaction asfailed; in case of error, try to roll it back.- 指定者:
failAndRollback在接口中XaFacade
-
commit
public void commit(Xid xid, boolean ignoreUnknown)
从接口复制的说明:XaFacadeCommit previously prepared transaction.
-
rollback
public void rollback(Xid xid)
从接口复制的说明:XaFacadeRollback previously prepared transaction.
-
recover
public Collection<Xid> recover()
从接口复制的说明:XaFacadeNote: this can block on some non-MVCC databases if there are ended not prepared transactions.
-
-