Package io.jmix.core.entity
Class NullableIdEntityEntry
java.lang.Object
io.jmix.core.entity.BaseEntityEntry
io.jmix.core.entity.NullableIdEntityEntry
- All Implemented Interfaces:
- EntityEntry,- Serializable,- Cloneable
Used by enhancing process. Subclass of 
NullableIdEntityEntry will be created for entity that:
 - has primary key (an attribute annotated with Id,EmbeddedIdorJmixId)
- Primary key is not annotated with JmixGeneratedValue
- There is no UUIDattribute annotated withJmixGeneratedValue
- 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 TypeMethodDescriptionvoidcopy(EntityEntry entry) Copies the state of entity entry.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.inthashCode()voidsetGeneratedId(Object id) GeneratedId needed to identify entity, including hashCode calculation (seeEntityInternals.hashCode(Entity)).Methods inherited from class io.jmix.core.entity.BaseEntityEntryaddExtraState, addPropertyChangeListener, addPropertyChangeListener, firePropertyChanged, getAllExtraState, getAttributeValue, getExtraState, getLoadedProperties, getSecurityState, getSource, isDetached, isManaged, isNew, isRemoved, removeAllListeners, removePropertyChangeListener, setAttributeValue, setDetached, setLoadedProperties, setManaged, setNew, setRemoved, setSecurityStateMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.core.EntityEntrygetEntityId, getGeneratedId, isEmbeddable, setAttributeValue, setEntityId
- 
Constructor Details- 
NullableIdEntityEntry
 
- 
- 
Method Details- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- BaseEntityEntry
 
- 
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.
- 
copyDescription copied from interface:EntityEntryCopies the state of entity entry.- Specified by:
- copyin interface- EntityEntry
- Overrides:
- copyin class- BaseEntityEntry
 
 
-