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

public Class DeleteOrUpsertOperation

extends Object
implements SelfExecutingUpdateOperation
Class Inheritance
All Implemented Interfaces
org.hibernate.sql.model.SelfExecutingUpdateOperation, org.hibernate.sql.model.MutationOperation
Imports
java.sql.PreparedStatement, .SQLException, java.util.Collections, .List, .Locale, .Set, org.hibernate.engine.jdbc.mutation.JdbcValueBindings, .ParameterUsage, org.hibernate.engine.jdbc.mutation.group.PreparedStatementDetails, org.hibernate.engine.jdbc.mutation.internal.MutationQueryOptions, .PreparedStatementGroupSingleTable, org.hibernate.engine.jdbc.mutation.spi.Binding, .BindingGroup, org.hibernate.engine.spi.SharedSessionContractImplementor, org.hibernate.persister.entity.mutation.EntityMutationTarget, .EntityTableMapping, .UpdateValuesAnalysis, org.hibernate.sql.ast.SqlAstTranslator, org.hibernate.sql.model.MutationTarget, .MutationType, .SelfExecutingUpdateOperation, .TableMapping, .ValuesAnalysis, org.hibernate.sql.model.ast.ColumnValueParameter, org.hibernate.sql.model.internal.OptionalTableUpdate, .TableDeleteStandard

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final EntityMutationTarget
private final OptionalTableUpdate
private final EntityTableMapping
private final UpsertOperation

Constructor Summary

AccessConstructor and Description
public
DeleteOrUpsertOperation(EntityMutationTarget mutationTarget, EntityTableMapping tableMapping, UpsertOperation upsertOperation, OptionalTableUpdate optionalTableUpdate)

Method Summary

Modifier and TypeMethod and Description
private void
private static void
bindKeyValue(int jdbcPosition, Binding binding, JdbcValueDescriptor valueDescriptor, PreparedStatement statement, String sql, EntityTableMapping tableMapping, SharedSessionContractImplementor session)

public JdbcValueDescriptor
findValueDescriptor(String columnName, ParameterUsage usage)

Implements org.hibernate.sql.model.MutationOperation.findValueDescriptor.

Find the JDBC parameter to be used for the specified column.
public MutationTarget<?>
public MutationType
getMutationType()

Implements org.hibernate.sql.model.MutationOperation.getMutationType.

The type of operation (INSERT, etc)
public TableMapping
getTableDetails()

Implements org.hibernate.sql.model.MutationOperation.getTableDetails.

The table against which operation is to be performed
private void
public void
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

mutationTargetback to summary
private final EntityMutationTarget mutationTarget
optionalTableUpdateback to summary
private final OptionalTableUpdate optionalTableUpdate
tableMappingback to summary
private final EntityTableMapping tableMapping
upsertOperationback to summary
private final UpsertOperation upsertOperation

Constructor Detail

DeleteOrUpsertOperationback to summary
public DeleteOrUpsertOperation(EntityMutationTarget mutationTarget, EntityTableMapping tableMapping, UpsertOperation upsertOperation, OptionalTableUpdate optionalTableUpdate)

Method Detail

bindDeleteKeyValuesback to summary
private void bindDeleteKeyValues(JdbcValueBindings jdbcValueBindings, List<ColumnValueParameter> parameters, PreparedStatementDetails statementDetails, SharedSessionContractImplementor session)
bindKeyValueback to summary
private static void bindKeyValue(int jdbcPosition, Binding binding, JdbcValueDescriptor valueDescriptor, PreparedStatement statement, String sql, EntityTableMapping tableMapping, SharedSessionContractImplementor session)
findValueDescriptorback to summary
public JdbcValueDescriptor findValueDescriptor(String columnName, ParameterUsage usage)

Implements org.hibernate.sql.model.MutationOperation.findValueDescriptor.

Doc from org.hibernate.sql.model.MutationOperation.findValueDescriptor.

Find the JDBC parameter to be used for the specified column.

Returns:JdbcValueDescriptor

The descriptor, or null if none match.

Annotations
@Override
getMutationTargetback to summary
public MutationTarget<?> getMutationTarget()

Implements org.hibernate.sql.model.MutationOperation.getMutationTarget.

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

The thing being mutated

Annotations
@Override
getMutationTypeback to summary
public MutationType getMutationType()

Implements org.hibernate.sql.model.MutationOperation.getMutationType.

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

The type of operation (INSERT, etc)

Annotations
@Override
getTableDetailsback to summary
public TableMapping getTableDetails()

Implements org.hibernate.sql.model.MutationOperation.getTableDetails.

Doc from org.hibernate.sql.model.MutationOperation.getTableDetails.

The table against which operation is to be performed

Annotations
@Override
performDeleteback to summary
private void performDelete(JdbcValueBindings jdbcValueBindings, SharedSessionContractImplementor session)
performMutationback to summary
public void performMutation(JdbcValueBindings jdbcValueBindings, ValuesAnalysis valuesAnalysis, SharedSessionContractImplementor session)

Implements org.hibernate.sql.model.SelfExecutingUpdateOperation.performMutation.

Annotations
@Override
performUpsertback to summary
private void performUpsert(JdbcValueBindings jdbcValueBindings, SharedSessionContractImplementor session)