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

public Class PropertyAccessEnhancedImpl

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

A PropertyAccess for byte code enhanced entities. Enhanced setter methods ( if available ) are used for property writes. Regular getter methods/fields are used for property access. Based upon PropertyAccessMixedImpl.
Authors
Steve Ebersole, Luis Barreiro

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
PropertyAccessEnhancedImpl(PropertyAccessStrategy strategy, Class<?> containerJavaType, String propertyName, @Nullable AccessType getterAccessType)

Method Summary

Modifier and TypeMethod and Description
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 AccessType
resolveAccessType(@Nullable AccessType getterAccessType, Class<?> containerJavaType, String propertyName)

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

PropertyAccessEnhancedImplback to summary
public PropertyAccessEnhancedImpl(PropertyAccessStrategy strategy, Class<?> containerJavaType, String propertyName, @Nullable AccessType getterAccessType)

Method Detail

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
resolveAccessTypeback to summary
private static AccessType resolveAccessType(@Nullable AccessType getterAccessType, Class<?> containerJavaType, String propertyName)