Class LcEntityReader


  • public class LcEntityReader
    extends Object
    Entity mapper.
    Author:
    Guillaume Le Cousin
    • Method Detail

      • readProperty

        protected org.apache.commons.lang3.mutable.MutableObject<Object> readProperty​(org.springframework.data.relational.core.mapping.RelationalPersistentProperty property,
                                                                                      PropertiesSource source,
                                                                                      Object instance,
                                                                                      Class<?> targetType)
      • getPotentiallyConvertedSimpleRead

        @Nullable
        protected Object getPotentiallyConvertedSimpleRead​(@Nullable
                                                           Object value,
                                                           @Nullable
                                                           Class<?> target)
        Checks whether we have a custom conversion for the given simple object. Converts the given value if so, applies Enum handling or returns the value as is.
        Parameters:
        value -
        target - must not be null.
        Returns:
      • readEntityProperty

        protected <T> org.apache.commons.lang3.mutable.MutableObject<T> readEntityProperty​(org.springframework.data.relational.core.mapping.RelationalPersistentProperty property,
                                                                                           Object parentInstance,
                                                                                           PropertiesSource source)
      • readForeignKeyEntity

        protected <T> org.apache.commons.lang3.mutable.MutableObject<T> readForeignKeyEntity​(org.springframework.data.relational.core.mapping.RelationalPersistentProperty property,
                                                                                             Object parentInstance,
                                                                                             EntityMetadata entityType,
                                                                                             PropertiesSource source)