Top Fields Constructors Methods
org.hibernate.sql.model.internal

pack-priv final Class MutationOperationGroupStandard

extends Object
implements MutationOperationGroup
Class Inheritance
All Implemented Interfaces
org.hibernate.sql.model.MutationOperationGroup
Imports
java.util.Locale, org.hibernate.sql.model.MutationOperation, .MutationOperationGroup, .MutationTarget, .MutationType

Authors
Steve Ebersole, Sanne Grinovero

Field Summary

Modifier and TypeField and Description
private static final MutationOperation[]
private final MutationTarget<T extends TableMapping>
private final MutationType
private final MutationOperation[]

Constructor Summary

AccessConstructor and Description
pack-priv
MutationOperationGroupStandard(MutationType mutationType, MutationTarget<T extends TableMapping> mutationTarget)

Intentionally package private: use MutationOperationGroupFactory.

pack-priv
MutationOperationGroupStandard(MutationType mutationType, MutationTarget<T extends TableMapping> mutationTarget, MutationOperation operation)

Intentionally package private: use MutationOperationGroupFactory.

pack-priv
MutationOperationGroupStandard(MutationType mutationType, MutationTarget<T extends TableMapping> mutationTarget, MutationOperation[] operations)

Intentionally package private: use MutationOperationGroupFactory.

Method Summary

Modifier and TypeMethod and Description
public MutationTarget<T extends TableMapping>
public MutationType
getMutationType()

Implements org.hibernate.sql.model.MutationOperationGroup.getMutationType.

The type of mutation (at the model-level) represented by this group.
public int
public MutationOperation
getOperation(int
the index, starting from zero.
idx
)

Implements org.hibernate.sql.model.MutationOperationGroup.getOperation.

Gets a specific MutationOperation from the group
public MutationOperation
getOperation(final String tableName)

Implements org.hibernate.sql.model.MutationOperationGroup.getOperation.

Get the operation for a specific table.
public MutationOperation
getSingleOperation()

Implements org.hibernate.sql.model.MutationOperationGroup.getSingleOperation.

Get the singular operation, assuming there is just one.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EMPTYback to summary
private static final MutationOperation[] EMPTY
mutationTargetback to summary
private final MutationTarget<T extends TableMapping> mutationTarget
mutationTypeback to summary
private final MutationType mutationType
operationsback to summary
private final MutationOperation[] operations

Constructor Detail

MutationOperationGroupStandardback to summary
pack-priv MutationOperationGroupStandard(MutationType mutationType, MutationTarget<T extends TableMapping> mutationTarget)

Intentionally package private: use MutationOperationGroupFactory. Constructor for when there are no operations.

MutationOperationGroupStandardback to summary
pack-priv MutationOperationGroupStandard(MutationType mutationType, MutationTarget<T extends TableMapping> mutationTarget, MutationOperation operation)

Intentionally package private: use MutationOperationGroupFactory. Constructor for when there's a single operation.

MutationOperationGroupStandardback to summary
pack-priv MutationOperationGroupStandard(MutationType mutationType, MutationTarget<T extends TableMapping> mutationTarget, MutationOperation[] operations)

Intentionally package private: use MutationOperationGroupFactory. Constructor for when there's multiple operations.

Method Detail

getMutationTargetback to summary
public MutationTarget<T extends TableMapping> getMutationTarget()

Implements org.hibernate.sql.model.MutationOperationGroup.getMutationTarget.

Doc from org.hibernate.sql.model.MutationOperationGroup.getMutationTarget.

The model-part being mutated

Annotations
@Override
getMutationTypeback to summary
public MutationType getMutationType()

Implements org.hibernate.sql.model.MutationOperationGroup.getMutationType.

Doc from org.hibernate.sql.model.MutationOperationGroup.getMutationType.

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

Annotations
@Override
getNumberOfOperationsback to summary
public int getNumberOfOperations()

Implements org.hibernate.sql.model.MutationOperationGroup.getNumberOfOperations.

Doc from org.hibernate.sql.model.MutationOperationGroup.getNumberOfOperations.

Number of operations in this group

Annotations
@Override
getOperationback to summary
public MutationOperation getOperation(int idx)

Implements org.hibernate.sql.model.MutationOperationGroup.getOperation.

Doc from org.hibernate.sql.model.MutationOperationGroup.getOperation.

Gets a specific MutationOperation from the group

Parameters
idx:int

the index, starting from zero.

Annotations
@Override
getOperationback to summary
public MutationOperation getOperation(final String tableName)

Implements org.hibernate.sql.model.MutationOperationGroup.getOperation.

Doc from org.hibernate.sql.model.MutationOperationGroup.getOperation.

Get the operation for a specific table.

Annotations
@Override
getSingleOperationback to summary
public MutationOperation getSingleOperation()

Implements org.hibernate.sql.model.MutationOperationGroup.getSingleOperation.

Doc from org.hibernate.sql.model.MutationOperationGroup.getSingleOperation.

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

Annotations
@Override