Class EnhancedGetterFieldImpl
- java.lang.Object
-
- org.hibernate.property.access.spi.GetterFieldImpl
-
- org.hibernate.property.access.spi.EnhancedGetterFieldImpl
-
- All Implemented Interfaces:
Serializable
,Getter
@Internal public class EnhancedGetterFieldImpl extends GetterFieldImpl
A specialized Getter implementation for handling getting values from a bytecode-enhanced Class. The reason we need specialized handling is to produce the correctMember
while using theField
to access values and ensure correct functionality.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EnhancedGetterFieldImpl(Class<?> containerClass, String propertyName, Field field, Method getterMethod)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Member
getMember()
Retrieve the member to which this property maps.@NonNull Method
getMethod()
Retrieve the getter-method.-
Methods inherited from class org.hibernate.property.access.spi.GetterFieldImpl
get, getField, getForInsert, getMethodName, getReturnType, getReturnTypeClass
-
-
-
-
Method Detail
-
getMethod
public @NonNull Method getMethod()
Description copied from interface:Getter
Retrieve the getter-method.Optional operation (may return
null
)- Specified by:
getMethod
in interfaceGetter
- Overrides:
getMethod
in classGetterFieldImpl
- Returns:
- The getter method, or
null
.
-
getMember
public 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 interfaceGetter
- Overrides:
getMember
in classGetterFieldImpl
- Returns:
- The mapped member, or
null
.
-
-