Package org.hibernate.sql.model
Interface MutationTarget<T extends TableMapping>
- All Known Subinterfaces:
CollectionMutationTarget
,EntityMutationTarget
,EntityPersister
- All Known Implementing Classes:
AbstractCollectionPersister
,AbstractEntityPersister
,BasicCollectionPersister
,JoinedSubclassEntityPersister
,MockEntityPersister
,OneToManyPersister
,ProcessorSessionFactory.EntityPersister
,SingleTableEntityPersister
,UnionSubclassEntityPersister
public interface MutationTarget<T extends TableMapping>
Target of mutations from persistence context events
-
Method Summary
Modifier and TypeMethodDescriptionvoid
forEachMutableTable
(Consumer<T> consumer) Visit each table.void
forEachMutableTableReverse
(Consumer<T> consumer) Same asforEachMutableTable(java.util.function.Consumer<T>)
except that here the tables are visited in reverse orderThe descriptor for the table containing the identifier for the targetThe name of the table defining the identifier for this targetThe model role of this targetdefault String
The ModelPart describing the mutation target
-
Method Details
-
getRolePath
-
getTargetPart
ModelPartContainer getTargetPart()The ModelPart describing the mutation target -
forEachMutableTable
Visit each table.- API Note:
- Inverse tables are excluded here - they are not mutable relative to this mapping
-
forEachMutableTableReverse
Same asforEachMutableTable(java.util.function.Consumer<T>)
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
TableMapping getIdentifierTableMapping()The descriptor for the table containing the identifier for the target