MetadataProvider
Hierarchy
- MetadataProvider
Index
Constructors
constructor
Parameters
config: IConfiguration
Returns MetadataProvider
Methods
combineCache
Combines individual metadata cache entries into a single file.
Returns void
getCachedMetadata
Attempts to load metadata from cache, returning undefined if not available.
Parameters
meta: Pick<EntityMetadata<T, EntityCtor<T>>, className | path | root>
root: EntityMetadata<T, EntityCtor<T>>
Returns undefined | EntityMetadata<T, EntityCtor<T>>
getCacheKey
Returns the cache key for the given entity metadata.
Parameters
meta: Pick<EntityMetadata<any, EntityCtor<any>>, className | path>
Returns string
loadEntityMetadata
Resolves entity references and type information for all properties in the given metadata.
Parameters
meta: EntityMetadata<any, EntityCtor<any>>
Returns void
loadFromCache
Merges cached metadata into the given entity metadata, preserving function expressions.
Parameters
meta: EntityMetadata<any, EntityCtor<any>>
cache: EntityMetadata<any, EntityCtor<any>>
Returns void
saveToCache
Parameters
meta: EntityMetadata<any, EntityCtor<any>>
Returns void
useCache
Whether metadata caching is enabled for this instance.
Returns boolean
staticuseCache
Whether this provider class uses metadata caching by default.
Returns boolean
Base metadata provider that resolves entity type information and manages metadata caching.