Class LcEntityWriter
- java.lang.Object
-
- net.lecousin.reactive.data.relational.mapping.LcEntityWriter
-
public class LcEntityWriter extends Object
-
-
Constructor Summary
Constructors Constructor Description LcEntityWriter(LcMappingR2dbcConverter converter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Class<?>getPotentiallyConvertedSimpleNullType(Class<?> type)protected ObjectgetPotentiallyConvertedSimpleWrite(Object value)Checks whether we have a custom conversion registered for the given value into an arbitrary simple type.protected ObjectgetPotentiallyConvertedSimpleWrite(Object value, Class<?> typeHint)Checks whether we have a custom conversion registered for the given value into an arbitrary simple type.voidwrite(Object source, org.springframework.data.r2dbc.mapping.OutboundRow sink)protected voidwriteNull(org.springframework.data.r2dbc.mapping.OutboundRow sink, org.springframework.data.relational.core.mapping.RelationalPersistentProperty property)voidwriteProperty(org.springframework.data.r2dbc.mapping.OutboundRow sink, org.springframework.data.relational.core.mapping.RelationalPersistentProperty property, org.springframework.data.mapping.PersistentPropertyAccessor<?> accessor)protected voidwriteSimple(org.springframework.data.r2dbc.mapping.OutboundRow sink, Object value, org.springframework.data.relational.core.mapping.RelationalPersistentProperty property)
-
-
-
Constructor Detail
-
LcEntityWriter
public LcEntityWriter(LcMappingR2dbcConverter converter)
-
-
Method Detail
-
write
public void write(Object source, org.springframework.data.r2dbc.mapping.OutboundRow sink)
-
writeProperty
public void writeProperty(org.springframework.data.r2dbc.mapping.OutboundRow sink, org.springframework.data.relational.core.mapping.RelationalPersistentProperty property, org.springframework.data.mapping.PersistentPropertyAccessor<?> accessor)
-
writeNull
protected void writeNull(org.springframework.data.r2dbc.mapping.OutboundRow sink, org.springframework.data.relational.core.mapping.RelationalPersistentProperty property)
-
getPotentiallyConvertedSimpleNullType
protected Class<?> getPotentiallyConvertedSimpleNullType(Class<?> type)
-
writeSimple
protected void writeSimple(org.springframework.data.r2dbc.mapping.OutboundRow sink, Object value, org.springframework.data.relational.core.mapping.RelationalPersistentProperty property)
-
getPotentiallyConvertedSimpleWrite
@Nullable protected Object getPotentiallyConvertedSimpleWrite(@Nullable Object value)
Checks whether we have a custom conversion registered for the given value into an arbitrary simple type. Returns the converted value if so. If not, we perform special enum handling or simply return the value as is.- Parameters:
value-- Returns:
-
getPotentiallyConvertedSimpleWrite
@Nullable protected Object getPotentiallyConvertedSimpleWrite(@Nullable Object value, Class<?> typeHint)
Checks whether we have a custom conversion registered for the given value into an arbitrary simple type. Returns the converted value if so. If not, we perform special enum handling or simply return the value as is.- Parameters:
value-- Returns:
-
-