public final class 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()
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | openopen as Boolean: |
Indicates whether the owning manager accepts operations. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | closeclose() as Void: |
Permanently marks the owning manager as closed. |
| public | ensureOpenensureOpen() as Void: |
Rejects operations after the owning manager has closed. |