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
-
Method Summary
Modifier and TypeMethodDescriptionGeneratedId will be determined at enhancing time as follows: primary key (Id
,EmbeddedId
orJmixId
attribute) will be used if it hasJmixGeneratedValue
annotation, any other UUIDJmixGeneratedValue
property will be chosen if primary key doesn't haveJmixGeneratedValue
annotation, primary key or some synthetic id will be used if there is noJmixGeneratedValue
satisfiyng conditions below (seeEntityEntry
implementations for details).
This algorithm used forBaseEntityEntry
andNullableIdEntityEntry
.boolean
boolean
boolean
boolean
isNew()
boolean
void
setDetached
(boolean detached) void
setEntityId
(Object id) void
setGeneratedId
(Object id) GeneratedId needed to identify entity, including hashCode calculation (seeEntityInternals.hashCode(Entity)
).void
setManaged
(boolean managed) void
setNew
(boolean _new) void
setRemoved
(boolean removed) Methods inherited from class io.jmix.core.entity.BaseEntityEntry
addExtraState, addPropertyChangeListener, copy, firePropertyChanged, getAllExtraState, getAttributeValue, getExtraState, getSecurityState, getSource, hashCode, removeAllListeners, removePropertyChangeListener, setAttributeValue, setSecurityState
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.core.EntityEntry
getGeneratedId, setAttributeValue
-
Constructor Details
-
EmbeddableEntityEntry
-
-
Method Details
-
isNew
public boolean isNew()- Specified by:
isNew
in interfaceEntityEntry
- Overrides:
isNew
in classBaseEntityEntry
-
isManaged
public boolean isManaged()- Specified by:
isManaged
in interfaceEntityEntry
- Overrides:
isManaged
in classBaseEntityEntry
-
isDetached
public boolean isDetached()- Specified by:
isDetached
in interfaceEntityEntry
- Overrides:
isDetached
in classBaseEntityEntry
-
isRemoved
public boolean isRemoved()- Specified by:
isRemoved
in interfaceEntityEntry
- Overrides:
isRemoved
in classBaseEntityEntry
-
setNew
public void setNew(boolean _new) - Specified by:
setNew
in interfaceEntityEntry
- Overrides:
setNew
in classBaseEntityEntry
-
setManaged
public void setManaged(boolean managed) - Specified by:
setManaged
in interfaceEntityEntry
- Overrides:
setManaged
in classBaseEntityEntry
-
setDetached
public void setDetached(boolean detached) - Specified by:
setDetached
in interfaceEntityEntry
- Overrides:
setDetached
in classBaseEntityEntry
-
setRemoved
public void setRemoved(boolean removed) - Specified by:
setRemoved
in interfaceEntityEntry
- Overrides:
setRemoved
in classBaseEntityEntry
-
getEntityId
-
setEntityId
-
getGeneratedIdOrNull
Description copied from interface:EntityEntry
GeneratedId will be determined at enhancing time as follows:- primary key (
Id
,EmbeddedId
orJmixId
attribute) will be used if it hasJmixGeneratedValue
annotation, - any other UUID
JmixGeneratedValue
property will be chosen if primary key doesn't haveJmixGeneratedValue
annotation, - primary key or some synthetic id will be used if there is no
JmixGeneratedValue
satisfiyng conditions below (seeEntityEntry
implementations for details).
This algorithm used forBaseEntityEntry
andNullableIdEntityEntry
. 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:EntityEntry
GeneratedId 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()
-