E
- as EntityEA
- as EntityAttribute
for @MappedSuperclass public abstract class HierarchialDomainObjectWithAttributes<E extends HierarchialDomainObjectWithAttributes,EA extends EntityAttribute<E>> extends HierarchialDomainObject implements Attributes<E,String>
HierarchialDomainObject
with EntityAttribute
sATTRIB_HIERARCHY_STARTS_LIKE, ATTRIB_PRODUCT_PARENT, displayName, parentId
ROOT
Constructor and Description |
---|
HierarchialDomainObjectWithAttributes() |
HierarchialDomainObjectWithAttributes(String s) |
Modifier and Type | Method and Description |
---|---|
EA |
getAttribute(String name)
Any attribute that is not common for most of the entities belongs to be an Attribute rather than a field.
|
abstract Map<String,EA> |
getAttributes() |
String |
getAttributeValue(String name)
Accessor to get the value and encapsulate how the value comes from the
Attributes .Attribute |
abstract E |
setAttribute(String name,
String value)
Any attribute that is not common for most of the entities belongs to be an Attribute rather than a field.
|
abstract void |
setAttributes(Map<String,EA> attributes) |
equals, getDisplayName, getHierarchy, getParentId, hashCode, setDisplayName, setHierarchy, setParentId, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getName, setId, setName
public HierarchialDomainObjectWithAttributes()
public HierarchialDomainObjectWithAttributes(String s)
public abstract E setAttribute(String name, String value)
setAttribute
in interface Attributes<E extends HierarchialDomainObjectWithAttributes,String>
name
- as Stringvalue
- as public EA getAttribute(String name)
public String getAttributeValue(String name)
Attributes
Attributes
.Attribute
getAttributeValue
in interface Attributes<E extends HierarchialDomainObjectWithAttributes,String>
name
- as StringCopyright © 2018. All rights reserved.