Package io.jmix.core.impl
Class MetadataImpl
java.lang.Object
io.jmix.core.impl.MetadataImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<EntityInitializer> protected org.springframework.beans.factory.ObjectProvider<MetadataGenerationManager> protected Resourcesprotected Session -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionInstantiate an entity, taking into account extended entities.Instantiate an entity with provided id, taking into account extended entities.<T> TInstantiate an entity, taking into account extended entities.<T> TInstantiate an entity with provided id, taking into account extended entities.Instantiate an entity, taking into account extended entities.Instantiate an entity with provided id, taking into account extended entities.@Nullable MetaClassSearch MetaClass by the corresponding Java class in the whole metamodel.@Nullable MetaClassSearch MetaClass by its name in the whole metamodel.Search MetaClass by the corresponding Java class in the whole metamodel.Returns MetaClass of the given entity.Search MetaClass by its name in the whole metamodel.Returns the raw metadata session without applying generation pinning.Get Metadata session - interface providing access to MetaClasses and MetaProperties.protected <T> TinternalCreate(Class<T> entityClass) protected <T> TinternalCreate(Class<T> entityClass, @Nullable Object id) voidsetRawSession(Session session) Replaces the raw metadata session exposed as the latest published snapshot.
-
Field Details
-
session
-
resources
-
entityInitializers
-
metadataGenerationManagerProvider
@Autowired protected org.springframework.beans.factory.ObjectProvider<MetadataGenerationManager> metadataGenerationManagerProvider
-
-
Constructor Details
-
MetadataImpl
-
-
Method Details
-
getSession
Description copied from interface:MetadataGet Metadata session - interface providing access to MetaClasses and MetaProperties.- Specified by:
getSessionin interfaceMetadata- Returns:
- current metadata session
-
getRawSession
Returns the raw metadata session without applying generation pinning.Intended for bootstrap and publication code that manages generation snapshots itself.
-
setRawSession
Replaces the raw metadata session exposed as the latest published snapshot.- Parameters:
session- metadata session to publish as the raw current snapshot
-
getClass
Description copied from interface:MetadataReturns MetaClass of the given entity. -
internalCreate
-
internalCreate
-
create
Description copied from interface:MetadataInstantiate an entity, taking into account extended entities. -
create
Description copied from interface:MetadataInstantiate an entity with provided id, taking into account extended entities. -
create
Description copied from interface:MetadataInstantiate an entity, taking into account extended entities. -
create
Description copied from interface:MetadataInstantiate an entity with provided id, taking into account extended entities. -
create
Description copied from interface:MetadataInstantiate an entity, taking into account extended entities. -
create
Description copied from interface:MetadataInstantiate an entity with provided id, taking into account extended entities. -
findClass
Description copied from interface:SessionSearch MetaClass by its name in the whole metamodel. -
getClass
Description copied from interface:SessionSearch MetaClass by its name in the whole metamodel. -
findClass
Description copied from interface:SessionSearch MetaClass by the corresponding Java class in the whole metamodel. -
getClass
Description copied from interface:SessionSearch MetaClass by the corresponding Java class in the whole metamodel. -
getClasses
- Specified by:
getClassesin interfaceSession- Returns:
- collection of all MetaClasses in the whole metamodel
-