Package io.jmix.core
Class ExtendedEntities
java.lang.Object
io.jmix.core.ExtendedEntities
Encapsulates functionality for working with extended entities.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ExtendedEntities.ExtendedEntitiesStateprotected Metadataprotected org.springframework.beans.factory.ObjectProvider<MetadataGenerationManager> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SessionReturns the extended-entities state built from the bootstrap metadata session.Returns the extended-entities state visible to the current metadata generation.Class<?> getEffectiveClass(MetaClass originalMetaClass) Searches for an extended entity and returns it if found, otherwise returns the original entity.Class<?> getEffectiveClass(Class<?> originalClass) Searches for an extended entity and returns it if found, otherwise returns the original entity.Class<?> getEffectiveClass(String entityName) Searches for an extended entity and returns it if found, otherwise returns the original entity.getEffectiveMetaClass(MetaClass originalMetaClass) Searches for an extended entity and returns it if found, otherwise returns the original entity.getEffectiveMetaClass(Class<?> originalClass) Searches for an extended entity and returns it if found, otherwise returns the original entity.getEffectiveMetaClass(String entityName) Searches for an extended entity and returns it if found, otherwise returns the original entity.@Nullable Class<?> getExtendedClass(MetaClass originalMetaClass) Searches for an extended entity and returns it if found.@Nullable Class<?> getOriginalClass(MetaClass extendedMetaClass) Searches for an original entity for the provided extended entity.@Nullable MetaClassgetOriginalMetaClass(MetaClass extendedMetaClass) Searches for an original entity for the provided extended entity.@Nullable MetaClassgetOriginalMetaClass(String extendedEntityName) Searches for an original entity for the provided extended entity.getOriginalOrThisMetaClass(MetaClass metaClass) protected ExtendedEntities.ExtendedEntitiesStategetState()voidregisterReplacedMetaClass(MetaClass metaClass) INTERNAL.protected voidreplaceExtendedMetaClasses(Session session)
-
Field Details
-
metadata
-
replacedMetaClasses
-
currentState
-
metadataGenerationManagerProvider
@Autowired protected org.springframework.beans.factory.ObjectProvider<MetadataGenerationManager> metadataGenerationManagerProvider
-
-
Constructor Details
-
ExtendedEntities
-
-
Method Details
-
getBootstrapSession
-
replaceExtendedMetaClasses
-
getEffectiveClass
Searches for an extended entity and returns it if found, otherwise returns the original entity.- Parameters:
originalMetaClass- original entity- Returns:
- extended or original entity
-
getEffectiveClass
Searches for an extended entity and returns it if found, otherwise returns the original entity.- Parameters:
originalClass- original entity- Returns:
- extended or original entity
-
getEffectiveClass
Searches for an extended entity and returns it if found, otherwise returns the original entity.- Parameters:
entityName- original entity- Returns:
- extended or original entity
-
getEffectiveMetaClass
Searches for an extended entity and returns it if found, otherwise returns the original entity.- Parameters:
originalMetaClass- original entity- Returns:
- extended or original entity
-
getEffectiveMetaClass
Searches for an extended entity and returns it if found, otherwise returns the original entity.- Parameters:
originalClass- original entity- Returns:
- extended or original entity
-
getEffectiveMetaClass
Searches for an extended entity and returns it if found, otherwise returns the original entity.- Parameters:
entityName- original entity- Returns:
- extended or original entity
-
getExtendedClass
Searches for an extended entity and returns it if found.- Parameters:
originalMetaClass- original entity- Returns:
- extended entity or null if the provided entity has no extension
-
getOriginalClass
Searches for an original entity for the provided extended entity.- Parameters:
extendedMetaClass- extended entity- Returns:
- original entity or null if the provided entity is not an extension
-
getOriginalMetaClass
Searches for an original entity for the provided extended entity.- Parameters:
extendedMetaClass- extended entity- Returns:
- original entity or null if the provided entity is not an extension
-
getOriginalMetaClass
Searches for an original entity for the provided extended entity.- Parameters:
extendedEntityName- extended entity- Returns:
- original entity or null if the provided entity is not an extension
-
getOriginalOrThisMetaClass
- Returns:
- original meta class or received meta class if it's not extended
-
registerReplacedMetaClass
INTERNAL. Import replaced meta class from metadata. -
getCurrentStateSnapshot
Returns the extended-entities state visible to the current metadata generation.Intended for infrastructure that needs a stable replacement map for the whole request or data operation.
-
getBootstrapState
Returns the extended-entities state built from the bootstrap metadata session.Intended for initialization of the first published metadata generation.
-
getState
-