Top Description Fields Constructors Methods
org.hibernate.sql.model.ast

public abstract Class AbstractTableUpdate<O extends org.hibernate.sql.model.MutationOperation>

extends AbstractRestrictedTableMutation<O extends MutationOperation>
implements TableUpdate<O extends MutationOperation>
Class Inheritance
All Implemented Interfaces
org.hibernate.sql.model.ast.TableUpdate, org.hibernate.sql.model.ast.RestrictedTableMutation, org.hibernate.sql.model.ast.TableMutation, org.hibernate.sql.ast.tree.Statement
Known Direct Subclasses
org.hibernate.sql.model.internal.TableUpdateCustomSql, org.hibernate.sql.model.internal.TableUpdateStandard
Imports
java.util.ArrayList, .List, java.util.function.BiConsumer, .Consumer, org.hibernate.jdbc.Expectation, org.hibernate.sql.exec.spi.JdbcParameterBinder, org.hibernate.sql.model.MutationOperation, .MutationTarget, .TableMapping, org.hibernate.sql.model.jdbc.JdbcUpdateMutation

Base support for TableUpdate implementations
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final List<ColumnValueBinding>

Constructor Summary

AccessConstructor and Description
public
AbstractTableUpdate(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, String sqlComment, List<ColumnValueBinding> valueBindings, List<ColumnValueBinding> keyRestrictionBindings, List<ColumnValueBinding> optLockRestrictionBindings)

public <T>
AbstractTableUpdate(MutatingTableReference tableReference, MutationTarget<?> mutationTarget, String sqlComment, List<ColumnValueBinding> valueBindings, List<ColumnValueBinding> keyRestrictionBindings, List<ColumnValueBinding> optLockRestrictionBindings, List<ColumnValueParameter> parameters)

Method Summary

Modifier and TypeMethod and Description
public static List<ColumnValueParameter>
collectParameters(List<ColumnValueBinding> valueBindings, List<ColumnValueBinding> keyRestrictionBindings, List<ColumnValueBinding> optLockRestrictionBindings)

protected O
createMutationOperation(TableMapping tableDetails, String sql, List<JdbcParameterBinder>
The parameter binders effective for this table mutation
effectiveBinders
)

Implements abstract org.hibernate.sql.model.ast.AbstractTableMutation.createMutationOperation.

Intended for use from SqlAstTranslator
public void
public void
public Expectation
getExpectation()

Implements org.hibernate.sql.model.ast.TableMutation.getExpectation.

The validation expectation for the mutation
protected String
public List<ColumnValueBinding>
getValueBindings()

Implements org.hibernate.sql.model.ast.TableUpdate.getValueBindings.

The value bindings for each column.
Inherited from org.hibernate.sql.model.ast.AbstractRestrictedTableMutation:
forEachKeyBindingforEachOptimisticLockBindinggetKeyBindingsgetOptimisticLockBindings

Field Detail

valueBindingsback to summary
private final List<ColumnValueBinding> valueBindings

Constructor Detail

AbstractTableUpdateback to summary
public AbstractTableUpdate(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, String sqlComment, List<ColumnValueBinding> valueBindings, List<ColumnValueBinding> keyRestrictionBindings, List<ColumnValueBinding> optLockRestrictionBindings)
AbstractTableUpdateback to summary
public <T> AbstractTableUpdate(MutatingTableReference tableReference, MutationTarget<?> mutationTarget, String sqlComment, List<ColumnValueBinding> valueBindings, List<ColumnValueBinding> keyRestrictionBindings, List<ColumnValueBinding> optLockRestrictionBindings, List<ColumnValueParameter> parameters)

Method Detail

collectParametersback to summary
public static List<ColumnValueParameter> collectParameters(List<ColumnValueBinding> valueBindings, List<ColumnValueBinding> keyRestrictionBindings, List<ColumnValueBinding> optLockRestrictionBindings)
createMutationOperationback to summary
protected O createMutationOperation(TableMapping tableDetails, String sql, List<JdbcParameterBinder> effectiveBinders)

Implements abstract org.hibernate.sql.model.ast.AbstractTableMutation.createMutationOperation.

Doc from org.hibernate.sql.model.ast.AbstractTableMutation.createMutationOperation.

Intended for use from SqlAstTranslator

Parameters
effectiveBinders:List<JdbcParameterBinder>

The parameter binders effective for this table mutation

Annotations
@Override
forEachParameterback to summary
public void forEachParameter(Consumer<ColumnValueParameter> consumer)

Overrides org.hibernate.sql.model.ast.AbstractTableMutation.forEachParameter.

Implements org.hibernate.sql.model.ast.TableMutation.forEachParameter.

Doc from org.hibernate.sql.model.ast.TableMutation.forEachParameter.

Visit the JDBC parameters associated with this mutation. The order here is the expected binding order for the java.sql.PreparedStatement.

Annotations
@Override
forEachValueBindingback to summary
public void forEachValueBinding(BiConsumer<Integer, ColumnValueBinding> consumer)

Overrides org.hibernate.sql.model.ast.AbstractRestrictedTableMutation.forEachValueBinding.

Implements org.hibernate.sql.model.ast.TableUpdate.forEachValueBinding, org.hibernate.sql.model.ast.RestrictedTableMutation.forEachValueBinding.

Doc from org.hibernate.sql.model.ast.TableUpdate.forEachValueBinding.

Visit each value binding

Annotations
@Override
getExpectationback to summary
public Expectation getExpectation()

Implements org.hibernate.sql.model.ast.TableMutation.getExpectation.

Doc from org.hibernate.sql.model.ast.TableMutation.getExpectation.

The validation expectation for the mutation

Annotations
@Override
getLoggableNameback to summary
protected String getLoggableName()

Implements abstract org.hibernate.sql.model.ast.AbstractTableMutation.getLoggableName.

Annotations
@Override
getValueBindingsback to summary
public List<ColumnValueBinding> getValueBindings()

Implements org.hibernate.sql.model.ast.TableUpdate.getValueBindings.

Doc from org.hibernate.sql.model.ast.TableUpdate.getValueBindings.

The value bindings for each column.

Annotations
@Override