Interface SnapshotIndexed<K>
- Type Parameters:
K- The type of the index/key - Integer for Lists, the map key type for Maps
- All Known Implementing Classes:
CollectionChangeSet.Removal, CollectionChangeSet.Shift
Marker interface for objects that carry both an element and its snapshot position/key. Used during collection update decomposition to provide the snapshot position/key for DELETE operations on indexed collections.
This allows binding code to obtain the correct snapshot position (for Lists) or key (for Maps)
when generating WHERE clauses that restrict by index (e.g., WHERE listOrder = ? or WHERE mapKey = ?).
- Since:
- 8.0
-
Method Summary
Modifier and TypeMethodDescriptionelement()The element (entity or value) at this position.The position/key where this element existed in the snapshot.
-
Method Details
-
element
Object element()The element (entity or value) at this position. -
snapshotIndex
K snapshotIndex()The position/key where this element existed in the snapshot.
- For Lists: the numeric position (0, 1, 2, ...)
- For Maps: the actual map key Used for WHERE clause restrictions in UPDATE/DELETE operations.
-