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
FieldsModifier and TypeFieldDescriptionstatic final intprotected Map<Class<?>,EntityValuesProvider> protected Map<Class<?>,EntityEntryExtraState> static final intstatic final intprotected static final intprotected Collection<WeakReference<EntityPropertyChangeListener>>static final intprotected SecurityStateprotected Entityprotected byte -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExtraState(EntityEntryExtraState extraState) voidAdd listener to track attributes changes.voidcopy(EntityEntry entry) Copies the state of entity entry.voidfirePropertyChanged(String propertyName, Object prev, Object curr) <T> TgetAttributeValue(String name) getExtraState(Class<?> extraStateType) inthashCode()booleanbooleanbooleanisNew()booleanvoidRemove allEntityPropertyChangeListeners.voidRemove listener.voidsetAttributeValue(String name, Object value, boolean checkEquals) voidsetDetached(boolean detached) voidsetManaged(boolean managed) voidsetNew(boolean _new) voidsetRemoved(boolean removed) voidsetSecurityState(SecurityState securityState) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:
getSourcein interfaceEntityEntry
-
hashCode
public int hashCode() -
getAttributeValue
- Specified by:
getAttributeValuein interfaceEntityEntry
-
setAttributeValue
- Specified by:
setAttributeValuein interfaceEntityEntry
-
isNew
public boolean isNew()- Specified by:
isNewin interfaceEntityEntry
-
isManaged
public boolean isManaged()- Specified by:
isManagedin interfaceEntityEntry
-
isDetached
public boolean isDetached()- Specified by:
isDetachedin interfaceEntityEntry
-
isRemoved
public boolean isRemoved()- Specified by:
isRemovedin interfaceEntityEntry
-
setNew
public void setNew(boolean _new) - Specified by:
setNewin interfaceEntityEntry
-
setManaged
public void setManaged(boolean managed) - Specified by:
setManagedin interfaceEntityEntry
-
setDetached
public void setDetached(boolean detached) - Specified by:
setDetachedin interfaceEntityEntry
-
setRemoved
public void setRemoved(boolean removed) - Specified by:
setRemovedin interfaceEntityEntry
-
getSecurityState
- Specified by:
getSecurityStatein interfaceEntityEntry
-
setSecurityState
- Specified by:
setSecurityStatein interfaceEntityEntry
-
addPropertyChangeListener
Description copied from interface:EntityEntryAdd listener to track attributes changes.- Specified by:
addPropertyChangeListenerin interfaceEntityEntry- Parameters:
listener- listener
-
removePropertyChangeListener
Description copied from interface:EntityEntryRemove listener.- Specified by:
removePropertyChangeListenerin interfaceEntityEntry- Parameters:
listener- listener to remove
-
removeAllListeners
public void removeAllListeners()Description copied from interface:EntityEntryRemove allEntityPropertyChangeListeners.- Specified by:
removeAllListenersin interfaceEntityEntry
-
firePropertyChanged
-
copy
Description copied from interface:EntityEntryCopies the state of entity entry.- Specified by:
copyin interfaceEntityEntry
-
addExtraState
- Specified by:
addExtraStatein interfaceEntityEntry
-
getExtraState
- Specified by:
getExtraStatein interfaceEntityEntry
-
getAllExtraState
- Specified by:
getAllExtraStatein interfaceEntityEntry
-