Top Description Fields Constructors Methods
org.hibernate.property.access.internal

public Class PropertyAccessMixedImpl

extends Object
implements PropertyAccess
Class Inheritance
All Implemented Interfaces
org.hibernate.property.access.spi.PropertyAccess
Imports
java.lang.reflect.Field, .Method, org.hibernate.property.access.spi.Getter, .GetterFieldImpl, .GetterMethodImpl, .PropertyAccess, .PropertyAccessBuildingException, .PropertyAccessStrategy, .Setter, .SetterFieldImpl, .SetterMethodImpl, jakarta.persistence.AccessType, org.checkerframework.checker.nullness.qual.PolyNull

A PropertyAccess based on mix of getter/setter method and/or field.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final Getter
private final Setter
private final PropertyAccessStrategy

Constructor Summary

AccessConstructor and Description
public
PropertyAccessMixedImpl(PropertyAccessStrategy strategy, Class<?> containerJavaType, String propertyName)

Method Summary

Modifier and TypeMethod and Description
private static Getter
fieldGetter(Class<?> containerJavaType, String propertyName, Field field)

private static Setter
fieldSetter(Class<?> containerJavaType, String propertyName, Field field)

public Getter
getGetter()

Implements org.hibernate.property.access.spi.PropertyAccess.getGetter.

Obtain the delegate for getting values of the persistent attribute.
public PropertyAccessStrategy
public Setter
getSetter()

Implements org.hibernate.property.access.spi.PropertyAccess.getSetter.

Obtain the delegate for setting values of the persistent attribute.
private static Getter
propertyGetter(Class<?> containerJavaType, String propertyName, Method method)

private static @PolyNull Setter
propertySetter(Class<?> containerJavaType, String propertyName, @PolyNull Method method)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

getterback to summary
private final Getter getter
setterback to summary
private final Setter setter
strategyback to summary
private final PropertyAccessStrategy strategy

Constructor Detail

PropertyAccessMixedImplback to summary
public PropertyAccessMixedImpl(PropertyAccessStrategy strategy, Class<?> containerJavaType, String propertyName)

Method Detail

fieldGetterback to summary
private static Getter fieldGetter(Class<?> containerJavaType, String propertyName, Field field)
fieldSetterback to summary
private static Setter fieldSetter(Class<?> containerJavaType, String propertyName, Field field)
getGetterback to summary
public Getter getGetter()

Implements org.hibernate.property.access.spi.PropertyAccess.getGetter.

Doc from org.hibernate.property.access.spi.PropertyAccess.getGetter.

Obtain the delegate for getting values of the persistent attribute.

Returns:Getter

The property getter

Annotations
@Override
getPropertyAccessStrategyback to summary
public PropertyAccessStrategy getPropertyAccessStrategy()

Implements org.hibernate.property.access.spi.PropertyAccess.getPropertyAccessStrategy.

Doc from org.hibernate.property.access.spi.PropertyAccess.getPropertyAccessStrategy.

Access to the PropertyAccessStrategy that created this instance.

Returns:PropertyAccessStrategy

The PropertyAccessStrategy

Annotations
@Override
getSetterback to summary
public Setter getSetter()

Implements org.hibernate.property.access.spi.PropertyAccess.getSetter.

Doc from org.hibernate.property.access.spi.PropertyAccess.getSetter.

Obtain the delegate for setting values of the persistent attribute.

Returns:Setter

The property setter

Annotations
@Override
propertyGetterback to summary
private static Getter propertyGetter(Class<?> containerJavaType, String propertyName, Method method)
propertySetterback to summary
private static @PolyNull Setter propertySetter(Class<?> containerJavaType, String propertyName, @PolyNull Method method)