@MappedSuperclass public abstract class BaseGenericIdEntity<T> extends AbstractInstance implements Entity<T>
StandardEntity
.Instance.BeanPropertyPath, Instance.PropertyChangeEvent, Instance.PropertyChangeListener
Modifier and Type | Field and Description |
---|---|
protected SecurityState |
__securityState |
protected byte |
__state |
protected java.util.Map<java.lang.String,CategoryAttributeValue> |
dynamicAttributes |
__propertyChangeListeners, PROPERTY_CHANGE_LISTENERS_INITIAL_CAPACITY
Constructor and Description |
---|
BaseGenericIdEntity() |
Modifier and Type | Method and Description |
---|---|
protected void |
copySystemState(BaseGenericIdEntity src)
Copies the state which is not related to attributes registered in metadata.
|
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() |
addPropertyChangeListener, getInstanceName, getMethodsCache, getRelatedPropertiesCache, getRelatedReadOnlyProperties, getValueEx, getValueEx, propertyChanged, removeAllListeners, removePropertyChangeListener, setValue, setValueEx, setValueEx
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, getInstanceName, getValueEx, getValueEx, removeAllListeners, removePropertyChangeListener, setValue, setValueEx, setValueEx
protected byte __state
protected SecurityState __securityState
protected java.util.Map<java.lang.String,CategoryAttributeValue> dynamicAttributes
public abstract void setId(T id)
protected void copySystemState(BaseGenericIdEntity src)
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