Top Description Methods
org.hibernate.sql.model

public Interface MutationOperationGroup

Known Direct Subinterfaces
org.hibernate.sql.model.EntityMutationOperationGroup
Known Direct Implementers
org.hibernate.sql.model.internal.MutationOperationGroupStandard
Imports
java.util.function.BiConsumer, .BiFunction

Group of MutationOperation references for a specific logical operation (target + type)
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public default EntityMutationOperationGroup
asEntityMutationOperationGroup()

Attempt to cast to the frequently uses subtype EntityMutationOperationGroup; returns null if this is not possible.

public default <O extends MutationOperation> void
forEachOperation(BiConsumer<Integer, O> action)

Deprecated for removal. Will be removed. Use the other methods to visit each operation.
public MutationTarget<T extends TableMapping>
getMutationTarget()

The model-part being mutated

public MutationType
getMutationType()

The type of mutation (at the model-level) represented by this group.

public int
getNumberOfOperations()

Number of operations in this group

public MutationOperation
getOperation(int
the index, starting from zero.
idx
)

Gets a specific MutationOperation from the group

public MutationOperation
getOperation(String tableName)

Get the operation for a specific table.

public MutationOperation
getSingleOperation()

Get the singular operation, assuming there is just one.

public default <O extends MutationOperation> boolean
hasMatching(BiFunction<Integer, O, Boolean> matcher)

Deprecated for removal. Will be removed. Use the other methods to visit each operation.

Method Detail

asEntityMutationOperationGroupback to summary
public default EntityMutationOperationGroup asEntityMutationOperationGroup()

Attempt to cast to the frequently uses subtype EntityMutationOperationGroup; returns null if this is not possible.

forEachOperationback to summary
public default <O extends MutationOperation> void forEachOperation(BiConsumer<Integer, O> action)

Deprecated

for removal.

Will be removed. Use the other methods to visit each operation.

Annotations
@Deprecated
forRemoval:true
getMutationTargetback to summary
public MutationTarget<T extends TableMapping> getMutationTarget()

The model-part being mutated

getMutationTypeback to summary
public MutationType getMutationType()

The type of mutation (at the model-level) represented by this group.

getNumberOfOperationsback to summary
public int getNumberOfOperations()

Number of operations in this group

getOperationback to summary
public MutationOperation getOperation(int idx)

Gets a specific MutationOperation from the group

Parameters
idx:int

the index, starting from zero.

getOperationback to summary
public MutationOperation getOperation(String tableName)

Get the operation for a specific table.

getSingleOperationback to summary
public MutationOperation getSingleOperation()

Get the singular operation, assuming there is just one. Throws an exception if there are more than one.

hasMatchingback to summary
public default <O extends MutationOperation> boolean hasMatching(BiFunction<Integer, O, Boolean> matcher)

Deprecated

for removal.

Will be removed. Use the other methods to visit each operation.

Annotations
@Deprecated
forRemoval:true