T
- The type of the id/externalIdP
- The type of the providerIdpublic abstract class DomainObjectDefinition<T extends EntityId,P extends Id> extends Entity<T,P>
Modifier and Type | Class and Description |
---|---|
static class |
DomainObjectDefinition.DomainObjectDefinitionBuilder<T extends EntityId,P extends Id,E extends DomainObjectDefinition<T,P>,SELF extends DomainObjectDefinition.DomainObjectDefinitionBuilder<T,P,E,SELF>> |
protected static class |
DomainObjectDefinition.DomainObjectDefinitionData<T extends EntityId,P extends Id>
Data container that holds the state of a domain object definition.
|
Modifier and Type | Field and Description |
---|---|
protected DomainObjectDefinition.DomainObjectDefinitionData<T,P> |
domainObjectDefinitionData |
entityData
Modifier | Constructor and Description |
---|---|
protected |
DomainObjectDefinition(Entity.EntityData<T,P> entityData,
DomainObjectDefinition.DomainObjectDefinitionData<T,P> domainObjectDefinitionData) |
protected |
DomainObjectDefinition(Entity.EntityData<T,P> entityData,
DomainObjectDefinition.DomainObjectDefinitionData<T,P> domainObjectDefinitionData,
List<? extends EntityId> propertiesPath) |
Modifier and Type | Method and Description |
---|---|
int |
getExternalVersion()
Returns the external version of the entity.
|
String |
getKey()
Returns the key of the entity.
|
List<Property> |
getLocalProperties()
Returns the local properties of the entity.
|
List<Property> |
getLocalProperties(com.google.common.base.Predicate<Property> predicate)
Returns the local properties of the entity, filtered by the given predicate.
|
Map<String,String> |
getLocalPropertiesMap()
Returns the local properties of the entity, mapped by the property name.
|
Map<String,String> |
getLocalPropertiesMap(com.google.common.base.Predicate<Property> predicate)
Returns the local properties of the entity as name/value pairs, filtered by the given predicate.
|
Property |
getLocalProperty(String name)
Returns the local property with the given name.
|
<V> V |
getLocalPropertyValue(NamedValueAccessor<V,String> propertyAccessor)
Returns the value of the local property with the name defined by the property accessor, deserialized and cast to the type expected by the property accessor.
|
String |
getLocalPropertyValue(String name)
Returns the value of the local property with the given name.
|
List<Property> |
getProperties()
Deprecated.
support for non-explicit hierarchy parsing is going to be removed.
Please use the
getLocalProperties() method instead and recheck where you store the properties |
List<Property> |
getProperties(com.google.common.base.Predicate<Property> predicate)
Deprecated.
support for non-explicit hierarchy parsing is going to be removed.
Please use the
getLocalProperties(Predicate) method instead and recheck where you store the properties |
Map<String,String> |
getPropertiesMap()
Deprecated.
support for non-explicit hierarchy parsing is going to be removed.
Please use the
getLocalPropertiesMap() method instead and recheck where you store the properties |
Map<String,String> |
getPropertiesMap(com.google.common.base.Predicate<Property> predicate)
Deprecated.
support for non-explicit hierarchy parsing is going to be removed.
Please use the
getLocalPropertiesMap(Predicate) method instead and recheck where you store the properties |
Property |
getProperty(String name)
Deprecated.
support for non-explicit hierarchy parsing is going to be removed.
Please use the
getLocalProperty(String) method instead and recheck where you store the properties |
<V> V |
getPropertyValue(NamedValueAccessor<V,String> propertyAccessor)
Deprecated.
support for non-explicit hierarchy parsing is going to be removed.
Please use the
getLocalPropertyValue(NamedValueAccessor) method instead and recheck where you store the properties |
String |
getPropertyValue(String name)
Deprecated.
support for non-explicit hierarchy parsing is going to be removed.
Please use the
getLocalPropertyValue(String) method instead and recheck where you store the properties |
String |
getResourceString()
Returns the resource string of the entity.
|
Date |
getValidFrom()
Returns the date from which the entity is valid.
|
Date |
getValidTo()
Returns the date until which the entity is valid.
|
int |
getVersion()
Returns the version of the entity.
|
boolean |
hasLocalProperty(NamedValueAccessor<?,?> propertyAccessor)
Returns true if the entity has a local property with the name of the given property accessor.
|
boolean |
hasLocalProperty(String name)
Returns true if the entity has a local property with the given name.
|
boolean |
hasProperty(NamedValueAccessor<?,String> propertyAccessor)
Deprecated.
support for non-explicit hierarchy parsing is going to be removed.
Please use the
hasLocalProperty(NamedValueAccessor) method instead and recheck where you store the properties |
boolean |
hasProperty(String name)
Deprecated.
support for non-explicit hierarchy parsing is going to be removed.
Please use the
hasLocalProperty(String) method instead and recheck where you store the properties |
getCreationTime, getDescription, getExternalId, getGlobalId, getId, getModificationCreatorId, getModificationUpdaterId, getModificationVersion, getName, getProviderId, getTenantId, getType, getUpdateTime, toString
protected final DomainObjectDefinition.DomainObjectDefinitionData<T extends EntityId,P extends Id> domainObjectDefinitionData
protected DomainObjectDefinition(Entity.EntityData<T,P> entityData, DomainObjectDefinition.DomainObjectDefinitionData<T,P> domainObjectDefinitionData)
protected DomainObjectDefinition(Entity.EntityData<T,P> entityData, DomainObjectDefinition.DomainObjectDefinitionData<T,P> domainObjectDefinitionData, List<? extends EntityId> propertiesPath)
public String getKey()
@Deprecated public List<Property> getProperties()
getLocalProperties()
method instead and recheck where you store the properties@Deprecated public final List<Property> getProperties(com.google.common.base.Predicate<Property> predicate)
getLocalProperties(Predicate)
method instead and recheck where you store the propertiespredicate
- the predicate to filter by@Deprecated public Map<String,String> getPropertiesMap()
getLocalPropertiesMap()
method instead and recheck where you store the properties@Deprecated public final Map<String,String> getPropertiesMap(com.google.common.base.Predicate<Property> predicate)
getLocalPropertiesMap(Predicate)
method instead and recheck where you store the propertiespredicate
- the predicate to filter by@Deprecated public Property getProperty(String name)
getLocalProperty(String)
method instead and recheck where you store the propertiesname
- the name of the property to return@Deprecated public String getPropertyValue(String name)
getLocalPropertyValue(String)
method instead and recheck where you store the propertiesname
- the name of the property whose value to return@Deprecated public <V> V getPropertyValue(NamedValueAccessor<V,String> propertyAccessor)
getLocalPropertyValue(NamedValueAccessor)
method instead and recheck where you store the propertiesV
- the expected transient and persisted type of the property valuepropertyAccessor
- the accessor from which to derive the name, deserialize the value, and cast to the expected type@Deprecated public boolean hasProperty(String name)
hasLocalProperty(String)
method instead and recheck where you store the propertiesname
- the name of the property@Deprecated public boolean hasProperty(NamedValueAccessor<?,String> propertyAccessor)
hasLocalProperty(NamedValueAccessor)
method instead and recheck where you store the propertiespropertyAccessor
- the accessor from which to derive the name, deserialize the value, and cast to the expected typepublic final List<Property> getLocalProperties()
public final List<Property> getLocalProperties(com.google.common.base.Predicate<Property> predicate)
predicate
- the predicate to filter bypublic final Map<String,String> getLocalPropertiesMap()
public final Map<String,String> getLocalPropertiesMap(com.google.common.base.Predicate<Property> predicate)
predicate
- the predicate to filter bypublic final Property getLocalProperty(String name)
name
- the name of the local property to returnpublic final String getLocalPropertyValue(String name)
name
- the name of the local property whose value to returnpublic final <V> V getLocalPropertyValue(NamedValueAccessor<V,String> propertyAccessor)
V
- the expected transient and persisted type of the property valuepropertyAccessor
- the accessor from which to derive the name, deserialize the value, and cast to the expected typepublic boolean hasLocalProperty(String name)
name
- the name of the propertypublic boolean hasLocalProperty(NamedValueAccessor<?,?> propertyAccessor)
propertyAccessor
- the accessor from which to derive the name, deserialize the value, and cast to the expected typepublic Date getValidFrom()
public Date getValidTo()
public int getVersion()
public int getExternalVersion()
public String getResourceString()
Copyright © 2010 - 2018 edorasware ag. All Rights Reserved.