Class ChainedPropertyAccessImpl

java.lang.Object
org.hibernate.property.access.internal.ChainedPropertyAccessImpl
All Implemented Interfaces:
Serializable, Getter, PropertyAccess, Setter

public class ChainedPropertyAccessImpl extends Object implements PropertyAccess, Getter, Setter
See Also:
  • Constructor Details

    • ChainedPropertyAccessImpl

      public ChainedPropertyAccessImpl(PropertyAccess... propertyAccesses)
  • Method Details

    • getPropertyAccessStrategy

      public PropertyAccessStrategy getPropertyAccessStrategy()
      Description copied from interface: PropertyAccess
      Access to the PropertyAccessStrategy that created this instance.
      Specified by:
      getPropertyAccessStrategy in interface PropertyAccess
      Returns:
      The PropertyAccessStrategy
    • getGetter

      public Getter getGetter()
      Description copied from interface: PropertyAccess
      Obtain the delegate for getting values of the persistent attribute.
      Specified by:
      getGetter in interface PropertyAccess
      Returns:
      The property getter
    • getSetter

      public Setter getSetter()
      Description copied from interface: PropertyAccess
      Obtain the delegate for setting values of the persistent attribute.
      Specified by:
      getSetter in interface PropertyAccess
      Returns:
      The property setter
    • get

      public @Nullable Object get(Object owner)
      Description copied from interface: Getter
      Get the property value from the given owner instance.
      Specified by:
      get in interface Getter
      Parameters:
      owner - The instance containing the property value to be retrieved.
      Returns:
      The extracted value.
    • getForInsert

      public @Nullable Object getForInsert(Object owner, Map mergeMap, SharedSessionContractImplementor session)
      Description copied from interface: Getter
      Get the property value from the given owner instance.
      Specified by:
      getForInsert in interface Getter
      Parameters:
      owner - The instance containing the value to be retrieved.
      mergeMap - a map of merged persistent instances to detached instances
      session - The session from which this request originated.
      Returns:
      The extracted value.
    • set

      public void set(Object target, @Nullable Object value)
      Specified by:
      set in interface Setter
    • getReturnTypeClass

      public Class<?> getReturnTypeClass()
      Description copied from interface: Getter
      Retrieve the declared Java type class
      Specified by:
      getReturnTypeClass in interface Getter
      Returns:
      The declared java type class.
    • getReturnType

      public Type getReturnType()
      Description copied from interface: Getter
      Retrieve the declared Java type
      Specified by:
      getReturnType in interface Getter
      Returns:
      The declared java type.
    • getMember

      public @Nullable 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
      Returns:
      The mapped member, or null.
    • getMethodName

      public @Nullable String getMethodName()
      Description copied from interface: Getter
      Retrieve the getter-method name.

      Optional operation (may return null)

      Specified by:
      getMethodName in interface Getter
      Specified by:
      getMethodName in interface Setter
      Returns:
      The name of the getter method, or null.
    • getMethod

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

      Optional operation (may return null)

      Specified by:
      getMethod in interface Getter
      Specified by:
      getMethod in interface Setter
      Returns:
      The getter method, or null.