Class PropertyAccessEmbeddedImpl
- java.lang.Object
-
- org.hibernate.property.access.internal.PropertyAccessEmbeddedImpl
-
- All Implemented Interfaces:
PropertyAccess
public class PropertyAccessEmbeddedImpl extends Object implements PropertyAccess
PropertyAccessfor handling non-aggregated composites.- Implementation Note:
- We actually use a singleton for the
Setter; we cannot for the getter mainly because we need to differentiateGetter.getReturnTypeClass(). Ultimately I'd prefer to model that "common information" onPropertyAccessitself.
-
-
Constructor Summary
Constructors Constructor Description PropertyAccessEmbeddedImpl(PropertyAccessStrategyEmbeddedImpl strategy, Class<?> containerType, String propertyName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GettergetGetter()Obtain the delegate for getting values of the persistent attribute.PropertyAccessStrategygetPropertyAccessStrategy()Access to thePropertyAccessStrategythat created this instance.SettergetSetter()Obtain the delegate for setting values of the persistent attribute.
-
-
-
Constructor Detail
-
PropertyAccessEmbeddedImpl
public PropertyAccessEmbeddedImpl(PropertyAccessStrategyEmbeddedImpl strategy, Class<?> containerType, String propertyName)
-
-
Method Detail
-
getPropertyAccessStrategy
public PropertyAccessStrategy getPropertyAccessStrategy()
Description copied from interface:PropertyAccessAccess to thePropertyAccessStrategythat created this instance.- Specified by:
getPropertyAccessStrategyin interfacePropertyAccess- Returns:
- The
PropertyAccessStrategy
-
getGetter
public Getter getGetter()
Description copied from interface:PropertyAccessObtain the delegate for getting values of the persistent attribute.- Specified by:
getGetterin interfacePropertyAccess- Returns:
- The property getter
-
getSetter
public Setter getSetter()
Description copied from interface:PropertyAccessObtain the delegate for setting values of the persistent attribute.- Specified by:
getSetterin interfacePropertyAccess- Returns:
- The property setter
-
-