Package io.jmix.core.entity
Class KeyValueEntity
java.lang.Object
io.jmix.core.entity.KeyValueEntity
- All Implemented Interfaces:
Entity
,HasInstanceMetaClass
,Serializable
Entity that contains a variable set of attributes. For example:
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");
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected EntityEntry
protected String
protected MetaClass
protected UUID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
getId()
<T> T
int
hashCode()
void
void
Sets the name of a property that represents this entity id.void
setInstanceMetaClass
(MetaClass metaClass) Sets a meta-class for this entity instance.void
void
toString()
-
Field Details
-
uuid
-
properties
-
idName
-
metaClass
-
entityEntry
-
-
Constructor Details
-
KeyValueEntity
public KeyValueEntity()
-
-
Method Details
-
getInstanceMetaClass
- Specified by:
getInstanceMetaClass
in interfaceHasInstanceMetaClass
-
setInstanceMetaClass
Sets a meta-class for this entity instance.- Specified by:
setInstanceMetaClass
in interfaceHasInstanceMetaClass
-
getIdName
- Returns:
- name of a property that represents this entity id, if set by
setIdName(String)
-
setIdName
Sets the name of a property that represents this entity id. -
getValue
-
setValue
-
setValue
-
getId
-
setId
-
equals
-
hashCode
public int hashCode() -
toString
-
__getEntityEntry
- Specified by:
__getEntityEntry
in interfaceEntity
-
__copyEntityEntry
public void __copyEntityEntry()- Specified by:
__copyEntityEntry
in interfaceEntity
-