Class LcEntityWriter


  • public class LcEntityWriter
    extends Object
    • 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: