Package io.jmix.core
Class ExtendedEntities
java.lang.Object
io.jmix.core.ExtendedEntities
Encapsulates functionality for working with extended entities.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetEffectiveClass
(MetaClass originalMetaClass) Searches for an extended entity and returns it if found, otherwise returns the original entity.getEffectiveClass
(Class originalClass) Searches for an extended entity and returns it if found, otherwise returns the original entity.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.getExtendedClass
(MetaClass originalMetaClass) Searches for an extended entity and returns it if found.getOriginalClass
(MetaClass extendedMetaClass) Searches for an original entity for the provided extended entity.getOriginalMetaClass
(MetaClass extendedMetaClass) Searches for an original entity for the provided extended entity.getOriginalMetaClass
(String extendedEntityName) Searches for an original entity for the provided extended entity.getOriginalOrThisMetaClass
(MetaClass metaClass) void
registerReplacedMetaClass
(MetaClass metaClass) INTERNAL.protected void
-
Field Details
-
metadata
-
replacedMetaClasses
-
-
Constructor Details
-
ExtendedEntities
-
-
Method Details
-
replaceExtendedMetaClasses
protected void 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.
-