Class GetterFieldImpl
- java.lang.Object
-
- org.hibernate.property.access.spi.GetterFieldImpl
-
- All Implemented Interfaces:
Serializable,Getter
- Direct Known Subclasses:
EnhancedGetterFieldImpl
@Internal public class GetterFieldImpl extends Object implements Getter
Field-based implementation of Getter- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GetterFieldImpl(Class<?> containerClass, String propertyName, Field field)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable Objectget(Object owner)Get the property value from the given owner instance.FieldgetField()@Nullable ObjectgetForInsert(Object owner, Map mergeMap, SharedSessionContractImplementor session)Get the property value from the given owner instance.MembergetMember()Retrieve the member to which this property maps.@Nullable MethodgetMethod()Retrieve the getter-method.@Nullable StringgetMethodName()Retrieve the getter-method name.TypegetReturnType()Retrieve the declared Java typeClass<?>getReturnTypeClass()Retrieve the declared Java type class
-
-
-
Method Detail
-
get
public @Nullable Object get(Object owner)
Description copied from interface:GetterGet the property value from the given owner instance.
-
getForInsert
public @Nullable Object getForInsert(Object owner, Map mergeMap, SharedSessionContractImplementor session)
Description copied from interface:GetterGet the property value from the given owner instance.- Specified by:
getForInsertin interfaceGetter- Parameters:
owner- The instance containing the value to be retrieved.mergeMap- a map of merged persistent instances to detached instancessession- The session from which this request originated.- Returns:
- The extracted value.
-
getReturnTypeClass
public Class<?> getReturnTypeClass()
Description copied from interface:GetterRetrieve the declared Java type class- Specified by:
getReturnTypeClassin interfaceGetter- Returns:
- The declared java type class.
-
getReturnType
public Type getReturnType()
Description copied from interface:GetterRetrieve the declared Java type- Specified by:
getReturnTypein interfaceGetter- Returns:
- The declared java type.
-
getField
public Field getField()
-
getMember
public Member getMember()
Description copied from interface:GetterRetrieve the member to which this property maps. This might be the field or it might be the getter method.Optional operation (may return
null)
-
getMethodName
public @Nullable String getMethodName()
Description copied from interface:GetterRetrieve the getter-method name.Optional operation (may return
null)- Specified by:
getMethodNamein interfaceGetter- Returns:
- The name of the getter method, or
null.
-
-