Class PropertyAccessMixedImpl
- java.lang.Object
-
- org.hibernate.property.access.internal.PropertyAccessMixedImpl
-
- All Implemented Interfaces:
PropertyAccess
public class PropertyAccessMixedImpl extends Object implements PropertyAccess
APropertyAccess
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 Instance Methods Concrete Methods Modifier and Type Method Description protected Getter
fieldGetter(Class<?> containerJavaType, String propertyName, Field field)
protected Setter
fieldSetter(Class<?> containerJavaType, String propertyName, Field field)
Getter
getGetter()
Obtain the delegate for getting values of the persistent attribute.PropertyAccessStrategy
getPropertyAccessStrategy()
Access to thePropertyAccessStrategy
that created this instance.Setter
getSetter()
Obtain the delegate for setting values of the persistent attribute.protected 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
-
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 thePropertyAccessStrategy
that created this instance.- Specified by:
getPropertyAccessStrategy
in interfacePropertyAccess
- Returns:
- The
PropertyAccessStrategy
-
getGetter
public Getter getGetter()
Description copied from interface:PropertyAccess
Obtain the delegate for getting values of the persistent attribute.- Specified by:
getGetter
in interfacePropertyAccess
- Returns:
- The property getter
-
getSetter
public Setter getSetter()
Description copied from interface:PropertyAccess
Obtain the delegate for setting values of the persistent attribute.- Specified by:
getSetter
in interfacePropertyAccess
- Returns:
- The property setter
-
-