Class EnhancedGetterFieldImpl

java.lang.Object
org.hibernate.property.access.spi.GetterFieldImpl
org.hibernate.property.access.spi.EnhancedGetterFieldImpl
All Implemented Interfaces:
Serializable, Getter

@Internal public class EnhancedGetterFieldImpl extends GetterFieldImpl
A specialized Getter implementation for handling getting values from a bytecode-enhanced Class. The reason we need specialized handling is to produce the correct Member while using the Field to access values and ensure correct functionality.
See Also:
  • Constructor Details

    • EnhancedGetterFieldImpl

      public EnhancedGetterFieldImpl(Class<?> containerClass, String propertyName, Field field, Method getterMethod)
  • Method Details

    • getMethod

      public @NonNull Method getMethod()
      Description copied from interface: Getter
      Retrieve the getter-method.

      Optional operation (may return null)

      Specified by:
      getMethod in interface Getter
      Overrides:
      getMethod in class GetterFieldImpl
      Returns:
      The getter method, or null.
    • getMember

      public Member getMember()
      Description copied from interface: Getter
      Retrieve the member to which this property maps. This might be the field or it might be the getter method.

      Optional operation (may return null)

      Specified by:
      getMember in interface Getter
      Overrides:
      getMember in class GetterFieldImpl
      Returns:
      The mapped member, or null.