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.GetConnectionInfoassociated to thisStatement.Get the sql statement that has originally specified onConnection.createStatement(String).Get the updated sql statement byBindParameterConverter.onCreateStatement(String, StatementInfo).RetrieveValueStorewhich 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:StatementInfoGetConnectionInfoassociated to thisStatement.- Specified by:
getConnectionInfoin interfaceStatementInfo- Returns:
- connection info
-
getOriginalQuery
Description copied from interface:StatementInfoGet the sql statement that has originally specified onConnection.createStatement(String).- Specified by:
getOriginalQueryin interfaceStatementInfo- Returns:
- original sql statement
-
getUpdatedQuery
Description copied from interface:StatementInfoGet the updated sql statement byBindParameterConverter.onCreateStatement(String, StatementInfo).- Specified by:
getUpdatedQueryin interfaceStatementInfo- Returns:
- updated sql statement
-
getValueStore
Description copied from interface:StatementInfoRetrieveValueStorewhich is associated to the scope of logical statement.Values can be stored or retrieved from this store while statement is available.
- Specified by:
getValueStorein interfaceStatementInfo- Returns:
- value store
-