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.Builderbuilder()Provide a builder forMockStatementInfo.static MockStatementInfoempty()Provide an emptyMockStatementInfo.Returns theConnectionInfoassociated with thisStatement.Returns the SQL statement originally provided toConnection.createStatement(String).Returns the SQL statement updated byBindParameterConverter.onCreateStatement(String, StatementInfo).Returns theValueStoreassociated with the scope of the logical statement.
-
Method Details
-
builder
Provide a builder forMockStatementInfo.- Returns:
- builder
-
empty
Provide an emptyMockStatementInfo.- Returns:
- a
MockStatementInfo
-
getConnectionInfo
Description copied from interface:StatementInfoReturns theConnectionInfoassociated with thisStatement.- Specified by:
getConnectionInfoin interfaceStatementInfo- Returns:
- connection info
-
getOriginalQuery
Description copied from interface:StatementInfoReturns the SQL statement originally provided toConnection.createStatement(String).- Specified by:
getOriginalQueryin interfaceStatementInfo- Returns:
- original sql statement
-
getUpdatedQuery
Description copied from interface:StatementInfoReturns the SQL statement updated byBindParameterConverter.onCreateStatement(String, StatementInfo).- Specified by:
getUpdatedQueryin interfaceStatementInfo- Returns:
- updated sql statement
-
getValueStore
Description copied from interface:StatementInfoReturns theValueStoreassociated with the scope of the logical statement.Values can be stored or retrieved from this store while statement is available.
- Specified by:
getValueStorein interfaceStatementInfo- Returns:
- value store
-