Interface PropertyAccessStrategy

All Known Implementing Classes:
PropertyAccessStrategyBackRefImpl, PropertyAccessStrategyBasicImpl, PropertyAccessStrategyChainedImpl, PropertyAccessStrategyCompositeUserTypeImpl, PropertyAccessStrategyEmbeddedImpl, PropertyAccessStrategyEnhancedImpl, PropertyAccessStrategyFieldImpl, PropertyAccessStrategyGetterImpl, PropertyAccessStrategyIndexBackRefImpl, PropertyAccessStrategyMapImpl, PropertyAccessStrategyMixedImpl, PropertyAccessStrategyNoopImpl

public interface PropertyAccessStrategy
Describes a strategy for accessing a persistent attribute, for example: field, JavaBean-style property, or whatever.

Acts as a factory for PropertyAccess instances.

  • Method Details

    • buildPropertyAccess

      PropertyAccess buildPropertyAccess(Class<?> containerJavaType, String propertyName, boolean setterRequired)
      Build a PropertyAccess for the indicated property
      Parameters:
      containerJavaType - The Java type that contains the property; may be null for non-pojo cases.
      propertyName - The property name
      setterRequired - Whether it is an error if we are unable to find a corresponding setter
      Returns:
      The appropriate PropertyAccess