Class SetterFieldImpl

  • All Implemented Interfaces:
    java.io.Serializable, Setter
    Direct Known Subclasses:
    EnhancedSetterImpl

    public class SetterFieldImpl
    extends java.lang.Object
    implements Setter
    Field-based implementation of Setter
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      SetterFieldImpl​(java.lang.Class containerClass, java.lang.String propertyName, java.lang.reflect.Field field)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class getContainerClass()  
      protected java.lang.reflect.Field getField()  
      java.lang.reflect.Method getMethod()
      Optional operation (may return null)
      java.lang.String getMethodName()
      Optional operation (may return null)
      java.lang.String getPropertyName()  
      void set​(java.lang.Object target, java.lang.Object value, SessionFactoryImplementor factory)
      Set the property value from the given instance
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SetterFieldImpl

        public SetterFieldImpl​(java.lang.Class containerClass,
                               java.lang.String propertyName,
                               java.lang.reflect.Field field)
    • Method Detail

      • getContainerClass

        public java.lang.Class getContainerClass()
      • getPropertyName

        public java.lang.String getPropertyName()
      • getField

        protected java.lang.reflect.Field getField()
      • set

        public void set​(java.lang.Object target,
                        java.lang.Object value,
                        SessionFactoryImplementor factory)
        Description copied from interface: Setter
        Set the property value from the given instance
        Specified by:
        set in interface Setter
        Parameters:
        target - The instance upon which to set the given value.
        value - The value to be set on the target.
        factory - The session factory from which this request originated.
      • getMethodName

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

        public java.lang.reflect.Method getMethod()
        Description copied from interface: Setter
        Optional operation (may return null)
        Specified by:
        getMethod in interface Setter