Package org.hibernate.property
Class BackrefPropertyAccessor.BackrefGetter
java.lang.Object
org.hibernate.property.BackrefPropertyAccessor.BackrefGetter
- All Implemented Interfaces:
Serializable,Getter
- Enclosing class:
BackrefPropertyAccessor
Internal implementation of a property getter specific to these back-ref properties.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the property value from the given instance .getForInsert(Object target, Map mergeMap, SessionImplementor session) Get the property value from the given owner instance.Retrieve the member to which this property maps.Retrieve the getter-method.Retrieve the getter-method name.Retrieve the declared Java type
-
Constructor Details
-
BackrefGetter
public BackrefGetter()
-
-
Method Details
-
getForInsert
Get the property value from the given owner instance.- Specified by:
getForInsertin interfaceGetter- Parameters:
target- The instance containing the value to be retreived.mergeMap- a map of merged persistent instances to detached instancessession- The session from which this request originated.- Returns:
- The extracted value.
-
getMember
Retrieve the member to which this property maps. This might be the field or it might be the getter method. -
get
Get the property value from the given instance . -
getMethod
Retrieve the getter-method. Optional operation (return null) -
getMethodName
Retrieve the getter-method name. Optional operation (return null)- Specified by:
getMethodNamein interfaceGetter- Returns:
- The name of the getter method, or null.
-
getReturnType
Retrieve the declared Java type- Specified by:
getReturnTypein interfaceGetter- Returns:
- The declared java type.
-