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

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

extends Object
implements TableMutation<O extends MutationOperation>
Class Inheritance
All Implemented Interfaces
org.hibernate.sql.model.ast.TableMutation, org.hibernate.sql.ast.tree.Statement
Known Direct Subclasses
org.hibernate.sql.model.ast.AbstractRestrictedTableMutation, org.hibernate.sql.model.ast.AbstractTableInsert
Imports
java.util.List, java.util.function.BiConsumer, .Consumer, org.hibernate.engine.jdbc.mutation.internal.MutationQueryOptions, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.sql.ast.SqlAstTranslator, .SqlAstTranslatorFactory, org.hibernate.sql.exec.spi.JdbcParameterBinder, org.hibernate.sql.model.MutationOperation, .MutationTarget, .TableMapping, .ValuesAnalysis, org.hibernate.sql.model.jdbc.JdbcMutationOperation

Base TableMutation support
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final MutatingTableReference
private final MutationTarget<?>
private final List<ColumnValueParameter>
private final String

Constructor Summary

AccessConstructor and Description
public
AbstractTableMutation(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, String sqlComment, List<ColumnValueParameter> parameters)

Method Summary

Modifier and TypeMethod and Description
public O
public final O
protected abstract O
createMutationOperation(TableMapping tableDetails, String sql, List<JdbcParameterBinder>
The parameter binders effective for this table mutation
effectiveBinders
)

Intended for use from SqlAstTranslator

public void
forEachParameter(Consumer<ColumnValueParameter> consumer)

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

Visit the JDBC parameters associated with this mutation.
protected static <T> void
forEachThing(List<T> list, BiConsumer<Integer, T> action)

protected abstract String
public MutatingTableReference
public String
getMutationComment()

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

The comment to be used in the SQL if enabled and supported
public MutationTarget<?>
public List<ColumnValueParameter>
getParameters()

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

The JDBC parameters associated with this mutation.
public boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

mutatingTableback to summary
private final MutatingTableReference mutatingTable
mutationTargetback to summary
private final MutationTarget<?> mutationTarget
parametersback to summary
private final List<ColumnValueParameter> parameters
sqlCommentback to summary
private final String sqlComment

Constructor Detail

AbstractTableMutationback to summary
public AbstractTableMutation(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, String sqlComment, List<ColumnValueParameter> parameters)

Method Detail

createMutationOperationback to summary
public O createMutationOperation(ValuesAnalysis valuesAnalysis, SessionFactoryImplementor factory)

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

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Annotations
@Override
createMutationOperationback to summary
public final O createMutationOperation(String sql, List<JdbcParameterBinder> parameterBinders)

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

Intended for use from SqlAstTranslator

Annotations
@Override
createMutationOperationback to summary
protected abstract O createMutationOperation(TableMapping tableDetails, String sql, List<JdbcParameterBinder> effectiveBinders)

Intended for use from SqlAstTranslator

Parameters
effectiveBinders:List<JdbcParameterBinder>

The parameter binders effective for this table mutation

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

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.

forEachThingback to summary
protected static <T> void forEachThing(List<T> list, BiConsumer<Integer, T> action)
getLoggableNameback to summary
protected abstract String getLoggableName()
getMutatingTableback to summary
public MutatingTableReference getMutatingTable()

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

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

The table being mutated

Annotations
@Override
getMutationCommentback to summary
public String getMutationComment()

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

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

The comment to be used in the SQL if enabled and supported

Annotations
@Override
getMutationTargetback to summary
public MutationTarget<?> getMutationTarget()
getParametersback to summary
public List<ColumnValueParameter> getParameters()

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

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

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

Annotations
@Override
isCustomSqlback to summary
public boolean isCustomSql()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override