Package io.jmix.core.entity
Class KeyValueEntity.KeyValueEntityEntry
java.lang.Object
io.jmix.core.entity.BaseEntityEntry
io.jmix.core.entity.KeyValueEntity.KeyValueEntityEntry
- All Implemented Interfaces:
EntityEntry,Serializable,Cloneable
- Enclosing class:
- KeyValueEntity
- See Also:
-
Field Summary
Fields inherited from class io.jmix.core.entity.BaseEntityEntry
DETACHED, entityValuesProviders, extraStateMap, loadedProperties, MANAGED, NEW, PROPERTY_CHANGE_LISTENERS_INITIAL_CAPACITY, propertyChangeListeners, REMOVED, securityState, source, state, WEAK_PROPERTY_CHANGE_LISTENERS_INITIAL_CAPACITY, weakPropertyChangeListeners -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TgetAttributeValue(String name) GeneratedId will be determined at enhancing time as follows: primary key (Id,EmbeddedIdorJmixIdattribute) will be used if it hasJmixGeneratedValueannotation, any other UUIDJmixGeneratedValueproperty will be chosen if primary key doesn't haveJmixGeneratedValueannotation, primary key or some synthetic id will be used if there is noJmixGeneratedValuesatisfiyng conditions below (seeEntityEntryimplementations for details).
This algorithm used forBaseEntityEntryandNullableIdEntityEntry.voidsetAttributeValue(String name, Object value, boolean checkEquals) voidsetEntityId(Object id) voidsetGeneratedId(Object id) GeneratedId needed to identify entity, including hashCode calculation (seeEntityInternals.hashCode(Entity)).Methods inherited from class io.jmix.core.entity.BaseEntityEntry
addExtraState, addPropertyChangeListener, addPropertyChangeListener, copy, firePropertyChanged, getAllExtraState, getExtraState, getLoadedProperties, getSecurityState, getSource, hashCode, isDetached, isManaged, isNew, isRemoved, removeAllListeners, removePropertyChangeListener, setDetached, setLoadedProperties, setManaged, setNew, setRemoved, setSecurityStateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.core.EntityEntry
getGeneratedId, isEmbeddable, setAttributeValue
-
Constructor Details
-
KeyValueEntityEntry
-
-
Method Details
-
getEntityId
-
setEntityId
-
getGeneratedIdOrNull
Description copied from interface:EntityEntryGeneratedId will be determined at enhancing time as follows:- primary key (
Id,EmbeddedIdorJmixIdattribute) will be used if it hasJmixGeneratedValueannotation, - any other UUID
JmixGeneratedValueproperty will be chosen if primary key doesn't haveJmixGeneratedValueannotation, - primary key or some synthetic id will be used if there is no
JmixGeneratedValuesatisfiyng conditions below (seeEntityEntryimplementations for details).
This algorithm used forBaseEntityEntryandNullableIdEntityEntry. See implementing classes description to clarify whether each of them will be used (directly or through subclass creation during enhancing process) - primary key (
-
setGeneratedId
Description copied from interface:EntityEntryGeneratedId needed to identify entity, including hashCode calculation (seeEntityInternals.hashCode(Entity)). Thus it has to be copied at the very beginning of entity copy creation. -
getAttributeValue
- Specified by:
getAttributeValuein interfaceEntityEntry- Overrides:
getAttributeValuein classBaseEntityEntry
-
setAttributeValue
- Specified by:
setAttributeValuein interfaceEntityEntry- Overrides:
setAttributeValuein classBaseEntityEntry
-