E - as Entity this Attribute is related to@MappedSuperclass public abstract class EntityAttribute<E> extends DomainObject implements Attribute<E,String>, Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected Long |
id |
protected String |
name |
protected String |
value |
| Constructor and Description |
|---|
EntityAttribute() |
EntityAttribute(EntityAttribute ea) |
EntityAttribute(net.sf.ezmorph.bean.MorphDynaBean b) |
EntityAttribute(String json) |
EntityAttribute(String name,
String value) |
| Modifier and Type | Method and Description |
|---|---|
EntityAttribute |
clone() |
Long |
getId() |
String |
getName() |
String |
getValue() |
void |
setId(Long id) |
void |
setName(String name) |
void |
setValue(String value) |
String |
toString() |
void |
updateValue()
Attributes may have additional transient fields that we may want to flush into the actual
Attribute.setValue(Object). |
public EntityAttribute()
public EntityAttribute(String json)
public EntityAttribute(EntityAttribute ea)
public EntityAttribute(net.sf.ezmorph.bean.MorphDynaBean b)
public Long getId()
public void setId(Long id)
id - the id to setpublic String getName()
public void setName(String name)
public String getValue()
public void setValue(String value)
public EntityAttribute clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic void updateValue()
AttributeAttribute.setValue(Object).
A Calling API can ensure the Attribute object is updated before it is persisted or passed on by committing all transient data into the value.updateValue in interface Attribute<E,String>Copyright © 2018. All rights reserved.