Class SetterFieldImpl

java.lang.Object
org.hibernate.property.access.spi.SetterFieldImpl
All Implemented Interfaces:
Serializable, Setter
Direct Known Subclasses:
EnhancedSetterImpl

@Internal public class SetterFieldImpl extends Object implements Setter
Field-based implementation of Setter
See Also:
  • Constructor Details

    • SetterFieldImpl

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

    • getContainerClass

      public Class<?> getContainerClass()
    • getPropertyName

      public String getPropertyName()
    • getField

      public Field getField()
    • set

      public void set(Object target, @Nullable Object value)
      Description copied from interface: Setter
      Set the property value on the given target instance.
      Specified by:
      set in interface Setter
      Parameters:
      target - The instance containing the property value to be set.
      value - The value to be set.
    • getMethodName

      public @Nullable String getMethodName()
      Description copied from interface: Setter
      Optional operation (may return null)
      Specified by:
      getMethodName in interface Setter
    • getMethod

      public @Nullable Method getMethod()
      Description copied from interface: Setter
      Optional operation (may return null)
      Specified by:
      getMethod in interface Setter