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

public Class PropertyAccessMixedImpl

extends Object
implements PropertyAccess
Class Inheritance
All Implemented Interfaces
org.hibernate.property.access.spi.PropertyAccess
Known Direct Subclasses
org.hibernate.property.access.internal.PropertyAccessEnhancedImpl
Imports
java.lang.reflect.AnnotatedElement, .Field, .Method, javax.persistence.Access, .AccessType, org.hibernate.PropertyNotFoundException, org.hibernate.internal.util.ReflectHelper, org.hibernate.property.access.spi.Getter, .GetterFieldImpl, .GetterMethodImpl, .PropertyAccess, .PropertyAccessBuildingException, .PropertyAccessStrategy, .Setter, .SetterFieldImpl, .SetterMethodImpl

A PropertyAccess based on mix of getter/setter method and/or field.
Author
Steve Ebersole

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
PropertyAccessMixedImpl(PropertyAccessStrategy strategy, Class<T> containerJavaType, String propertyName)

Method Summary

Modifier and TypeMethod and Description
protected Getter
fieldGetter(Class<?> containerJavaType, String propertyName, Field field)

protected static Field
fieldOrNull(Class<T> containerJavaType, String propertyName)

protected Setter
fieldSetter(Class<?> containerJavaType, String propertyName, Field field)

protected static AccessType
getAccessType(Class<?> containerJavaType, String propertyName)

private static AccessType
public Getter
getGetter()

Implements org.hibernate.property.access.spi.PropertyAccess.getGetter.

Obtain the delegate for getting values for the described persistent property
public PropertyAccessStrategy
getPropertyAccessStrategy()

Implements org.hibernate.property.access.spi.PropertyAccess.getPropertyAccessStrategy.

Access to the PropertyAccessStrategy that created this PropertyAccess
public Setter
getSetter()

Implements org.hibernate.property.access.spi.PropertyAccess.getSetter.

Obtain the delegate for setting values for the described persistent property
protected Getter
propertyGetter(Class<?> containerJavaType, String propertyName, Method method)

protected Setter
propertySetter(Class<?> containerJavaType, String propertyName, Method method)

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

PropertyAccessMixedImplback to summary
public PropertyAccessMixedImpl(PropertyAccessStrategy strategy, Class<T> containerJavaType, String propertyName)

Method Detail

fieldGetterback to summary
protected Getter fieldGetter(Class<?> containerJavaType, String propertyName, Field field)
fieldOrNullback to summary
protected static Field fieldOrNull(Class<T> containerJavaType, String propertyName)
fieldSetterback to summary
protected Setter fieldSetter(Class<?> containerJavaType, String propertyName, Field field)
getAccessTypeback to summary
protected static AccessType getAccessType(Class<?> containerJavaType, String propertyName)
getAccessTypeOrNullback to summary
private static AccessType getAccessTypeOrNull(AnnotatedElement element)
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 for the described persistent property

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 PropertyAccess

Returns:PropertyAccessStrategy

The PropertyAccessStrategy that created this PropertyAccess

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 for the described persistent property

Returns:Setter

The property setter

Annotations
@Override
propertyGetterback to summary
protected Getter propertyGetter(Class<?> containerJavaType, String propertyName, Method method)
propertySetterback to summary
protected Setter propertySetter(Class<?> containerJavaType, String propertyName, Method method)