Class PropertyAccessStrategyEnhancedImpl
- java.lang.Object
-
- org.hibernate.property.access.internal.PropertyAccessStrategyEnhancedImpl
-
- All Implemented Interfaces:
PropertyAccessStrategy
public class PropertyAccessStrategyEnhancedImpl extends Object implements PropertyAccessStrategy
Defines a strategy for accessing property values via a get/set pair, which may be nonpublic. This is the default (and recommended) strategy.
-
-
Field Summary
Fields Modifier and Type Field Description static PropertyAccessStrategyEnhancedImplFIELDstatic PropertyAccessStrategyEnhancedImplSTANDARD
-
Constructor Summary
Constructors Constructor Description PropertyAccessStrategyEnhancedImpl(AccessType getterAccessType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyAccessbuildPropertyAccess(Class<?> containerJavaType, String propertyName, boolean setterRequired)Build aPropertyAccessfor the indicated propertystatic PropertyAccessStrategyEnhancedImplwith(AccessType getterAccessType)
-
-
-
Field Detail
-
STANDARD
public static PropertyAccessStrategyEnhancedImpl STANDARD
-
FIELD
public static PropertyAccessStrategyEnhancedImpl FIELD
-
-
Constructor Detail
-
PropertyAccessStrategyEnhancedImpl
public PropertyAccessStrategyEnhancedImpl(AccessType getterAccessType)
-
-
Method Detail
-
with
public static PropertyAccessStrategyEnhancedImpl with(AccessType getterAccessType)
-
buildPropertyAccess
public PropertyAccess buildPropertyAccess(Class<?> containerJavaType, String propertyName, boolean setterRequired)
Description copied from interface:PropertyAccessStrategyBuild aPropertyAccessfor the indicated property- Specified by:
buildPropertyAccessin interfacePropertyAccessStrategy- Parameters:
containerJavaType- The Java type that contains the property; may benullfor non-pojo cases.propertyName- The property namesetterRequired- Whether it is an error if we are unable to find a corresponding setter- Returns:
- The appropriate PropertyAccess
-
-