public class R2dbcMessageSourceSpec extends MessageSourceSpec<R2dbcMessageSourceSpec,R2dbcMessageSource>
MessageSourceSpec for the R2dbcMessageSource.PARSER, targetloggerDEFAULT_PHASEOBJECT_TYPE_ATTRIBUTE| Modifier | Constructor and Description |
|---|---|
protected |
R2dbcMessageSourceSpec(org.springframework.data.r2dbc.core.R2dbcEntityOperations r2dbcEntityOperations,
Expression queryExpression) |
protected |
R2dbcMessageSourceSpec(org.springframework.data.r2dbc.core.R2dbcEntityOperations r2dbcEntityOperations,
String query) |
| Modifier and Type | Method and Description |
|---|---|
R2dbcMessageSourceSpec |
bindFunction(java.util.function.BiFunction<DatabaseClient.GenericExecuteSpec,?,DatabaseClient.GenericExecuteSpec> bindFunction)
Set a
BiFunction which is used to bind parameters into the update query. |
R2dbcMessageSourceSpec |
expectSingleResult(boolean expectSingleResult)
The flag to manage which find* method to invoke on
R2dbcEntityOperations. |
R2dbcMessageSourceSpec |
payloadType(Class<?> payloadType)
Set the expected payload type.
|
R2dbcMessageSourceSpec |
updateSql(String updateSql)
Configure an update query.
|
messageHeaders_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stopafterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingletonprotected R2dbcMessageSourceSpec(org.springframework.data.r2dbc.core.R2dbcEntityOperations r2dbcEntityOperations,
String query)
protected R2dbcMessageSourceSpec(org.springframework.data.r2dbc.core.R2dbcEntityOperations r2dbcEntityOperations,
Expression queryExpression)
public R2dbcMessageSourceSpec payloadType(Class<?> payloadType)
payloadType - the class to use.public R2dbcMessageSourceSpec updateSql(String updateSql)
updateSql - the update query string.public R2dbcMessageSourceSpec bindFunction(java.util.function.BiFunction<DatabaseClient.GenericExecuteSpec,?,DatabaseClient.GenericExecuteSpec> bindFunction)
BiFunction which is used to bind parameters into the update query.bindFunction - the BiFunction to use.public R2dbcMessageSourceSpec expectSingleResult(boolean expectSingleResult)
R2dbcEntityOperations.expectSingleResult - true if a single result is expected.