Class LcEntityReader


  • public class LcEntityReader
    extends Object
    • Method Detail

      • read

        public <T> T read​(org.springframework.data.relational.core.mapping.RelationalPersistentEntity<T> entityType,
                          PropertiesSource source)
      • readProperty

        protected Object readProperty​(org.springframework.data.relational.core.mapping.RelationalPersistentProperty property,
                                      PropertiesSource source,
                                      Object instance)
      • readValue

        public Object readValue​(@Nullable
                                Object value,
                                org.springframework.data.util.TypeInformation<?> type)
      • 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> T readEntityProperty​(org.springframework.data.relational.core.mapping.RelationalPersistentProperty property,
                                           Object parentInstance,
                                           PropertiesSource source)
      • readForeignKeyEntity

        protected <T> T readForeignKeyEntity​(org.springframework.data.relational.core.mapping.RelationalPersistentProperty property,
                                             Object parentInstance,
                                             org.springframework.data.relational.core.mapping.RelationalPersistentEntity<T> entityType,
                                             PropertiesSource source)
      • getOrCreateInstance

        protected <T> T getOrCreateInstance​(org.springframework.data.relational.core.mapping.RelationalPersistentEntity<T> entityType,
                                            PropertiesSource source)
      • getOrCreateInstance

        protected <T> T getOrCreateInstance​(org.springframework.data.relational.core.mapping.RelationalPersistentEntity<T> entityType,
                                            PropertiesSource source,
                                            Object id)