Package io.permazen.core
Interface SchemaChangeListener
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Listener interface for notifications that an object's schema has been changed to match the current transaction.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onSchemaChange
(Transaction tx, ObjId id, SchemaId oldVersion, SchemaId newVersion, Map<String, Object> oldFieldValues) Receive notification of an object schema change.
-
Method Details
-
onSchemaChange
void onSchemaChange(Transaction tx, ObjId id, SchemaId oldVersion, SchemaId newVersion, Map<String, Object> oldFieldValues) Receive notification of an object schema change.Notifications are delivered in the same thread that first reads the object, before the operation that triggered the schema change returns.
- Parameters:
tx
- associated transactionid
- the ID of the updated objectoldVersion
- previous schema IDnewVersion
- new schema IDoldFieldValues
- read-only mapping of the values of all fields in the old schema keyed by name
-