Class PropertyAccessMixedImpl
- java.lang.Object
-
- org.hibernate.property.access.internal.PropertyAccessMixedImpl
-
- All Implemented Interfaces:
PropertyAccess
- Direct Known Subclasses:
PropertyAccessEnhancedImpl
public class PropertyAccessMixedImpl extends Object implements PropertyAccess
A PropertyAccess based on mix of getter/setter method and/or field.
-
-
Constructor Summary
Constructors Constructor Description PropertyAccessMixedImpl(PropertyAccessStrategy strategy, Class<?> containerJavaType, String propertyName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Getter
fieldGetter(Class<?> containerJavaType, String propertyName, Field field)
protected static Field
fieldOrNull(Class<?> containerJavaType, String propertyName)
protected Setter
fieldSetter(Class<?> containerJavaType, String propertyName, Field field)
protected static jakarta.persistence.AccessType
getAccessType(Class<?> containerJavaType, String propertyName)
Getter
getGetter()
Obtain the delegate for getting values for the described persistent propertyPropertyAccessStrategy
getPropertyAccessStrategy()
Access to the PropertyAccessStrategy that created this PropertyAccessSetter
getSetter()
Obtain the delegate for setting values for the described persistent propertyprotected Getter
propertyGetter(Class<?> containerJavaType, String propertyName, Method method)
protected Setter
propertySetter(Class<?> containerJavaType, String propertyName, Method method)
-
-
-
Constructor Detail
-
PropertyAccessMixedImpl
public PropertyAccessMixedImpl(PropertyAccessStrategy strategy, Class<?> containerJavaType, String propertyName)
-
-
Method Detail
-
getAccessType
protected static jakarta.persistence.AccessType getAccessType(Class<?> containerJavaType, String propertyName)
-
fieldGetter
protected Getter fieldGetter(Class<?> containerJavaType, String propertyName, Field field)
-
fieldSetter
protected Setter fieldSetter(Class<?> containerJavaType, String propertyName, Field field)
-
propertyGetter
protected Getter propertyGetter(Class<?> containerJavaType, String propertyName, Method method)
-
propertySetter
protected Setter propertySetter(Class<?> containerJavaType, String propertyName, Method method)
-
getPropertyAccessStrategy
public PropertyAccessStrategy getPropertyAccessStrategy()
Description copied from interface:PropertyAccess
Access to the PropertyAccessStrategy that created this PropertyAccess- Specified by:
getPropertyAccessStrategy
in interfacePropertyAccess
- Returns:
- The PropertyAccessStrategy that created this PropertyAccess
-
getGetter
public Getter getGetter()
Description copied from interface:PropertyAccess
Obtain the delegate for getting values for the described persistent property- Specified by:
getGetter
in interfacePropertyAccess
- Returns:
- The property getter
-
getSetter
public Setter getSetter()
Description copied from interface:PropertyAccess
Obtain the delegate for setting values for the described persistent property- Specified by:
getSetter
in interfacePropertyAccess
- Returns:
- The property setter
-
-