E - the entity typepublic class OriginalStatesAccessor<E>
extends java.lang.Object
OriginalStates.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Class<? super E> |
entityClass |
protected java.lang.reflect.Field |
field |
protected java.lang.String |
name |
| Constructor and Description |
|---|
OriginalStatesAccessor(java.lang.Class<? super E> entityClass,
java.lang.String name)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
E |
get(E entity)
Retrieves the original states from the entity.
|
void |
set(E entity,
E states)
Set the original states to the entity.
|
protected final java.lang.Class<? super E> entityClass
protected final java.lang.String name
protected final java.lang.reflect.Field field
public OriginalStatesAccessor(java.lang.Class<? super E> entityClass, java.lang.String name)
entityClass - the entity classname - the name of field that is annotated with OriginalStates