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
Type parameters
- T = any
Parameters
entityName: EntityName<T>
Returns undefined | EntityMetadata<T>
get
Type parameters
- T = any
Parameters
entityName: EntityName<T>
init: boolean = false
validate: boolean = true
Returns EntityMetadata<T>
getAll
Returns Dictionary<EntityMetadata<any>>
getByDiscriminatorColumn
Type parameters
- T
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
Type parameters
- T = any
Parameters
target: T & Dictionary & { [PATH_SYMBOL]?: string }
Returns EntityMetadata<T>
staticinit
Returns MetadataStorage
staticisKnownEntity
Parameters
name: string
Returns boolean