Top Description Inners Methods
org.hibernate.bytecode.spi

public Interface ReflectionOptimizer

Known Direct Implementers
org.hibernate.bytecode.internal.bytebuddy.ReflectionOptimizerImpl

Represents reflection optimization for a particular class.
Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
ReflectionOptimizer.AccessOptimizer

Represents optimized entity property access.

public static interface
ReflectionOptimizer.InstantiationOptimizer

Represents optimized entity instantiation.

Method Summary

Modifier and TypeMethod and Description
public ReflectionOptimizer.AccessOptimizer

Returns:

The optimizer for persistent state access
getAccessOptimizer
()

Retrieve the optimizer for accessing the entity's persistent state.

public ReflectionOptimizer.InstantiationOptimizer

Returns:

The optimizer for instantiation
getInstantiationOptimizer
()

Retrieve the optimizer for calling an entity's constructor via reflection.

Method Detail

getAccessOptimizerback to summary
public ReflectionOptimizer.AccessOptimizer getAccessOptimizer()

Retrieve the optimizer for accessing the entity's persistent state.

Returns:ReflectionOptimizer.AccessOptimizer

The optimizer for persistent state access

getInstantiationOptimizerback to summary
public ReflectionOptimizer.InstantiationOptimizer getInstantiationOptimizer()

Retrieve the optimizer for calling an entity's constructor via reflection.

Returns:ReflectionOptimizer.InstantiationOptimizer

The optimizer for instantiation

org.hibernate.bytecode.spi back to summary

public Interface ReflectionOptimizer.AccessOptimizer


Represents optimized entity property access.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public String[]

Returns:

The name of all properties.
getPropertyNames
()

Get the name of all properties.

public Object[]

Returns:

The values.
getPropertyValues
(Object
The entity from which to extract values.
object
)

Get the value of all properties from the given entity

public void
setPropertyValues(Object
The entity instance
object
,
Object[]
The values to inject
values
)

Set all property values into an entity instance.

Method Detail

getPropertyNamesback to summary
public String[] getPropertyNames()

Get the name of all properties.

Returns:String[]

The name of all properties.

getPropertyValuesback to summary
public Object[] getPropertyValues(Object object)

Get the value of all properties from the given entity

Parameters
object:Object

The entity from which to extract values.

Returns:Object[]

The values.

setPropertyValuesback to summary
public void setPropertyValues(Object object, Object[] values)

Set all property values into an entity instance.

Parameters
object:Object

The entity instance

values:Object[]

The values to inject

org.hibernate.bytecode.spi back to summary

public Interface ReflectionOptimizer.InstantiationOptimizer


Represents optimized entity instantiation.

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

The new instance.
newInstance
()

Perform instantiation of an instance of the underlying class.

Method Detail

newInstanceback to summary
public Object newInstance()

Perform instantiation of an instance of the underlying class.

Returns:Object

The new instance.