DataManager interface for defining the data source(s)

Hierarchy

  • IDataManager

Index

Methods

addCommonTable

  • Adds a common table

    Parameters

    Returns string

    internal id to the added common table for reference

addDataSource

  • addDataSource(name?: undefined | string): IDataSource
  • Creates and adds an empty datasource object.

    Parameters

    • Optional name: undefined | string

      Initial name of the datasource. If undefined, a random name will be generated. Can be changed later using the Name property.

    Returns IDataSource

    The new datasource object.

addDataSourceAsync

  • Adds an asynchronous data source

    Parameters

    Returns Promise<string>

    internal id to the added data context for reference

getAllDataSources

  • Returns an array with all datasources

    Returns IDataModelBaseAsync[]

getCommonTable

  • Gets a previously added common table

    Parameters

    • id: string

      Internal id of the common table

    Returns IDataCommonTable | undefined

    The common table

removeCommonTable

  • removeCommonTable(id: string): void
  • Removes a previously added common table

    Parameters

    • id: string

      Internal id of the common table

    Returns void

removeDataSource

  • removeDataSource(id: string): void
  • Removes a previously added datasource

    Parameters

    • id: string

      Internal id of the datasource

    Returns void