Package io.jmix.core
Interface EntityEntry
- All Superinterfaces:
- Serializable
- All Known Implementing Classes:
- BaseEntityEntry,- EmbeddableEntityEntry,- KeyValueEntity.KeyValueEntityEntry,- NoIdEntityEntry,- NullableIdEntityEntry
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddExtraState(EntityEntryExtraState extraState) voidAdds a listener to track attributes changes.voidaddPropertyChangeListener(EntityPropertyChangeListener listener, boolean weakReference) Adds a listener to track attributes changes.voidcopy(EntityEntry entry) Copies the state of entity entry.<T> TgetAttributeValue(String name) getExtraState(Class<?> extraStateType) default ObjectGeneratedId 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.Optional set of names of properties loaded from data store.booleandefault booleanbooleanbooleanisNew()booleanvoidRemove allEntityPropertyChangeListeners.voidRemove listener.default voidsetAttributeValue(String name, Object value) voidsetAttributeValue(String name, Object value, boolean checkEquals) voidsetDetached(boolean detached) voidsetEntityId(Object id) voidsetGeneratedId(Object id) GeneratedId needed to identify entity, including hashCode calculation (seeEntityInternals.hashCode(Entity)).voidsetLoadedProperties(Set<String> loadedProperties) voidsetManaged(boolean managed) voidsetNew(boolean _new) voidsetRemoved(boolean removed) voidsetSecurityState(SecurityState securityState) 
- 
Method Details- 
getSourceEntity getSource()
- 
getEntityId
- 
setEntityId
- 
getGeneratedIdOrNullGeneratedId 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 (
- 
getGeneratedId
- 
setGeneratedIdGeneratedId needed to identify entity, including hashCode calculation (seeEntityInternals.hashCode(Entity)). Thus it has to be copied at the very beginning of entity copy creation.- Parameters:
- id-
 
- 
getAttributeValue
- 
setAttributeValue
- 
setAttributeValue
- 
isEmbeddabledefault boolean isEmbeddable()
- 
isNewboolean isNew()
- 
isManagedboolean isManaged()
- 
isDetachedboolean isDetached()
- 
isRemovedboolean isRemoved()
- 
setNewvoid setNew(boolean _new) 
- 
setManagedvoid setManaged(boolean managed) 
- 
setDetachedvoid setDetached(boolean detached) 
- 
setRemovedvoid setRemoved(boolean removed) 
- 
getLoadedPropertiesOptional set of names of properties loaded from data store.
- 
setLoadedProperties
- 
getSecurityStateSecurityState getSecurityState()
- 
setSecurityState
- 
addPropertyChangeListenerAdds a listener to track attributes changes. The listener will be added using a weak reference.
- 
addPropertyChangeListenerAdds a listener to track attributes changes.
- 
removePropertyChangeListenerRemove listener.- Parameters:
- listener- listener to remove
 
- 
removeAllListenersvoid removeAllListeners()Remove allEntityPropertyChangeListeners.
- 
copyCopies the state of entity entry.
- 
addExtraState
- 
getExtraState
- 
getAllExtraStateCollection<EntityEntryExtraState> getAllExtraState()
 
-