Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OneToManyContext<PrimaryKeyType, ForeignKeyType>

Simple cache container used to relate a single id to a set of foreign keys. Allows for fast lookup times of one-to-many projections.

Type parameters

  • PrimaryKeyType

  • ForeignKeyType

Hierarchy

  • OneToManyContext

Index

Constructors

constructor

  • new OneToManyContext<PrimaryKeyType, ForeignKeyType>(id: PrimaryKeyType): OneToManyContext<PrimaryKeyType, ForeignKeyType>

Properties

Readonly foreignKeySet

foreignKeySet: Set<ForeignKeyType> = ...

Readonly id

id: PrimaryKeyType

Methods

clear

  • clear(): void

getForeignKeys

  • getForeignKeys(): ForeignKeyType[]

setForeignKeys

  • setForeignKeys(keys: ForeignKeyType[]): void

Generated using TypeDoc