entities~EntityTypeManager(applicationContext)

Management service for entity types.

new EntityTypeManager(applicationContext)

Constructs the EntityTypeManager.
Parameters:
Name Type Description
applicationContext object The application context.

Methods

create(name) → {EntityType}

Creates a new entity type.
Parameters:
Name Type Description
name string The name of the entity type.
Returns:
EntityType - The entity type.

getAll() → {Array.<EntityType>}

Returns all entity types.
Returns:
Array.<EntityType> - The list of entity types.

getByUuid(uuid) → {EntityType}

Returns the entity type with the given uuid.
Parameters:
Name Type Description
uuid string The uuid of the entity type.
Returns:
EntityType - The entity type.

remove(entityType)

Removes the given entity type (and all entities (and their relationships)).
Parameters:
Name Type Description
entityType EntityType The entity type.