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

public abstract Class AbstractJdbcMutation

extends Object
implements JdbcMutationOperation
Class Inheritance
All Implemented Interfaces
org.hibernate.sql.model.jdbc.JdbcMutationOperation, org.hibernate.sql.model.PreparableMutationOperation, org.hibernate.sql.model.MutationOperation, org.hibernate.sql.exec.spi.JdbcOperation
Known Direct Subclasses
org.hibernate.sql.model.jdbc.JdbcDeleteMutation, org.hibernate.sql.model.jdbc.JdbcInsertMutation, org.hibernate.sql.model.jdbc.JdbcUpdateMutation, org.hibernate.sql.model.jdbc.MergeOperation, org.hibernate.sql.model.jdbc.UpsertOperation
Imports
java.util.List, org.hibernate.engine.jdbc.mutation.ParameterUsage, org.hibernate.engine.jdbc.mutation.internal.JdbcValueDescriptorImpl, org.hibernate.jdbc.Expectation, org.hibernate.sql.exec.spi.JdbcParameterBinder, org.hibernate.sql.model.MutationTarget, .TableMapping

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final boolean
private final Expectation
private final List<JdbcValueDescriptor>
private final MutationTarget<?>
private final List<? extends JdbcParameterBinder>
private final String
private final TableMapping

Constructor Summary

AccessConstructor and Description
public
AbstractJdbcMutation(TableMapping tableDetails, MutationTarget<?> mutationTarget, String sql, boolean callable, Expectation expectation, List<? extends JdbcParameterBinder> parameterBinders)

Method Summary

Modifier and TypeMethod and Description
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 Expectation
public MutationTarget<?>
public List<JdbcParameterBinder>
public String
getSqlString()

Implements org.hibernate.sql.exec.spi.JdbcOperation.getSqlString, org.hibernate.sql.model.PreparableMutationOperation.getSqlString.

Get the SQL command we will be executing through JDBC PreparedStatement or CallableStatement
public TableMapping
getTableDetails()

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

The table against which operation is to be performed
public boolean
isCallable()

Implements org.hibernate.sql.model.PreparableMutationOperation.isCallable.

Whether the operation is callable
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

callableback to summary
private final boolean callable
expectationback to summary
private final Expectation expectation
jdbcValueDescriptorsback to summary
private final List<JdbcValueDescriptor> jdbcValueDescriptors
mutationTargetback to summary
private final MutationTarget<?> mutationTarget
parameterBindersback to summary
private final List<? extends JdbcParameterBinder> parameterBinders
sqlback to summary
private final String sql
tableDetailsback to summary
private final TableMapping tableDetails

Constructor Detail

AbstractJdbcMutationback to summary
public AbstractJdbcMutation(TableMapping tableDetails, MutationTarget<?> mutationTarget, String sql, boolean callable, Expectation expectation, List<? extends JdbcParameterBinder> parameterBinders)

Method Detail

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
getExpectationback to summary
public Expectation getExpectation()

Implements org.hibernate.sql.model.PreparableMutationOperation.getExpectation.

Doc from org.hibernate.sql.model.PreparableMutationOperation.getExpectation.

The expected outcome of execution

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
getParameterBindersback to summary
public List<JdbcParameterBinder> getParameterBinders()

Implements org.hibernate.sql.exec.spi.JdbcOperation.getParameterBinders, org.hibernate.sql.model.PreparableMutationOperation.getParameterBinders.

Doc from org.hibernate.sql.exec.spi.JdbcOperation.getParameterBinders.

Get the list of parameter binders for the generated PreparedStatement

Annotations
@Override
getSqlStringback to summary
public String getSqlString()

Implements org.hibernate.sql.exec.spi.JdbcOperation.getSqlString, org.hibernate.sql.model.PreparableMutationOperation.getSqlString.

Doc from org.hibernate.sql.exec.spi.JdbcOperation.getSqlString.

Get the SQL command we will be executing through JDBC PreparedStatement or CallableStatement

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
isCallableback to summary
public boolean isCallable()

Implements org.hibernate.sql.model.PreparableMutationOperation.isCallable.

Doc from org.hibernate.sql.model.PreparableMutationOperation.isCallable.

Whether the operation is callable

Annotations
@Override