@MappedSuperclass public abstract class BaseGenericIdEntity<T> extends AbstractInstance implements Entity<T>
StandardEntity
.Instance.PropertyChangeEvent, Instance.PropertyChangeListener
Constructor and Description |
---|
BaseGenericIdEntity() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
java.util.Map<java.lang.String,CategoryAttributeValue> |
getDynamicAttributes() |
MetaClass |
getMetaClass() |
<V> V |
getValue(java.lang.String property)
Get an attribute value.
|
int |
hashCode() |
void |
setDynamicAttributes(java.util.Map<java.lang.String,CategoryAttributeValue> dynamicAttributes) |
abstract void |
setId(T id) |
void |
setValue(java.lang.String property,
java.lang.Object newValue,
boolean checkEquals)
Set value to property in instance
For internal use only.
|
java.lang.String |
toString() |
addListener, addPropertyChangeListener, getInstanceName, getValueEx, removeAllListeners, removeListener, removePropertyChangeListener, setValue, setValueEx
addListener, addPropertyChangeListener, getInstanceName, getValueEx, removeAllListeners, removeListener, removePropertyChangeListener, setValue, setValueEx
public abstract void setId(T id)
public MetaClass getMetaClass()
getMetaClass
in interface Instance
public void setValue(java.lang.String property, java.lang.Object newValue, boolean checkEquals)
AbstractInstance
AbstractInstance.setValue(String, Object)
setValue
in class AbstractInstance
property
- property namenewValue
- valuecheckEquals
- check equals for previous and new value.
If flag is true and objects equals, then setter will not be invokedpublic <V> V getValue(java.lang.String property)
Instance
getValue
in interface Instance
getValue
in class AbstractInstance
property
- attribute name according to JavaBeans notationpublic void setDynamicAttributes(java.util.Map<java.lang.String,CategoryAttributeValue> dynamicAttributes)
@Nullable public java.util.Map<java.lang.String,CategoryAttributeValue> getDynamicAttributes()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object