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 Details

    • 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 as forEachMutableTable(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