Package io.jmix.core.entity
Class EmbeddableEntityEntry
java.lang.Object
io.jmix.core.entity.BaseEntityEntry
io.jmix.core.entity.EmbeddableEntityEntry
- All Implemented Interfaces:
- EntityEntry,- Serializable,- Cloneable
Used for 
Embeddable entities  by enhancing process- See Also:
- 
Field SummaryFields inherited from class io.jmix.core.entity.BaseEntityEntryDETACHED, entityValuesProviders, extraStateMap, loadedProperties, MANAGED, NEW, PROPERTY_CHANGE_LISTENERS_INITIAL_CAPACITY, propertyChangeListeners, REMOVED, securityState, source, state, WEAK_PROPERTY_CHANGE_LISTENERS_INITIAL_CAPACITY, weakPropertyChangeListeners
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGeneratedId 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.booleanbooleanbooleanbooleanisNew()booleanvoidsetDetached(boolean detached) voidsetEntityId(Object id) voidsetGeneratedId(Object id) GeneratedId needed to identify entity, including hashCode calculation (seeEntityInternals.hashCode(Entity)).voidsetManaged(boolean managed) voidsetNew(boolean _new) voidsetRemoved(boolean removed) Methods inherited from class io.jmix.core.entity.BaseEntityEntryaddExtraState, addPropertyChangeListener, addPropertyChangeListener, copy, firePropertyChanged, getAllExtraState, getAttributeValue, getExtraState, getLoadedProperties, getSecurityState, getSource, hashCode, removeAllListeners, removePropertyChangeListener, setAttributeValue, setLoadedProperties, setSecurityStateMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.core.EntityEntrygetGeneratedId, setAttributeValue
- 
Constructor Details- 
EmbeddableEntityEntry
 
- 
- 
Method Details- 
isNewpublic boolean isNew()- Specified by:
- isNewin interface- EntityEntry
- Overrides:
- isNewin class- BaseEntityEntry
 
- 
isManagedpublic boolean isManaged()- Specified by:
- isManagedin interface- EntityEntry
- Overrides:
- isManagedin class- BaseEntityEntry
 
- 
isDetachedpublic boolean isDetached()- Specified by:
- isDetachedin interface- EntityEntry
- Overrides:
- isDetachedin class- BaseEntityEntry
 
- 
isRemovedpublic boolean isRemoved()- Specified by:
- isRemovedin interface- EntityEntry
- Overrides:
- isRemovedin class- BaseEntityEntry
 
- 
setNewpublic void setNew(boolean _new) - Specified by:
- setNewin interface- EntityEntry
- Overrides:
- setNewin class- BaseEntityEntry
 
- 
setManagedpublic void setManaged(boolean managed) - Specified by:
- setManagedin interface- EntityEntry
- Overrides:
- setManagedin class- BaseEntityEntry
 
- 
setDetachedpublic void setDetached(boolean detached) - Specified by:
- setDetachedin interface- EntityEntry
- Overrides:
- setDetachedin class- BaseEntityEntry
 
- 
setRemovedpublic void setRemoved(boolean removed) - Specified by:
- setRemovedin interface- EntityEntry
- Overrides:
- setRemovedin class- BaseEntityEntry
 
- 
getEntityId
- 
setEntityId
- 
getGeneratedIdOrNullDescription 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 (
- 
setGeneratedIdDescription 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.
- 
isEmbeddablepublic boolean isEmbeddable()
 
-