Class ReactiveExecutorContext
- java.lang.Object
-
- pro.chenggang.project.reactive.mybatis.support.r2dbc.executor.support.ReactiveExecutorContext
-
public class ReactiveExecutorContext extends Object
The type Reactive executor context.- Version:
- 1.0.0
- Author:
- Gang Cheng
-
-
Constructor Summary
Constructors Constructor Description ReactiveExecutorContext(boolean autoCommit, io.r2dbc.spi.IsolationLevel isolationLevel)Instantiates a new Reactive executor context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbindConnection(io.r2dbc.spi.Connection connection)Bind connection boolean.Optional<io.r2dbc.spi.Connection>clearConnection()Clear connection optional.Optional<io.r2dbc.spi.Connection>getConnection()Gets connection.io.r2dbc.spi.IsolationLevelgetIsolationLevel()Gets isolation level.R2dbcStatementLoggetR2dbcStatementLog()Gets r2dbc statement log.booleanisAutoCommit()Is auto commit boolean.booleanisDirty()Is dirty boolean.booleanisForceCommit()Is force commit boolean.booleanisForceRollback()Is force rollback boolean.booleanisRequireClosed()Is require closed boolean.booleanisWithTransaction()Is with transaction boolean.voidresetDirty()Reset dirty.voidresetWithTransaction()Reset with transaction.booleansetActiveTransaction()Set active transaction boolean.voidsetDirty()Set dirty.voidsetForceCommit(boolean forceCommit)Set force commit.voidsetForceRollback(boolean forceRollback)Set force rollback.voidsetR2dbcStatementLog(R2dbcStatementLog r2dbcStatementLog)Sets r2dbc statement log.voidsetRequireClosed(boolean requireClosed)Set require closed.voidsetWithTransaction()Set with transaction.StringtoString()
-
-
-
Method Detail
-
isAutoCommit
public boolean isAutoCommit()
Is auto commit boolean.- Returns:
- the boolean
-
isForceCommit
public boolean isForceCommit()
Is force commit boolean.- Returns:
- the boolean
-
setForceCommit
public void setForceCommit(boolean forceCommit)
Set force commit.- Parameters:
forceCommit- the force commit
-
isForceRollback
public boolean isForceRollback()
Is force rollback boolean.- Returns:
- the boolean
-
setForceRollback
public void setForceRollback(boolean forceRollback)
Set force rollback.- Parameters:
forceRollback- the force rollback
-
isDirty
public boolean isDirty()
Is dirty boolean.- Returns:
- the boolean
-
setDirty
public void setDirty()
Set dirty.
-
resetDirty
public void resetDirty()
Reset dirty.
-
setWithTransaction
public void setWithTransaction()
Set with transaction.
-
resetWithTransaction
public void resetWithTransaction()
Reset with transaction.
-
isWithTransaction
public boolean isWithTransaction()
Is with transaction boolean.- Returns:
- the boolean
-
setActiveTransaction
public boolean setActiveTransaction()
Set active transaction boolean.- Returns:
- the boolean
-
isRequireClosed
public boolean isRequireClosed()
Is require closed boolean.- Returns:
- the boolean
-
setRequireClosed
public void setRequireClosed(boolean requireClosed)
Set require closed.- Parameters:
requireClosed- the require closed
-
getIsolationLevel
public io.r2dbc.spi.IsolationLevel getIsolationLevel()
Gets isolation level.- Returns:
- the isolation level
-
getR2dbcStatementLog
public R2dbcStatementLog getR2dbcStatementLog()
Gets r2dbc statement log.- Returns:
- the statement log helper
-
setR2dbcStatementLog
public void setR2dbcStatementLog(R2dbcStatementLog r2dbcStatementLog)
Sets r2dbc statement log.- Parameters:
r2dbcStatementLog- the statement log helper
-
bindConnection
public boolean bindConnection(io.r2dbc.spi.Connection connection)
Bind connection boolean.- Parameters:
connection- the connection- Returns:
- the boolean
-
clearConnection
public Optional<io.r2dbc.spi.Connection> clearConnection()
Clear connection optional.- Returns:
- the optional
-
getConnection
public Optional<io.r2dbc.spi.Connection> getConnection()
Gets connection.- Returns:
- the connection
-
-