public class KeyValueContainerImpl extends InstanceContainerImpl<io.jmix.core.entity.KeyValueEntity> implements KeyValueContainer
InstanceContainer.ItemChangeEvent<T>, InstanceContainer.ItemPropertyChangeEvent<T>entityMetaClass, events, fetchPlan, item, listener, listenersEnabled, loader, metadata| Constructor and Description |
|---|
KeyValueContainerImpl() |
KeyValueContainerImpl(io.jmix.core.metamodel.model.MetaClass entityMetaClass) |
| Modifier and Type | Method and Description |
|---|---|
KeyValueContainer |
addProperty(java.lang.String name)
Adds a string property to the meta-class of this loader.
|
KeyValueContainer |
addProperty(java.lang.String name,
java.lang.Class aClass)
Adds a property of the given Java class to the meta-class of this loader.
|
KeyValueContainer |
addProperty(java.lang.String name,
io.jmix.core.metamodel.datatype.Datatype datatype)
Adds a property of the given datatype to the meta-class of this loader.
|
io.jmix.core.impl.keyvalue.KeyValueMetaClass |
getEntityMetaClass()
Returns the meta-class of entities that can be stored in the container.
|
java.lang.String |
getIdName()
Returns the name of a property that represents the entity id.
|
KeyValueContainer |
setIdName(java.lang.String name)
Sets the name of a property that represents the entity id.
|
void |
setItem(io.jmix.core.entity.KeyValueEntity item)
Sets the given entity instance to the container.
|
protected void |
updateEntityMetadata(io.jmix.core.entity.KeyValueEntity entity) |
addItemChangeListener, addItemPropertyChangeListener, attachListener, detachListener, fireItemChanged, getFetchPlan, getItem, getItemOrNull, getLoader, itemPropertyChanged, mute, setFetchPlan, setLoader, toString, unmuteclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddItemChangeListener, addItemPropertyChangeListener, getFetchPlan, getItem, getItemOrNull, getView, mute, setFetchPlan, setView, unmutepublic KeyValueContainerImpl()
public KeyValueContainerImpl(io.jmix.core.metamodel.model.MetaClass entityMetaClass)
public io.jmix.core.impl.keyvalue.KeyValueMetaClass getEntityMetaClass()
InstanceContainergetEntityMetaClass in interface InstanceContainer<io.jmix.core.entity.KeyValueEntity>getEntityMetaClass in class InstanceContainerImpl<io.jmix.core.entity.KeyValueEntity>public KeyValueContainer setIdName(java.lang.String name)
KeyValueContainersetIdName in interface KeyValueContainerpublic java.lang.String getIdName()
KeyValueContainergetIdName in interface KeyValueContainerpublic KeyValueContainer addProperty(java.lang.String name)
KeyValueContaineraddProperty in interface KeyValueContainerpublic KeyValueContainer addProperty(java.lang.String name, java.lang.Class aClass)
KeyValueContaineraddProperty in interface KeyValueContainerpublic KeyValueContainer addProperty(java.lang.String name, io.jmix.core.metamodel.datatype.Datatype datatype)
KeyValueContaineraddProperty in interface KeyValueContainerpublic void setItem(@Nullable
io.jmix.core.entity.KeyValueEntity item)
InstanceContainersetItem in interface InstanceContainer<io.jmix.core.entity.KeyValueEntity>setItem in class InstanceContainerImpl<io.jmix.core.entity.KeyValueEntity>protected void updateEntityMetadata(io.jmix.core.entity.KeyValueEntity entity)