Package io.jmix.core.entity
Class BaseEntityEntry
java.lang.Object
io.jmix.core.entity.BaseEntityEntry
- All Implemented Interfaces:
EntityEntry
,Serializable
,Cloneable
- Direct Known Subclasses:
EmbeddableEntityEntry
,KeyValueEntity.KeyValueEntityEntry
,NoIdEntityEntry
,NullableIdEntityEntry
Used by enhancing process. Direct subclass of
BaseEntityEntry
will be created for entity, that
has primary key (an attribute annotated with Id
, EmbeddedId
or JmixId
) and this primary key
annotated with JmixGeneratedValue
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
protected Map<Class<?>,
EntityValuesProvider> protected Map<Class<?>,
EntityEntryExtraState> static final int
static final int
protected static final int
protected Collection<WeakReference<EntityPropertyChangeListener>>
static final int
protected SecurityState
protected Entity
protected byte
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addExtraState
(EntityEntryExtraState extraState) void
Add listener to track attributes changes.void
copy
(EntityEntry entry) Copies the state of entity entry.void
firePropertyChanged
(String propertyName, Object prev, Object curr) <T> T
getAttributeValue
(String name) getExtraState
(Class<?> extraStateType) int
hashCode()
boolean
boolean
boolean
isNew()
boolean
void
Remove allEntityPropertyChangeListener
s.void
Remove listener.void
setAttributeValue
(String name, Object value, boolean checkEquals) void
setDetached
(boolean detached) void
setManaged
(boolean managed) void
setNew
(boolean _new) void
setRemoved
(boolean removed) void
setSecurityState
(SecurityState securityState) 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
getEntityId, getGeneratedId, getGeneratedIdOrNull, isEmbeddable, setAttributeValue, setEntityId, setGeneratedId
-
Field Details
-
state
protected byte state -
securityState
-
propertyChangeListeners
-
source
-
extraStateMap
-
entityValuesProviders
-
NEW
public static final int NEW- See Also:
-
DETACHED
public static final int DETACHED- See Also:
-
MANAGED
public static final int MANAGED- See Also:
-
REMOVED
public static final int REMOVED- See Also:
-
PROPERTY_CHANGE_LISTENERS_INITIAL_CAPACITY
protected static final int PROPERTY_CHANGE_LISTENERS_INITIAL_CAPACITY- See Also:
-
-
Constructor Details
-
BaseEntityEntry
-
-
Method Details
-
getSource
- Specified by:
getSource
in interfaceEntityEntry
-
hashCode
public int hashCode() -
getAttributeValue
- Specified by:
getAttributeValue
in interfaceEntityEntry
-
setAttributeValue
- Specified by:
setAttributeValue
in interfaceEntityEntry
-
isNew
public boolean isNew()- Specified by:
isNew
in interfaceEntityEntry
-
isManaged
public boolean isManaged()- Specified by:
isManaged
in interfaceEntityEntry
-
isDetached
public boolean isDetached()- Specified by:
isDetached
in interfaceEntityEntry
-
isRemoved
public boolean isRemoved()- Specified by:
isRemoved
in interfaceEntityEntry
-
setNew
public void setNew(boolean _new) - Specified by:
setNew
in interfaceEntityEntry
-
setManaged
public void setManaged(boolean managed) - Specified by:
setManaged
in interfaceEntityEntry
-
setDetached
public void setDetached(boolean detached) - Specified by:
setDetached
in interfaceEntityEntry
-
setRemoved
public void setRemoved(boolean removed) - Specified by:
setRemoved
in interfaceEntityEntry
-
getSecurityState
- Specified by:
getSecurityState
in interfaceEntityEntry
-
setSecurityState
- Specified by:
setSecurityState
in interfaceEntityEntry
-
addPropertyChangeListener
Description copied from interface:EntityEntry
Add listener to track attributes changes.- Specified by:
addPropertyChangeListener
in interfaceEntityEntry
- Parameters:
listener
- listener
-
removePropertyChangeListener
Description copied from interface:EntityEntry
Remove listener.- Specified by:
removePropertyChangeListener
in interfaceEntityEntry
- Parameters:
listener
- listener to remove
-
removeAllListeners
public void removeAllListeners()Description copied from interface:EntityEntry
Remove allEntityPropertyChangeListener
s.- Specified by:
removeAllListeners
in interfaceEntityEntry
-
firePropertyChanged
-
copy
Description copied from interface:EntityEntry
Copies the state of entity entry.- Specified by:
copy
in interfaceEntityEntry
-
addExtraState
- Specified by:
addExtraState
in interfaceEntityEntry
-
getExtraState
- Specified by:
getExtraState
in interfaceEntityEntry
-
getAllExtraState
- Specified by:
getAllExtraState
in interfaceEntityEntry
-