public class MappingR2dbcConverter extends org.springframework.data.relational.core.conversion.BasicRelationalConverter implements R2dbcConverter
| Constructor and Description |
|---|
MappingR2dbcConverter(MappingContext<? extends org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?>,? extends org.springframework.data.relational.core.mapping.RelationalPersistentProperty> context)
Creates a new
MappingR2dbcConverter given MappingContext. |
MappingR2dbcConverter(MappingContext<? extends org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?>,? extends org.springframework.data.relational.core.mapping.RelationalPersistentProperty> context,
CustomConversions conversions)
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getArrayValue(org.springframework.data.relational.core.dialect.ArrayColumns arrayColumns,
org.springframework.data.relational.core.mapping.RelationalPersistentProperty property,
Object value)
Convert a
value into an array representation according to ArrayColumns. |
<T> BiFunction<Row,RowMetadata,T> |
populateIdIfNecessary(T object)
|
<R> R |
read(Class<R> type,
Row row) |
<R> R |
read(Class<R> type,
Row row,
RowMetadata metadata)
Reads the given source into the given type.
|
void |
write(Object source,
OutboundRow sink) |
createInstance, getConversions, getConversionService, getMappingContext, getPropertyAccessor, readValue, writeValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConversionService, getMappingContextpublic MappingR2dbcConverter(MappingContext<? extends org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?>,? extends org.springframework.data.relational.core.mapping.RelationalPersistentProperty> context)
MappingR2dbcConverter given MappingContext.context - must not be null.public MappingR2dbcConverter(MappingContext<? extends org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?>,? extends org.springframework.data.relational.core.mapping.RelationalPersistentProperty> context, CustomConversions conversions)
context - must not be null.public <R> R read(Class<R> type, Row row)
read in interface EntityReader<Object,Row>public <R> R read(Class<R> type, Row row, @Nullable RowMetadata metadata)
R2dbcConverterread in interface R2dbcConvertertype - they type to convert the given source to.row - the source to create an object of the given type from.metadata - the RowMetadata.public void write(Object source, OutboundRow sink)
write in interface EntityWriter<Object,OutboundRow>public Object getArrayValue(org.springframework.data.relational.core.dialect.ArrayColumns arrayColumns, org.springframework.data.relational.core.mapping.RelationalPersistentProperty property, Object value)
R2dbcConvertervalue into an array representation according to ArrayColumns.getArrayValue in interface R2dbcConverterarrayColumns - dialect-specific array handling configuration.public <T> BiFunction<Row,RowMetadata,T> populateIdIfNecessary(T object)
populateIdIfNecessary in interface R2dbcConverterobject - must not be null.Copyright © 2018–2019 Pivotal Software, Inc.. All rights reserved.