Top Description Methods
org.hibernate.property.access.spi

public Interface PropertyAccessStrategy

Known Direct Implementers
org.hibernate.property.access.internal.PropertyAccessStrategyBackRefImpl, org.hibernate.property.access.internal.PropertyAccessStrategyBasicImpl, org.hibernate.property.access.internal.PropertyAccessStrategyChainedImpl, org.hibernate.property.access.internal.PropertyAccessStrategyCompositeUserTypeImpl, org.hibernate.property.access.internal.PropertyAccessStrategyEmbeddedImpl, org.hibernate.property.access.internal.PropertyAccessStrategyEnhancedImpl, org.hibernate.property.access.internal.PropertyAccessStrategyFieldImpl, org.hibernate.property.access.internal.PropertyAccessStrategyIndexBackRefImpl, org.hibernate.property.access.internal.PropertyAccessStrategyMapImpl, org.hibernate.property.access.internal.PropertyAccessStrategyMixedImpl, org.hibernate.property.access.internal.PropertyAccessStrategyNoopImpl

Describes a strategy for accessing a persistent attribute, for example: field, JavaBean-style property, or whatever.

Acts as a factory for PropertyAccess instances.

Method Summary

Modifier and TypeMethod and Description
public PropertyAccess

Returns:

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

Build a PropertyAccess for the indicated property

Method Detail

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

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