Class LcEntityWriter


  • public class LcEntityWriter
    extends Object
    Write properties to an OutboundRow.
    Author:
    Guillaume Le Cousin
    • 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,
                                  PropertyMetadata property,
                                  org.springframework.data.mapping.PersistentPropertyAccessor<?> accessor)
      • writeNull

        protected void writeNull​(org.springframework.data.r2dbc.mapping.OutboundRow sink,
                                 PropertyMetadata property)
      • getPotentiallyConvertedSimpleNullType

        protected Class<?> getPotentiallyConvertedSimpleNullType​(Class<?> type)
      • writeSimple

        protected void writeSimple​(org.springframework.data.r2dbc.mapping.OutboundRow sink,
                                   Object value,
                                   PropertyMetadata 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: