Interface Getter

All Superinterfaces:
Serializable
All Known Implementing Classes:
EnhancedGetterFieldImpl, GetterFieldImpl, GetterMethodImpl

@Deprecated(since="7.4", forRemoval=true) @Remove public interface Getter extends Serializable
Deprecated, for removal: This API element is subject to removal in a future version.
no longer used
The contract for getting the value of a persistent attribute from its container/owner.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable Object
    get(Object owner)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Will be removed in 8.0
    @Nullable Object
    Deprecated, for removal: This API element is subject to removal in a future version.
    Will be removed in 8.0
    @Nullable Member
    Deprecated, for removal: This API element is subject to removal in a future version.
    Retrieve the member to which this property maps.
    @Nullable Method
    Deprecated, for removal: This API element is subject to removal in a future version.
    Retrieve the getter-method.
    @Nullable String
    Deprecated, for removal: This API element is subject to removal in a future version.
    Retrieve the getter-method name.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Retrieve the declared Java type
    Deprecated, for removal: This API element is subject to removal in a future version.
    Retrieve the declared Java type class
  • Method Details

    • get

      @Deprecated(since="7.4", forRemoval=true) @Nullable Object get(Object owner)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Will be removed in 8.0
      Get the property value from the given owner instance.
      Parameters:
      owner - The instance containing the property value to be retrieved.
      Returns:
      The extracted value.
    • getForInsert

      @Deprecated(since="7.4", forRemoval=true) @Nullable Object getForInsert(Object owner, Map<Object,Object> mergeMap, SharedSessionContractImplementor session)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Will be removed in 8.0
      Get the property value from the given owner instance.
      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.
    • getReturnTypeClass

      Class<?> getReturnTypeClass()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Retrieve the declared Java type class
      Returns:
      The declared java type class.
    • getReturnType

      Type getReturnType()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Retrieve the declared Java type
      Returns:
      The declared java type.
    • getMember

      @Nullable Member getMember()
      Deprecated, for removal: This API element is subject to removal in a future version.
      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)

      Returns:
      The mapped member, or null.
    • getMethodName

      @Nullable String getMethodName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Retrieve the getter-method name.

      Optional operation (may return null)

      Returns:
      The name of the getter method, or null.
    • getMethod

      @Nullable Method getMethod()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Retrieve the getter-method.

      Optional operation (may return null)

      Returns:
      The getter method, or null.