Package org.hibernate.sql.model
Interface MutationOperationGroup
-
- All Known Subinterfaces:
EntityMutationOperationGroup
- All Known Implementing Classes:
EntityMutationOperationGroupStandard
public interface MutationOperationGroup
Group ofMutationOperation
references for a specific logical operation (target + type)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default EntityMutationOperationGroup
asEntityMutationOperationGroup()
Attempt to cast to the frequently uses subtype EntityMutationOperationGroup; returns null if this is not possible.default <O extends MutationOperation>
voidforEachOperation(BiConsumer<Integer,O> action)
Deprecated, for removal: This API element is subject to removal in a future version.Will be removed.MutationTarget
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 groupMutationOperation
getOperation(int idx)
Gets a specific MutationOperation from the groupMutationOperation
getOperation(String tableName)
Get the operation for a specific table.MutationOperation
getSingleOperation()
Get the singular operation, assuming there is just one.default <O extends MutationOperation>
booleanhasMatching(BiFunction<Integer,O,Boolean> matcher)
Deprecated, for removal: This API element is subject to removal in a future version.Will be removed.
-
-
-
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
MutationOperation getSingleOperation()
Get the singular operation, assuming there is just one. Throws an exception if there are more than one.
-
getOperation
MutationOperation getOperation(int idx)
Gets a specific MutationOperation from the group- Parameters:
idx
- the index, starting from zero.- Returns:
-
getOperation
MutationOperation getOperation(String tableName)
Get the operation for a specific table.
-
asEntityMutationOperationGroup
default EntityMutationOperationGroup asEntityMutationOperationGroup()
Attempt to cast to the frequently uses subtype EntityMutationOperationGroup; returns null if this is not possible.- Returns:
-
forEachOperation
@Deprecated(forRemoval=true) default <O extends MutationOperation> void forEachOperation(BiConsumer<Integer,O> action)
Deprecated, for removal: This API element is subject to removal in a future version.Will be removed. Use the other methods to visit each operation.
-
hasMatching
@Deprecated(forRemoval=true) default <O extends MutationOperation> boolean hasMatching(BiFunction<Integer,O,Boolean> matcher)
Deprecated, for removal: This API element is subject to removal in a future version.Will be removed. Use the other methods to visit each operation.
-
-