Package org.hibernate.sql.model.internal
Class MutationGroupStandard
- java.lang.Object
-
- org.hibernate.sql.model.internal.MutationGroupStandard
-
- All Implemented Interfaces:
MutationGroup
public class MutationGroupStandard extends Object implements MutationGroup
Standard MutationGroup implementation for cases with multiple table mutations
-
-
Constructor Summary
Constructors Constructor Description MutationGroupStandard(MutationType mutationType, MutationTarget<?> mutationTarget, List<? extends TableMutation<?>> tableMutationList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <O extends MutationOperation,M extends TableMutation<O>>
voidforEachTableMutation(BiConsumer<Integer,M> action)
MutationTarget<?>
getMutationTarget()
MutationType
getMutationType()
int
getNumberOfTableMutations()
TableMutation
getSingleTableMutation()
TableMutation
getTableMutation(int i)
TableMutation
getTableMutation(String tableName)
-
-
-
Constructor Detail
-
MutationGroupStandard
public MutationGroupStandard(MutationType mutationType, MutationTarget<?> mutationTarget, List<? extends TableMutation<?>> tableMutationList)
-
-
Method Detail
-
getMutationType
public MutationType getMutationType()
- Specified by:
getMutationType
in interfaceMutationGroup
-
getMutationTarget
public MutationTarget<?> getMutationTarget()
- Specified by:
getMutationTarget
in interfaceMutationGroup
-
getNumberOfTableMutations
public int getNumberOfTableMutations()
- Specified by:
getNumberOfTableMutations
in interfaceMutationGroup
-
getSingleTableMutation
public TableMutation getSingleTableMutation()
- Specified by:
getSingleTableMutation
in interfaceMutationGroup
-
getTableMutation
public TableMutation getTableMutation(String tableName)
- Specified by:
getTableMutation
in interfaceMutationGroup
-
forEachTableMutation
public <O extends MutationOperation,M extends TableMutation<O>> void forEachTableMutation(BiConsumer<Integer,M> action)
- Specified by:
forEachTableMutation
in interfaceMutationGroup
-
getTableMutation
public TableMutation getTableMutation(int i)
- Specified by:
getTableMutation
in interfaceMutationGroup
-
-