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

public Class PropertyAccessStrategyEnhancedImpl

extends Object
implements PropertyAccessStrategy
Class Inheritance
All Implemented Interfaces
org.hibernate.property.access.spi.PropertyAccessStrategy
Imports
org.hibernate.property.access.spi.PropertyAccess, .PropertyAccessStrategy, jakarta.persistence.AccessType, org.checkerframework.checker.nullness.qual.Nullable

Defines a strategy for accessing property values via a get/set pair, which may be nonpublic. This is the default (and recommended) strategy.
Authors
Steve Ebersole, Gavin King

Field Summary

Modifier and TypeField and Description
public static PropertyAccessStrategyEnhancedImpl
private final @Nullable AccessType
public static PropertyAccessStrategyEnhancedImpl

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public PropertyAccess
buildPropertyAccess(Class<?>
The Java type that contains the property; may be null for non-pojo cases.
containerJavaType
,
final String
The property name
propertyName
,
boolean
Whether it is an error if we are unable to find a corresponding setter
setterRequired
)

Implements org.hibernate.property.access.spi.PropertyAccessStrategy.buildPropertyAccess.

Build a PropertyAccess for the indicated property
public static PropertyAccessStrategyEnhancedImpl
with(AccessType getterAccessType)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

FIELDback to summary
public static PropertyAccessStrategyEnhancedImpl FIELD
getterAccessTypeback to summary
private final @Nullable AccessType getterAccessType
STANDARDback to summary
public static PropertyAccessStrategyEnhancedImpl STANDARD

Constructor Detail

PropertyAccessStrategyEnhancedImplback to summary
public PropertyAccessStrategyEnhancedImpl(@Nullable AccessType getterAccessType)

Method Detail

buildPropertyAccessback to summary
public PropertyAccess buildPropertyAccess(Class<?> containerJavaType, final String propertyName, boolean setterRequired)

Implements org.hibernate.property.access.spi.PropertyAccessStrategy.buildPropertyAccess.

Doc from org.hibernate.property.access.spi.PropertyAccessStrategy.buildPropertyAccess.

Build a PropertyAccess for the indicated property

Parameters
containerJavaType:Class<?>

The Java type that contains the property; may be null for non-pojo cases.

propertyName:String

The property name

setterRequired:boolean

Whether it is an error if we are unable to find a corresponding setter

Returns:PropertyAccess

The appropriate PropertyAccess

Annotations
@Override
withback to summary
public static PropertyAccessStrategyEnhancedImpl with(AccessType getterAccessType)