java.lang.Object
org.seasar.doma.jdbc.entity.OriginalStatesAccessor<E>
- Type Parameters:
E- the entity type
An accessor that is access to the field that is annotated with
OriginalStates.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOriginalStatesAccessor(Class<? super E> entityClass, String name) Creates an instance. -
Method Summary
-
Field Details
-
entityClass
-
name
-
field
-
-
Constructor Details
-
OriginalStatesAccessor
Creates an instance.- Parameters:
entityClass- the entity classname- the name of field that is annotated withOriginalStates
-
-
Method Details
-
get
Retrieves the original states from the entity.- Parameters:
entity- the entity- Returns:
- the original states
-
set
Set the original states to the entity.- Parameters:
entity- the entitystates- the original states
-