Class SchemaDiff
java.lang.Object
com.kingsrook.qqq.backend.core.model.metadata.tables.SchemaDiff
The difference between two table schema fingerprints' descriptors: fields
added, removed and changed, plus any change to the table-level properties
(name, primary key, backend type, unique keys, associations).
"before" is typically the stored fingerprint (e.g., from a backup manifest)
and "after" the current table.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordOne changed field: which attributes differ, with their before and after values.static final recordOne changed table-level property (e.g., primaryKeyField or uniqueKeys). -
Method Summary
Modifier and TypeMethodDescriptionNames of fields in "after" but not in "before", sorted.Fields in both, whose descriptor attributes differ, sorted by field name.Changed table-level descriptor properties (table, primaryKeyField, backendType, uniqueKeys, associations), sorted by property name.Names of fields in "before" but not in "after", sorted.booleanisEmpty()True when nothing differs.static SchemaDiffof(TableSchemaFingerprint before, TableSchemaFingerprint after) Compare two fingerprints' descriptors.toString()Short human-readable summary, e.g., for logs and review lines.
-
Method Details
-
of
Compare two fingerprints' descriptors. -
getAddedFields
-
getRemovedFields
-
getChangedFields
Fields in both, whose descriptor attributes differ, sorted by field name. -
getChangedTableProperties
Changed table-level descriptor properties (table, primaryKeyField, backendType, uniqueKeys, associations), sorted by property name. -
isEmpty
public boolean isEmpty()True when nothing differs. -
toString
-