Package org.hibernate.sql.model
Interface MutationTarget<T extends TableMapping>
-
- All Known Subinterfaces:
CollectionMutationTarget
,DeprecatedEntityStuff
,EntityMutationTarget
,EntityPersister
,Loadable
,Lockable
,OuterJoinLoadable
,PostInsertIdentityPersister
,Queryable
,SQLLoadable
,UniqueKeyLoadable
- 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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
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 orderTableMapping
getIdentifierTableMapping()
The descriptor for the table containing the identifier for the targetString
getIdentifierTableName()
The name of the table defining the identifier for this targetNavigableRole
getNavigableRole()
The model role of this targetdefault String
getRolePath()
ModelPartContainer
getTargetPart()
The ModelPart describing the mutation target
-
-
-
Method Detail
-
getNavigableRole
NavigableRole getNavigableRole()
The model role of this target
-
getRolePath
default String getRolePath()
-
getTargetPart
ModelPartContainer getTargetPart()
The ModelPart describing the mutation target
-
forEachMutableTable
void forEachMutableTable(Consumer<T> consumer)
Visit each table.- API Note:
- Inverse tables are excluded here - they are not mutable relative to this mapping
-
forEachMutableTableReverse
void forEachMutableTableReverse(Consumer<T> consumer)
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
-
-