Class TransactionStore

Events are never fired on sub transactions. Only when making changes to the root either directly or through a final commit. Any models that want to fire non transactional events should do this directly.

Hierarchy

  • AbstractTransaction
    • TransactionStore

Implements

Constructors

  • Parameters

    • isSync: boolean = DEFAULT_NOTIFICATION_SYNC

    Returns TransactionStore

Accessors

  • get depth(): number
  • Returns number

  • get description(): string
  • Returns string

  • get isUndo(): boolean
  • Returns boolean

  • get uuid(): string
  • unique id for this transaction. This will be the same id for all sub transactions.

    Returns string

Methods

  • Creates a child transaction

    Parameters

    • Optional description: string
    • Optional onClose: ((transaction) => void)
        • (transaction): void
        • Parameters

          Returns void

    • Optional isUndo: boolean

    Returns ITransaction

  • Parameters

    • record: any

    Returns void

  • Parameters

    • changes: ChangeSet<any, any>
    • description: string
    • record: any

    Returns void

  • Parameters

    • uuid: string
    • description: string
    • record: any
    • newInputs: any

    Returns void

  • Parameters

    • changes: Map<any, ChangeSet<any, any>>
    • description: string

    Returns void

  • Parameters

    • uuid: string
    • record: any

    Returns void

  • Parameters

    • changes: ChangeSet<any, any>
    • description: string
    • record: any
    • isUndo: boolean

    Returns void

  • calls beginTransaction but adds to a shared stack

    Parameters

    • description: string
    • Optional onClose: ((transaction) => void)
        • (transaction): void
        • Parameters

          Returns void

    • isUndo: boolean = false

    Returns ITransaction