Top Description Inners Fields Constructors Methods
org.hibernate.property.access.spi

public Class SetterFieldImpl

extends Object
implements Setter
Class Inheritance
All Implemented Interfaces
org.hibernate.property.access.spi.Setter, java.io.Serializable
Known Direct Subclasses
org.hibernate.property.access.spi.EnhancedSetterImpl
Imports
java.io.Serializable, java.lang.reflect.Field, .Method, java.util.Locale, org.hibernate.PropertyAccessException, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.internal.util.ReflectHelper, org.hibernate.property.access.internal.AbstractFieldSerialForm

Field-based implementation of Setter
Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final Class<T>
private final Field
private final String
private final Method

Constructor Summary

AccessConstructor and Description
public
SetterFieldImpl(Class<T> containerClass, String propertyName, Field field)

Method Summary

Modifier and TypeMethod and Description
public Class<T>
protected Field
public Method
getMethod()

Implements org.hibernate.property.access.spi.Setter.getMethod.

Optional operation (may return null)
public String
getMethodName()

Implements org.hibernate.property.access.spi.Setter.getMethodName.

Optional operation (may return null)
public String
public void
set(Object
The instance upon which to set the given value.
target
,
Object
The value to be set on the target.
value
,
SessionFactoryImplementor
The session factory from which this request originated.
factory
)

Implements org.hibernate.property.access.spi.Setter.set.

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Set the property value from the given instance
private Object
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

containerClassback to summary
private final Class<T> containerClass
fieldback to summary
private final Field field
propertyNameback to summary
private final String propertyName
setterMethodback to summary
private final Method setterMethod

Constructor Detail

SetterFieldImplback to summary
public SetterFieldImpl(Class<T> containerClass, String propertyName, Field field)

Method Detail

getContainerClassback to summary
public Class<T> getContainerClass()
getFieldback to summary
protected Field getField()
getMethodback to summary
public Method getMethod()

Implements org.hibernate.property.access.spi.Setter.getMethod.

Doc from org.hibernate.property.access.spi.Setter.getMethod.

Optional operation (may return null)

Annotations
@Override
getMethodNameback to summary
public String getMethodName()

Implements org.hibernate.property.access.spi.Setter.getMethodName.

Doc from org.hibernate.property.access.spi.Setter.getMethodName.

Optional operation (may return null)

Annotations
@Override
getPropertyNameback to summary
public String getPropertyName()
setback to summary
public void set(Object target, Object value, SessionFactoryImplementor factory)

Implements org.hibernate.property.access.spi.Setter.set.

Doc from org.hibernate.property.access.spi.Setter.set.

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Set the property value from the given instance

Parameters
target:Object

The instance upon which to set the given value.

value:Object

The value to be set on the target.

factory:SessionFactoryImplementor

The session factory from which this request originated.

Annotations
@Override
writeReplaceback to summary
private Object writeReplace()
org.hibernate.property.access.spi back to summary

private Class SetterFieldImpl.SerialForm

extends AbstractFieldSerialForm
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable

Field Summary

Modifier and TypeField and Description
private final Class<T>
private final String

Constructor Summary

AccessConstructor and Description
private
SerialForm(Class<T> containerClass, String propertyName, Field field)

Method Summary

Modifier and TypeMethod and Description
private Object
Inherited from org.hibernate.property.access.internal.AbstractFieldSerialForm:
resolveField

Field Detail

containerClassback to summary
private final Class<T> containerClass
propertyNameback to summary
private final String propertyName

Constructor Detail

SerialFormback to summary
private SerialForm(Class<T> containerClass, String propertyName, Field field)

Method Detail

readResolveback to summary
private Object readResolve()