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 Summary
Fields inherited from class io.jmix.core.entity.BaseEntityEntry
DETACHED, entityValuesProviders, extraStateMap, MANAGED, NEW, PROPERTY_CHANGE_LISTENERS_INITIAL_CAPACITY, propertyChangeListeners, REMOVED, securityState, source, state -
Constructor Summary
Constructors -
Method Summary
Modifier 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.BaseEntityEntry
addExtraState, addPropertyChangeListener, copy, firePropertyChanged, getAllExtraState, getAttributeValue, getExtraState, getSecurityState, getSource, hashCode, removeAllListeners, removePropertyChangeListener, setAttributeValue, 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, setAttributeValue
-
Constructor Details
-
EmbeddableEntityEntry
-
-
Method Details
-
isNew
public boolean isNew()- Specified by:
isNewin interfaceEntityEntry- Overrides:
isNewin classBaseEntityEntry
-
isManaged
public boolean isManaged()- Specified by:
isManagedin interfaceEntityEntry- Overrides:
isManagedin classBaseEntityEntry
-
isDetached
public boolean isDetached()- Specified by:
isDetachedin interfaceEntityEntry- Overrides:
isDetachedin classBaseEntityEntry
-
isRemoved
public boolean isRemoved()- Specified by:
isRemovedin interfaceEntityEntry- Overrides:
isRemovedin classBaseEntityEntry
-
setNew
public void setNew(boolean _new) - Specified by:
setNewin interfaceEntityEntry- Overrides:
setNewin classBaseEntityEntry
-
setManaged
public void setManaged(boolean managed) - Specified by:
setManagedin interfaceEntityEntry- Overrides:
setManagedin classBaseEntityEntry
-
setDetached
public void setDetached(boolean detached) - Specified by:
setDetachedin interfaceEntityEntry- Overrides:
setDetachedin classBaseEntityEntry
-
setRemoved
public void setRemoved(boolean removed) - Specified by:
setRemovedin interfaceEntityEntry- Overrides:
setRemovedin classBaseEntityEntry
-
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. -
isEmbeddable
public boolean isEmbeddable()
-