EntityManagerState
class in package klyn.data.internal

    public final class EntityManagerState:

EntityManagerState

Shared lifecycle state for one EntityManager and its managed repositories.

The object is intentionally small and uses direct method dispatch. Managed repository hot paths therefore avoid an allocated lambda invocation while still observing manager closure immediately.

    state = EntityManagerState()
    state.ensureOpen()
    state.close()

Properties

Modifier and Type | Member | Description
--- | --- | ---
public readonly property | open `open as Boolean:` | Indicates whether the owning manager accepts operations.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | close `close() as Void:` | Permanently marks the owning manager as closed.
public | ensureOpen `ensureOpen() as Void:` | Rejects operations after the owning manager has closed.