klyn.data.EntityTransaction.EntityTransaction
constructor

    public EntityTransaction(
    beginAction as Invocable<Void>,
    commitAction as Invocable<Void>,
    rollbackAction as Invocable<Void>
    ):

Description

Creates a provider-neutral transaction delegate.

Application code obtains this object from `EntityManager.transaction`.

Parameters

Parameter | Description
--- | ---
`beginAction` | Starts the provider transaction.
`commitAction` | Flushes and commits provider state.
`rollbackAction` | Rolls back provider state.

Example

    transaction = manager.transaction