Skip to main content
Version: Next

MetadataStorage

Registry that stores and provides access to entity metadata by class, name, or id.

Index

Constructors

constructor

Properties

staticreadonlyPATH_SYMBOL

PATH_SYMBOL: typeof PATH_SYMBOL = ...

Methods

[iterator]

decorate

  • decorate(em): void

find

get

  • Returns metadata for the given entity, optionally initializing it if not found.


    Parameters

    Returns EntityMetadata<T, EntityCtor<T>>

getAll

getByClassName

getById

getByUniqueName

has

  • has<T>(entityName): boolean
  • Checks whether metadata exists for the given entity.


    Parameters

    Returns boolean

reset

  • reset<T>(entityName): void
  • Removes metadata for the given entity from all internal maps.


    Parameters

    Returns void

set

staticclear

  • clear(): void
  • Clears all entries from the global metadata registry.


    Returns void

staticgetMetadata

staticisKnownEntity

  • isKnownEntity(name): boolean
  • Checks whether an entity with the given class name exists in the global metadata.


    Parameters

    • name: string

    Returns boolean