public class KeyValueEntity extends com.haulmont.chile.core.model.impl.AbstractInstance implements Entity<java.lang.Object>, CubaEnhancingDisabled
KeyValueEntity company = new KeyValueEntity(); company.setValue("email", "info@globex.com"); company.setValue("name", "Globex Corporation"); KeyValueEntity person = new KeyValueEntity(); person.setValue("email", "homer.simpson@mail.com"); person.setValue("firstName", "Homer"); person.setValue("lastName", "Simpson");
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
idName |
protected com.haulmont.chile.core.model.MetaClass |
metaClass |
protected java.util.Map<java.lang.String,java.lang.Object> |
properties |
protected java.util.UUID |
uuid |
__propertyChangeListeners, _persistence_cacheKey, _persistence_fetchGroup, _persistence_href, _persistence_links, _persistence_listener, _persistence_primaryKey, _persistence_relationshipInfo, _persistence_session, _persistence_shouldRefreshFetchGroup, PROPERTY_CHANGE_LISTENERS_INITIAL_CAPACITY
Constructor and Description |
---|
KeyValueEntity() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.Object |
getId() |
java.lang.String |
getIdName() |
com.haulmont.chile.core.model.MetaClass |
getMetaClass() |
<T> T |
getValue(java.lang.String name) |
int |
hashCode() |
void |
setId(java.lang.Object id) |
void |
setIdName(java.lang.String idName)
Sets the name of a property that represents this entity id.
|
void |
setMetaClass(com.haulmont.chile.core.model.MetaClass metaClass)
Sets a meta-class for this entity instance.
|
void |
setValue(java.lang.String name,
java.lang.Object value,
boolean checkEquals) |
java.lang.String |
toString() |
_persistence_checkFetched, _persistence_checkFetchedForSet, _persistence_get, _persistence_getCacheKey, _persistence_getFetchGroup, _persistence_getHref, _persistence_getId, _persistence_getLinks, _persistence_getPropertyChangeListener, _persistence_getRelationships, _persistence_getSession, _persistence_isAttributeFetched, _persistence_new, _persistence_post_clone, _persistence_propertyChange, _persistence_resetFetchGroup, _persistence_set, _persistence_setCacheKey, _persistence_setFetchGroup, _persistence_setHref, _persistence_setId, _persistence_setLinks, _persistence_setPropertyChangeListener, _persistence_setRelationships, _persistence_setSession, _persistence_setShouldRefreshFetchGroup, _persistence_shallow_clone, _persistence_shouldRefreshFetchGroup, addPropertyChangeListener, getInstanceName, getMethodsCache, getValueEx, getValueEx, propertyChanged, removeAllListeners, removePropertyChangeListener, setValue, setValueEx, setValueEx
protected java.util.UUID uuid
protected java.util.Map<java.lang.String,java.lang.Object> properties
protected java.lang.String idName
protected com.haulmont.chile.core.model.MetaClass metaClass
public com.haulmont.chile.core.model.MetaClass getMetaClass()
getMetaClass
in interface com.haulmont.chile.core.model.Instance
public void setMetaClass(com.haulmont.chile.core.model.MetaClass metaClass)
public java.lang.String getIdName()
setIdName(String)
public void setIdName(java.lang.String idName)
public <T> T getValue(java.lang.String name)
getValue
in interface com.haulmont.chile.core.model.Instance
getValue
in class com.haulmont.chile.core.model.impl.AbstractInstance
public void setValue(java.lang.String name, java.lang.Object value, boolean checkEquals)
setValue
in class com.haulmont.chile.core.model.impl.AbstractInstance
public void setId(java.lang.Object id)
public boolean equals(java.lang.Object o)
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