public interface EntityInitializer
A global class to initialize entities, similar to
EntityDefinition.createInstance(QilletniType...), but with
more options such as auto conversion and lookup.-
Method Summary
Modifier and TypeMethodDescriptioninitializeEntity(EntityDefinition entityDefinition, Object... args) Initializes an entity with the given name and arguments.initializeEntity(EntityDefinition entityDefinition, List<Object> args) Initializes an entity with the given name and arguments.initializeEntity(String entityName, Object... args) Initializes an entity with the given name and arguments.initializeEntity(String entityName, List<Object> args) Initializes an entity with the given name and arguments.
-
Method Details
-
initializeEntity
Initializes an entity with the given name and arguments. If the constructor arguments are not ofQilletniType, they will be auto converted.- Parameters:
entityName- The name of the entity to initializeargs- The arguments to pass to the entity's constructor- Returns:
- The created
EntityType
-
initializeEntity
Initializes an entity with the given name and arguments. If the constructor arguments are not ofQilletniType, they will be auto converted.- Parameters:
entityName- The name of the entity to initializeargs- The arguments to pass to the entity's constructor- Returns:
- The created
EntityType
-
initializeEntity
Initializes an entity with the given name and arguments. If the constructor arguments are not ofQilletniType, they will be auto converted.- Parameters:
entityDefinition- The definition of the entity to initializeargs- The arguments to pass to the entity's constructor- Returns:
- The created
EntityType
-
initializeEntity
Initializes an entity with the given name and arguments. If the constructor arguments are not ofQilletniType, they will be auto converted.- Parameters:
entityDefinition- The definition of the entity to initializeargs- The arguments to pass to the entity's constructor- Returns:
- The created
EntityType
-