Interface LegacyMutationTarget<T extends TableMapping>
- All Superinterfaces:
MutationTarget
- All Known Subinterfaces:
CollectionMutationTarget, EntityMutationTarget, EntityPersister, LegacyEntityMutationTarget, MutationTarget<T,TD>
- All Known Implementing Classes:
AbstractCollectionPersister, AbstractEntityPersister, BasicCollectionPersister, JoinedSubclassEntityPersister, OneToManyPersister, SingleTableEntityPersister, UnionSubclassEntityPersister
@Incubating(since="6.2")
@SPI({USE,IMPLEMENT})
public interface LegacyMutationTarget<T extends TableMapping>
extends MutationTarget
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- Specified by:
getRolePathin interfaceMutationTarget
-
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- Specified by:
getIdentifierTableMappingin interfaceMutationTarget