MetadataStorage
Index
Constructors
constructor
Parameters
metadata: Dictionary<EntityMetadata<any>> = {}
Returns MetadataStorage
Properties
staticreadonlyPATH_SYMBOL
Methods
[iterator]
Returns IterableIterator<EntityMetadata<any>, any, any>
decorate
Parameters
Returns void
find
Parameters
entityName: EntityName<T>
Returns undefined | EntityMetadata<T>
get
Parameters
entityName: EntityName<T>
init: boolean = false
validate: boolean = true
Returns EntityMetadata<T>
getAll
Returns Dictionary<EntityMetadata<any>>
getByDiscriminatorColumn
Parameters
meta: EntityMetadata<T>
data: EntityData<T>
Returns undefined | EntityMetadata<T>
has
Parameters
entity: string
Returns boolean
reset
Parameters
entity: string
Returns void
set
Parameters
entity: string
meta: EntityMetadata<any>
Returns EntityMetadata<any>
staticclear
Returns void
staticgetMetadata
Returns Dictionary<EntityMetadata<any>>
staticgetMetadataFromDecorator
Parameters
target: T & Dictionary & { [PATH_SYMBOL]?: string }
Returns EntityMetadata<T>
staticinit
Returns MetadataStorage
staticisKnownEntity
Parameters
name: string
Returns boolean