Package org.hibernate.sql.model.internal
Class EntityMutationOperationGroupStandard
- java.lang.Object
-
- org.hibernate.sql.model.internal.EntityMutationOperationGroupStandard
-
- All Implemented Interfaces:
EntityMutationOperationGroup
,MutationOperationGroup
public class EntityMutationOperationGroupStandard extends Object implements EntityMutationOperationGroup
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityMutationTarget
getMutationTarget()
The model-part being mutated.MutationType
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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.sql.model.EntityMutationOperationGroup
asEntityMutationOperationGroup
-
Methods inherited from interface org.hibernate.sql.model.MutationOperationGroup
forEachOperation, hasMatching
-
-
-
-
Method Detail
-
getMutationType
public MutationType getMutationType()
Description copied from interface:MutationOperationGroup
The type of mutation (at the model-level) represented by this group.- Specified by:
getMutationType
in interfaceMutationOperationGroup
-
getMutationTarget
public EntityMutationTarget getMutationTarget()
Description copied from interface:EntityMutationOperationGroup
The model-part being mutated. N.B. it returns a widened type compared to the same method in the super interface.- Specified by:
getMutationTarget
in interfaceEntityMutationOperationGroup
- Specified by:
getMutationTarget
in interfaceMutationOperationGroup
-
getNumberOfOperations
public int getNumberOfOperations()
Description copied from interface:MutationOperationGroup
Number of operations in this group- Specified by:
getNumberOfOperations
in interfaceMutationOperationGroup
-
getSingleOperation
public MutationOperation getSingleOperation()
Description copied from interface:MutationOperationGroup
Get the singular operation, assuming there is just one. Throws an exception if there are more than one.- Specified by:
getSingleOperation
in interfaceMutationOperationGroup
-
getOperation
public MutationOperation getOperation(int idx)
Description copied from interface:MutationOperationGroup
Gets a specific MutationOperation from the group- Specified by:
getOperation
in interfaceMutationOperationGroup
- Parameters:
idx
- the index, starting from zero.- Returns:
-
getOperation
public MutationOperation getOperation(String tableName)
Description copied from interface:MutationOperationGroup
Get the operation for a specific table.- Specified by:
getOperation
in interfaceMutationOperationGroup
-
-