Package io.jmix.core.impl.metadata
Class MetadataSessionCloneSupport.SessionCloneResult
java.lang.Object
io.jmix.core.impl.metadata.MetadataSessionCloneSupport.SessionCloneResult
- Enclosing class:
MetadataSessionCloneSupport
Result of cloning a metadata session together with the mappings needed to continue
updating the cloned graph.
Intended for metadata publication code that needs both the detached SessionImpl
snapshot and the source-to-clone object remapping produced during cloning.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ExtendedEntities.ExtendedEntitiesStateprotected final Map<MetaProperty, MetaProperty> protected final SessionImpl -
Constructor Summary
ConstructorsConstructorDescriptionSessionCloneResult(SessionImpl session, Map<MetaClass, MetaClass> metaClassMap, Map<MetaProperty, MetaProperty> metaPropertyMap, ExtendedEntities.ExtendedEntitiesState extendedEntitiesState) Creates a clone result that exposes the cloned session and remapped metadata objects. -
Method Summary
Modifier and TypeMethodDescriptionReturns extended-entities state remapped to the cloned session.Returns the mapping from source meta classes to their cloned counterparts.Returns the mapping from source meta properties to their cloned counterparts.Returns the cloned session snapshot.
-
Field Details
-
session
-
metaClassMap
-
metaPropertyMap
-
extendedEntitiesState
-
-
Constructor Details
-
SessionCloneResult
public SessionCloneResult(SessionImpl session, Map<MetaClass, MetaClass> metaClassMap, Map<MetaProperty, MetaProperty> metaPropertyMap, ExtendedEntities.ExtendedEntitiesState extendedEntitiesState) Creates a clone result that exposes the cloned session and remapped metadata objects.- Parameters:
session- cloned session snapshotmetaClassMap- source-to-clone meta-class mappingmetaPropertyMap- source-to-clone meta-property mappingextendedEntitiesState- remapped extended-entities state for the cloned session
-
-
Method Details
-
getSession
Returns the cloned session snapshot. -
getMetaClassMap
Returns the mapping from source meta classes to their cloned counterparts. -
getMetaPropertyMap
Returns the mapping from source meta properties to their cloned counterparts. -
getExtendedEntitiesState
Returns extended-entities state remapped to the cloned session.
-