public abstract static class DomainObjectDefinition.DomainObjectDefinitionBuilder<T extends EntityId,P extends Id,E extends DomainObjectDefinition<T,P>,SELF extends DomainObjectDefinition.DomainObjectDefinitionBuilder<T,P,E,SELF>> extends Entity.EntityBuilder<T,P,E,SELF>
Modifier | Constructor and Description |
---|---|
protected |
DomainObjectDefinitionBuilder(E template) |
protected |
DomainObjectDefinitionBuilder(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,
DomainObjectDefinition.DomainObjectDefinitionData<T,P> domainObjectDefinitionData) |
SELF |
externalVersion(int externalVersion)
Sets the external version.
|
SELF |
key(String key)
Sets the key.
|
SELF |
properties(Collection<Property> properties)
Sets the properties.
|
SELF |
putProperties(Map<String,String> properties)
Adds the name/value pairs as properties to the current properties.
|
SELF |
putProperties(PropertyMap properties)
Adds the name/value pairs as properties to the current properties.
|
<V> SELF |
putProperty(PropertyName<V> name,
V value)
Adds the name/value pair as property to the current properties.
|
SELF |
putProperty(String name,
String value)
Adds the name/value pair as property to the current properties.
|
SELF |
resourceString(String resourceString)
Sets the resource string from which the entity has been derived.
|
SELF |
validFrom(Date validFrom)
Sets the date from which on the entity is valid.
|
SELF |
validTo(Date validTo)
Sets the date until which the entity is valid.
|
SELF |
version(int version)
Sets the version.
|
build, creationTime, description, externalId, getEntityData, getThis, globalId, id, modificationCreatorId, modificationUpdaterId, modificationVersion, name, providerId, tenantId, updateTime
protected DomainObjectDefinitionBuilder(E template)
public SELF properties(Collection<Property> properties)
properties
- the propertiespublic SELF putProperty(String name, String value)
name
- the name of the propertyvalue
- the value of the propertypublic <V> SELF putProperty(PropertyName<V> name, V value)
V
- the type of the propertyname
- the name of the propertyvalue
- the value of the propertypublic SELF putProperties(Map<String,String> properties)
properties
- the name/value pairspublic SELF putProperties(PropertyMap properties)
properties
- the name/value pairspublic SELF validFrom(Date validFrom)
validFrom
- the start date from which on the entity is validpublic SELF validTo(Date validTo)
validTo
- the end date until which the entity is validpublic SELF version(int version)
version
- the versionpublic SELF externalVersion(int externalVersion)
externalVersion
- the external versionpublic SELF resourceString(String resourceString)
resourceString
- the resource stringprotected final E build(Entity.EntityData<T,P> entityData)
protected abstract E build(Entity.EntityData<T,P> entityData, DomainObjectDefinition.DomainObjectDefinitionData<T,P> domainObjectDefinitionData)
Copyright © 2010 - 2018 edorasware ag. All Rights Reserved.