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 EntityAttributesATTRIB_HIERARCHY_STARTS_LIKE, ATTRIB_PRODUCT_PARENT, displayName, parentIdROOT| 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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetId, getName, setId, setNamepublic 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)
AttributesAttributes.AttributegetAttributeValue in interface Attributes<E extends HierarchialDomainObjectWithAttributes,String>name - as StringCopyright © 2018. All rights reserved.