Class MockStatementInfo
java.lang.Object
io.r2dbc.proxy.test.MockStatementInfo
- All Implemented Interfaces:
StatementInfo
Mock implementation of
StatementInfo
.- Author:
- Tadaya Tsuyukubo
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic MockStatementInfo.Builder
builder()
Provide a builder forMockStatementInfo
.static MockStatementInfo
empty()
Provide an emptyMockStatementInfo
.GetConnectionInfo
associated to thisStatement
.Get the sql statement that has originally specified onConnection.createStatement(String)
.Get the updated sql statement byBindParameterConverter.onCreateStatement(String, StatementInfo)
.RetrieveValueStore
which is associated to the scope of logical statement.
-
Method Details
-
builder
Provide a builder forMockStatementInfo
.- Returns:
- builder
-
empty
Provide an emptyMockStatementInfo
.- Returns:
- a
MockStatementInfo
-
getConnectionInfo
Description copied from interface:StatementInfo
GetConnectionInfo
associated to thisStatement
.- Specified by:
getConnectionInfo
in interfaceStatementInfo
- Returns:
- connection info
-
getOriginalQuery
Description copied from interface:StatementInfo
Get the sql statement that has originally specified onConnection.createStatement(String)
.- Specified by:
getOriginalQuery
in interfaceStatementInfo
- Returns:
- original sql statement
-
getUpdatedQuery
Description copied from interface:StatementInfo
Get the updated sql statement byBindParameterConverter.onCreateStatement(String, StatementInfo)
.- Specified by:
getUpdatedQuery
in interfaceStatementInfo
- Returns:
- updated sql statement
-
getValueStore
Description copied from interface:StatementInfo
RetrieveValueStore
which is associated to the scope of logical statement.Values can be stored or retrieved from this store while statement is available.
- Specified by:
getValueStore
in interfaceStatementInfo
- Returns:
- value store
-