public abstract static class DomainObject.DomainObjectBuilder<T extends EntityId,D extends EntityId,P extends Id,E extends DomainObject<T,D,P>,SELF extends DomainObject.DomainObjectBuilder<T,D,P,E,SELF>> extends Entity.EntityBuilder<T,P,E,SELF>
Modifier | Constructor and Description |
---|---|
protected |
DomainObjectBuilder(E template) |
protected |
DomainObjectBuilder(T id,
Type type) |
Modifier and Type | Method and Description |
---|---|
protected E |
build(Entity.EntityData<T,P> entityData) |
protected abstract E |
build(Entity.EntityData<T,P> entityData,
DomainObject.DomainObjectData<T,D,P> domainObjectData) |
SELF |
definitionId(D definitionId)
Sets the definition id.
|
SELF |
putVariable(String name,
Object value)
Adds the name/value pair as variable to the current variables.
|
<V> SELF |
putVariable(VariableName<V,?> name,
V value)
Adds the name/value pair as variable to the current variables.
|
SELF |
putVariables(Map<String,Object> variables)
Adds the name/value pairs as variables to the current variables.
|
SELF |
putVariables(VariableMap variables)
Adds the name/value pairs as variables to the current variables.
|
SELF |
state(State state)
Sets the state.
|
SELF |
stateUpdateTime(Date stateUpdateTime)
Sets the state update time.
|
SELF |
subState(State subState)
Sets the sub state.
|
SELF |
subStateUpdateTime(Date subStateUpdateTime)
Sets the sub state update time.
|
SELF |
variables(Collection<Variable> variables)
Sets the variables.
|
build, creationTime, description, externalId, getEntityData, getThis, globalId, id, modificationCreatorId, modificationUpdaterId, modificationVersion, name, providerId, tenantId, updateTime
protected DomainObjectBuilder(E template)
public SELF definitionId(D definitionId)
definitionId
- the definition idpublic SELF state(State state)
state
- the statepublic SELF subState(State subState)
subState
- the sub statepublic SELF variables(Collection<Variable> variables)
variables
- the variablespublic SELF putVariable(String name, Object value)
name
- the name of the variablevalue
- the value of the variablepublic <V> SELF putVariable(VariableName<V,?> name, V value)
V
- the expected transient and persisted type of the variable valuename
- the name of the variablevalue
- the value of the variablepublic SELF putVariables(Map<String,Object> variables)
variables
- the name/value pairspublic SELF putVariables(VariableMap variables)
variables
- the name/value pairspublic SELF stateUpdateTime(Date stateUpdateTime)
stateUpdateTime
- the state update timepublic SELF subStateUpdateTime(Date subStateUpdateTime)
subStateUpdateTime
- the sub state update timeprotected final E build(Entity.EntityData<T,P> entityData)
protected abstract E build(Entity.EntityData<T,P> entityData, DomainObject.DomainObjectData<T,D,P> domainObjectData)
Copyright © 2010 - 2018 edorasware ag. All Rights Reserved.