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

public Class EnhancedSetterImpl

extends SetterFieldImpl
Class Inheritance
Imports
java.io.Serializable, java.lang.reflect.Field, org.hibernate.bytecode.enhance.spi.interceptor.BytecodeLazyAttributeInterceptor, org.hibernate.engine.internal.ManagedTypeHelper, org.hibernate.engine.spi.CompositeOwner, .CompositeTracker, .PersistentAttributeInterceptable, .PersistentAttributeInterceptor, .SessionFactoryImplementor, org.hibernate.property.access.internal.AbstractFieldSerialForm

A specialized Setter implementation for handling setting values into a bytecode-enhanced Class. The reason we need specialized handling is to render the fact that we need to account for certain enhancement features during the setting process.
Authors
Steve Ebersole, Luis Barreiro

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final String

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
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
)

Overrides org.hibernate.property.access.spi.SetterFieldImpl.set.

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 static void
private Object
Inherited from org.hibernate.property.access.spi.SetterFieldImpl:
getContainerClassgetFieldgetMethodgetMethodNamegetPropertyName

Field Detail

propertyNameback to summary
private final String propertyName

Hides org.hibernate.property.access.spi.SetterFieldImpl.propertyName.

Constructor Detail

EnhancedSetterImplback to summary
public EnhancedSetterImpl(Class<T> containerClass, String propertyName, Field field)
Annotations
@SuppressWarnings:rawtypes

Method Detail

setback to summary
public void set(Object target, Object value, SessionFactoryImplementor factory)

Overrides org.hibernate.property.access.spi.SetterFieldImpl.set.

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
setAttributeInitializedback to summary
private static void setAttributeInitialized(PersistentAttributeInterceptable target, String propertyName)
writeReplaceback to summary
private Object writeReplace()

Hides org.hibernate.property.access.spi.SetterFieldImpl.writeReplace.

org.hibernate.property.access.spi back to summary

private Class EnhancedSetterImpl.SerialForm

extends AbstractFieldSerialForm
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Annotations
@SuppressWarnings:rawtypes

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()