public class ConnectionProxy extends AbstractConnectionProxy
| Modifier and Type | Class and Description |
|---|---|
static class |
ConnectionProxy.LockRetryPolicy |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
IS_REPORT_SUCCESS_ENABLE |
dataSourceProxy, targetConnectionTRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE| Constructor and Description |
|---|
ConnectionProxy(DataSourceProxy dataSourceProxy,
Connection targetConnection)
Instantiates a new Connection proxy.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendLockKey(String lockKey)
append lockKey
|
void |
appendUndoLog(SQLUndoLog sqlUndoLog)
append sqlUndoLog
|
void |
bind(String xid)
Bind.
|
void |
changeAutoCommit()
change connection autoCommit to false by seata
|
void |
checkLock(String lockKeys)
Check lock.
|
void |
commit() |
ConnectionContext |
getContext()
Gets context.
|
boolean |
isGlobalLockRequire()
get global lock requires flag
|
boolean |
lockQuery(String lockKeys)
Lock query.
|
void |
releaseSavepoint(Savepoint savepoint) |
void |
rollback() |
void |
rollback(Savepoint savepoint) |
void |
setAutoCommit(boolean autoCommit) |
void |
setGlobalLockRequire(boolean isLock)
set global lock requires flag
|
Savepoint |
setSavepoint() |
Savepoint |
setSavepoint(String name) |
abort, clearWarnings, close, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getDataSourceProxy, getDbType, getHoldability, getMetaData, getNetworkTimeout, getSchema, getTargetConnection, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, isValid, isWrapperFor, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, setCatalog, setClientInfo, setClientInfo, setHoldability, setNetworkTimeout, setReadOnly, setSchema, setTransactionIsolation, setTypeMap, unwrappublic ConnectionProxy(DataSourceProxy dataSourceProxy, Connection targetConnection)
dataSourceProxy - the data source proxytargetConnection - the target connectionpublic ConnectionContext getContext()
public void bind(String xid)
xid - the xidpublic void setGlobalLockRequire(boolean isLock)
isLock - whether to lockpublic boolean isGlobalLockRequire()
public void checkLock(String lockKeys) throws SQLException
lockKeys - the lockKeysSQLException - the sql exceptionpublic boolean lockQuery(String lockKeys) throws SQLException
lockKeys - the lock keysSQLException - the sql exceptionpublic void appendUndoLog(SQLUndoLog sqlUndoLog)
sqlUndoLog - the sql undo logpublic void appendLockKey(String lockKey)
lockKey - the lock keypublic void commit()
throws SQLException
SQLExceptionpublic Savepoint setSavepoint() throws SQLException
SQLExceptionpublic Savepoint setSavepoint(String name) throws SQLException
SQLExceptionpublic void rollback(Savepoint savepoint) throws SQLException
SQLExceptionpublic void releaseSavepoint(Savepoint savepoint) throws SQLException
SQLExceptionpublic void rollback()
throws SQLException
SQLExceptionpublic void changeAutoCommit()
throws SQLException
SQLException - the sql exceptionpublic void setAutoCommit(boolean autoCommit)
throws SQLException
SQLExceptionCopyright © 2024 Apache. All rights reserved.