Top Description Methods
org.hibernate.sql.model

public Interface MutationTarget<T extends org.hibernate.sql.model.TableMapping>

Known Direct Subinterfaces
org.hibernate.persister.collection.mutation.CollectionMutationTarget, org.hibernate.persister.entity.mutation.EntityMutationTarget
Imports
java.util.function.Consumer, org.hibernate.metamodel.mapping.ModelPartContainer, org.hibernate.metamodel.model.domain.NavigableRole

Target of mutations from persistence context events
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public void
forEachMutableTable(Consumer<T> consumer)

Visit each table.

public void
forEachMutableTableReverse(Consumer<T> consumer)

Same as forEachMutableTable except that here the tables are visited in reverse order

public TableMapping
getIdentifierTableMapping()

The descriptor for the table containing the identifier for the target

public String
getIdentifierTableName()

The name of the table defining the identifier for this target

public NavigableRole
getNavigableRole()

The model role of this target

public default String
public ModelPartContainer
getTargetPart()

The ModelPart describing the mutation target

Method Detail

forEachMutableTableback to summary
public void forEachMutableTable(Consumer<T> consumer)

Visit each table.

API Note

Inverse tables are excluded here - they are not mutable relative to this mapping

forEachMutableTableReverseback to summary
public void forEachMutableTableReverse(Consumer<T> consumer)

Same as forEachMutableTable 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

getIdentifierTableMappingback to summary
public TableMapping getIdentifierTableMapping()

The descriptor for the table containing the identifier for the target

getIdentifierTableNameback to summary
public String getIdentifierTableName()

The name of the table defining the identifier for this target

getNavigableRoleback to summary
public NavigableRole getNavigableRole()

The model role of this target

getRolePathback to summary
public default String getRolePath()
getTargetPartback to summary
public ModelPartContainer getTargetPart()

The ModelPart describing the mutation target