EntityEntry
class in package klyn.data.internal

    public final class EntityEntry:

EntityEntry

Internal identity-map entry and scalar snapshot for one SQL entity.

The entry stores no provider connection and is owned exclusively by one non-thread-safe `EntityManager`.

Properties

Modifier and Type | Member | Description
--- | --- | ---
public readonly property | entity `entity as Object` | Tracked entity instance.
public readonly property | mapping `mapping as SQLMappedEntity` | Immutable physical mapping resolved by the factory.
public property | state `state as EntityTrackingState` | Current unit-of-work state.

Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | EntityEntry `EntityEntry( entity as Object, mapping as SQLMappedEntity, state as EntityTrackingState ):` | Creates one tracking entry.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | acceptChanges `acceptChanges() as Void:` | Replaces the snapshot after a successful provider synchronization.
public | changedProperties `changedProperties() as ArrayList<SQLPropertyMapping>:` | Returns changed persistent properties since the last successful flush.
public | identityValue `identityValue() as Object:` | Returns the current boxed identity.