Package org.hibernate.sql.model
Interface MutationOperationGroup
-
- All Known Implementing Classes:
AbstractMutationOperationGroup
,MutationOperationGroupNone
,MutationOperationGroupSingle
,MutationOperationGroupStandard
public interface MutationOperationGroup
Group ofMutationOperation
references for a specific logical operation (target + type)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <O extends MutationOperation>
voidforEachOperation(BiConsumer<Integer,O> action)
Visit each operationMutationTarget<?>
getMutationTarget()
The model-part being mutatedMutationType
getMutationType()
The type of mutation (at the model-level) represented by this group.int
getNumberOfOperations()
Number of operations in this group<O extends MutationOperation>
OgetOperation(String tableName)
Get the operation for a specific table.<O extends MutationOperation>
List<O>getOperations()
<O extends MutationOperation>
OgetSingleOperation()
Get the singular operation, assuming there is just one.<O extends MutationOperation>
booleanhasMatching(BiFunction<Integer,O,Boolean> matcher)
Test whether any operations match the condition
-
-
-
Method Detail
-
getMutationType
MutationType getMutationType()
The type of mutation (at the model-level) represented by this group.
-
getMutationTarget
MutationTarget<?> getMutationTarget()
The model-part being mutated
-
getNumberOfOperations
int getNumberOfOperations()
Number of operations in this group
-
getSingleOperation
<O extends MutationOperation> O getSingleOperation()
Get the singular operation, assuming there is just one. Throws an exception if there are more than one.
-
getOperations
<O extends MutationOperation> List<O> getOperations()
-
getOperation
<O extends MutationOperation> O getOperation(String tableName)
Get the operation for a specific table.
-
forEachOperation
<O extends MutationOperation> void forEachOperation(BiConsumer<Integer,O> action)
Visit each operation
-
hasMatching
<O extends MutationOperation> boolean hasMatching(BiFunction<Integer,O,Boolean> matcher)
Test whether any operations match the condition
-
-