UnitOfWork.toEntity(Class, Identity)
instead.public interface ValueToEntity
Modifier and Type | Method and Description |
---|---|
<T> Iterable<T> |
create(Class<T> entityType,
Iterable<Object> values)
Deprecated.
Create an Iterable of Entities from an Iterable of Values.
|
<T> Iterable<T> |
create(Class<T> entityType,
Iterable<Object> values,
Function<T,T> prototypeOpportunity)
Deprecated.
Create an Iterable of Entities from an Iterable of Values.
|
<T> T |
create(Class<T> entityType,
Object value)
Deprecated.
Create an Entity from a Value.
|
<T> T |
create(Class<T> entityType,
Object value,
Function<T,T> prototypeOpportunity)
Deprecated.
Create an Entity from a Value.
|
<T> T |
create(Class<T> entityType,
String identity,
Object value)
Deprecated.
Create an Entity from a Value.
|
<T> T |
create(Class<T> entityType,
String identity,
Object value,
Function<T,T> prototypeOpportunity)
Deprecated.
Create an Entity from a Value.
|
void |
update(Object entity,
Object value)
Deprecated.
Update an Entity from a Value.
|
<T> T create(Class<T> entityType, Object value)
If the Value extends Identity
the Entity identity is taken from the Value's state.
Else, if the Value's state for Identity
is absent, a new Identity is generated.
T
- Value TypeentityType
- Entity Typevalue
- Value<T> T create(Class<T> entityType, String identity, Object value)
If identity
is not null, it is used as Entity identity.
Else, if the Value extends Identity
the Entity identity is taken from the Value's state.
Else, if the Value's state for Identity
is absent, a new Identity is generated.
T
- Value TypeentityType
- Entity Typeidentity
- Entity Identity, may be nullvalue
- Value<T> T create(Class<T> entityType, Object value, Function<T,T> prototypeOpportunity)
If the Value extends Identity
the Entity identity is taken from the Value's state.
Else, if the Value's state for Identity
is absent, a new Identity is generated.
T
- Value TypeentityType
- Entity Typevalue
- ValueprototypeOpportunity
- A Function that will be mapped on the Entity prototype before instanciation<T> T create(Class<T> entityType, String identity, Object value, Function<T,T> prototypeOpportunity)
If identity
is not null, it is used as Entity identity.
Else, if the Value extends Identity
the Entity identity is taken from the Value's state.
Else, if the Value's state for Identity
is absent, a new Identity is generated.
T
- Value TypeentityType
- Entity Typeidentity
- Entity Identity, may be nullvalue
- ValueprototypeOpportunity
- A Function that will be mapped on the Entity prototype before instanciation<T> Iterable<T> create(Class<T> entityType, Iterable<Object> values)
If a Value extends Identity
the Entity identity is taken from the Value's state.
Else, if a Value's state for Identity
is absent, a new Identity is generated.
T
- Value TypeentityType
- Entity Typevalues
- An Iterable of Values<T> Iterable<T> create(Class<T> entityType, Iterable<Object> values, Function<T,T> prototypeOpportunity)
If a Value extends Identity
the Entity identity is taken from the Value's state.
Else, if a Value's state for Identity
is absent, a new Identity is generated.
T
- Value TypeentityType
- Entity Typevalues
- An Iterable of ValuesprototypeOpportunity
- A Function that will be mapped on each Entity prototype before instanciationvoid update(Object entity, Object value) throws ClassCastException, NoSuchEntityException
entity
- Entityvalue
- ValueClassCastException
- If entity
is not an EntityComposite
or if value
is not a ValueComposite
NoSuchEntityException
- If some associated Entity is absent from the EntityStore/UoW