Interface LegacyMutationTarget<T extends TableMapping>
- All Known Subinterfaces:
CollectionMutationTarget, EntityMutationTarget, EntityPersister, LegacyEntityMutationTarget, MutationTarget<T,TD>
- All Known Implementing Classes:
AbstractCollectionPersister, AbstractEntityPersister, BasicCollectionPersister, JoinedSubclassEntityPersister, OneToManyPersister, SingleTableEntityPersister, UnionSubclassEntityPersister
Mutation target contract for the legacy (sequential) action queue.
Exposes table information as TableMapping instances, used by
legacy coordinators for executing mutations.
-
Method Summary
Modifier and TypeMethodDescriptionvoidforEachMutableTable(Consumer<T> consumer) Visit each mutable (non-inverse) table.voidforEachMutableTableReverse(Consumer<T> consumer) Same asforEachMutableTable(Consumer)except that here the tables are visited in reverse order.The table mapping for the table containing the identifierThe name of the table defining the identifier for this targetThe model role of this targetThe string representation of the role pathThe ModelPart describing the mutation target
-
Method Details
-
getRolePath
String getRolePath()The string representation of the role path -
getTargetPart
ModelPartContainer getTargetPart()The ModelPart describing the mutation target -
forEachMutableTable
-
forEachMutableTableReverse
Same asforEachMutableTable(Consumer)except that here the tables are visited in reverse order.- API Note:
- Inverse tables are excluded here - they are not mutable relative to this mapping
-
getIdentifierTableName
String getIdentifierTableName()The name of the table defining the identifier for this target -
getIdentifierTableMapping
T getIdentifierTableMapping()The table mapping for the table containing the identifier